/* Custom Theme Overrides - centralised theme file
   Primary: #0c2e8a
   Secondary: #50d8af
   Use this file for global theme color overrides and legacy inline-style normalization.
*/
:root {
  --theme-primary: #0c2e8a;
  --theme-secondary: #50d8af;
  --theme-tertiary: #0b296f;
  --theme-light: #f5f5f5;
  --theme-surface: #ffffff;
  --theme-border: #0c2e8a;
  --text-on-primary: #ffffff;
  --text-on-secondary: #0c2e8a;
  --text-default: #222222;
}

html, body {
  color: var(--text-default);
  background-color: var(--theme-surface);
}

body .dataTables_wrapper {
  box-sizing: border-box;
  max-width: 100%;
}

body .dataTables_wrapper > .row:first-child,
body .dataTables_wrapper > .row:last-child {
  max-width: 100%;
  overflow: visible !important;
}

body .dataTables_wrapper > .row:not(:first-child):not(:last-child) {
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

body .dataTables_wrapper .dataTables_length,
body .dataTables_wrapper .dataTables_filter,
body .dataTables_wrapper .dataTables_length label,
body .dataTables_wrapper .dataTables_filter label {
  max-width: 100%;
}

body .dataTables_wrapper .dataTables_length select,
body .dataTables_wrapper .dataTables_filter input {
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 767px) {
  body .dataTables_wrapper .dataTables_length select,
  body .dataTables_wrapper .dataTables_filter input {
    margin-left: 0;
    min-width: 0;
    width: 100%;
  }
}

/* Core theme utilities */
.theme-bg-light { background-color: var(--theme-light) !important; }
.theme-bg-primary { background-color: var(--theme-primary) !important; color: var(--text-on-primary) !important; }
.theme-bg-secondary { background-color: var(--theme-secondary) !important; color: var(--text-on-primary) !important; }
.theme-border-top { border-top: 1px solid var(--theme-border) !important; }
.theme-border { border-color: var(--theme-border) !important; }
.theme-text-primary { color: var(--theme-primary) !important; }
.theme-text-secondary { color: var(--theme-secondary) !important; }

/* Buttons */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.active,
.btn-primary:active {
  color: var(--text-on-primary) !important;
  background-color: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--theme-secondary) !important;
  border-color: var(--theme-secondary) !important;
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary.active,
.btn-secondary:active {
  color: var(--text-on-primary) !important;
  background-color: var(--theme-secondary) !important;
  border-color: var(--theme-secondary) !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
}

/* Navigation and headers */
header#tg-header,
.tg-header,
.tg-navigationarea,
nav,
.navbar,
.navbar-default,
.tg-navigation,
.tg-boxedversion .tg-navigationarea,
body.tg-fixednav .tg-boxedversion .tg-navigationarea {
  background-color: var(--theme-primary) !important;
  color: var(--text-on-primary) !important;
}

#tg-navigation .navbar-toggle .icon-bar,
.tg-btnnav .icon-bar {
  background-color: #ffffff !important;
}

#tg-navigation a,
.tg-navigation a,
.navbar-nav > li > a,
.tg-navigation ul li a {
  color: #ffffff !important;
}

#tg-navigation a:hover,
.tg-navigation ul li a:hover,
.navbar-nav > li:hover > a,
.tg-navigation li:hover > a {
  color: var(--theme-secondary) !important;
}

#tg-navigation ul li {
  padding-left: 20px;
}

#tg-navigation ul li:first-child {
  padding-left: 0;
}

.theme-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--theme-primary) !important;
  color: var(--text-on-primary) !important;
  border: 1px solid var(--theme-primary) !important;
  border-radius: 4px;
  text-decoration: none !important;
}

.theme-button:hover,
.theme-button:focus {
  background-color: var(--theme-secondary) !important;
  border-color: var(--theme-secondary) !important;
  color: var(--text-on-primary) !important;
}

.theme-logo {
  margin-top: 20px !important;
  padding: 0 !important;
  border: 0 none !important;
}

.theme-logo-img {
  width: 220px !important;
  height: 50px !important;
  margin-top: -11px !important;
  display: inline-block !important;
}

/* Footer */
.tg-footerbottombar,
footer,
.footer,
.tg-footermiddlearea {
  background-color: var(--theme-primary) !important;
  color: #ffffff !important;
}

.tg-btnsearch,
.btn-search,
.btn-theme-accent,
.theme-accent {
  background-color: var(--theme-secondary) !important;
  border-color: var(--theme-secondary) !important;
  color: var(--text-on-primary) !important;
}

.tg-btnsearch:hover,
.btn-theme-accent:hover,
.btn-secondary:hover {
  background-color: var(--theme-primary) !important;
}

.modal-header,
.modal-header-theme {
  background-color: var(--theme-primary) !important;
  color: var(--text-on-primary) !important;
}

/* Section accents and hover states */
.tg-sectiontitle h3,
.tg-formtitle,
.tg-service:hover .tg-heading h4 a,
.tg-service:hover .tg-seviceicon i,
.tg-socialprofilelinks li a:hover i,
.tg-tags a:hover,
.tg-navtab li.active a,
.tg-navtab li a:hover,
.tg-navfilterbale li a.tg-active,
.tg-navfilterbale li a:hover {
  color: var(--theme-primary) !important;
}

.tg-service:hover .tg-heading:before,
.tg-addnav:after,
.tg-btnnav,
.tg-dropdowarrow,
.tg-skill:hover .tg-skillbar,
.tg-skill.tg-active .tg-skillbar,
.tg-member:hover .tg-memberinfo:before,
.tg-news:hover .tg-borderstyle:before,
.tg-event:hover .tg-borderstyle:before {
  background-color: var(--theme-primary) !important;
}

.tg-getdirection {
  background: rgba(12, 46, 138, 0.8) !important;
}

.tg-commingsooncontent {
  background: rgba(12, 46, 138, 0.9) !important;
}

.clock-canvas:before {
  border-color: var(--theme-secondary) !important;
}

.tg-svginject path {
  fill: var(--theme-primary) !important;
}

/* Legacy inline style normalization */
[style*="background-color:#000066"] {
  background-color: var(--theme-primary) !important;
  color: var(--text-on-primary) !important;
}

[style*="color:#000066"] {
  color: var(--theme-primary) !important;
}

[style*="background-color:#004281"] {
  background-color: var(--theme-primary) !important;
}

/* Global flash message UI */
.flash-ui-alert {
  position: relative;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(17, 25, 40, 0.14);
  color: #ffffff !important;
  font-weight: 600;
  line-height: 1.45;
  margin: 12px auto;
  max-width: 100%;
  padding: 12px 42px 12px 14px !important;
  transition: opacity .35s ease, transform .35s ease;
}

.flash-ui-alert .flash-ui-progress {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  bottom: 6px;
  height: 4px;
  left: 12px;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 12px;
}

.flash-ui-alert .flash-ui-progress-bar {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  height: 100%;
  transform-origin: left center;
  width: 100%;
}

.flash-ui-alert.flash-ui-paused .flash-ui-progress-bar {
  animation-play-state: paused;
}

.flash-ui-alert.flash-ui-success {
  background: linear-gradient(135deg, #0ea463 0%, #2fcb8b 58%, #5de3af 100%) !important;
}

.flash-ui-alert.flash-ui-success .flash-ui-progress {
  background: rgba(6, 97, 57, 0.35);
}

.flash-ui-alert.flash-ui-success .flash-ui-progress-bar {
  background: #e9fff3;
}

.flash-ui-alert.flash-ui-danger {
  background: linear-gradient(135deg, #da2f54 0%, #ee4f6f 58%, #ff7a8f 100%) !important;
}

.flash-ui-alert.flash-ui-danger .flash-ui-progress {
  background: rgba(130, 16, 39, 0.38);
}

.flash-ui-alert.flash-ui-danger .flash-ui-progress-bar {
  background: #ffecef;
}

.flash-ui-alert.flash-ui-warning {
  background: linear-gradient(135deg, #da7b1f 0%, #ee9e36 58%, #ffb45d 100%) !important;
}

.flash-ui-alert.flash-ui-warning .flash-ui-progress {
  background: rgba(117, 61, 3, 0.36);
}

.flash-ui-alert.flash-ui-warning .flash-ui-progress-bar {
  background: #fff5e8;
}

.flash-ui-alert.flash-ui-info {
  background: linear-gradient(135deg, #1a5cd6 0%, #2f7ff0 58%, #58a0ff 100%) !important;
}

.flash-ui-alert.flash-ui-info .flash-ui-progress {
  background: rgba(8, 44, 112, 0.36);
}

.flash-ui-alert.flash-ui-info .flash-ui-progress-bar {
  background: #eaf3ff;
}

.flash-ui-alert .flash-ui-close {
  align-items: center;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 24px;
}

.flash-ui-alert .flash-ui-close:hover,
.flash-ui-alert .flash-ui-close:focus {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

.flash-ui-alert.flash-ui-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

@media (max-width: 767px) {
  .flash-ui-alert {
    border-radius: 10px !important;
    font-size: 13px;
    margin: 10px auto;
    padding: 10px 38px 10px 12px !important;
  }

  .flash-ui-alert .flash-ui-progress {
    left: 10px;
    right: 10px;
  }
}

[style*="background-color:#003160"] {
  background-color: var(--theme-primary) !important;
}

[style*="background-color:#003b73"] {
  background-color: var(--theme-primary) !important;
}

[style*="background-color:#004d96"] {
  background-color: var(--theme-secondary) !important;
}

[style*="border-color:#1d63a6"] {
  border-color: var(--theme-primary) !important;
}

[style*="#476BC6"],
[style*="background-color:#476BC6"] {
  background-color: var(--theme-primary) !important;
  color: var(--text-on-primary) !important;
}

[style*="#f1f1f1"] {
  background-color: var(--theme-light) !important;
  color: inherit !important;
}

/* Dashboard sidebar and navbar styling */
.left_col,
.left_col.scroll-view,
.navbar.nav_title,
.nav_menu,
.top_nav,
.col-md-3.left_col {
  background-color: var(--theme-primary) !important;
  color: var(--text-on-primary) !important;
}

.nav_menu {
  background-color: var(--theme-primary) !important;
}

.nav_menu * {
  color: var(--text-on-primary) !important;
}

.nav_menu a,
.nav_menu span {
  color: var(--text-on-primary) !important;
}

.nav_menu a:hover,
.nav_menu a:focus {
  color: var(--theme-secondary) !important;
}

.navbar.nav_title {
  background-color: var(--theme-primary) !important;
  border: 0 !important;
}

.left_col {
  background-color: var(--theme-primary) !important;
}

.left_col.scroll-view {
  background-color: var(--theme-primary) !important;
}

/* Menu and sidebar text styling */
.sidebar-footer,
.profile,
.nav.navbar-nav,
.nav.navbar-nav li > a {
  color: var(--text-on-primary) !important;
}

.profile {
  color: var(--text-on-primary) !important;
}

.profile div,
.profile span {
  color: var(--text-on-primary) !important;
}

/* Dropdown menu in navbar */
.dropdown-menu {
  background-color: var(--theme-light) !important;
}

.navbar-nav .open .dropdown-menu,
.navbar-nav > li.dropdown .dropdown-menu,
.navbar-nav .dropdown-menu {
  background-color: var(--theme-primary) !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
}

.navbar-nav > li:hover > .dropdown-menu,
.navbar-nav > li:focus-within > .dropdown-menu {
  display: block !important;
}

.dropdown-menu > li > a {
  color: var(--text-default) !important;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background-color: var(--theme-primary) !important;
  color: var(--text-on-primary) !important;
}

/* User profile dropdown styling */
.user-profile {
  color: var(--text-on-primary) !important;
}

.user-profile:hover,
.user-profile:focus {
  color: var(--theme-secondary) !important;
}

.dropdown-usermenu {
  background-color: var(--theme-primary) !important;
  border: 1px solid #ddd !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.dropdown-usermenu > li > a {
  color: var(--text-on-primary) !important;
  background-color: transparent !important;
  padding: 12px 15px !important;
  display: block !important;
}

.dropdown-usermenu > li > a:hover,
.dropdown-usermenu > li > a:focus {
  background-color: var(--theme-secondary) !important;
  color: var(--text-on-primary) !important;
}

.dropdown-usermenu > li > a i {
  margin-right: 8px !important;
}

/* Message and notification dropdowns */
.msg_list {
  background-color: var(--theme-light) !important;
  border: 1px solid #ddd !important;
}

.msg_list > li {
  border-bottom: 1px solid #f0f0f0 !important;
}

.msg_list > li > a {
  color: var(--text-default) !important;
  padding: 12px 15px !important;
}

.msg_list > li > a:hover {
  background-color: var(--theme-primary) !important;
  color: var(--text-on-primary) !important;
}

/* Dropdown toggle indicator */
.dropdown-toggle::after {
  display: none !important;
}

.fa-angle-down {
  color: var(--text-on-primary) !important;
}

/* Additional color remapping for other shades */
[style*="background-color:#1d63a6"],
[style*="#1d63a6"] {
  background-color: var(--theme-primary) !important;
  color: var(--text-on-primary) !important;
}

[style*="background-color:#2e4356"] {
  background-color: var(--theme-primary) !important;
  color: var(--text-on-primary) !important;
}

[style*="background-color:#2A3F54"] {
  background-color: var(--theme-primary) !important;
  color: var(--text-on-primary) !important;
}

/* Modal headers styling */
.modal-header {
  background-color: var(--theme-primary) !important;
  color: var(--text-on-primary) !important;
}

.modal-header .close {
  color: var(--text-on-primary) !important;
}

.modal-header .modal-title {
  color: var(--text-on-primary) !important;
}

/* Team member styling */
#team .member {
  text-align: center;
}

#team .member .pic {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--theme-light);
  min-height: 280px;
}

#team .member .pic img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

#team .member .details {
  padding: 15px 0;
}

#team .member .details h4 {
  font-weight: 600;
  color: var(--theme-primary);
  margin-bottom: 5px;
}

#team .member .details span {
  color: var(--text-default);
  font-size: 14px;
}

#team .member .social {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

#team .member .social a {
  display: inline-block;
  width: 35px;
  height: 35px;
  background-color: var(--theme-primary);
  color: var(--text-on-primary);
  border-radius: 50%;
  text-align: center;
  line-height: 35px;
  margin: 0 5px;
  transition: background-color 0.3s;
}

#team .member .social a:hover {
  background-color: var(--theme-secondary);
}

/* Public auth modal theme */
.auth-modal {
  padding-right: 0 !important;
}

.auth-modal .modal-dialog {
  margin: 40px auto;
  width: calc(100% - 32px);
}

.auth-modal.auth-modal-compact .modal-dialog {
  max-width: 560px;
}

.auth-modal.auth-modal-wide .modal-dialog {
  max-width: 920px;
}

.auth-modal .modal-content,
.auth-modal .auth-modal-content {
  background: transparent;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(10, 34, 94, 0.26);
  overflow: hidden;
}

.auth-modal .modal-body,
.auth-modal .auth-modal-body {
  background:
    radial-gradient(circle at top right, rgba(80, 216, 175, 0.24), transparent 34%),
    linear-gradient(180deg, #eef5ff 0%, #ffffff 45%);
  padding: 0 !important;
}

.auth-modal .auth-modal-surface {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
}

.auth-modal .auth-modal-hero {
  background: linear-gradient(135deg, var(--theme-primary) 0%, #1750b8 100%) !important;
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 64px;
  padding: 14px 20px;
  position: relative;
  text-align: left !important;
  width: 100%;
}

.auth-modal .auth-modal-header-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0;
}

.auth-modal .auth-modal-surface,
.auth-modal .auth-modal-hero,
.auth-modal .auth-modal-panel {
  box-sizing: border-box;
}

.auth-modal .auth-modal-shell,
.auth-modal .auth-modal-panel,
.auth-modal .auth-modal-body,
.auth-modal .auth-modal-content {
  width: 100%;
}

.auth-modal .auth-modal-close-wrap {
  float: none !important;
  inset: auto;
  flex: 0 0 auto;
  margin-left: auto !important;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  position: static;
  order: 2;
  text-align: right !important;
  width: auto;
  z-index: 2;
}

.auth-modal .auth-modal-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: #ffffff !important;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  width: 42px;
}

.auth-modal .auth-modal-close span {
  display: block;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  margin-top: -2px;
}

.auth-modal .auth-modal-close:hover,
.auth-modal .auth-modal-close:focus {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

.auth-modal .auth-modal-logo {
  display: inline-block;
  height: 42px !important;
  margin: 0;
  max-width: 220px;
  object-fit: contain;
  order: 1;
  width: auto !important;
}

.auth-modal .auth-modal-divider {
  display: none;
}

.auth-modal .wrapper,
.auth-modal .auth-modal-shell {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.auth-modal #formContent,
.auth-modal .auth-modal-panel {
  background: #ffffff;
  margin: 0 !important;
  padding: 30px 32px 34px !important;
  position: relative;
  text-align: left !important;
}

.auth-modal #formContent::before,
.auth-modal .auth-modal-panel::before {
  background: linear-gradient(90deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  border-radius: 999px;
  content: "";
  display: block;
  height: 5px;
  margin-bottom: 20px;
  width: 72px;
}

.auth-modal .auth-kicker {
  background: rgba(12, 46, 138, 0.08);
  border-radius: 999px;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding: 8px 14px;
  text-transform: uppercase;
}

.auth-modal .auth-title,
.auth-modal .form-signin-heading.auth-title {
  color: var(--theme-primary);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 10px;
  text-align: left !important;
}

.auth-modal .auth-subtitle,
.auth-modal .form-signin-heading.auth-subtitle {
  color: #59729e;
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 10px;
  max-width: 720px;
  text-align: left !important;
}

.auth-modal .auth-security-note {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.06) 0%, rgba(80, 216, 175, 0.12) 100%);
  border: 1px solid rgba(12, 46, 138, 0.08);
  border-radius: 12px;
  display: flex;
  margin: 0 0 10px;
  padding: 10px 12px;
}

.auth-modal .auth-security-note p {
  align-items: center;
  color: #3f587f;
  display: inline-flex;
  font-size: 14px;
  gap: 10px;
  line-height: 1.45;
  margin: 0;
}

.auth-modal .auth-security-note i {
  color: var(--theme-primary);
  font-size: 15px;
}

.auth-modal .auth-form,
.auth-modal .form-signin {
  background: transparent !important;
  border: 0 !important;
  margin: 0 auto !important;
  max-width: 100%;
  padding: 0 !important;
}

.auth-modal .auth-signup-form > .col-sm-12 {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 8px;
  width: 100%;
}

.auth-modal .auth-signup-form > .col-sm-12 > .col-sm-6 {
  float: none !important;
  margin: 0 !important;
  max-width: 50%;
  padding-left: 5px !important;
  padding-right: 5px !important;
  width: 50%;
}

.auth-modal .auth-signup-form > .col-sm-12 > .col-sm-6:first-child {
  padding-left: 0 !important;
}

.auth-modal .auth-signup-form > .col-sm-12 > .col-sm-6:last-child {
  padding-right: 0 !important;
}

.auth-modal .auth-signup-form > .col-sm-12 > .auth-signup-full-field {
  float: none !important;
  margin: 0 !important;
  max-width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
}

.auth-modal .auth-signup-form .col-lg-5,
.auth-modal .auth-signup-form .col-md-4,
.auth-modal .auth-signup-form .col-sm-4,
.auth-modal .auth-signup-form .col-xs-12 {
  margin: 0 !important;
  max-width: none;
  padding: 0 !important;
  width: auto;
}

.auth-modal .auth-signup-form .auth-password-toggle-row {
  margin: 2px 0 0;
}

.auth-modal .auth-input-shell {
  margin-bottom: 8px;
  position: relative;
}

.auth-modal .auth-input-shell input {
  margin: 0 !important;
}

.auth-modal .auth-input-shell-leading input {
  padding-left: 52px !important;
  text-align: left !important;
}

.auth-modal .auth-login-form .auth-input-shell-leading input {
  padding-left: 66px !important;
}

.auth-modal .auth-input-shell-trailing input {
  padding-right: 56px !important;
}

.auth-modal .auth-input-icon {
  color: #6a81a3;
  font-size: 16px;
  left: 16px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.auth-modal .auth-login-form .auth-input-icon {
  left: 22px;
  text-align: center;
  width: 18px;
}

.auth-modal .auth-signup-form .auth-action-wrap {
  align-items: flex-end;
  display: flex;
  justify-content: flex-end;
  margin-top: 0 !important;
}

.auth-modal .auth-signup-form .auth-submit-button {
  min-width: 190px;
}

.auth-modal .auth-signup-form .auth-form-note {
  margin-top: 0;
}

.auth-modal #email6 {
  display: none !important;
}

.auth-modal .form-signin > .col-sm-12 {
  clear: both;
  float: none;
  margin-left: 0;
  margin-right: 0;
}

.auth-modal .form-signin > .col-sm-12::after {
  clear: both;
  content: "";
  display: table;
}

.auth-modal input[type="text"],
.auth-modal input[type="email"],
.auth-modal input[type="password"],
.auth-modal input[type="number"],
.auth-modal select {
  background: #f8fbff !important;
  border: 1px solid rgba(12, 46, 138, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  color: #18345f !important;
  display: block !important;
  font-size: 15px !important;
  height: 56px !important;
  line-height: 1.4;
  margin: 0 0 8px !important;
  padding: 0 18px !important;
  text-align: left !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  width: 100% !important;
}

.auth-modal input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.auth-modal input[type="number"]::-webkit-inner-spin-button,
.auth-modal input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.auth-modal input[readonly] {
  background: #eef3fb !important;
  color: var(--theme-primary) !important;
  font-weight: 600;
}

.auth-modal .auth-signup-form input.auth-field-locked,
.auth-modal .auth-signup-form select.auth-field-locked {
  background: #edf2f8 !important;
  border-color: #cfd9ea !important;
  border-style: dashed !important;
  color: #71819c !important;
}

.auth-modal .auth-signup-form input.auth-field-readonly {
  background: #f3f6fb !important;
  border-color: rgba(12, 46, 138, 0.2) !important;
  color: #294264 !important;
  cursor: default;
  font-weight: 700;
  box-shadow: inset 4px 0 0 rgba(12, 46, 138, 0.38) !important;
}

.auth-modal .auth-signup-form input.auth-field-editable:not(:disabled),
.auth-modal .auth-signup-form select.auth-field-editable:not(:disabled) {
  background: #ffffff !important;
  border-color: rgba(80, 216, 175, 0.68) !important;
  box-shadow: inset 4px 0 0 rgba(80, 216, 175, 0.58) !important;
}

.auth-modal .auth-signup-form .select2-container.auth-field-editable .select2-selection--single {
  background: #ffffff;
  border-color: rgba(80, 216, 175, 0.68);
  box-shadow: inset 4px 0 0 rgba(80, 216, 175, 0.58);
}

.auth-modal .auth-signup-form .select2-container.auth-field-locked .select2-selection--single {
  background: #edf2f8;
  border-color: #cfd9ea;
  border-style: dashed;
}

.auth-modal .auth-signup-form .select2-container.auth-field-locked .select2-selection__rendered {
  color: #71819c;
}

.auth-modal input:disabled,
.auth-modal select:disabled,
.auth-modal button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.auth-modal .auth-tpin-lookup {
  display: block;
  margin: 0 0 6px;
  position: relative;
  width: 100%;
}

.auth-modal .auth-tpin-lookup input[type="text"] {
  border-radius: 16px !important;
  margin: 0 !important;
  min-width: 0;
  padding-right: 132px !important;
}

.auth-modal .auth-tpin-validate-btn.theme-button {
  align-items: center;
  background: linear-gradient(135deg, var(--theme-primary) 0%, #1a49b8 100%);
  border: 1px solid #0f3aa2;
  border-radius: 12px;
  bottom: 6px;
  color: #ffffff !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  line-height: 1;
  margin: 0 !important;
  min-width: 104px;
  padding: 0 14px;
  position: absolute;
  right: 6px;
  top: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  z-index: 3;
}

.auth-modal .auth-tpin-validate-btn.theme-button:hover,
.auth-modal .auth-tpin-validate-btn.theme-button:focus {
  background: linear-gradient(135deg, #173f9e 0%, #2a63d4 100%);
  box-shadow: 0 10px 20px rgba(12, 46, 138, 0.16);
  color: #ffffff !important;
  outline: none;
}

.auth-modal .auth-tpin-validate-btn i,
.auth-modal .auth-tpin-validate-btn span {
  color: #ffffff !important;
}

.auth-modal .auth-tpin-status {
  color: #60718f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 17px;
}

.auth-modal .auth-tpin-status--success {
  color: #198754;
}

.auth-modal .auth-tpin-status--error {
  color: #c0392b;
}

.auth-modal .auth-tpin-status--loading {
  color: var(--theme-primary);
}

.auth-modal input[type="text"]:focus,
.auth-modal input[type="email"]:focus,
.auth-modal input[type="password"]:focus,
.auth-modal input[type="number"]:focus,
.auth-modal select:focus {
  background: #ffffff !important;
  border-color: rgba(12, 46, 138, 0.28) !important;
  box-shadow: 0 0 0 4px rgba(80, 216, 175, 0.18) !important;
  outline: none;
}

.auth-modal input::placeholder {
  color: #88a0c0 !important;
}

.auth-modal select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--theme-primary) 50%),
    linear-gradient(135deg, var(--theme-primary) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 24px,
    calc(100% - 16px) 24px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 44px !important;
}

.auth-modal .auth-password-shell {
  position: relative;
}

.auth-modal .auth-password-shell input {
  padding-right: 52px !important;
}

.auth-modal .auth-password-toggle,
.auth-modal .js-toggle-password {
  background: transparent;
  border: 0;
  box-shadow: none !important;
  color: #6980a3;
  font-size: 16px;
  height: 34px;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 11px;
  width: 34px;
}

.auth-modal.auth-modal-wide .auth-modal-panel {
  padding: 36px 40px 40px !important;
}

.auth-modal.auth-modal-wide .auth-signup-form {
  padding: 8px 8px 0 !important;
}

.auth-modal .auth-password-toggle:hover,
.auth-modal .auth-password-toggle:focus,
.auth-modal .js-toggle-password:hover,
.auth-modal .js-toggle-password:focus {
  background: rgba(12, 46, 138, 0.08);
  border-radius: 999px;
  color: var(--theme-primary);
  outline: none;
}

.auth-modal .select2-container {
  display: block;
  margin: 0 0 16px !important;
  width: 100% !important;
}

.auth-modal .select2-container .select2-selection--single {
  background: #f8fbff;
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 16px;
  height: 56px;
  outline: none;
  position: relative;
}

.auth-modal .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #18345f;
  line-height: 56px;
  padding-left: 18px;
  padding-right: 42px;
}

.auth-modal .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 56px;
  right: 12px;
}

.auth-modal .select2-container.auth-select-loading .select2-selection--single::after,
.select2-dropdown.auth-business-select-dropdown.auth-select-dropdown-loading .select2-search--dropdown::after {
  animation: authSelectSpin 0.7s linear infinite;
  border: 2px solid rgba(12, 46, 138, 0.18);
  border-radius: 50%;
  border-top-color: var(--theme-secondary);
  content: "";
  height: 16px;
  margin-top: -8px;
  pointer-events: none;
  position: absolute;
  right: 18px;
  top: 50%;
  width: 16px;
}

.auth-modal .select2-container.auth-select-loading .select2-selection__arrow {
  opacity: 0;
}

.auth-modal .select2-container--open .select2-selection--single,
.auth-modal .select2-container--focus .select2-selection--single {
  background: #ffffff;
  border-color: rgba(12, 46, 138, 0.28);
  box-shadow: 0 0 0 4px rgba(80, 216, 175, 0.18);
}

.select2-dropdown.auth-select-dropdown {
  border: 1px solid rgba(12, 46, 138, 0.18);
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(10, 34, 94, 0.2);
  overflow: hidden;
}

.select2-dropdown.auth-business-select-dropdown .select2-search--dropdown {
  position: relative;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid rgba(12, 46, 138, 0.2);
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 10px;
}

.select2-dropdown.auth-business-select-dropdown.auth-select-dropdown-loading .select2-search__field {
  padding-right: 38px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: linear-gradient(135deg, var(--theme-primary) 0%, #1750b8 100%);
}

@keyframes authSelectSpin {
  to {
    transform: rotate(360deg);
  }
}

.auth-modal .auth-password-toggle-row {
  align-items: center;
  color: #59729e;
  display: inline-flex;
  font-size: 13px;
  gap: 10px;
  margin: -4px 0 16px;
}

.auth-modal .auth-password-toggle-row input {
  height: 16px !important;
  margin: 0 !important;
  min-height: 16px;
  padding: 0 !important;
  width: 16px !important;
}

.auth-modal input[type="submit"],
.auth-modal .auth-submit-button,
.auth-modal button[type="submit"] {
  align-items: center;
  background: linear-gradient(135deg, var(--theme-primary) 0%, #1750b8 100%) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 18px 35px rgba(12, 46, 138, 0.22) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 14px !important;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.05em;
  margin: 6px 0 0 !important;
  min-height: 54px;
  min-width: 176px;
  padding: 0 28px !important;
  text-transform: none !important;
}

.auth-modal input[type="submit"]:hover,
.auth-modal input[type="submit"]:focus,
.auth-modal .auth-submit-button:hover,
.auth-modal .auth-submit-button:focus,
.auth-modal button[type="submit"]:hover,
.auth-modal button[type="submit"]:focus {
  background: linear-gradient(135deg, #1750b8 0%, var(--theme-secondary) 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.auth-modal .auth-forgot-row {
  margin-top: 12px;
  text-align: right !important;
}

.auth-modal .auth-forgot-link {
  color: var(--theme-primary) !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  padding: 0 !important;
}

.auth-modal .auth-forgot-link:hover,
.auth-modal .auth-forgot-link:focus {
  color: #1750b8 !important;
  text-decoration: none;
}

.auth-modal .auth-flash {
  align-items: flex-start;
  border: 1px solid transparent;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(12, 46, 138, 0.08);
  display: flex;
  float: none !important;
  gap: 12px;
  line-height: 1.6;
  margin-bottom: 18px;
  margin-top: 0;
  padding: 13px 14px !important;
  width: 100%;
}

.auth-modal .auth-flash-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 32px;
  font-size: 16px;
  height: 32px;
  justify-content: center;
  margin-top: 1px;
  width: 32px;
}

.auth-modal .auth-flash-content {
  flex: 1;
  min-width: 0;
}

.auth-modal .auth-flash-content strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.auth-modal .auth-flash-content p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.auth-modal .auth-flash-error {
  background: linear-gradient(135deg, #fff4f4 0%, #ffecec 100%);
  border-color: #f4cccc;
  color: #9f1239 !important;
}

.auth-modal .auth-flash-error .auth-flash-icon {
  background: #ffe1e1;
  color: #c53030;
}

.auth-modal .auth-flash-success {
  background: linear-gradient(135deg, #edf9f3 0%, #e4f5ec 100%);
  border-color: #b9e5cf;
  color: #0f5132 !important;
}

.auth-modal .auth-flash-success .auth-flash-icon {
  background: #d5efdf;
  color: #198754;
}

.auth-modal .js-captcha-error {
  color: #b42318;
  font-size: 13px;
  margin-top: 8px;
}

.auth-modal .g-recaptcha {
  transform-origin: left top;
}

.auth-modal .auth-form-note {
  color: #667a97;
  float: none;
  font-size: 13px !important;
  line-height: 1.7;
  margin-top: 12px;
}

.auth-modal .auth-form-note strong {
  color: var(--theme-primary);
}

.auth-modal .auth-form-note-right {
  text-align: right !important;
}

.auth-modal .modal-footer {
  border: 0;
  display: none;
}

@media (max-width: 991px) {
  .auth-modal.auth-modal-wide .modal-dialog {
    max-width: 700px;
  }

  .auth-modal #formContent,
  .auth-modal .auth-modal-panel {
    padding: 26px 24px 28px !important;
  }

  .auth-modal.auth-modal-wide .auth-modal-panel {
    padding: 28px 24px 30px !important;
  }

  .auth-modal .auth-title,
  .auth-modal .form-signin-heading.auth-title {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .auth-modal .modal-dialog {
    margin: 18px auto;
    width: calc(100% - 20px);
  }

  .auth-modal .auth-modal-content,
  .auth-modal .modal-content {
    border-radius: 22px;
  }

  .auth-modal .auth-modal-hero {
    min-height: 138px;
    padding: 22px 20px 16px;
  }

  .auth-modal .auth-modal-close-wrap {
    inset: 14px 14px auto auto;
  }

  .auth-modal .auth-modal-logo {
    height: 64px !important;
    margin-top: 16px;
    width: min(84%, 220px) !important;
  }

  .auth-modal .auth-flash {
    gap: 10px;
    padding: 12px !important;
  }

  .auth-modal .auth-flash-icon {
    flex-basis: 28px;
    font-size: 14px;
    height: 28px;
    width: 28px;
  }

  .auth-modal.auth-modal-wide .auth-signup-form {
    padding: 4px 0 0 !important;
  }

  .auth-modal #formContent,
  .auth-modal .auth-modal-panel {
    padding: 22px 18px 24px !important;
  }

  .auth-modal .auth-signup-form > .col-sm-12 {
    display: block;
  }

  .auth-modal .auth-signup-form > .col-sm-12 > .col-sm-6 {
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
  }

  .auth-modal .auth-input-icon {
    top: 19px;
  }

  .auth-modal .auth-title,
  .auth-modal .form-signin-heading.auth-title {
    font-size: 24px;
  }

  .auth-modal .auth-subtitle,
  .auth-modal .form-signin-heading.auth-subtitle {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .auth-modal input[type="submit"],
  .auth-modal .auth-submit-button,
  .auth-modal button[type="submit"] {
    min-width: 100%;
    width: 100%;
  }

  .auth-modal .auth-forgot-row,
  .auth-modal .auth-form-note,
  .auth-modal .auth-form-note-right,
  .auth-modal .auth-action-wrap {
    text-align: left !important;
  }

  .auth-modal .auth-signup-form .auth-action-wrap {
    display: block;
  }

  .auth-modal .g-recaptcha {
    transform: scale(0.92);
  }
}

@media (max-width: 575px) {
  .auth-modal .auth-modal-content,
  .auth-modal .modal-content {
    border-radius: 18px;
  }

  .auth-modal .auth-kicker {
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 7px 12px;
  }

  .auth-modal .auth-title,
  .auth-modal .form-signin-heading.auth-title {
    font-size: 22px;
  }

  .auth-modal input[type="text"],
  .auth-modal input[type="email"],
  .auth-modal input[type="password"],
  .auth-modal input[type="number"],
  .auth-modal select {
    border-radius: 14px !important;
    height: 52px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .auth-modal .js-toggle-password {
    right: 16px;
    top: 16px;
  }

  .auth-modal .g-recaptcha {
    transform: scale(0.82);
  }
}

/* Compact signup modal */
.auth-modal.auth-modal-wide .modal-dialog {
  margin: 16px auto;
  max-width: 860px;
  width: calc(100% - 28px);
}

.auth-modal.auth-modal-wide .auth-modal-content,
.auth-modal.auth-modal-wide .modal-content {
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
}

.auth-modal.auth-modal-wide .auth-modal-body,
.auth-modal.auth-modal-wide .modal-body {
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.auth-modal.auth-modal-wide .auth-modal-hero {
  min-height: 52px;
  padding: 10px 16px;
}

.auth-modal.auth-modal-wide .auth-modal-header-title {
  font-size: 18px;
}

.auth-modal.auth-modal-wide .auth-modal-close {
  height: 34px;
  width: 34px;
}

.auth-modal.auth-modal-wide .auth-modal-close span {
  font-size: 24px;
}

.auth-modal.auth-modal-wide .auth-modal-panel {
  padding: 16px 22px 18px !important;
}

.auth-modal.auth-modal-wide .auth-modal-panel::before {
  height: 3px;
  margin-bottom: 12px;
  width: 54px;
}

.auth-modal.auth-modal-wide .auth-signup-form {
  padding: 0 !important;
}

.auth-modal.auth-modal-wide .auth-security-note.auth-signup-intro-note {
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
}

.auth-modal.auth-modal-wide .auth-signup-intro-note p {
  font-size: 12.5px;
  gap: 8px;
  line-height: 1.35;
}

.auth-modal.auth-modal-wide .auth-signup-form > .col-sm-12 {
  gap: 0;
  margin-bottom: 6px;
}

.auth-modal.auth-modal-wide .auth-signup-form > .col-sm-12 > .col-sm-6 {
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.auth-modal.auth-modal-wide .auth-signup-form > .col-sm-12 > .col-sm-6:first-child {
  padding-left: 0 !important;
}

.auth-modal.auth-modal-wide .auth-signup-form > .col-sm-12 > .col-sm-6:last-child {
  padding-right: 0 !important;
}

.auth-modal.auth-modal-wide .auth-signup-form input[type="text"],
.auth-modal.auth-modal-wide .auth-signup-form input[type="email"],
.auth-modal.auth-modal-wide .auth-signup-form input[type="password"],
.auth-modal.auth-modal-wide .auth-signup-form input[type="number"],
.auth-modal.auth-modal-wide .auth-signup-form select {
  border-radius: 8px !important;
  font-size: 13.5px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 12px !important;
}

.auth-modal.auth-modal-wide .auth-signup-form .auth-input-shell {
  margin-bottom: 0;
}

.auth-modal.auth-modal-wide .auth-signup-form .auth-input-shell-trailing input,
.auth-modal.auth-modal-wide .auth-signup-form .auth-password-shell input {
  padding-right: 42px !important;
}

.auth-modal.auth-modal-wide .auth-signup-form .auth-password-toggle,
.auth-modal.auth-modal-wide .auth-signup-form .js-toggle-password {
  height: 32px;
  right: 5px;
  top: 5px;
  width: 32px;
}

.auth-modal.auth-modal-wide .auth-tpin-lookup {
  margin-bottom: 3px;
}

.auth-modal.auth-modal-wide .auth-tpin-lookup input[type="text"] {
  padding-right: 112px !important;
}

.auth-modal.auth-modal-wide .auth-tpin-validate-btn.theme-button {
  border-radius: 7px;
  bottom: 5px;
  font-size: 12px;
  gap: 5px;
  min-width: 92px;
  padding: 0 10px;
  right: 5px;
  top: 5px;
}

.auth-modal.auth-modal-wide .auth-tpin-status {
  font-size: 11.5px;
  line-height: 1.3;
  min-height: 14px;
}

.auth-modal.auth-modal-wide .select2-container {
  margin-bottom: 0 !important;
}

.auth-modal.auth-modal-wide .select2-container .select2-selection--single {
  border-radius: 8px;
  height: 42px;
}

.auth-modal.auth-modal-wide .select2-container--default .select2-selection--single .select2-selection__rendered {
  font-size: 13.5px;
  line-height: 42px;
  padding-left: 12px;
}

.auth-modal.auth-modal-wide .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  right: 8px;
}

.auth-modal.auth-modal-wide .auth-signup-form .auth-action-wrap {
  align-items: center;
  min-height: 62px;
}

.auth-modal.auth-modal-wide .auth-signup-form .g-recaptcha {
  transform: scale(0.78);
}

.auth-modal.auth-modal-wide .auth-signup-form .js-captcha-error {
  font-size: 12px;
  margin-top: -10px;
}

.auth-modal.auth-modal-wide .auth-signup-form .auth-submit-button {
  border-radius: 8px !important;
  font-size: 13px !important;
  letter-spacing: 0.02em;
  min-height: 42px;
  min-width: 168px;
  padding: 0 18px !important;
}

.auth-modal.auth-modal-wide .auth-form-note {
  color: #5c6f8d;
  font-size: 12px !important;
  line-height: 1.45;
  margin-top: 2px;
}

.auth-modal.auth-modal-wide .auth-form-note b {
  color: var(--theme-primary);
}

@media (max-height: 720px) and (min-width: 768px) {
  .auth-modal.auth-modal-wide .modal-dialog {
    margin: 10px auto;
  }

  .auth-modal.auth-modal-wide .auth-modal-content,
  .auth-modal.auth-modal-wide .modal-content {
    max-height: calc(100vh - 20px);
  }

  .auth-modal.auth-modal-wide .auth-modal-panel {
    padding: 12px 18px 14px !important;
  }

  .auth-modal.auth-modal-wide .auth-modal-hero {
    min-height: 46px;
    padding: 8px 14px;
  }

  .auth-modal.auth-modal-wide .auth-signup-form input[type="text"],
  .auth-modal.auth-modal-wide .auth-signup-form input[type="email"],
  .auth-modal.auth-modal-wide .auth-signup-form input[type="password"],
  .auth-modal.auth-modal-wide .auth-signup-form input[type="number"],
  .auth-modal.auth-modal-wide .auth-signup-form select,
  .auth-modal.auth-modal-wide .select2-container .select2-selection--single {
    height: 40px !important;
  }

  .auth-modal.auth-modal-wide .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
  }

  .auth-modal.auth-modal-wide .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
  }
}

@media (max-width: 767px) {
  .auth-modal.auth-modal-wide .modal-dialog {
    margin: 10px auto;
    width: calc(100% - 16px);
  }

  .auth-modal.auth-modal-wide .auth-modal-content,
  .auth-modal.auth-modal-wide .modal-content {
    border-radius: 14px;
    max-height: calc(100vh - 20px);
  }

  .auth-modal.auth-modal-wide .auth-modal-hero {
    min-height: 50px;
    padding: 9px 12px;
  }

  .auth-modal.auth-modal-wide .auth-modal-panel {
    padding: 14px 14px 16px !important;
  }

  .auth-modal.auth-modal-wide .auth-signup-form > .col-sm-12 {
    display: block;
    margin-bottom: 0;
  }

  .auth-modal.auth-modal-wide .auth-signup-form > .col-sm-12 > .col-sm-6,
  .auth-modal.auth-modal-wide .auth-signup-form > .col-sm-12 > .auth-signup-full-field {
    max-width: 100%;
    padding: 0 !important;
    width: 100%;
  }

  .auth-modal.auth-modal-wide .auth-signup-form input[type="text"],
  .auth-modal.auth-modal-wide .auth-signup-form input[type="email"],
  .auth-modal.auth-modal-wide .auth-signup-form input[type="password"],
  .auth-modal.auth-modal-wide .auth-signup-form input[type="number"],
  .auth-modal.auth-modal-wide .auth-signup-form select,
  .auth-modal.auth-modal-wide .select2-container {
    margin-bottom: 7px !important;
  }

  .auth-modal.auth-modal-wide .auth-signup-form .auth-action-wrap {
    min-height: 0;
    padding-top: 4px !important;
  }

  .auth-modal.auth-modal-wide .auth-signup-form .g-recaptcha {
    transform: scale(0.86);
  }

  .auth-modal.auth-modal-wide .auth-signup-form .js-captcha-error {
    margin-top: -4px;
  }

  .auth-modal.auth-modal-wide .auth-form-note,
  .auth-modal.auth-modal-wide .auth-form-note-right {
    text-align: left !important;
  }
}

@media (max-width: 380px) {
  .auth-modal.auth-modal-wide .auth-signup-form .g-recaptcha {
    transform: scale(0.76);
  }

  .auth-modal.auth-modal-wide .auth-tpin-validate-btn.theme-button span {
    display: none;
  }

  .auth-modal.auth-modal-wide .auth-tpin-lookup input[type="text"] {
    padding-right: 50px !important;
  }

  .auth-modal.auth-modal-wide .auth-tpin-validate-btn.theme-button {
    min-width: 40px;
    padding: 0;
  }
}

/* Modern dashboard page */
.dashboard-modern-page {
  --dash-bg: #f5f7fb;
  --dash-surface: #ffffff;
  --dash-surface-2: #f8fafc;
  --dash-border: rgba(15, 23, 42, 0.08);
  --dash-text: #0f172a;
  --dash-muted: #64748b;
  --dash-accent: #0284c7;
  --dash-accent-2: #7c3aed;
  --dash-good: #059669;
  --dash-warm: #dc2626;
}

body.nav-md.dashboard-modern-page {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.07), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
  color: var(--dash-text);
}

.dashboard-modern-page .main_container .right_col {
  background: transparent;
  min-height: 100vh;
}

.dashboard-modern-page .dashboard-shell {
  padding: 24px 18px 32px;
}

.dashboard-modern-page .dash-hero {
  align-items: flex-start;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid var(--dash-border);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 22px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.dashboard-modern-page .dash-hero:before,
.dashboard-modern-page .dash-hero:after {
  border-radius: 999px;
  content: '';
  filter: blur(3px);
  opacity: 0.7;
  position: absolute;
}

.dashboard-modern-page .dash-hero:before {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16), transparent 70%);
  height: 180px;
  right: -60px;
  top: -48px;
  width: 180px;
}

.dashboard-modern-page .dash-hero:after {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14), transparent 70%);
  bottom: -70px;
  height: 220px;
  right: 110px;
  width: 220px;
}

.dashboard-modern-page .dash-hero-content {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.dashboard-modern-page .dash-eyebrow {
  align-items: center;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 999px;
  color: #0369a1;
  display: inline-flex;
  font-size: 12px;
  gap: 8px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.dashboard-modern-page .dash-title {
  color: #0f172a;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 12px;
}

.dashboard-modern-page .dash-subtitle {
  color: var(--dash-muted);
  font-size: 15px;
  margin-bottom: 18px;
  max-width: 760px;
}

.dashboard-modern-page .dash-kpi {
  align-items: center;
  color: #0f172a;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.dashboard-modern-page .dash-pill {
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: 999px;
  color: var(--dash-text);
  padding: 8px 12px;
}

.dashboard-modern-page .dash-month-filter {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  min-width: 292px;
  padding: 16px;
  position: relative;
  z-index: 1;
}

.dashboard-modern-page .dash-month-filter label {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.dashboard-modern-page .dash-month-control {
  align-items: center;
  display: flex;
  gap: 10px;
}

.dashboard-modern-page .dash-month-control input {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  color: #0f172a;
  flex: 1;
  font-weight: 700;
  min-height: 44px;
  min-width: 0;
  padding: 0 12px;
}

.dashboard-modern-page .dash-month-control button {
  align-items: center;
  background: linear-gradient(135deg, #0ea5e9, #0c2e8a);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(14, 46, 138, 0.22);
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
}

.dashboard-modern-page .metric-grid {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px 22px;
}

.dashboard-modern-page .metric-grid > [class*='col-'] {
  display: flex;
  margin-bottom: 20px;
  padding-left: 10px;
  padding-right: 10px;
}

.dashboard-modern-page .metric-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--dash-border);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  min-height: 190px;
  overflow: hidden;
  padding: 20px;
  position: relative;
  width: 100%;
}

.dashboard-modern-page .metric-card:before {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12), transparent 70%);
  border-radius: 50%;
  content: '';
  height: 120px;
  inset: auto -50px -50px auto;
  position: absolute;
  width: 120px;
}

.dashboard-modern-page .metric-label {
  align-items: center;
  color: #334155;
  display: flex;
  font-size: 13px;
  gap: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.dashboard-modern-page .metric-value {
  color: #0f172a;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.dashboard-modern-page .metric-note {
  color: var(--dash-muted);
  font-size: 13px;
}

.dashboard-modern-page .metric-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 8px;
}

.dashboard-modern-page .metric-breakdown small {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 11px;
  line-height: 1.25;
  padding: 4px 8px;
}

.dashboard-modern-page .metric-card[class*='metric-accent-'] {
  border: 0;
  color: #ffffff;
}

.dashboard-modern-page .metric-card[class*='metric-accent-'] .metric-label {
  color: rgba(255, 255, 255, 0.9);
}

.dashboard-modern-page .metric-card[class*='metric-accent-'] .metric-value,
.dashboard-modern-page .metric-card[class*='metric-accent-'] .metric-note {
  color: rgba(255, 255, 255, 0.92);
}

.dashboard-modern-page .metric-card[class*='metric-accent-'] .metric-note {
  opacity: 0.92;
}

.dashboard-modern-page .metric-card[class*='metric-accent-']:before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
}

.dashboard-modern-page .metric-accent-primary { background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%); }
.dashboard-modern-page .metric-accent-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.dashboard-modern-page .metric-accent-warning { background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%); }
.dashboard-modern-page .metric-accent-danger { background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%); }
.dashboard-modern-page .metric-accent-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.dashboard-modern-page .metric-accent-cyan { background: linear-gradient(135deg, #22d3ee 0%, #0284c7 100%); }

.dashboard-modern-page .dash-panel {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--dash-border);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  margin-bottom: 22px;
  padding: 22px;
}

.dashboard-modern-page .dash-panel-heading {
  background: transparent;
  border: 0;
  padding: 0;
}

.dashboard-modern-page .dash-panel-heading-split {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.dashboard-modern-page .dash-panel .panel-title {
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.dashboard-modern-page .dash-panel .panel-subtitle {
  color: var(--dash-muted);
  font-size: 13px;
  margin-top: 4px;
}

.dashboard-modern-page .panel-divider {
  background: var(--dash-border);
  height: 1px;
  margin: 18px 0;
}

.dashboard-modern-page .dash-trend-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 216, 175, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.dashboard-modern-page .dash-trend-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dashboard-modern-page .dash-trend-summary span {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  padding: 9px 12px;
  white-space: nowrap;
}

.dashboard-modern-page .location-item,
.dashboard-modern-page .history-item {
  align-items: flex-start;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  gap: 14px;
  padding: 14px 0;
}

.dashboard-modern-page .location-item:last-child,
.dashboard-modern-page .history-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dashboard-modern-page .location-badge,
.dashboard-modern-page .history-badge {
  align-items: center;
  background: rgba(59, 130, 246, 0.14);
  border-radius: 14px;
  color: #93c5fd;
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.dashboard-modern-page .history-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.dashboard-modern-page .item-title {
  color: #0f172a;
  font-weight: 700;
  margin: 0 0 4px;
}

.dashboard-modern-page .item-meta {
  color: var(--dash-muted);
  font-size: 13px;
  margin: 0;
}

.dashboard-modern-page .chart-wrap {
  min-height: 320px;
  position: relative;
}

.dashboard-modern-page .chart-wrap-large {
  min-height: 390px;
}

.dashboard-modern-page .dash-simple-table-wrap {
  overflow-x: auto;
}

.dashboard-modern-page .dash-simple-table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  min-width: 420px;
  width: 100%;
}

.dashboard-modern-page .dash-simple-table > thead > tr > th {
  background: #eef4ff;
  border: 0;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 14px 16px;
  text-transform: uppercase;
}

.dashboard-modern-page .dash-simple-table > tbody > tr > td {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #334155;
  font-size: 14px;
  padding: 15px 16px;
}

.dashboard-modern-page .dash-simple-table > tbody > tr:nth-child(even) > td {
  background: rgba(248, 250, 252, 0.78);
}

.dashboard-modern-page .dash-simple-table > tbody > tr:hover > td {
  background: rgba(80, 216, 175, 0.08);
}

.dashboard-modern-page .chart-empty,
.dashboard-modern-page .empty-state {
  background: #ffffff;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  color: var(--dash-muted);
  padding: 36px 16px;
  text-align: center;
}

.dashboard-modern-page .small-text-up {
  color: var(--dash-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-modern-page .chart-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-modern-page .chart-legend-list li {
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
}

.dashboard-modern-page .chart-legend-list li:last-child {
  border-bottom: 0;
}

.dashboard-modern-page .legend-dot {
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  margin-right: 10px;
  width: 10px;
}

.dashboard-modern-page .legend-dot-1 { background: #38bdf8; }
.dashboard-modern-page .legend-dot-2 { background: #34d399; }
.dashboard-modern-page .legend-dot-3 { background: #f59e0b; }
.dashboard-modern-page .legend-dot-4 { background: #a78bfa; }
.dashboard-modern-page .legend-dot-5 { background: #fb7185; }
.dashboard-modern-page .legend-dot-6 { background: #22d3ee; }
.dashboard-modern-page .legend-dot-7 { background: #60a5fa; }

@media (max-width: 768px) {
  .dashboard-modern-page .dashboard-shell {
    padding: 16px 12px 24px;
  }

  .dashboard-modern-page .dash-hero {
    flex-direction: column;
    padding: 22px;
  }

  .dashboard-modern-page .dash-hero-content,
  .dashboard-modern-page .dash-month-filter {
    width: 100%;
  }

  .dashboard-modern-page .dash-panel-heading-split,
  .dashboard-modern-page .dash-trend-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-modern-page .dash-trend-summary span {
    justify-content: center;
    width: 100%;
  }

  .dashboard-modern-page .chart-wrap-large {
    min-height: 320px;
  }

  .dashboard-modern-page .dash-title {
    font-size: 28px;
  }

  .dashboard-modern-page .metric-value {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .dashboard-modern-page .dash-month-control {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-modern-page .dash-month-control button {
    justify-content: center;
    width: 100%;
  }
}

/* Interactive dashboard sidebar */
:root {
  --theme-sidebar-width: 260px;
  --theme-sidebar-compact-width: 76px;
  --theme-sidebar-bg: #071b52;
  --theme-sidebar-bg-2: #0c2e8a;
  --theme-sidebar-accent: #50d8af;
  --theme-sidebar-text: #f8fafc;
  --theme-sidebar-muted: rgba(248, 250, 252, 0.68);
  --theme-sidebar-line: rgba(255, 255, 255, 0.12);
  --theme-sidebar-hover: rgba(255, 255, 255, 0.1);
  --theme-sidebar-active: rgba(80, 216, 175, 0.18);
}

.theme-sidebar.left_col,
.theme-sidebar .left_col.scroll-view,
.theme-sidebar .navbar.nav_title {
  background:
    linear-gradient(180deg, var(--theme-sidebar-bg) 0%, var(--theme-sidebar-bg-2) 58%, #072764 100%) !important;
  color: var(--theme-sidebar-text) !important;
}

.has-theme-sidebar.nav-md .container.body .col-md-3.left_col.theme-sidebar {
  bottom: 0;
  display: block;
  height: 100vh;
  left: 0;
  min-height: 100vh;
  overflow: hidden;
  position: fixed !important;
  top: 0;
  width: var(--theme-sidebar-width);
  z-index: 1031;
}

.has-theme-sidebar.nav-md .container.body .right_col {
  margin-left: var(--theme-sidebar-width);
}

.has-theme-sidebar.nav-md .main_container .top_nav {
  margin-left: var(--theme-sidebar-width);
}

.has-theme-sidebar.nav-sm .container.body .col-md-3.left_col.theme-sidebar {
  bottom: 0;
  display: block;
  height: 100vh;
  left: 0;
  min-height: 100vh;
  overflow: hidden;
  position: fixed !important;
  top: 0;
  width: var(--theme-sidebar-compact-width);
  z-index: 1031;
}

.has-theme-sidebar.nav-sm .container.body .right_col {
  margin-left: var(--theme-sidebar-compact-width);
}

.has-theme-sidebar.nav-sm .main_container .top_nav {
  margin-left: var(--theme-sidebar-compact-width);
}

.nav-md .theme-sidebar .navbar.nav_title,
.nav-sm .theme-sidebar .navbar.nav_title {
  width: 100%;
}

.theme-sidebar__scroll {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  overscroll-behavior: contain;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.theme-sidebar__scroll::-webkit-scrollbar {
  width: 7px;
}

.theme-sidebar__scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.theme-sidebar .navbar.nav_title.theme-sidebar__brand {
  align-items: center;
  border: 0 !important;
  border-bottom: 1px solid var(--theme-sidebar-line) !important;
  display: flex;
  gap: 10px;
  height: 76px;
  justify-content: space-between;
  padding: 13px 16px;
}

.theme-sidebar__brand-stack {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.theme-sidebar__brand-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  min-width: 0;
  padding: 7px 9px;
}

.theme-sidebar__brand-badge {
  align-items: center;
  background: linear-gradient(145deg, rgba(79, 211, 172, 0.2), rgba(56, 119, 231, 0.22));
  border: 1px solid rgba(141, 221, 255, 0.42);
  border-radius: 999px;
  color: #eefbff;
  display: inline-flex;
  gap: 5px;
  letter-spacing: 0;
  min-height: 24px;
  padding: 2px 7px;
  text-transform: none;
  white-space: nowrap;
}

.theme-sidebar__brand-badge-label {
  background: rgba(7, 19, 69, 0.44);
  border-radius: 999px;
  color: rgba(238, 251, 255, 0.86);
  display: inline-flex;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  text-transform: uppercase;
}

.theme-sidebar__brand-badge-value {
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.theme-sidebar__brand-status {
  margin: 8px 12px 2px;
}

.theme-sidebar__brand-logo {
  display: block;
  height: auto;
  max-height: 38px;
  max-width: 172px;
  object-fit: contain;
  width: 100%;
}

.theme-sidebar__brand-logo--icon {
  display: none;
  height: 40px;
  max-height: 40px;
  max-width: 40px;
  width: 40px;
}

.theme-sidebar__close {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--theme-sidebar-line);
  border-radius: 8px;
  color: #ffffff;
  display: none;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.theme-sidebar__close:hover,
.theme-sidebar__close:focus {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.theme-sidebar .profile.theme-sidebar__profile {
  align-items: stretch;
  background: linear-gradient(160deg, rgba(10, 28, 94, 0.9), rgba(35, 72, 165, 0.84));
  border: 1px solid rgba(142, 199, 255, 0.3);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 20px rgba(3, 10, 37, 0.2);
  color: var(--theme-sidebar-text) !important;
  display: flex;
  flex-direction: row;
  gap: 6px;
  margin: 8px 12px 8px;
  padding: 8px;
}

.theme-sidebar__profile-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.theme-sidebar__profile-top {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  width: 100%;
}

.theme-sidebar__avatar-wrap {
  flex: 0 0 auto;
}

.theme-sidebar .img-circle.profile_img.theme-sidebar__avatar {
  background: #ffffff;
  border: 2px solid rgba(110, 230, 196, 0.7);
  box-shadow: 0 0 0 2px rgba(10, 28, 94, 0.45);
  height: 44px !important;
  margin: 0 !important;
  object-fit: cover;
  padding: 2px;
  width: 44px !important;
}

.theme-sidebar__profile-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.theme-sidebar__profile-kicker {
  color: rgba(214, 238, 255, 0.9);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.theme-sidebar__profile-name {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.28;
  margin-top: 0;
  padding: 0;
}

.theme-sidebar__profile-subtitle {
  color: rgba(221, 236, 255, 0.9);
  display: block;
  font-size: 10px;
  font-weight: 500;
  margin-top: 2px;
}

.theme-sidebar__tpin-box {
  align-items: center;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(145, 220, 255, 0.38);
  border-radius: 8px;
  display: inline-flex;
  gap: 6px;
  max-width: 100%;
  padding: 4px 7px;
}

.theme-sidebar__tpin-box-label {
  color: rgba(218, 244, 255, 0.86);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.theme-sidebar__tpin-box-value {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  overflow-wrap: anywhere;
}

.theme-sidebar__tpin-card {
  align-self: stretch;
  background: linear-gradient(135deg, rgba(79, 211, 172, 0.28), rgba(54, 104, 211, 0.55));
  border: 1px solid rgba(80, 216, 175, 0.3);
  border-radius: 12px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 10px 12px;
}

.theme-sidebar__tpin-card-label {
  color: rgba(240, 255, 251, 0.85);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.theme-sidebar__tpin-card-value {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.theme-sidebar__profile-copy--full {
  padding: 0 2px;
}

.theme-sidebar__profile-name--full {
  color: var(--theme-sidebar-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.theme-sidebar__profile-device {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.theme-sidebar__menu {
  flex: 1 1 auto;
  padding: 2px 10px 92px;
}

.theme-sidebar__section-label {
  color: var(--theme-sidebar-muted);
  font-size: 11px;
  font-weight: 700;
  margin: 10px 8px 8px;
  text-transform: uppercase;
}

.theme-sidebar .nav.side-menu.theme-sidebar__nav {
  border-top: 0 !important;
  margin-top: 0;
}

.theme-sidebar .nav.side-menu > li {
  border-right: 0 !important;
  cursor: pointer;
  margin-bottom: 4px;
  position: relative;
}

.theme-sidebar .nav.side-menu > li > a,
.theme-sidebar .theme-sidebar__link {
  align-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86) !important;
  display: flex;
  gap: 10px;
  margin-bottom: 0;
  min-height: 46px;
  padding: 10px 12px;
  position: relative;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.theme-sidebar .nav.side-menu > li > a:hover,
.theme-sidebar .nav.side-menu > li > a:focus {
  background: var(--theme-sidebar-hover) !important;
  color: #ffffff !important;
  transform: translateX(2px);
}

.theme-sidebar .nav.side-menu > li > a i:first-child {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--theme-sidebar-accent);
  display: inline-flex;
  flex: 0 0 32px;
  font-size: 15px;
  height: 32px;
  justify-content: center;
  margin: 0;
  width: 32px;
}

.theme-sidebar a,
.theme-sidebar button {
  pointer-events: auto;
  touch-action: manipulation;
}

.theme-sidebar .nav.side-menu > li.active > a,
.theme-sidebar .nav.side-menu > li.current-page > a {
  background: var(--theme-sidebar-active) !important;
  box-shadow: inset 3px 0 0 var(--theme-sidebar-accent);
  color: #ffffff !important;
  text-shadow: none !important;
}

.theme-sidebar .nav.side-menu > li.active > a i:first-child,
.theme-sidebar .nav.side-menu > li.current-page > a i:first-child {
  background: rgba(80, 216, 175, 0.18);
  border-color: rgba(80, 216, 175, 0.32);
  color: #ffffff;
}

.theme-sidebar__label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
}

.theme-sidebar__chevron {
  color: rgba(255, 255, 255, 0.72) !important;
  flex: 0 0 auto;
  font-size: 10px;
  margin-left: 2px;
  transition: transform 160ms ease;
}

.theme-sidebar .has-child.active > a .theme-sidebar__chevron {
  transform: rotate(180deg);
}

.theme-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
}

.theme-badge--new {
  background: #f97316;
  color: #ffffff;
  padding: 5px 7px;
}

.theme-badge--soon {
  background: rgba(80, 216, 175, 0.14);
  border: 1px solid rgba(80, 216, 175, 0.34);
  color: #d7fff2;
  font-size: 9px;
  margin-left: 6px;
  padding: 5px 7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.theme-sidebar a[data-coming-soon] {
  cursor: not-allowed;
}

.theme-badge--mark {
  background: #f97316;
  color: #ffffff;
  height: 18px;
  margin-left: 6px;
  width: 18px;
}

.theme-sidebar .nav.child_menu.theme-sidebar__submenu {
  background: rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(80, 216, 175, 0.32);
  border-radius: 0 8px 8px 0;
  display: none;
  margin: 4px 0 8px 24px;
  padding: 6px 0 6px 12px;
}

.theme-sidebar .nav.child_menu li {
  padding-left: 0 !important;
}

.theme-sidebar .nav-md ul.nav.child_menu li:before,
.theme-sidebar .nav-md ul.nav.child_menu li:after,
.theme-sidebar ul.nav.child_menu li:before,
.theme-sidebar ul.nav.child_menu li:after {
  content: none !important;
}

.theme-sidebar .nav.child_menu > li > a {
  align-items: center;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.76) !important;
  display: flex;
  font-size: 12px;
  gap: 8px;
  line-height: 1.35;
  padding: 9px 10px !important;
  white-space: normal;
}

.theme-sidebar .nav.child_menu > li > a:hover,
.theme-sidebar .nav.child_menu > li > a:focus,
.theme-sidebar .nav.child_menu > li.current-page > a {
  background: rgba(80, 216, 175, 0.14) !important;
  color: #ffffff !important;
}

.theme-sidebar .nav.child_menu > li > a i {
  color: var(--theme-sidebar-accent);
  flex: 0 0 auto;
}

.theme-sidebar__item--hidden {
  display: none !important;
}

.theme-sidebar .sidebar-footer.theme-sidebar__footer {
  background: rgba(7, 27, 82, 0.96) !important;
  border-top: 1px solid var(--theme-sidebar-line);
  bottom: 0;
  display: flex;
  height: 54px;
  left: 0;
  padding: 8px;
  position: fixed;
  width: var(--theme-sidebar-width);
  z-index: 1032;
}

.theme-sidebar__footer-action {
  align-items: center;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px;
  color: #ffffff !important;
  display: inline-flex;
  flex: 1 1 50%;
  height: 38px;
  justify-content: center;
  margin: 0 4px;
  width: auto !important;
}

.theme-sidebar__footer-action:hover,
.theme-sidebar__footer-action:focus {
  background: var(--theme-sidebar-active) !important;
  color: #ffffff !important;
}

.sidebar-mobile-backdrop {
  background: rgba(15, 23, 42, 0.48);
  border: 0;
  bottom: 0;
  display: block;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 180ms ease;
  z-index: 2500;
}

#menu_toggle {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
}

#menu_toggle:hover,
#menu_toggle:focus {
  background: rgba(255, 255, 255, 0.12);
}

.nav-sm .theme-sidebar .profile.theme-sidebar__profile,
.nav-sm .theme-sidebar__section-label,
.nav-sm .theme-sidebar__label,
.nav-sm .theme-sidebar .theme-badge,
.nav-sm .theme-sidebar__chevron {
  display: none !important;
}

.nav-sm .theme-sidebar .navbar.nav_title.theme-sidebar__brand {
  height: 74px;
  justify-content: center;
  padding: 12px 8px;
}

.nav-sm .theme-sidebar__brand-status {
  margin-left: 8px;
  margin-right: 8px;
}

.nav-sm .theme-sidebar__brand-link {
  background: transparent;
  border: 0;
  justify-content: center;
  padding: 0;
}

.nav-sm .theme-sidebar__brand-logo--full {
  display: none;
}

.nav-sm .theme-sidebar__brand-logo--icon {
  display: block;
  max-height: 42px;
  max-width: 42px;
  width: 42px;
}

.nav-sm .theme-sidebar__menu {
  padding-left: 8px;
  padding-right: 8px;
}

.nav-sm .theme-sidebar .nav.side-menu > li > a {
  justify-content: center;
  min-height: 54px;
  padding: 10px 8px !important;
  text-align: center !important;
}

.nav-sm .theme-sidebar .nav.side-menu > li > a i:first-child {
  flex-basis: 34px;
  font-size: 18px !important;
  height: 34px;
  margin: 0 !important;
  width: 34px !important;
}

.nav-sm .theme-sidebar .sidebar-footer.theme-sidebar__footer {
  visibility: hidden;
  width: var(--theme-sidebar-compact-width);
}

.nav-sm .theme-sidebar .nav.child_menu.theme-sidebar__submenu {
  background: #0b296f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.28);
  left: calc(var(--theme-sidebar-compact-width) - 2px);
  margin: 0;
  padding: 8px;
  top: 0;
  width: 248px;
}

@media (max-width: 1199px) {
  body.sidebar-mobile-open {
    overflow: hidden;
  }

  .has-theme-sidebar.nav-md .container.body .right_col,
  .has-theme-sidebar.nav-sm .container.body .right_col,
  .has-theme-sidebar.nav-md .main_container .top_nav,
  .has-theme-sidebar.nav-sm .main_container .top_nav {
    margin-left: 0 !important;
    width: 100% !important;
  }

  body .container.body .col-md-3.left_col.theme-sidebar,
  .nav-md .container.body .col-md-3.left_col.theme-sidebar,
  .nav-sm .container.body .col-md-3.left_col.theme-sidebar {
    bottom: 0;
    box-shadow: 24px 0 60px rgba(2, 6, 23, 0.32);
    display: block !important;
    height: 100vh;
    left: 0;
    max-width: 92vw;
    min-height: 100vh;
    pointer-events: none;
    position: fixed !important;
    top: 0;
    transform: translateX(-104%);
    transition: transform 220ms ease;
    width: 360px !important;
    z-index: 3000;
  }

  body.sidebar-mobile-open .container.body .col-md-3.left_col.theme-sidebar,
  body.sidebar-mobile-open .container.body .col-md-3.left_col.theme-sidebar .theme-sidebar__scroll,
  body.sidebar-mobile-open .container.body .col-md-3.left_col.theme-sidebar .theme-sidebar__menu,
  body.sidebar-mobile-open .container.body .col-md-3.left_col.theme-sidebar a,
  body.sidebar-mobile-open .container.body .col-md-3.left_col.theme-sidebar button {
    pointer-events: auto;
  }

  body.sidebar-mobile-open .container.body .col-md-3.left_col.theme-sidebar {
    transform: translateX(0);
  }

  .theme-sidebar .navbar.nav_title.theme-sidebar__brand {
    height: 78px;
  }

  body.sidebar-mobile-open .theme-sidebar__brand-logo--full {
    display: block;
  }

  body.sidebar-mobile-open .theme-sidebar__brand-logo--icon {
    display: none;
  }

  .theme-sidebar__close {
    display: inline-flex;
  }

  .theme-sidebar .sidebar-footer.theme-sidebar__footer,
  .nav-sm .theme-sidebar .sidebar-footer.theme-sidebar__footer {
    display: flex !important;
    visibility: visible !important;
    width: min(360px, 92vw);
  }

  body.sidebar-mobile-open .sidebar-mobile-backdrop {
    left: min(360px, 92vw);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-sm .theme-sidebar .profile.theme-sidebar__profile {
    display: flex !important;
  }

  .nav-sm .theme-sidebar__section-label,
  .nav-sm .theme-sidebar__label {
    display: block !important;
  }

  .nav-sm .theme-sidebar .theme-badge {
    display: inline-flex !important;
  }

  .nav-sm .theme-sidebar__profile-top {
    align-items: flex-start;
  }

  .nav-sm .theme-sidebar__chevron {
    display: inline-block !important;
  }

  .nav-sm .theme-sidebar .nav.side-menu > li > a {
    justify-content: flex-start;
    text-align: left !important;
  }

  .nav-sm .theme-sidebar .nav.child_menu.theme-sidebar__submenu {
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    border-left: 1px solid rgba(80, 216, 175, 0.32);
    border-radius: 0 8px 8px 0;
    box-shadow: none;
    left: auto;
    margin: 4px 0 8px 24px;
    padding: 6px 0 6px 12px;
    position: static;
    width: auto;
  }

  /* Reset Gentelella's compact flyout sizing inside the tablet drawer. */
  body.sidebar-mobile-open.nav-sm .theme-sidebar .nav.child_menu.theme-sidebar__submenu {
    box-sizing: border-box;
    left: auto !important;
    max-width: calc(100% - 24px);
    position: static !important;
    transform: none !important;
    width: auto !important;
  }

  body.sidebar-mobile-open.nav-sm .theme-sidebar .nav.child_menu.theme-sidebar__submenu > li {
    box-sizing: border-box;
    width: 100%;
  }

  body.sidebar-mobile-open.nav-sm .theme-sidebar .nav.child_menu.theme-sidebar__submenu > li > a {
    box-sizing: border-box;
    justify-content: flex-start;
    margin: 0;
    max-width: 100%;
    text-align: left !important;
    width: 100%;
  }

  body.sidebar-mobile-open.nav-sm .theme-sidebar .nav.child_menu.theme-sidebar__submenu > li > a > i {
    flex: 0 0 auto !important;
    font-size: 13px !important;
    margin: 0 !important;
    text-align: center !important;
    width: 12px !important;
  }
}

@media (min-width: 1200px) {
  .sidebar-mobile-backdrop {
    display: none;
  }
}

/* Themed dashboard top header */
.theme-topbar.top_nav {
  background: transparent !important;
  background-color: transparent !important;
  border: 0;
  color: #ffffff !important;
  margin-bottom: 0;
  padding: 12px 18px 0;
  position: sticky;
  top: 0;
  z-index: 1028;
}

.theme-topbar.top_nav .nav_menu.theme-topbar__inner,
.top_nav.theme-topbar > .nav_menu.theme-topbar__inner {
  background:
    linear-gradient(135deg, rgba(7, 27, 82, 0.98) 0%, rgba(12, 46, 138, 0.98) 62%, rgba(7, 39, 100, 0.98) 100%) !important;
  background-color: var(--theme-sidebar-bg-2) !important;
  background-image: linear-gradient(135deg, rgba(7, 27, 82, 0.98) 0%, rgba(12, 46, 138, 0.98) 62%, rgba(7, 39, 100, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(7, 27, 82, 0.18);
  color: #ffffff !important;
  min-height: 66px;
  padding: 0 12px;
}

.theme-topbar__nav {
  align-items: center;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #ffffff !important;
  display: flex;
  min-height: 64px;
  width: 100%;
}

.theme-topbar .nav.toggle.theme-topbar__toggle {
  align-items: center;
  display: flex;
  float: none;
  margin: 0;
  padding: 0;
  width: auto;
}

.theme-topbar__menu-button,
#menu_toggle.theme-topbar__menu-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff !important;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.theme-topbar__menu-button i,
#menu_toggle.theme-topbar__menu-button i {
  color: #ffffff !important;
  font-size: 18px;
}

.theme-topbar__menu-button:hover,
.theme-topbar__menu-button:focus,
#menu_toggle.theme-topbar__menu-button:hover,
#menu_toggle.theme-topbar__menu-button:focus {
  background: rgba(80, 216, 175, 0.22);
  border-color: rgba(80, 216, 175, 0.48);
}

.theme-topbar__title {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  margin-left: 14px;
  min-width: 0;
  overflow: hidden;
  padding-right: 12px;
}

.theme-topbar .theme-topbar__eyebrow {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.theme-topbar .theme-topbar__title strong {
  color: #ffffff !important;
  font-size: 16px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-topbar .nav.navbar-nav.theme-topbar__actions {
  align-items: center;
  display: flex;
  float: none;
  justify-content: flex-end;
  margin: 0;
  width: auto;
}

.theme-topbar .nav.navbar-nav.theme-topbar__actions > li.theme-topbar__profile {
  display: block;
  float: none;
  position: relative;
}

.theme-topbar .user-profile.theme-topbar__profile-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff !important;
  display: inline-flex;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px !important;
}

.theme-topbar .user-profile.theme-topbar__profile-button:hover,
.theme-topbar .user-profile.theme-topbar__profile-button:focus {
  background: rgba(80, 216, 175, 0.2) !important;
  color: #ffffff !important;
}

.theme-topbar__avatar {
  background: #ffffff;
  border: 2px solid rgba(80, 216, 175, 0.7);
  border-radius: 50%;
  height: 32px !important;
  margin: 0 !important;
  object-fit: cover;
  width: 32px !important;
}

.theme-topbar .theme-topbar__profile-text {
  color: #ffffff !important;
  font-weight: 700;
  line-height: 1;
}

.theme-topbar .theme-topbar__profile-chevron {
  color: rgba(255, 255, 255, 0.76) !important;
  margin-left: 0;
}

.theme-topbar .nav.navbar-nav > li.dropdown .dropdown-menu.theme-topbar__dropdown,
.theme-topbar .dropdown-usermenu.theme-topbar__dropdown {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16) !important;
  margin-top: 10px;
  min-width: 220px;
  overflow: hidden;
  padding: 6px !important;
}

.theme-topbar .nav.navbar-nav > li.dropdown .dropdown-menu.theme-topbar__dropdown > li > a,
.theme-topbar .dropdown-usermenu.theme-topbar__dropdown > li > a {
  align-items: center;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 6px;
  color: #1e293b !important;
  display: flex !important;
  gap: 10px;
  line-height: 1.25;
  padding: 10px 12px !important;
}

.theme-topbar .nav.navbar-nav > li.dropdown .dropdown-menu.theme-topbar__dropdown > li > a i,
.theme-topbar .dropdown-usermenu.theme-topbar__dropdown > li > a i {
  color: var(--theme-primary) !important;
  margin-right: 0 !important;
  width: 16px;
}

.theme-topbar .nav.navbar-nav > li.dropdown .dropdown-menu.theme-topbar__dropdown > li > a span,
.theme-topbar .dropdown-usermenu.theme-topbar__dropdown > li > a span {
  color: inherit !important;
}

.theme-topbar .nav.navbar-nav > li.dropdown .dropdown-menu.theme-topbar__dropdown > li > a:hover,
.theme-topbar .nav.navbar-nav > li.dropdown .dropdown-menu.theme-topbar__dropdown > li > a:focus,
.theme-topbar .dropdown-usermenu.theme-topbar__dropdown > li > a:hover,
.theme-topbar .dropdown-usermenu.theme-topbar__dropdown > li > a:focus {
  background: rgba(12, 46, 138, 0.08) !important;
  background-color: rgba(12, 46, 138, 0.08) !important;
  color: var(--theme-primary) !important;
}

@media (max-width: 991px) {
  .theme-topbar.top_nav {
    padding: 10px 10px 0;
  }

  .theme-topbar .nav_menu.theme-topbar__inner {
    border-radius: 8px;
    min-height: 60px;
    padding: 0 10px;
  }

  .theme-topbar__nav {
    min-height: 58px;
  }

  .theme-topbar__title {
    margin-left: 10px;
  }

  .theme-topbar__profile-text {
    display: none !important;
  }

  .theme-topbar .user-profile.theme-topbar__profile-button {
    gap: 7px;
    padding: 5px 8px !important;
  }
}

@media (max-width: 575px) {
  .theme-topbar__eyebrow {
    display: none !important;
  }

  .theme-topbar__title strong {
    font-size: 14px;
  }

  .theme-topbar__menu-button,
  #menu_toggle.theme-topbar__menu-button {
    height: 40px;
    width: 40px;
  }
}

/* ZRA codes catalogue page */
.zra-codes-page {
  background: #f5f7fb;
}

.zra-codes-page .right_col.zra-codes-main {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%) !important;
  min-height: calc(100vh - 70px);
  padding: 22px 18px 36px;
}

.zra-codes-shell {
  margin: 0 auto;
  max-width: 1440px;
}

.zra-codes-hero {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid var(--theme-sidebar-accent);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 22px;
}

.zra-codes-hero__copy {
  min-width: 0;
}

.zra-codes-eyebrow {
  align-items: center;
  background: rgba(80, 216, 175, 0.14);
  border: 1px solid rgba(80, 216, 175, 0.24);
  border-radius: 999px;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 11px;
  text-transform: uppercase;
}

.zra-codes-eyebrow i {
  color: var(--theme-sidebar-accent);
}

.zra-codes-hero h1 {
  color: #0f172a;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 8px;
}

.zra-codes-hero p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
}

.zra-codes-refresh {
  flex: 0 0 auto;
  margin: 0;
}

.zra-codes-refresh__button {
  align-items: center;
  background: linear-gradient(135deg, var(--theme-sidebar-bg) 0%, var(--theme-sidebar-bg-2) 100%);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(12, 46, 138, 0.22);
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  gap: 9px;
  min-height: 44px;
  padding: 11px 16px;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.zra-codes-refresh__button:hover,
.zra-codes-refresh__button:focus {
  background: linear-gradient(135deg, var(--theme-sidebar-bg-2) 0%, #1454c5 100%);
  box-shadow: 0 16px 30px rgba(12, 46, 138, 0.28);
  color: #ffffff;
  transform: translateY(-1px);
}

.zra-codes-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.zra-codes-stat {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 15px;
}

.zra-codes-stat__icon {
  align-items: center;
  background: rgba(12, 46, 138, 0.1);
  border-radius: 8px;
  color: var(--theme-primary);
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.zra-codes-stat__label {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.zra-codes-stat strong {
  color: #0f172a;
  display: block;
  font-size: 20px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zra-codes-alert {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid var(--theme-primary);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
}

.zra-codes-alert--success {
  border-left-color: #16a34a;
}

.zra-codes-alert--error {
  border-left-color: #dc2626;
}

.zra-codes-alert__icon {
  align-items: center;
  background: rgba(12, 46, 138, 0.1);
  border-radius: 8px;
  color: var(--theme-primary);
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.zra-codes-alert--success .zra-codes-alert__icon {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.zra-codes-alert--error .zra-codes-alert__icon {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.zra-codes-alert__body {
  min-width: 0;
}

.zra-codes-alert__body strong {
  color: #0f172a;
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.zra-codes-alert__body p {
  color: #475569;
  margin: 0;
}

.zra-codes-alert__body pre {
  background: #0f172a;
  border: 0;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 0;
  max-height: 220px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.zra-codes-grid {
  display: grid;
  gap: 16px;
}

.zra-code-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.zra-code-card__header {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.08) 0%, rgba(80, 216, 175, 0.12) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px 18px;
}

.zra-code-card__kicker {
  color: var(--theme-primary);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.zra-code-card__header h2 {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.zra-code-card__count {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 999px;
  color: var(--theme-primary);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.zra-code-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.zra-code-table-wrap .dataTables_wrapper {
  box-sizing: border-box;
  max-width: 100%;
  overflow: visible;
  padding: 14px 16px 16px;
  width: 100%;
}

.zra-code-table-wrap .dataTables_wrapper > .row:first-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  max-width: 100%;
  overflow: visible !important;
  width: 100%;
}

.zra-code-table-wrap .dataTables_wrapper > .row:first-child > [class*='col-'] {
  float: none;
  padding: 0;
  width: auto;
}

.zra-code-table-wrap .dataTables_wrapper > .row:first-child > [class*='col-']:last-child {
  margin-left: auto;
}

.zra-code-table-wrap .dataTables_length label,
.zra-code-table-wrap .dataTables_filter label {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  margin: 0;
  text-transform: uppercase;
}

.zra-code-table-wrap .dataTables_length select,
.zra-code-table-wrap .dataTables_filter input {
  background-color: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.16);
  border-radius: 8px;
  box-shadow: none;
  color: #0f172a;
  font-size: 13px;
  min-height: 38px;
  outline: 0;
}

.zra-code-table-wrap .dataTables_length select {
  min-width: 82px;
}

.zra-code-table-wrap .dataTables_filter input {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 250px;
  padding: 8px 12px;
}

.zra-code-table-wrap .dataTables_wrapper > .row:nth-child(2) {
  margin: 0;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100%;
}

.zra-code-table-wrap .dataTables_wrapper > .row:nth-child(2) > [class*='col-'] {
  float: none;
  min-width: 0;
  padding: 0;
  width: 100%;
}

.zra-code-table-wrap .dataTables_filter input:focus,
.zra-code-table-wrap .dataTables_length select:focus {
  border-color: var(--theme-sidebar-accent);
  box-shadow: 0 0 0 3px rgba(80, 216, 175, 0.16);
}

.zra-code-table-wrap .dataTables_wrapper > .row:last-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  max-width: 100%;
  overflow: visible !important;
  width: 100%;
}

.zra-code-table-wrap .dataTables_wrapper > .row:last-child > [class*='col-'] {
  float: none;
  padding: 0;
  width: auto;
}

.zra-code-table-wrap .dataTables_wrapper > .row:last-child > [class*='col-']:last-child {
  margin-left: auto;
}

.zra-code-table-wrap .dataTables_info {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  padding-top: 0 !important;
}

.zra-code-table-wrap .dataTables_paginate {
  text-align: right;
}

.zra-code-table-wrap .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  margin: 0;
}

.zra-code-table-wrap .pagination > li > a,
.zra-code-table-wrap .pagination > li > span {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.14);
  border-radius: 8px !important;
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  min-width: 36px;
  padding: 8px 10px;
  text-align: center;
}

.zra-code-table-wrap .pagination > .active > a,
.zra-code-table-wrap .pagination > .active > a:hover,
.zra-code-table-wrap .pagination > .active > span {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #ffffff;
}

.zra-code-table-wrap .pagination > .disabled > a,
.zra-code-table-wrap .pagination > .disabled > span {
  background: #f8fafc;
  color: #94a3b8;
}

.zra-code-table {
  margin: 0;
  min-width: 560px;
  width: 100%;
}

.zra-code-table > thead > tr > th {
  background: #f1f6ff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  padding: 12px 16px;
  text-transform: uppercase;
}

.zra-code-table > tbody > tr > td {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  color: #334155;
  padding: 12px 16px;
  vertical-align: middle;
}

.zra-code-table > tbody > tr:nth-child(even) > td {
  background: #f8fafc;
}

.zra-code-table > tbody > tr:hover > td {
  background: rgba(80, 216, 175, 0.08);
}

.zra-code-table > thead > tr > th:first-child,
.zra-code-table > tbody > tr > td:first-child {
  width: 92px;
}

.zra-code-table > thead > tr > th:nth-child(2),
.zra-code-table > tbody > tr > td:nth-child(2) {
  width: 180px;
}

.zra-itemcls-hero__status {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.zra-itemcls-status {
  align-items: center;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 32px;
  padding: 8px 11px;
  white-space: nowrap;
}

.zra-itemcls-status--enabled {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.zra-itemcls-status--disabled {
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
  cursor: pointer;
}

.zra-itemcls-status--disabled:hover,
.zra-itemcls-status--disabled:focus {
  background: rgba(249, 115, 22, 0.22);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.zra-itemcls-status-cell {
  white-space: nowrap;
}

.zra-itemcls-table > thead > tr > th:first-child,
.zra-itemcls-table > tbody > tr > td:first-child {
  width: 88px;
}

.zra-itemcls-table > thead > tr > th:nth-child(2),
.zra-itemcls-table > tbody > tr > td:nth-child(2) {
  width: 190px;
}

.zra-itemcls-table > thead > tr > th:last-child,
.zra-itemcls-table > tbody > tr > td:last-child {
  text-align: center;
  width: 150px;
}

.zra-branch-table {
  min-width: 1280px;
}

.zra-branch-table > thead > tr > th,
.zra-branch-table > tbody > tr > td {
  white-space: nowrap;
}

.zra-branch-table > thead > tr > th:nth-child(4),
.zra-branch-table > tbody > tr > td:nth-child(4),
.zra-branch-table > thead > tr > th:nth-child(9),
.zra-branch-table > tbody > tr > td:nth-child(9),
.zra-branch-table > thead > tr > th:nth-child(12),
.zra-branch-table > tbody > tr > td:nth-child(12) {
  min-width: 210px;
  white-space: normal;
  word-break: break-word;
}

.zra-branch-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 28px;
  min-width: 38px;
  padding: 7px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.zra-branch-pill--success {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.zra-branch-pill--danger {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.zra-branch-pill--neutral {
  background: rgba(12, 46, 138, 0.1);
  color: var(--theme-primary);
}

.zra-branch-pill--muted {
  background: #f1f5f9;
  color: #64748b;
}

.zra-customers-table {
  min-width: 1120px;
}

.zra-customers-table > thead > tr > th,
.zra-customers-table > tbody > tr > td {
  font-size: 12px;
  line-height: 1.25;
  padding: 7px 10px;
}

.zra-customers-table > thead > tr > th:first-child,
.zra-customers-table > tbody > tr > td:first-child {
  left: 0;
  min-width: 64px;
  position: sticky;
  width: 64px;
  z-index: 3;
}

.zra-customers-table > thead > tr > th:nth-child(2),
.zra-customers-table > tbody > tr > td:nth-child(2) {
  left: 64px;
  min-width: 128px;
  position: sticky;
  width: 128px;
  z-index: 3;
}

.zra-customers-table > thead > tr > th:first-child,
.zra-customers-table > thead > tr > th:nth-child(2) {
  background: #eaf2ff;
  z-index: 5;
}

.zra-customers-table > tbody > tr > td:first-child,
.zra-customers-table > tbody > tr > td:nth-child(2) {
  background: #ffffff;
  border-right: 1px solid rgba(12, 46, 138, 0.1);
  box-shadow: 6px 0 10px rgba(15, 23, 42, 0.04);
}

.zra-customers-table > tbody > tr:nth-child(even) > td:first-child,
.zra-customers-table > tbody > tr:nth-child(even) > td:nth-child(2) {
  background: #f8fafc;
}

.zra-customers-table > tbody > tr:hover > td:first-child,
.zra-customers-table > tbody > tr:hover > td:nth-child(2) {
  background: #ecfdf5;
}

.zra-customers-table > thead > tr > th:nth-child(3),
.zra-customers-table > tbody > tr > td:nth-child(3) {
  min-width: 190px;
}

.zra-customers-table > thead > tr > th:nth-child(4),
.zra-customers-table > tbody > tr > td:nth-child(4),
.zra-customers-table > thead > tr > th:nth-child(6),
.zra-customers-table > tbody > tr > td:nth-child(6) {
  min-width: 220px;
  white-space: normal;
  word-break: break-word;
}

.zra-customers-row--inactive > td {
  color: #94a3b8 !important;
}

.zra-select-customer-search-card {
  margin-bottom: 16px;
}

.zra-select-customer-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
}

.zra-select-customer-form .zra-customer-field {
  min-width: 0;
}

.zra-select-customer-submit {
  min-height: 42px;
}

.zra-select-customer-debug {
  margin-top: 10px;
}

.zra-select-customer-debug summary {
  align-items: center;
  background: rgba(12, 46, 138, 0.08);
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 8px;
  color: var(--theme-primary);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 8px 10px;
}

.zra-select-customer-debug pre {
  background: #0f172a;
  border: 0;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 0;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.zra-customer-type-pill,
.zra-customer-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 5px;
  justify-content: center;
  line-height: 1;
  min-height: 22px;
  padding: 5px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.zra-customer-type-pill {
  background: rgba(12, 46, 138, 0.1);
  color: var(--theme-primary);
}

.zra-customer-status--active {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.zra-customer-status--inactive {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.zra-customers-tabs.nav-tabs {
  align-items: center;
  background: #f8fbff;
  border: 1px solid rgba(12, 46, 138, 0.1);
  border-radius: 8px;
  display: inline-flex;
  gap: 6px;
  margin: 0 18px 16px;
  padding: 6px;
}

.zra-customers-tabs.nav-tabs > li {
  float: none;
  margin: 0;
}

.zra-customers-tabs.nav-tabs > li > a {
  align-items: center;
  background: transparent;
  border: 0 !important;
  border-radius: 7px;
  color: #5f7292;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  line-height: 1;
  margin: 0;
  min-height: 38px;
  padding: 10px 13px;
}

.zra-customers-tabs.nav-tabs > li > a b {
  align-items: center;
  background: rgba(12, 46, 138, 0.08);
  border-radius: 999px;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 11px;
  justify-content: center;
  min-width: 24px;
  padding: 5px 7px;
}

.zra-customers-tabs.nav-tabs > li > a[href="#zra-customers-active"] {
  color: #15803d;
}

.zra-customers-tabs.nav-tabs > li > a[href="#zra-customers-active"] b {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.zra-customers-tabs.nav-tabs > li > a[href="#zra-customers-inactive"] {
  color: #b91c1c;
}

.zra-customers-tabs.nav-tabs > li > a[href="#zra-customers-inactive"] b {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.zra-customers-tabs.nav-tabs > li > a:hover,
.zra-customers-tabs.nav-tabs > li > a:focus {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(12, 46, 138, 0.1);
}

.zra-customers-tabs.nav-tabs > li.active > a[href="#zra-customers-active"],
.zra-customers-tabs.nav-tabs > li.active > a[href="#zra-customers-active"]:hover,
.zra-customers-tabs.nav-tabs > li.active > a[href="#zra-customers-active"]:focus {
  background: #16a34a;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.18);
  color: #ffffff;
}

.zra-customers-tabs.nav-tabs > li.active > a[href="#zra-customers-active"] b {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.zra-customers-tabs.nav-tabs > li.active > a[href="#zra-customers-inactive"],
.zra-customers-tabs.nav-tabs > li.active > a[href="#zra-customers-inactive"]:hover,
.zra-customers-tabs.nav-tabs > li.active > a[href="#zra-customers-inactive"]:focus {
  background: #dc2626;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.18);
  color: #ffffff;
}

.zra-customers-tabs.nav-tabs > li.active > a[href="#zra-customers-inactive"] b {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.zra-customers-tab-content {
  padding: 0 18px 18px;
}

.zra-customers-tab-empty {
  align-items: center;
  background: #f8fbff;
  border: 1px dashed rgba(12, 46, 138, 0.16);
  border-radius: 8px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 180px;
  padding: 28px;
  text-align: center;
}

.zra-customers-tab-empty i {
  color: var(--theme-primary);
  font-size: 26px;
  margin-bottom: 10px;
}

.zra-customers-tab-empty h3 {
  color: #123b9a;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}

.zra-customers-tab-empty p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.zra-customer-status-form {
  margin: 0;
}

.zra-customer-status-action {
  align-items: center;
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  gap: 3px;
  justify-content: center;
  line-height: 1;
  min-height: 18px;
  min-width: 52px;
  padding: 2px 5px;
  white-space: nowrap;
}

.zra-customer-status-action i {
  font-size: 9px;
}

.zra-customer-status-action--enable {
  background: #16a34a !important;
  color: #ffffff !important;
}

.zra-customer-status-action--enable:hover,
.zra-customer-status-action--enable:focus {
  background: #15803d !important;
  color: #ffffff !important;
}

.zra-customer-status-action--disable {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.zra-customer-status-action--disable:hover,
.zra-customer-status-action--disable:focus {
  background: #b91c1c !important;
  color: #ffffff !important;
}

.zra-customer-modal .modal-dialog {
  max-width: none;
  width: min(980px, calc(100vw - 24px));
}

.zra-customer-modal .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
  overflow: hidden;
}

.zra-customer-modal .modal-header {
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.08) 0%, rgba(80, 216, 175, 0.12) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 12px 16px;
}

.zra-customer-modal .modal-header .close {
  color: #0f172a;
  opacity: 0.62;
  text-shadow: none;
}

.zra-customer-modal .modal-title {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.zra-customer-modal .modal-body {
  background: #ffffff;
  padding: 12px 16px 8px;
}

.zra-customer-modal .modal-footer {
  align-items: center;
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 10px 16px;
}

.zra-customer-form-grid {
  display: grid;
  gap: 10px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zra-customer-field {
  color: #0f172a;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
  margin: 0;
}

.zra-customer-field--wide {
  grid-column: 1 / -1;
}

.zra-customer-field > span {
  color: #334155;
}

.zra-customer-field__label {
  color: #334155;
  display: block;
  font-weight: 800;
  margin: 0;
}

.zra-customer-field .form-control {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.16);
  border-radius: 6px;
  box-shadow: none;
  color: #0f172a;
  font-size: 14px;
  height: 42px;
  line-height: 1.3;
  min-height: 42px;
  padding: 10px 12px;
}

.zra-customer-field textarea.form-control {
  height: auto;
  min-height: 80px;
  resize: vertical;
}

.zra-customer-field .form-control:focus {
  border-color: var(--theme-sidebar-accent);
  box-shadow: 0 0 0 3px rgba(80, 216, 175, 0.16);
}

.zra-customer-tpin-control {
  align-items: stretch;
  display: flex;
  gap: 6px;
}

.zra-customer-tpin-control .form-control {
  min-width: 0;
}

.zra-customer-default-tpin,
.zra-customer-validate-tpin {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.08), rgba(80, 216, 175, 0.18));
  border: 1px solid rgba(12, 46, 138, 0.16);
  border-radius: 6px;
  color: var(--theme-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

#myModal_customer .zra-customer-tpin-control .zra-customer-default-tpin,
#myModal_customer .zra-customer-tpin-control .zra-customer-validate-tpin {
  font-size: 12px !important;
  gap: 5px !important;
  min-height: 42px !important;
  padding: 8px 12px !important;
}

#myModal_customer .zra-customer-tpin-control .zra-customer-default-tpin i,
#myModal_customer .zra-customer-tpin-control .zra-customer-validate-tpin i {
  font-size: 12px;
}

.zra-customer-default-tpin:hover,
.zra-customer-default-tpin:focus {
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.12), rgba(80, 216, 175, 0.24));
  border-color: rgba(12, 46, 138, 0.28);
  color: var(--theme-primary);
  transform: translateY(-1px);
}

.zra-customer-validate-tpin {
  background: linear-gradient(135deg, var(--theme-sidebar-bg) 0%, var(--theme-sidebar-bg-2) 100%);
  border-color: var(--theme-sidebar-bg);
  color: #ffffff;
}

.zra-customer-validate-tpin:hover,
.zra-customer-validate-tpin:focus {
  background: linear-gradient(135deg, var(--theme-sidebar-bg-2) 0%, #1454c5 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.zra-customer-validate-tpin:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.zra-customer-tpin-status {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 4px;
  min-height: 0;
}

.zra-customer-tpin-status:empty {
  display: none;
}

.zra-customer-tpin-status--success {
  color: #15803d;
}

.zra-customer-tpin-status--error {
  color: #b91c1c;
}

.zra-customer-tpin-status--loading {
  color: var(--theme-primary);
}

.zra-customer-radio-group {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.16);
  border-radius: 6px;
  display: flex;
  gap: 5px;
  min-height: 42px;
  padding: 5px;
}

.zra-customer-radio-group label {
  align-items: center;
  border-radius: 5px;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  flex: 1 1 50%;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  justify-content: center;
  margin: 0;
  min-height: 32px;
  padding: 7px 10px;
}

.zra-customer-radio-group input {
  margin: 0;
}

.zra-customer-radio-group label:has(input:checked) {
  background: rgba(80, 216, 175, 0.14);
  color: var(--theme-primary);
}

.zra-customer-hidden-upload {
  display: none !important;
}

.zra-customer-button {
  align-items: center;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  min-height: 32px;
  padding: 7px 11px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

#myModal_customer .modal-footer .zra-customer-button--primary {
  background: #16a34a !important;
  border: 1px solid #16a34a !important;
  color: #ffffff !important;
}

#myModal_customer .modal-footer .zra-customer-button--primary:hover,
#myModal_customer .modal-footer .zra-customer-button--primary:focus {
  background: #15803d !important;
  border-color: #15803d !important;
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.22) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

#myModal_customer .modal-footer .zra-customer-button--primary:disabled {
  background: #86efac !important;
  border-color: #86efac !important;
  box-shadow: none !important;
  color: #f0fdf4 !important;
  cursor: not-allowed !important;
  opacity: 0.72;
  transform: none !important;
}

#myModal_customer .modal-footer .zra-customer-button--ghost {
  background: #e5e7eb !important;
  border: 1px solid #d1d5db !important;
  color: #475569 !important;
}

#myModal_customer .modal-footer .zra-customer-button--ghost:hover,
#myModal_customer .modal-footer .zra-customer-button--ghost:focus {
  background: #d1d5db !important;
  border-color: #9ca3af !important;
  box-shadow: 0 8px 16px rgba(100, 116, 139, 0.18) !important;
  color: #1f2937 !important;
  transform: translateY(-1px);
}

.zra-items-table {
  min-width: 1420px;
}

.zra-items-table > thead > tr > th,
.zra-items-table > tbody > tr > td {
  white-space: nowrap;
}

.zra-items-table > thead > tr > th:nth-child(2),
.zra-items-table > tbody > tr > td:nth-child(2) {
  min-width: 190px;
}

.zra-items-table > thead > tr > th:nth-child(4),
.zra-items-table > tbody > tr > td:nth-child(4),
.zra-items-table > thead > tr > th:nth-child(6),
.zra-items-table > tbody > tr > td:nth-child(6) {
  min-width: 230px;
  white-space: normal;
  word-break: break-word;
}

.zra-item-code-pill {
  align-items: center;
  background: rgba(12, 46, 138, 0.1);
  border-radius: 999px;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  min-height: 30px;
  padding: 8px 10px;
  white-space: nowrap;
}

.zra-items-row--inactive > td {
  color: #64748b !important;
}

.zra-items-row--inactive .zra-item-code-pill {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.zra-items-tabs.nav-tabs {
  align-items: center;
  background: #f8fbff;
  border: 1px solid rgba(12, 46, 138, 0.1);
  border-radius: 8px;
  display: inline-flex;
  gap: 6px;
  margin: 0 18px 16px;
  padding: 6px;
}

.zra-items-tabs.nav-tabs > li {
  float: none;
  margin: 0;
}

.zra-items-tabs.nav-tabs > li > a {
  align-items: center;
  background: transparent;
  border: 0 !important;
  border-radius: 7px;
  color: #5f7292;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  line-height: 1;
  margin: 0;
  min-height: 38px;
  padding: 10px 13px;
}

.zra-items-tabs.nav-tabs > li > a b {
  align-items: center;
  background: rgba(12, 46, 138, 0.08);
  border-radius: 999px;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 11px;
  justify-content: center;
  min-width: 24px;
  padding: 5px 7px;
}

.zra-items-tabs.nav-tabs > li > a[href="#zra-items-active"] {
  color: #15803d;
}

.zra-items-tabs.nav-tabs > li > a[href="#zra-items-active"] b {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.zra-items-tabs.nav-tabs > li > a[href="#zra-items-inactive"] {
  color: #b91c1c;
}

.zra-items-tabs.nav-tabs > li > a[href="#zra-items-inactive"] b {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.zra-items-tabs.nav-tabs > li > a:hover,
.zra-items-tabs.nav-tabs > li > a:focus {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(12, 46, 138, 0.1);
}

.zra-items-tabs.nav-tabs > li.active > a[href="#zra-items-active"],
.zra-items-tabs.nav-tabs > li.active > a[href="#zra-items-active"]:hover,
.zra-items-tabs.nav-tabs > li.active > a[href="#zra-items-active"]:focus {
  background: #16a34a;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.18);
  color: #ffffff;
}

.zra-items-tabs.nav-tabs > li.active > a[href="#zra-items-active"] b {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.zra-items-tabs.nav-tabs > li.active > a[href="#zra-items-inactive"],
.zra-items-tabs.nav-tabs > li.active > a[href="#zra-items-inactive"]:hover,
.zra-items-tabs.nav-tabs > li.active > a[href="#zra-items-inactive"]:focus {
  background: #dc2626;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.18);
  color: #ffffff;
}

.zra-items-tabs.nav-tabs > li.active > a[href="#zra-items-inactive"] b {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.zra-items-tab-content {
  padding: 0 18px 18px;
}

.zra-items-tab-empty {
  align-items: center;
  background: #f8fbff;
  border: 1px dashed rgba(12, 46, 138, 0.16);
  border-radius: 8px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 180px;
  padding: 28px;
  text-align: center;
}

.zra-items-tab-empty i {
  color: var(--theme-primary);
  font-size: 26px;
  margin-bottom: 10px;
}

.zra-items-tab-empty h3 {
  color: #123b9a;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}

.zra-items-tab-empty p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.zra-item-status-form {
  margin: 0;
}

.zra-item-status-action {
  align-items: center;
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  gap: 3px;
  justify-content: center;
  line-height: 1;
  min-height: 18px;
  min-width: 52px;
  padding: 2px 5px;
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.zra-item-status-action i {
  font-size: 9px;
}

.zra-item-status-action--enable {
  background: #16a34a !important;
  color: #ffffff !important;
}

.zra-item-status-action--enable:hover,
.zra-item-status-action--enable:focus {
  background: #15803d !important;
  box-shadow: 0 6px 12px rgba(22, 163, 74, 0.2) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.zra-item-status-action--disable {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.zra-item-status-action--disable:hover,
.zra-item-status-action--disable:focus {
  background: #b91c1c !important;
  box-shadow: 0 6px 12px rgba(220, 38, 38, 0.2) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.zra-item-modal .modal-dialog {
  max-width: min(980px, calc(100vw - 24px));
}

.zra-item-modal .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
  overflow: visible;
}

.zra-item-modal .modal-header {
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.08) 0%, rgba(80, 216, 175, 0.12) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px 8px 0 0;
  padding: 18px 20px;
}

.zra-item-modal .modal-header .close {
  color: #0f172a;
  opacity: 0.62;
  text-shadow: none;
}

.zra-item-modal .modal-title {
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.zra-item-modal .modal-body {
  background: #ffffff;
  padding: 18px 20px 8px;
}

.zra-item-modal .modal-footer {
  align-items: center;
  background: #f8fafc;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px;
}

.zra-item-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zra-item-field {
  color: #0f172a;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
  margin: 0;
  min-width: 0;
}

.zra-item-field--wide {
  grid-column: 1 / -1;
}

.zra-item-field > span {
  color: #334155;
}

.zra-item-field .form-control,
.zra-item-field .fstselected {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.16);
  border-radius: 8px;
  box-shadow: none;
  color: #0f172a;
  min-height: 42px;
}

.zra-item-field .form-control:focus {
  border-color: var(--theme-sidebar-accent);
  box-shadow: 0 0 0 3px rgba(80, 216, 175, 0.16);
}

.zra-item-field .fstdiv,
.zra-item-field .fstdropdown {
  width: 100%;
}

.zra-item-field .fstdropdown {
  color: #0f172a;
}

.zra-item-field select.form-control,
.zra-item-field select.form-control option,
.zra-item-field .fstselected,
.zra-item-field .fstlist > div,
.zra-item-field .fstsearchinput {
  font-weight: 400;
}

.zra-item-field .fstdropdown.open {
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  z-index: 5000;
}

.zra-item-field .fstlist {
  border: 1px solid rgba(12, 46, 138, 0.16);
  border-radius: 0 0 8px 8px;
  max-height: 230px;
}

.zra-item-field .fstsearchinput {
  border: 1px solid rgba(12, 46, 138, 0.16);
  border-radius: 8px;
  color: #0f172a;
  min-height: 36px;
}

.zra-item-code-preview {
  background: #f8fafc !important;
  color: var(--theme-primary) !important;
  font-weight: 800;
}

.zra-item-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
}

.zra-item-button--primary {
  background: linear-gradient(135deg, var(--theme-sidebar-bg) 0%, var(--theme-sidebar-bg-2) 100%);
  color: #ffffff;
}

.zra-item-button--primary:hover,
.zra-item-button--primary:focus {
  background: linear-gradient(135deg, var(--theme-sidebar-bg-2) 0%, #1454c5 100%);
  color: #ffffff;
}

.zra-item-button--primary:disabled {
  cursor: wait;
  opacity: 0.72;
}

.zra-item-button--ghost {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.14);
  color: #475569;
}

.zra-item-button--ghost:hover,
.zra-item-button--ghost:focus {
  background: #f1f6ff;
  color: var(--theme-primary);
}

.zra-vsdc-debug-card {
  margin-bottom: 16px;
}

.zra-vsdc-debug-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.zra-vsdc-debug-panel {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.zra-vsdc-debug-panel--wide {
  grid-column: 1 / -1;
}

.zra-vsdc-debug-panel span {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.zra-vsdc-debug-panel pre {
  background: #0f172a;
  border: 0;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.zra-vsdc-table {
  min-width: 900px;
}

.zra-vsdc-table > thead > tr > th,
.zra-vsdc-table > tbody > tr > td {
  white-space: nowrap;
}

.zra-vsdc-table > thead > tr > th:nth-child(4),
.zra-vsdc-table > tbody > tr > td:nth-child(4) {
  min-width: 240px;
  white-space: normal;
}

.zra-code-empty,
.zra-codes-empty {
  align-items: center;
  color: #64748b;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 26px;
  text-align: center;
}

.zra-codes-empty {
  background: #ffffff;
  border: 1px dashed rgba(12, 46, 138, 0.22);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  flex-direction: column;
  min-height: 220px;
}

.zra-codes-empty i {
  align-items: center;
  background: rgba(12, 46, 138, 0.1);
  border-radius: 50%;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 24px;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.zra-codes-empty h2 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.zra-codes-empty p {
  margin: 0;
  max-width: 420px;
}

@media (max-width: 991px) {
  .zra-codes-page .right_col.zra-codes-main {
    padding: 16px 12px 28px;
  }

  .zra-codes-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .zra-codes-refresh__button {
    justify-content: center;
    width: 100%;
  }

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

@media (max-width: 640px) {
  .zra-codes-hero h1 {
    font-size: 24px;
  }

  .zra-code-card__header {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px;
  }

  .zra-code-card__count {
    align-self: flex-start;
  }

  .zra-itemcls-hero__status {
    justify-content: flex-start;
  }

  .zra-vsdc-debug-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .zra-code-table-wrap .dataTables_wrapper {
    padding: 12px;
  }

  .zra-code-table-wrap .dataTables_wrapper > .row:first-child,
  .zra-code-table-wrap .dataTables_wrapper > .row:last-child {
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }

  .zra-code-table-wrap .dataTables_wrapper > .row:first-child > [class*='col-'],
  .zra-code-table-wrap .dataTables_wrapper > .row:last-child > [class*='col-'],
  .zra-code-table-wrap .dataTables_wrapper > .row:first-child > [class*='col-']:last-child,
  .zra-code-table-wrap .dataTables_wrapper > .row:last-child > [class*='col-']:last-child {
    margin-left: 0;
    width: 100%;
  }

  .zra-code-table-wrap .dataTables_length label,
  .zra-code-table-wrap .dataTables_filter label {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .zra-code-table-wrap .dataTables_filter input,
  .zra-code-table-wrap .dataTables_length select {
    margin-left: 0;
    min-width: 0;
    width: 100%;
  }

  .zra-code-table-wrap .dataTables_paginate,
  .zra-code-table-wrap .dataTables_info {
    text-align: left;
  }

  .zra-code-table-wrap .pagination {
    justify-content: flex-start;
  }

  .zra-code-table {
    min-width: 0;
  }

  .zra-vsdc-table {
    min-width: 0;
  }

  .zra-branch-table {
    min-width: 0;
  }

  .zra-customers-table {
    min-width: 0;
  }

  .zra-customers-table > thead > tr > th:first-child,
  .zra-customers-table > thead > tr > th:nth-child(2),
  .zra-customers-table > tbody > tr > td:first-child,
  .zra-customers-table > tbody > tr > td:nth-child(2) {
    box-shadow: none;
    left: auto;
    min-width: 0;
    position: static;
    width: 100% !important;
  }

  .zra-customers-tabs.nav-tabs,
  .zra-items-tabs.nav-tabs {
    display: flex;
    margin: 0 14px 14px;
    width: calc(100% - 28px);
  }

  .zra-customers-tabs.nav-tabs > li,
  .zra-items-tabs.nav-tabs > li {
    flex: 1 1 0;
  }

  .zra-customers-tabs.nav-tabs > li > a,
  .zra-items-tabs.nav-tabs > li > a {
    justify-content: center;
    width: 100%;
  }

  .zra-customers-tab-content,
  .zra-items-tab-content {
    padding: 0 14px 14px;
  }

  .zra-items-table {
    min-width: 0;
  }

  .zra-code-table,
  .zra-code-table thead,
  .zra-code-table tbody,
  .zra-code-table th,
  .zra-code-table td,
  .zra-code-table tr {
    display: block;
  }

  .zra-code-table thead {
    display: none;
  }

  .zra-code-table > tbody > tr {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 10px 14px;
  }

  .zra-code-table > tbody > tr:last-child {
    border-bottom: 0;
  }

  .zra-code-table > tbody > tr > td {
    align-items: start;
    background: transparent !important;
    border: 0;
    display: grid;
    gap: 12px;
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 7px 0;
    width: 100% !important;
  }

  .zra-code-table > tbody > tr > td:before {
    color: #64748b;
    content: attr(data-label);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .zra-itemcls-table > tbody > tr > td:last-child {
    text-align: left;
  }

  .zra-branch-table > thead > tr > th,
  .zra-branch-table > tbody > tr > td {
    white-space: normal;
  }

  .zra-customers-table > thead > tr > th,
  .zra-customers-table > tbody > tr > td {
    white-space: normal;
  }

  .zra-customers-table > tbody > tr {
    padding: 7px 10px;
  }

  .zra-customers-table > tbody > tr > td {
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 4px 0;
  }

  .zra-select-customer-form {
    align-items: stretch;
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .zra-select-customer-submit {
    width: 100%;
  }

  .zra-items-table > thead > tr > th,
  .zra-items-table > tbody > tr > td {
    white-space: normal;
  }

  .zra-items-table > tbody > tr > td {
    grid-template-columns: 134px minmax(0, 1fr);
  }

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

  .zra-customer-tpin-control {
    flex-direction: column;
  }

  .zra-customer-default-tpin,
  .zra-customer-validate-tpin {
    width: 100%;
  }

  .zra-item-form-grid {
    grid-template-columns: 1fr;
  }

  .zra-customer-modal .modal-dialog {
    margin: 10px auto;
  }

  .zra-item-modal .modal-dialog {
    margin: 10px auto;
  }

  .zra-customer-modal .modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .zra-item-modal .modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .zra-customer-button {
    width: 100%;
  }

  .zra-item-button {
    width: 100%;
  }
}

/* Finance company profile */
.finance-company-page {
  background: #f5f7fb;
}

.finance-company-page .right_col.finance-company-main {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%) !important;
  min-height: calc(100vh - 70px);
  padding: 22px 18px 36px;
}

.finance-company-shell {
  margin: 0 auto;
  max-width: 1280px;
}

.finance-company-hero {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid var(--theme-sidebar-accent);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 22px;
}

.finance-company-hero__copy {
  min-width: 0;
}

.finance-company-eyebrow {
  align-items: center;
  background: rgba(80, 216, 175, 0.14);
  border: 1px solid rgba(80, 216, 175, 0.24);
  border-radius: 999px;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 11px;
  text-transform: uppercase;
}

.finance-company-eyebrow i {
  color: var(--theme-sidebar-accent);
}

.finance-company-hero h1 {
  color: #0f172a;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 8px;
}

.finance-company-hero p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
}

.finance-company-action {
  align-items: center;
  background: linear-gradient(135deg, var(--theme-sidebar-bg) 0%, var(--theme-sidebar-bg-2) 100%);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(12, 46, 138, 0.22);
  color: #ffffff !important;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  gap: 9px;
  min-height: 44px;
  padding: 11px 16px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.finance-company-action:hover,
.finance-company-action:focus {
  box-shadow: 0 16px 30px rgba(12, 46, 138, 0.28);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.finance-company-profile-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
}

.finance-company-logo-wrap {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 96px;
  height: 96px;
  justify-content: center;
  padding: 8px;
  width: 96px;
}

.finance-company-logo {
  border-radius: 6px;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.finance-company-profile-copy {
  min-width: 0;
}

.finance-company-profile-copy span {
  color: var(--theme-primary);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.finance-company-profile-copy h2 {
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}

.finance-company-profile-copy p {
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

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

.finance-company-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.finance-company-card--wide {
  grid-column: 1 / -1;
}

.finance-company-card__header {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.08) 0%, rgba(80, 216, 175, 0.12) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 12px;
  padding: 16px 18px;
}

.finance-company-card__icon {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 8px;
  color: var(--theme-primary);
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.finance-company-card__header span:not(.finance-company-card__icon) {
  color: var(--theme-primary);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.finance-company-card__header h2 {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.finance-company-list {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 8px 18px 18px;
}

.finance-company-list--single {
  grid-template-columns: 1fr;
}

.finance-company-list div {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  min-width: 0;
  padding: 13px 0;
}

.finance-company-list div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.finance-company-list--single div:last-child,
.finance-company-list__wide {
  border-bottom: 0;
}

.finance-company-list__wide {
  grid-column: 1 / -1;
}

.finance-company-list dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.finance-company-list dd {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 991px) {
  .finance-company-page .right_col.finance-company-main {
    padding: 16px 12px 28px;
  }

  .finance-company-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .finance-company-action {
    justify-content: center;
    width: 100%;
  }

  .finance-company-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .finance-company-hero h1 {
    font-size: 24px;
  }

  .finance-company-profile-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .finance-company-logo-wrap {
    flex-basis: 84px;
    height: 84px;
    width: 84px;
  }

  .finance-company-card__header {
    align-items: flex-start;
  }

  .finance-company-list {
    grid-template-columns: 1fr;
    padding: 6px 15px 15px;
  }

  .finance-company-list div,
  .finance-company-list div:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  .finance-company-list div:last-child {
    border-bottom: 0;
  }
}

/* Settings home */
.settings-home-page {
  background: #f4f7fb;
}

.settings-home-page .right_col.settings-home-main {
  background: #f4f7fb;
  min-height: 100vh;
  padding: 24px 28px 36px;
}

.settings-home-shell {
  margin: 0 auto;
  max-width: 1560px;
}

.settings-home-hero {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, rgba(80, 216, 175, 0.18) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.settings-home-hero::before {
  background: linear-gradient(180deg, var(--theme-sidebar-bg, #0c2e8a), var(--theme-sidebar-bg-2, #123c96));
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 7px;
}

.settings-home-hero__copy {
  min-width: 0;
  position: relative;
}

.settings-home-eyebrow {
  align-items: center;
  background: rgba(12, 46, 138, 0.08);
  border: 1px solid rgba(12, 46, 138, 0.08);
  border-radius: 999px;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 9px;
  letter-spacing: 0;
  margin-bottom: 13px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.settings-home-eyebrow i {
  color: var(--theme-sidebar-accent, #50d8af);
}

.settings-home-hero h1 {
  color: #0f172a;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 8px;
}

.settings-home-hero p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
}

.settings-home-action {
  align-items: center;
  background: linear-gradient(135deg, var(--theme-sidebar-bg, #0c2e8a) 0%, var(--theme-sidebar-bg-2, #123c96) 100%);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(12, 46, 138, 0.22);
  color: #ffffff !important;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  gap: 9px;
  min-height: 44px;
  padding: 11px 16px;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.settings-home-action:hover,
.settings-home-action:focus {
  box-shadow: 0 16px 30px rgba(12, 46, 138, 0.28);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.settings-alerts {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.settings-alert {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  color: #0f172a;
  display: flex;
  font-weight: 700;
  gap: 11px;
  padding: 13px 15px;
}

.settings-alert i {
  flex: 0 0 auto;
}

.settings-alert--success {
  border-color: rgba(22, 163, 74, 0.2);
}

.settings-alert--success i {
  color: #16a34a;
}

.settings-alert--error {
  border-color: rgba(220, 38, 38, 0.22);
}

.settings-alert--error i {
  color: #dc2626;
}

.settings-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.settings-summary-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 13px;
  min-width: 0;
  padding: 16px;
}

.settings-summary-card__icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.1), rgba(80, 216, 175, 0.16));
  border: 1px solid rgba(12, 46, 138, 0.1);
  border-radius: 8px;
  color: var(--theme-primary);
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.settings-summary-card span:not(.settings-summary-card__icon) {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.settings-summary-card strong {
  color: #0f172a;
  display: block;
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.settings-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.settings-panel__header {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.08) 0%, rgba(80, 216, 175, 0.12) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 18px 20px;
}

.settings-panel__header span {
  color: var(--theme-primary);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.settings-panel__header h2 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.settings-panel__header strong {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.1);
  border-radius: 999px;
  color: var(--theme-primary);
  flex: 0 0 auto;
  font-size: 12px;
  padding: 7px 11px;
}

.settings-card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px;
}

.settings-card {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  color: #ffffff !important;
  display: block;
  min-height: 178px;
  overflow: hidden;
  padding: 17px 46px 17px 17px;
  position: relative;
  text-decoration: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.settings-card::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 48%);
  content: "";
  height: 100%;
  left: 0;
  opacity: 0.88;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: opacity 160ms ease;
  width: 100%;
}

.settings-card:hover,
.settings-card:focus {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.18);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.settings-card:hover::before,
.settings-card:focus::before {
  opacity: 0.58;
}

.settings-card--disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.settings-card--disabled:hover,
.settings-card--disabled:focus {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  transform: none;
}

.settings-card--blue {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}

.settings-card--orange {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.settings-card--emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.settings-card--purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.settings-card--cyan {
  background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
}

.settings-card--rose {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
}

.settings-card--indigo {
  background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%);
}

.settings-card--slate {
  background: linear-gradient(135deg, #64748b 0%, #334155 100%);
}

.settings-card__icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  width: 42px;
  z-index: 1;
}

.settings-card__meta {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
  position: absolute;
  right: 14px;
  top: 16px;
  z-index: 1;
}

.settings-card h3 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
  padding-right: 20px;
  position: relative;
  z-index: 1;
}

.settings-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  position: relative;
  z-index: 1;
}

.settings-card__arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  bottom: 15px;
  color: #ffffff;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  position: absolute;
  right: 15px;
  width: 28px;
  z-index: 1;
}

.settings-modal .modal-dialog {
  max-width: 620px;
  width: calc(100% - 28px);
}

.settings-modal--upload .modal-dialog {
  max-width: 760px;
}

.settings-modal__content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.settings-modal__header {
  background: linear-gradient(135deg, var(--theme-sidebar-bg, #0c2e8a) 0%, var(--theme-sidebar-bg-2, #123c96) 100%) !important;
  border: 0;
  color: #ffffff;
  padding: 18px 20px;
}

.settings-modal__header .close {
  color: #ffffff;
  opacity: 0.85;
  text-shadow: none;
}

.settings-modal__header .close:hover,
.settings-modal__header .close:focus {
  opacity: 1;
}

.settings-modal__eyebrow {
  color: var(--theme-sidebar-accent, #50d8af);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.settings-modal__header .modal-title {
  color: #ffffff !important;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.settings-modal__body {
  background: #f8fafc;
  padding: 20px;
}

.settings-modal__footer {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 15px 20px;
}

.settings-modal-intro,
.settings-installed-banner {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  display: flex;
  gap: 13px;
  margin-bottom: 16px;
  padding: 15px;
}

.settings-installed-banner {
  border-color: rgba(22, 163, 74, 0.18);
}

.settings-modal-intro > span,
.settings-installed-banner > span {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.1), rgba(80, 216, 175, 0.16));
  border-radius: 8px;
  color: var(--theme-primary);
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.settings-installed-banner > span {
  color: #16a34a;
}

.settings-modal-intro strong,
.settings-installed-banner strong {
  color: #0f172a;
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.settings-modal-intro p,
.settings-installed-banner p {
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.settings-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-field {
  color: #0f172a;
  display: block;
  font-weight: 800;
  margin: 0;
}

.settings-field span {
  color: #64748b;
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.settings-field .form-control {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  box-shadow: none;
  color: #0f172a;
  font-weight: 700;
  min-height: 42px;
}

.settings-field .form-control:focus {
  border-color: rgba(12, 46, 138, 0.42);
  box-shadow: 0 0 0 3px rgba(12, 46, 138, 0.08);
}

.settings-field input[readonly] {
  background: #eef2f7;
  color: #475569;
}

.settings-zra-summary {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
}

.settings-zra-summary div {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 13px 15px;
}

.settings-zra-summary div:nth-child(odd) {
  border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.settings-zra-summary dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.settings-zra-summary dd {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.settings-sample-link {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 8px;
  color: var(--theme-primary) !important;
  display: inline-flex;
  font-weight: 800;
  gap: 9px;
  margin-bottom: 16px;
  padding: 10px 12px;
  text-decoration: none !important;
}

.settings-sample-link:hover,
.settings-sample-link:focus {
  border-color: rgba(12, 46, 138, 0.3);
  color: var(--theme-primary) !important;
}

.settings-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
}

.settings-button--primary {
  background: linear-gradient(135deg, var(--theme-sidebar-bg, #0c2e8a), var(--theme-sidebar-bg-2, #123c96));
  color: #ffffff;
}

.settings-button--ghost {
  background: #eef2f7;
  color: #334155;
}

.settings-button:hover,
.settings-button:focus {
  filter: brightness(1.02);
}

@media (max-width: 1199px) {
  .settings-home-page .right_col.settings-home-main {
    padding: 18px 14px 30px;
  }

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

@media (max-width: 767px) {
  .settings-home-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 20px 18px;
  }

  .settings-home-hero h1 {
    font-size: 25px;
  }

  .settings-home-action {
    justify-content: center;
    width: 100%;
  }

  .settings-summary-grid,
  .settings-card-grid,
  .settings-form-grid,
  .settings-zra-summary {
    grid-template-columns: 1fr;
  }

  .settings-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-panel__header strong {
    width: max-content;
  }

  .settings-card-grid {
    padding: 14px;
  }

  .settings-card {
    min-height: 158px;
  }

  .settings-zra-summary div:nth-child(odd) {
    border-right: 0;
  }

  .settings-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .settings-home-page .right_col.settings-home-main {
    padding: 14px 10px 26px;
  }

  .settings-home-eyebrow {
    align-items: flex-start;
    border-radius: 8px;
  }

  .settings-summary-card {
    align-items: flex-start;
  }

  .settings-card {
    padding: 15px 42px 15px 15px;
  }

  .settings-card__meta {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Business setup */
.business-setup-page {
  background: #f4f7fb;
}

.business-setup-page .right_col.business-setup-main {
  background: #f4f7fb;
  min-height: 100vh;
  padding: 24px 28px 36px;
}

.business-setup-shell {
  margin: 0 auto;
  max-width: 1500px;
}

.business-setup-hero {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, rgba(80, 216, 175, 0.16) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.business-setup-hero::before {
  background: linear-gradient(180deg, var(--theme-sidebar-bg, #0c2e8a), var(--theme-sidebar-bg-2, #123c96));
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 7px;
}

.business-setup-hero__copy {
  min-width: 0;
  position: relative;
}

.business-setup-eyebrow {
  align-items: center;
  background: rgba(12, 46, 138, 0.08);
  border: 1px solid rgba(12, 46, 138, 0.08);
  border-radius: 999px;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 9px;
  letter-spacing: 0;
  margin-bottom: 13px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.business-setup-eyebrow i {
  color: var(--theme-sidebar-accent, #50d8af);
}

.business-setup-hero h1 {
  color: #0f172a;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 8px;
}

.business-setup-hero p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
}

.business-setup-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.business-setup-action,
.business-setup-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.business-setup-action {
  background: linear-gradient(135deg, var(--theme-sidebar-bg, #0c2e8a) 0%, var(--theme-sidebar-bg-2, #123c96) 100%);
  border: 1px solid rgba(12, 46, 138, 0.12);
  box-shadow: 0 12px 24px rgba(12, 46, 138, 0.2);
  color: #ffffff !important;
}

.business-setup-action--ghost,
.business-setup-button--ghost {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.14);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  color: var(--theme-primary) !important;
}

.business-setup-action:hover,
.business-setup-action:focus,
.business-setup-button:hover,
.business-setup-button:focus {
  color: #ffffff !important;
  transform: translateY(-1px);
}

.business-setup-action--ghost:hover,
.business-setup-action--ghost:focus,
.business-setup-button--ghost:hover,
.business-setup-button--ghost:focus {
  color: var(--theme-primary) !important;
}

.business-setup-alert {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  color: #0f172a;
  display: flex;
  font-weight: 800;
  gap: 11px;
  margin-bottom: 18px;
  padding: 13px 15px;
}

.business-setup-alert i {
  color: #16a34a;
}

.business-setup-summary {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  margin-bottom: 18px;
}

.business-setup-logo-card,
.business-setup-note {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.business-setup-logo-card {
  align-items: center;
  display: flex;
  gap: 16px;
  padding: 16px;
}

.business-setup-logo-frame {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 86px;
  height: 86px;
  justify-content: center;
  padding: 8px;
  width: 86px;
}

.business-setup-logo {
  border-radius: 6px;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.business-setup-logo-copy {
  min-width: 0;
}

.business-setup-logo-copy span {
  color: var(--theme-primary);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.business-setup-logo-copy h2 {
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.business-setup-logo-copy p {
  color: #64748b;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.business-setup-note {
  align-items: flex-start;
  display: flex;
  gap: 13px;
  padding: 16px;
}

.business-setup-note > span {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.1), rgba(80, 216, 175, 0.16));
  border: 1px solid rgba(12, 46, 138, 0.1);
  border-radius: 8px;
  color: var(--theme-primary);
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.business-setup-note strong {
  color: #0f172a;
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}

.business-setup-note p {
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.business-setup-form {
  display: grid;
  gap: 16px;
}

.business-setup-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.business-setup-card__header {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.08) 0%, rgba(80, 216, 175, 0.12) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 12px;
  padding: 16px 18px;
}

.business-setup-card__icon {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 8px;
  color: var(--theme-primary);
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.business-setup-card__header span:not(.business-setup-card__icon) {
  color: var(--theme-primary);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.business-setup-card__header h2 {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.business-setup-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
}

.business-setup-field {
  color: #0f172a;
  display: block;
  font-weight: 800;
  margin: 0;
  min-width: 0;
}

.business-setup-field--wide {
  grid-column: 1 / -1;
}

.business-setup-field > span {
  color: #64748b;
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.business-setup-field .form-control {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  box-shadow: none;
  color: #0f172a;
  font-weight: 700;
  min-height: 42px;
}

.business-setup-field .form-control:focus {
  border-color: rgba(12, 46, 138, 0.42);
  box-shadow: 0 0 0 3px rgba(12, 46, 138, 0.08);
}

.business-setup-field input[readonly] {
  background: #eef2f7;
  color: #475569;
}

.business-setup-field--file .form-control {
  align-items: center;
  display: flex;
  height: auto;
  padding: 9px 12px;
}

.business-setup-submit {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-bottom: 8px;
}

.business-setup-button {
  border: 0;
}

.business-setup-button--primary {
  background: linear-gradient(135deg, var(--theme-sidebar-bg, #0c2e8a), var(--theme-sidebar-bg-2, #123c96));
  box-shadow: 0 12px 24px rgba(12, 46, 138, 0.22);
  color: #ffffff;
}

@media (max-width: 1199px) {
  .business-setup-page .right_col.business-setup-main {
    padding: 18px 14px 30px;
  }

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

@media (max-width: 767px) {
  .business-setup-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 20px 18px;
  }

  .business-setup-hero h1 {
    font-size: 25px;
  }

  .business-setup-actions,
  .business-setup-submit {
    flex-direction: column;
    width: 100%;
  }

  .business-setup-action,
  .business-setup-button {
    width: 100%;
  }

  .business-setup-logo-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-setup-grid {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .business-setup-field--wide {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .business-setup-page .right_col.business-setup-main {
    padding: 14px 10px 26px;
  }

  .business-setup-eyebrow {
    align-items: flex-start;
    border-radius: 8px;
  }

  .business-setup-card__header {
    align-items: flex-start;
  }

  .business-setup-logo-frame {
    flex-basis: 76px;
    height: 76px;
    width: 76px;
  }
}

/* Change password */
.change-password-page {
  background: #f4f7fb;
}

.change-password-page .right_col.change-password-main {
  background: #f4f7fb;
  min-height: 100vh;
  padding: 24px 28px 36px;
}

.change-password-shell {
  margin: 0 auto;
  max-width: 1320px;
}

.change-password-hero {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, rgba(80, 216, 175, 0.16) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.change-password-hero::before {
  background: linear-gradient(180deg, var(--theme-sidebar-bg, #0c2e8a), var(--theme-sidebar-bg-2, #123c96));
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 7px;
}

.change-password-hero__copy {
  min-width: 0;
  position: relative;
}

.change-password-eyebrow {
  align-items: center;
  background: rgba(12, 46, 138, 0.08);
  border: 1px solid rgba(12, 46, 138, 0.08);
  border-radius: 999px;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 9px;
  letter-spacing: 0;
  margin-bottom: 13px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.change-password-eyebrow i {
  color: var(--theme-sidebar-accent, #50d8af);
}

.change-password-hero h1 {
  color: #0f172a;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 8px;
}

.change-password-hero p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
}

.change-password-action,
.change-password-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.change-password-action {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.14);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  color: var(--theme-primary) !important;
  flex: 0 0 auto;
}

.change-password-action:hover,
.change-password-action:focus,
.change-password-button:hover,
.change-password-button:focus {
  transform: translateY(-1px);
}

.change-password-alerts {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.change-password-alert {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  color: #0f172a;
  display: flex;
  font-weight: 800;
  gap: 11px;
  padding: 13px 15px;
}

.change-password-alert--success {
  border-color: rgba(22, 163, 74, 0.2);
}

.change-password-alert--success i {
  color: #16a34a;
}

.change-password-alert--error {
  border-color: rgba(220, 38, 38, 0.22);
}

.change-password-alert--error i {
  color: #dc2626;
}

.change-password-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
}

.change-password-card,
.change-password-note {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.change-password-card__header {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.08) 0%, rgba(80, 216, 175, 0.12) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 12px;
  padding: 16px 18px;
}

.change-password-card__icon,
.change-password-note__icon {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 8px;
  color: var(--theme-primary);
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.change-password-card__header span:not(.change-password-card__icon),
.change-password-note span:not(.change-password-note__icon) {
  color: var(--theme-primary);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.change-password-card__header h2,
.change-password-note h2 {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.change-password-card__body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.change-password-field {
  color: #0f172a;
  display: grid;
  font-weight: 800;
  gap: 7px;
  margin: 0;
  min-width: 0;
}

.change-password-field > span {
  color: #64748b;
  display: block;
  font-size: 12px;
  text-transform: uppercase;
}

.change-password-input {
  align-items: center;
  display: flex;
  position: relative;
}

.change-password-input .form-control {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  box-shadow: none;
  color: #0f172a;
  font-weight: 700;
  min-height: 44px;
  padding-right: 48px;
}

.change-password-input .form-control:focus {
  border-color: rgba(12, 46, 138, 0.42);
  box-shadow: 0 0 0 3px rgba(12, 46, 138, 0.08);
}

.change-password-toggle {
  align-items: center;
  background: rgba(12, 46, 138, 0.08);
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 8px;
  color: var(--theme-primary);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 5px;
  width: 38px;
}

.change-password-toggle:hover,
.change-password-toggle:focus {
  background: rgba(80, 216, 175, 0.18);
}

.change-password-card__footer {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, rgba(80, 216, 175, 0.12) 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: 0;
  padding: 15px 18px;
  width: 100%;
}

.change-password-button {
  border: 0;
}

.change-password-button--primary {
  background: linear-gradient(135deg, var(--theme-sidebar-bg, #0c2e8a), var(--theme-sidebar-bg-2, #123c96));
  box-shadow: 0 12px 24px rgba(12, 46, 138, 0.22);
  color: #ffffff;
}

.change-password-button--primary:hover,
.change-password-button--primary:focus {
  color: #ffffff;
}

.change-password-button--ghost {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.14);
  color: var(--theme-primary) !important;
}

.change-password-note {
  display: flex;
  gap: 14px;
  padding: 18px;
}

.change-password-note__icon {
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.1), rgba(80, 216, 175, 0.16));
}

.change-password-note p {
  color: #64748b;
  line-height: 1.55;
  margin: 8px 0 14px;
}

.change-password-note ul {
  color: #475569;
  display: grid;
  gap: 9px;
  line-height: 1.45;
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 1199px) {
  .change-password-page .right_col.change-password-main {
    padding: 18px 14px 30px;
  }

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

@media (max-width: 767px) {
  .change-password-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 20px 18px;
  }

  .change-password-hero h1 {
    font-size: 25px;
  }

  .change-password-action,
  .change-password-button {
    width: 100%;
  }

  .change-password-card__footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .change-password-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .change-password-page .right_col.change-password-main {
    padding: 14px 10px 26px;
  }

  .change-password-eyebrow {
    align-items: flex-start;
    border-radius: 8px;
  }

  .change-password-card__header {
    align-items: flex-start;
  }
}

/* Settings module pages */
.settings-module-page {
  background: #f4f7fb;
}

.settings-module-page .right_col.settings-module-main {
  background: #f4f7fb;
  min-height: 100vh;
  padding: 24px 28px 36px;
}

.settings-module-shell {
  margin: 0 auto;
  max-width: 1560px;
}

.settings-module-hero {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, rgba(80, 216, 175, 0.16) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.settings-module-hero::before {
  background: linear-gradient(180deg, var(--theme-sidebar-bg, #0c2e8a), var(--theme-sidebar-bg-2, #123c96));
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 7px;
}

.settings-module-hero__copy {
  min-width: 0;
  position: relative;
}

.settings-module-eyebrow {
  align-items: center;
  background: rgba(12, 46, 138, 0.08);
  border: 1px solid rgba(12, 46, 138, 0.08);
  border-radius: 999px;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 9px;
  letter-spacing: 0;
  margin-bottom: 13px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.settings-module-eyebrow i {
  color: var(--theme-sidebar-accent, #50d8af);
}

.settings-module-hero h1 {
  color: #0f172a;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 8px;
}

.settings-module-hero p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
}

.settings-module-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.settings-module-action,
.settings-module-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.settings-module-action {
  background: linear-gradient(135deg, var(--theme-sidebar-bg, #0c2e8a) 0%, var(--theme-sidebar-bg-2, #123c96) 100%);
  border: 1px solid rgba(12, 46, 138, 0.12);
  box-shadow: 0 12px 24px rgba(12, 46, 138, 0.2);
  color: #ffffff !important;
}

.settings-module-action--ghost,
.settings-module-button--ghost {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.14);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  color: var(--theme-primary) !important;
}

.settings-module-action--disabled,
.settings-module-action--disabled:hover,
.settings-module-action--disabled:focus {
  background: #94a3b8;
  border-color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.82;
  transform: none;
}

.settings-module-action:hover,
.settings-module-action:focus,
.settings-module-button:hover,
.settings-module-button:focus {
  transform: translateY(-1px);
}

.settings-module-alerts {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.settings-module-alert {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  color: #0f172a;
  display: flex;
  font-weight: 800;
  gap: 11px;
  margin-bottom: 18px;
  padding: 13px 15px;
}

.settings-module-alerts .settings-module-alert {
  margin-bottom: 0;
}

.settings-module-alert--success {
  border-color: rgba(22, 163, 74, 0.2);
}

.settings-module-alert--success i {
  color: #16a34a;
}

.settings-module-alert--error {
  border-color: rgba(220, 38, 38, 0.22);
}

.settings-module-alert--error i {
  color: #dc2626;
}

.settings-module-alert--info {
  border-color: rgba(2, 132, 199, 0.22);
}

.settings-module-alert--info i {
  color: #0284c7;
}

.settings-api-tabs {
  border-bottom: 1px solid rgba(12, 46, 138, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.settings-api-tabs > li {
  float: none;
  margin: 0 0 -1px;
}

.settings-api-tabs > li > a {
  align-items: center;
  border: 1px solid transparent !important;
  border-radius: 8px 8px 0 0;
  color: #64748b;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
}

.settings-api-tabs > li > a > span {
  align-items: center;
  background: rgba(100, 116, 139, 0.12);
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  justify-content: center;
  min-width: 24px;
  padding: 3px 7px;
}

.settings-api-tabs > li.active > a,
.settings-api-tabs > li.active > a:hover,
.settings-api-tabs > li.active > a:focus {
  background: #ffffff;
  border-color: rgba(12, 46, 138, 0.12) rgba(12, 46, 138, 0.12) #ffffff !important;
  color: var(--theme-primary);
}

.settings-api-tab-content > .tab-pane {
  padding-top: 2px;
}

.settings-sandbox-panel form {
  margin: 0;
}

.settings-sandbox-section {
  margin-top: 24px;
  scroll-margin-top: 24px;
}

.settings-sandbox-tabs {
  margin: 0 0 20px;
  padding: 0 20px;
}

.settings-module-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

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

.settings-module-stat {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 13px;
  min-width: 0;
  padding: 16px;
}

.settings-module-stat > span {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.1), rgba(80, 216, 175, 0.16));
  border: 1px solid rgba(12, 46, 138, 0.1);
  border-radius: 8px;
  color: var(--theme-primary);
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.settings-module-stat small {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.settings-module-stat strong {
  color: #0f172a;
  display: block;
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.settings-module-panel,
.settings-api-guide,
.settings-api-secret,
.settings-subscription-profile {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.settings-module-panel__header {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.08) 0%, rgba(80, 216, 175, 0.12) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 18px 20px;
}

.settings-module-panel__header span {
  color: var(--theme-primary);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.settings-module-panel__header h2 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.settings-module-panel__header strong {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.1);
  border-radius: 999px;
  color: var(--theme-primary);
  flex: 0 0 auto;
  font-size: 12px;
  padding: 7px 11px;
}

.settings-module-table-wrap {
  overflow-x: auto;
}

.settings-module-table {
  margin: 0 !important;
  width: 100% !important;
}

.settings-module-table > thead > tr > th {
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  padding: 13px 14px !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.settings-module-table > tbody > tr > td {
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
  color: #0f172a;
  font-size: 13px;
  padding: 13px 14px !important;
  vertical-align: middle !important;
}

.settings-module-table-wrap .dataTables_wrapper {
  box-sizing: border-box;
  max-width: 100%;
  overflow: visible;
  padding: 14px;
  width: 100%;
}

.settings-module-table-wrap .dataTables_wrapper > .row:first-child,
.settings-module-table-wrap .dataTables_wrapper > .row:last-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  max-width: 100%;
  overflow: visible !important;
  width: 100%;
}

.settings-module-table-wrap .dataTables_wrapper > .row:last-child {
  margin: 12px 0 0;
}

.settings-module-table-wrap .dataTables_wrapper > .row:first-child > [class*='col-'],
.settings-module-table-wrap .dataTables_wrapper > .row:last-child > [class*='col-'] {
  float: none;
  padding: 0;
  width: auto;
}

.settings-module-table-wrap .dataTables_wrapper > .row:first-child > [class*='col-']:last-child,
.settings-module-table-wrap .dataTables_wrapper > .row:last-child > [class*='col-']:last-child {
  margin-left: auto;
}

.settings-module-table-wrap .dataTables_length label,
.settings-module-table-wrap .dataTables_filter label {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
}

.settings-module-table-wrap .dataTables_filter input,
.settings-module-table-wrap .dataTables_length select {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  box-shadow: none;
  color: #0f172a;
  min-height: 38px;
}

.settings-module-table-wrap .dataTables_filter input {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 240px;
}

.settings-module-table-wrap .dataTables_wrapper > .row:nth-child(2) {
  margin: 0;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100%;
}

.settings-module-table-wrap .dataTables_wrapper > .row:nth-child(2) > [class*='col-'] {
  float: none;
  min-width: 0;
  padding: 0;
  width: 100%;
}

.settings-module-table-wrap .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}

.settings-module-table-wrap .pagination > li > a,
.settings-module-table-wrap .pagination > li > span {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 7px;
  color: var(--theme-primary);
  margin: 0;
}

.settings-module-table-wrap .pagination > .active > a,
.settings-module-table-wrap .pagination > .active > span {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #ffffff;
}

.settings-module-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  min-height: 28px;
  padding: 7px 10px;
  text-decoration: none !important;
  white-space: nowrap;
}

.settings-module-badge--success {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.settings-module-badge--danger {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.settings-module-badge--warning {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.settings-module-row-actions,
.settings-api-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.settings-module-row-actions a,
.settings-module-row-button,
.settings-module-icon-button {
  align-items: center;
  background: rgba(12, 46, 138, 0.08);
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 8px;
  color: var(--theme-primary) !important;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  min-height: 32px;
  padding: 7px 9px;
  text-decoration: none !important;
}

.settings-module-row-button {
  border-color: rgba(12, 46, 138, 0.12);
}

.settings-module-row-button--warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.18);
  color: #92400e !important;
}

.settings-module-row-button--danger {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.16);
  color: #b91c1c !important;
}

.settings-api-actions form {
  margin: 0;
}

.settings-module-empty {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
  padding: 30px;
  text-align: center;
}

.settings-module-empty i {
  color: var(--theme-primary);
  font-size: 34px;
  margin-bottom: 10px;
}

.settings-module-empty h2 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 7px;
}

.settings-module-empty p {
  margin: 0;
  max-width: 460px;
}

.settings-module-modal .modal-dialog {
  max-width: 860px;
  width: calc(100% - 28px);
}

.settings-api-page .settings-module-modal .modal-dialog {
  max-width: 620px;
}

.settings-module-modal__content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.settings-module-modal__header {
  background: linear-gradient(135deg, var(--theme-sidebar-bg, #0c2e8a) 0%, var(--theme-sidebar-bg-2, #123c96) 100%) !important;
  border: 0;
  color: #ffffff;
  padding: 18px 20px;
}

.settings-module-modal__header .close {
  color: #ffffff;
  opacity: 0.85;
  text-shadow: none;
}

.settings-module-modal__header > span {
  color: var(--theme-sidebar-accent, #50d8af);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.settings-module-modal__header .modal-title {
  color: #ffffff !important;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.settings-module-modal__body {
  background: #f8fafc;
  padding: 20px;
}

.settings-module-modal__footer {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 15px 20px;
}

.settings-module-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-module-field {
  color: #0f172a;
  display: block;
  font-weight: 800;
  margin: 0;
  min-width: 0;
}

.settings-module-field--wide {
  grid-column: 1 / -1;
}

.settings-module-field > span {
  color: #64748b;
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.settings-module-field .form-control {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  box-shadow: none;
  color: #0f172a;
  font-weight: 700;
  min-height: 42px;
}

.settings-module-field .form-control:focus {
  border-color: rgba(12, 46, 138, 0.42);
  box-shadow: 0 0 0 3px rgba(12, 46, 138, 0.08);
}

.settings-module-field input[readonly] {
  background: #eef2f7;
  color: #475569;
}

.settings-module-radio-group {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  min-height: 42px;
  padding: 6px;
}

.settings-module-radio-group label {
  align-items: center;
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  flex: 1 1 50%;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  margin: 0;
  min-height: 30px;
  padding: 7px 10px;
}

.settings-module-radio-group input {
  margin: 0;
}

.settings-module-radio-group label:has(input:checked) {
  background: rgba(80, 216, 175, 0.14);
  color: var(--theme-primary);
}

.settings-module-button {
  border: 0;
}

.settings-module-button--primary {
  background: linear-gradient(135deg, var(--theme-sidebar-bg, #0c2e8a), var(--theme-sidebar-bg-2, #123c96));
  box-shadow: 0 12px 24px rgba(12, 46, 138, 0.22);
  color: #ffffff !important;
}

.settings-module-button--warning {
  background: #f59e0b;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.18);
  color: #ffffff !important;
}

.settings-addbank-body {
  padding: 18px;
}

.settings-addbank-footer {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, rgba(80, 216, 175, 0.12) 100%) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a !important;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 0;
  padding: 15px 18px;
  width: 100%;
}

.settings-addbank-footer .settings-module-button--ghost {
  background: #ffffff !important;
  border: 1px solid rgba(12, 46, 138, 0.16) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  color: var(--theme-primary) !important;
}

.settings-addbank-footer .settings-module-button--primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.2);
  color: #ffffff !important;
}

.settings-subscription-profile {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
}

.settings-subscription-logo {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 96px;
  height: 96px;
  justify-content: center;
  padding: 8px;
  width: 96px;
}

.settings-subscription-logo img {
  border-radius: 6px;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.settings-subscription-copy {
  min-width: 0;
}

.settings-subscription-copy > span {
  color: var(--theme-primary);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.settings-subscription-copy h2 {
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px;
}

.settings-subscription-copy p {
  color: #64748b;
  font-weight: 700;
  margin: 0 0 10px;
}

.settings-subscription-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.settings-subscription-contact a {
  align-items: center;
  background: rgba(12, 46, 138, 0.08);
  border-radius: 999px;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  padding: 7px 10px;
}

.settings-subscription-days--good {
  color: #15803d !important;
}

.settings-subscription-days--bad {
  color: #b91c1c !important;
}

.settings-subscription-payment {
  margin-top: 18px;
}

.settings-subscription-payment__body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.settings-subscription-methods {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-subscription-method {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  padding: 15px;
  text-align: left;
}

.settings-subscription-method > span {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.1), rgba(80, 216, 175, 0.16));
  border-radius: 8px;
  color: var(--theme-primary);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.settings-subscription-method strong {
  font-size: 15px;
  font-weight: 800;
}

.settings-subscription-method small {
  color: #64748b;
  font-weight: 800;
}

.settings-subscription-method--active {
  border-color: rgba(80, 216, 175, 0.4);
  box-shadow: 0 14px 28px rgba(80, 216, 175, 0.14);
}

.settings-subscription-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.settings-subscription-phone {
  display: grid;
  gap: 8px;
  grid-template-columns: 86px minmax(0, 1fr);
}

.settings-api-secret {
  align-items: flex-start;
  background: #fff7ed;
  border-color: rgba(245, 158, 11, 0.28);
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
}

.settings-api-secret > div:first-child span {
  align-items: center;
  background: rgba(245, 158, 11, 0.14);
  border-radius: 8px;
  color: #b45309;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.settings-api-secret strong {
  color: #0f172a;
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

.settings-api-secret p {
  color: #7c2d12;
  line-height: 1.5;
  margin: 0 0 12px;
}

.settings-api-copy-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.settings-api-key-cell {
  align-items: center;
  display: flex;
  gap: 7px;
}

.settings-api-key-cell code,
.settings-api-guide code {
  background: #eef2ff;
  border-radius: 6px;
  color: var(--theme-primary);
  padding: 4px 6px;
}

.settings-api-modal-note {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0;
}

.settings-api-guide {
  margin-top: 18px;
  padding: 18px;
}

.settings-api-guide header {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.settings-api-guide header > span {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.1), rgba(80, 216, 175, 0.16));
  border-radius: 8px;
  color: var(--theme-primary);
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.settings-api-guide small {
  color: var(--theme-primary);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.settings-api-guide h2 {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.settings-api-guide ol {
  color: #475569;
  display: grid;
  gap: 9px;
  line-height: 1.5;
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 1199px) {
  .settings-module-page .right_col.settings-module-main {
    padding: 18px 14px 30px;
  }

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

@media (max-width: 767px) {
  .settings-module-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 20px 18px;
  }

  .settings-module-hero h1 {
    font-size: 25px;
  }

  .settings-module-actions,
  .settings-module-modal__footer,
  .settings-addbank-footer {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .settings-module-action,
  .settings-module-button {
    width: 100%;
  }

  .settings-module-stats,
  .settings-subscription-stats,
  .settings-module-form-grid,
  .settings-subscription-methods,
  .settings-subscription-form,
  .settings-api-copy-row {
    grid-template-columns: 1fr;
  }

  .settings-module-field--wide {
    grid-column: auto;
  }

  .settings-module-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-module-panel__header strong {
    width: max-content;
  }

  .settings-subscription-profile,
  .settings-api-secret {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-subscription-form {
    align-items: stretch;
  }

  .settings-module-table-wrap .dataTables_wrapper {
    padding: 12px;
  }

  .settings-module-table-wrap .dataTables_wrapper > .row:first-child,
  .settings-module-table-wrap .dataTables_wrapper > .row:last-child {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-module-table-wrap .dataTables_wrapper > .row:first-child > [class*='col-'],
  .settings-module-table-wrap .dataTables_wrapper > .row:last-child > [class*='col-'],
  .settings-module-table-wrap .dataTables_wrapper > .row:first-child > [class*='col-']:last-child,
  .settings-module-table-wrap .dataTables_wrapper > .row:last-child > [class*='col-']:last-child {
    margin-left: 0;
    width: 100%;
  }

  .settings-module-table-wrap .dataTables_length label,
  .settings-module-table-wrap .dataTables_filter label {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .settings-module-table-wrap .dataTables_filter input,
  .settings-module-table-wrap .dataTables_length select {
    margin-left: 0;
    min-width: 0;
    width: 100%;
  }

  .settings-module-table-wrap .dataTables_paginate,
  .settings-module-table-wrap .dataTables_info {
    text-align: left;
  }

  .settings-module-table {
    min-width: 0;
  }

  .settings-module-table,
  .settings-module-table thead,
  .settings-module-table tbody,
  .settings-module-table th,
  .settings-module-table td,
  .settings-module-table tr {
    display: block;
  }

  .settings-module-table thead {
    display: none;
  }

  .settings-module-table > tbody > tr {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 10px 14px;
  }

  .settings-module-table > tbody > tr:last-child {
    border-bottom: 0;
  }

  .settings-module-table > tbody > tr > td {
    align-items: start;
    background: transparent !important;
    border: 0 !important;
    display: grid;
    gap: 12px;
    grid-template-columns: 124px minmax(0, 1fr);
    padding: 7px 0 !important;
    width: 100% !important;
  }

  .settings-module-table > tbody > tr > td:before {
    color: #64748b;
    content: attr(data-label);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }
}

@media (max-width: 480px) {
  .settings-module-page .right_col.settings-module-main {
    padding: 14px 10px 26px;
  }

  .settings-module-eyebrow {
    align-items: flex-start;
    border-radius: 8px;
  }

  .settings-subscription-phone,
  .settings-module-table > tbody > tr > td {
    grid-template-columns: 1fr;
  }

  .settings-api-key-cell,
  .settings-module-row-actions,
  .settings-api-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-module-row-actions a,
  .settings-module-row-button,
  .settings-module-icon-button {
    width: 100%;
  }
}

/* Admin portal */
.admin-portal-theme {
  background:
    radial-gradient(circle at 12% 0%, rgba(80, 216, 175, 0.12), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(14, 165, 233, 0.1), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  color: #0f172a;
}

.admin-portal-theme .main_container .right_col {
  background: transparent;
  min-height: 100vh;
}

.admin-portal-main,
.admin-portal-theme .right_col {
  padding: 24px 18px 34px;
}

.admin-portal-shell {
  padding: 0;
}

.admin-portal-hero,
.admin-portal-theme .page-title {
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 216, 175, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid rgba(12, 46, 138, 0.1);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  margin-bottom: 22px;
  padding: 26px;
}

.admin-portal-hero {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.admin-portal-eyebrow {
  align-items: center;
  background: rgba(80, 216, 175, 0.14);
  border: 1px solid rgba(80, 216, 175, 0.2);
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.admin-portal-hero h1 {
  color: #0f172a;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 10px;
}

.admin-portal-hero p {
  color: #64748b;
  font-size: 15px;
  margin: 0;
  max-width: 760px;
}

.admin-portal-hero-badge {
  align-items: center;
  background: linear-gradient(135deg, #0c2e8a, #0ea5e9);
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(12, 46, 138, 0.24);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 18px;
  text-align: center;
}

.admin-portal-hero-badge span {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.admin-portal-hero-badge small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  margin-top: 8px;
  text-transform: uppercase;
}

.admin-state-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-state-card {
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  color: #ffffff !important;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  overflow: hidden;
  padding: 22px;
  position: relative;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.admin-state-card:before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  border-radius: 50%;
  content: '';
  height: 150px;
  position: absolute;
  right: -54px;
  top: -48px;
  width: 150px;
}

.admin-state-card:hover,
.admin-state-card:focus {
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
  color: #ffffff !important;
  transform: translateY(-3px);
}

.admin-state-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  width: 48px;
  z-index: 1;
}

.admin-state-icon i {
  font-size: 20px;
}

.admin-state-label {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.admin-state-card strong {
  font-size: 17px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.admin-state-meta,
.admin-state-desc {
  color: rgba(255, 255, 255, 0.84);
  position: relative;
  z-index: 1;
}

.admin-state-meta {
  font-size: 12px;
  font-weight: 800;
  margin-top: 8px;
  text-transform: uppercase;
}

.admin-state-desc {
  font-size: 13px;
  line-height: 1.5;
  margin-top: auto;
  padding-top: 18px;
}

.admin-state-card--blue { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.admin-state-card--green { background: linear-gradient(135deg, #10b981, #059669); }
.admin-state-card--red { background: linear-gradient(135deg, #fb7185, #e11d48); }
.admin-state-card--slate { background: linear-gradient(135deg, #64748b, #334155); }
.admin-state-card--cyan { background: linear-gradient(135deg, #22d3ee, #0284c7); }
.admin-state-card--purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.admin-state-card--orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }

.client-api-manager-page .client-api-stats {
  margin-bottom: 22px;
}

.client-api-manager-page .client-api-directory {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.client-api-manager-page .client-api-id {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.client-api-manager-page .client-api-actions form {
  margin: 0;
}

.admin-portal-theme .page-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: auto;
}

.admin-portal-theme .page-title:before,
.admin-portal-theme .page-title:after {
  display: none;
}

.admin-portal-theme .page-title .title_left,
.admin-portal-theme .page-title .title_right {
  float: none;
  width: auto;
}

.admin-portal-theme .page-title h3 {
  color: #0f172a;
  font-size: 28px;
  font-weight: 800;
  margin: 0;
}

.admin-portal-theme .x_panel {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(12, 46, 138, 0.1);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
  margin-bottom: 22px;
  padding: 0;
}

.admin-portal-theme .x_title {
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 216, 175, 0.12), transparent 30%),
    linear-gradient(135deg, #f8fbff, #ffffff);
  border: 0;
  border-bottom: 1px solid rgba(12, 46, 138, 0.08);
  border-radius: 22px 22px 0 0;
  display: flex;
  justify-content: space-between;
  margin: 0;
  min-height: 74px;
  padding: 18px 22px;
}

.admin-portal-theme .x_title h2 {
  color: #0f172a;
  float: none;
  font-size: 19px;
  font-weight: 800;
  margin: 0;
}

.admin-portal-theme .x_title small {
  color: #64748b;
}

.admin-portal-theme .panel_toolbox {
  float: none;
  margin-left: auto;
  min-width: 0;
}

.admin-portal-theme .panel_toolbox > li {
  float: none;
}

.admin-portal-theme .panel_toolbox a,
.admin-portal-theme .panel_toolbox .btn {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 12px;
  color: #0c2e8a;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  min-width: 42px;
}

.admin-portal-theme .x_content {
  padding: 20px 22px;
}

.admin-portal-theme label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-portal-theme .form-control {
  background-color: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.14);
  border-radius: 12px;
  box-shadow: none;
  color: #0f172a;
  min-height: 44px;
}

.admin-portal-theme .form-control:focus {
  border-color: #50d8af;
  box-shadow: 0 0 0 3px rgba(80, 216, 175, 0.16);
}

.admin-portal-theme .btn,
.admin-portal-theme input[type='submit'].btn,
.admin-portal-theme input[type='submit'].form-control {
  border: 0;
  border-radius: 12px;
  font-weight: 800;
}

.admin-portal-theme .btn-primary,
.admin-portal-theme input[type='submit'].btn-primary,
.admin-portal-theme input[type='submit'].form-control {
  background: linear-gradient(135deg, #0ea5e9, #0c2e8a) !important;
  color: #ffffff !important;
}

.admin-portal-theme .btn-warning {
  background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
  border: 0;
  border-radius: 12px;
  color: #ffffff !important;
  font-weight: 800;
}

.admin-portal-theme .nav-pills,
.admin-portal-theme .nav-tabs {
  background: transparent !important;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-portal-theme .nav-pills > li,
.admin-portal-theme .nav-tabs > li {
  float: none;
}

.admin-portal-theme .nav-pills > li > a,
.admin-portal-theme .nav-tabs > li > a {
  background: #ffffff !important;
  border: 1px solid rgba(12, 46, 138, 0.12) !important;
  border-radius: 14px !important;
  color: #0c2e8a;
  font-weight: 800;
}

.admin-portal-theme .nav-pills > li.active > a,
.admin-portal-theme .nav-pills > li.active > a:hover,
.admin-portal-theme .nav-tabs > li.active > a,
.admin-portal-theme .nav-tabs > li.active > a:hover {
  background: linear-gradient(135deg, #0c2e8a, #0ea5e9) !important;
  color: #ffffff !important;
}

.admin-portal-theme .table-responsive {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.08);
  border-radius: 14px;
  overflow-x: auto;
}

.admin-portal-theme table.table {
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin-bottom: 0 !important;
  min-width: 980px;
}

.admin-portal-theme table.table > thead > tr > th {
  background: linear-gradient(180deg, #f5f9ff 0%, #eaf2ff 100%) !important;
  border-bottom: 1px solid rgba(12, 46, 138, 0.12) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  color: #1e293b !important;
  font-size: 12px;
  font-weight: 800;
  padding: 14px 16px !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-portal-theme table.table > tbody > tr > td {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 1px solid rgba(12, 46, 138, 0.07) !important;
  color: #334155;
  padding: 14px 16px !important;
  vertical-align: middle !important;
}

.admin-portal-theme table.table > tbody > tr:nth-child(even) > td {
  background: #f8fbff;
}

.admin-portal-theme table.table > tbody > tr:hover > td {
  background: rgba(80, 216, 175, 0.08);
}

.admin-portal-theme .dataTables_wrapper {
  background: transparent;
  padding: 0;
}

.admin-portal-theme .dataTables_wrapper > .row:first-child,
.admin-portal-theme .dataTables_wrapper > .row:last-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.admin-portal-theme .dataTables_wrapper > .row:last-child {
  margin: 14px 0 0;
}

.admin-portal-theme .dataTables_wrapper > .row:first-child > [class*='col-'],
.admin-portal-theme .dataTables_wrapper > .row:last-child > [class*='col-'] {
  float: none;
  padding: 0;
  width: auto;
}

.admin-portal-theme .dataTables_wrapper > .row:first-child > [class*='col-']:last-child,
.admin-portal-theme .dataTables_wrapper > .row:last-child > [class*='col-']:last-child {
  margin-left: auto;
}

.admin-portal-theme .dataTables_length label,
.admin-portal-theme .dataTables_filter label {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

.admin-portal-theme .dataTables_length select,
.admin-portal-theme .dataTables_filter input {
  border: 1px solid rgba(12, 46, 138, 0.14);
  border-radius: 10px;
  min-height: 38px;
}

.admin-portal-theme pre {
  background: #0f172a;
  border: 0;
  border-radius: 14px;
  color: #dbeafe;
  padding: 16px;
  white-space: pre-wrap;
}

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

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

  .admin-portal-hero,
  .admin-portal-theme .page-title,
  .admin-portal-theme .x_title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .admin-portal-main,
  .admin-portal-theme .right_col {
    padding: 16px 10px 28px;
  }

  .admin-portal-hero,
  .admin-portal-theme .page-title {
    padding: 22px;
  }

  .admin-portal-hero h1,
  .admin-portal-theme .page-title h3 {
    font-size: 26px;
  }

  .admin-portal-hero-badge {
    width: 100%;
  }

  .admin-state-grid {
    grid-template-columns: 1fr;
  }

  .admin-portal-theme .dataTables_wrapper > .row:first-child,
  .admin-portal-theme .dataTables_wrapper > .row:last-child {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-portal-theme .dataTables_wrapper > .row:first-child > [class*='col-'],
  .admin-portal-theme .dataTables_wrapper > .row:last-child > [class*='col-'],
  .admin-portal-theme .dataTables_wrapper > .row:first-child > [class*='col-']:last-child,
  .admin-portal-theme .dataTables_wrapper > .row:last-child > [class*='col-']:last-child {
    margin-left: 0;
    width: 100%;
  }

  .admin-portal-theme .dataTables_filter label,
  .admin-portal-theme .dataTables_length label,
  .admin-portal-theme .dataTables_filter input,
  .admin-portal-theme .dataTables_length select {
    width: 100%;
  }
}

/* ZRA sales invoices */
.zra-sales-page {
  background: #f4f7fb;
}

.zra-sales-page .right_col.zra-sales-main {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%) !important;
  min-height: calc(100vh - 70px);
  padding: 22px 18px 36px;
}

.zra-sales-shell {
  margin: 0 auto;
  max-width: 1560px;
}

.zra-sales-hero {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid var(--theme-sidebar-accent, #50d8af);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 22px;
}

.zra-sales-hero__copy {
  min-width: 0;
}

.zra-sales-eyebrow {
  align-items: center;
  background: rgba(80, 216, 175, 0.14);
  border: 1px solid rgba(80, 216, 175, 0.24);
  border-radius: 999px;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 11px;
  text-transform: uppercase;
}

.zra-sales-eyebrow i {
  color: var(--theme-sidebar-accent, #50d8af);
}

.zra-sales-hero h1 {
  color: #0f172a;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 8px;
}

.zra-sales-hero p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 820px;
}

.zra-sales-primary-action {
  align-items: center;
  background: linear-gradient(135deg, var(--theme-sidebar-bg, #0c2e8a) 0%, var(--theme-sidebar-bg-2, #123c96) 100%);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(12, 46, 138, 0.22);
  color: #ffffff !important;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  gap: 9px;
  min-height: 44px;
  padding: 11px 16px;
  text-decoration: none !important;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.zra-sales-primary-action:hover,
.zra-sales-primary-action:focus {
  box-shadow: 0 16px 30px rgba(12, 46, 138, 0.28);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.zra-sales-page .alert {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid currentColor;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  font-weight: 700;
}

.zra-sales-content-row {
  margin-left: 0;
  margin-right: 0;
}

.zra-sales-page .x_panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.zra-sales-page .x_title {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.08) 0%, rgba(80, 216, 175, 0.12) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0;
  padding: 16px 18px;
}

.zra-sales-page .x_title h2 {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.zra-sales-page .x_title small {
  color: #64748b;
  font-weight: 700;
}

.zra-sales-page .panel_toolbox {
  align-items: center;
  display: flex;
  float: none !important;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.zra-sales-page .panel_toolbox > li,
.zra-sales-page .panel_toolbox > a {
  float: none !important;
}

.zra-sales-page .panel_toolbox .btn {
  border-radius: 8px;
  min-height: 34px;
}

.zra-sales-filter-card .x_content {
  padding: 18px;
}

.zra-sales-filter-grid {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(170px, 0.8fr)) auto;
  margin: 0 !important;
}

.zra-sales-filter-grid > [class*='col-'] {
  float: none;
  padding: 0;
  width: auto;
}

.zra-sales-filter-field label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.zra-sales-page .form-control {
  border: 1px solid rgba(12, 46, 138, 0.14);
  border-radius: 8px;
  box-shadow: none;
  color: #0f172a;
  min-height: 40px;
}

.zra-sales-page .form-control:focus {
  border-color: var(--theme-sidebar-accent, #50d8af);
  box-shadow: 0 0 0 3px rgba(80, 216, 175, 0.16);
}

.zra-sales-modal-header {
  background: linear-gradient(135deg, var(--theme-sidebar-bg, #0c2e8a), var(--theme-sidebar-bg-2, #123c96)) !important;
}

.zra-sales-modal-close,
.zra-sales-modal-title {
  color: #ffffff !important;
}

.zra-sales-modal-body-pad {
  border-bottom: 0;
  padding-left: 30px;
  padding-right: 30px;
}

.zra-sales-invoice-modal .zra-sales-modal-body-pad {
  box-sizing: border-box;
  margin: 20px;
  padding: 24px 30px;
}

@media (max-width: 767px) {
  .zra-sales-invoice-modal .zra-sales-modal-body-pad {
    margin: 12px;
    padding: 18px;
  }
}

.zra-sales-modal-footer {
  border-top: 0;
}

.zra-sales-full-width {
  width: 100%;
}

.zra-sales-is-hidden {
  display: none;
}

.zra-sales-inline-action,
.zra-sales-clickable {
  color: #2563eb;
  cursor: pointer;
}

.zra-sales-font-bold {
  font-weight: 800;
}

.zra-sales-add-row-btn {
  float: right;
  font-weight: 800;
}

.zra-sales-items-section,
.zra-sales-items-head,
.zra-sales-items-body,
.zra-sales-dynamic-row {
  background: #f8fafc;
}

.zra-sales-items-head {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 10px;
}

.zra-sales-items-inner,
.zra-sales-dynamic-row,
.zra-sales-item-cell,
.zra-sales-p-0 {
  margin: 0;
  padding: 0 !important;
}

.zra-sales-dynamic-row {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.zra-sales-row-divider {
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  margin-top: 10px;
}

.zra-sales-row-border-divider,
.zra-sales-footer-divider {
  border: 1px solid rgba(15, 23, 42, 0.12);
  margin-bottom: 10px;
  margin-top: 10px;
}

.zra-sales-field-offset {
  margin-top: 10px;
  padding: 5px !important;
}

.zra-sales-p0-mt10 {
  margin-top: 10px;
  padding: 0 !important;
}

.zra-sales-p0-mt15 {
  margin-top: 15px;
  padding: 0 !important;
}

.zra-sales-p0-mt20 {
  margin-top: 20px;
  padding: 0 !important;
}

.zra-sales-mt-10 {
  margin-top: 10px;
}

.zra-sales-mt-20 {
  margin-top: 20px;
}

.zra-sales-text-center {
  text-align: center;
}

.zra-sales-panel-tools,
.zra-sales-panel-tool-item {
  float: right;
}

.zra-sales-filter-grid-spacing {
  margin-bottom: 10px;
  margin-top: 10px;
}

.zra-sales-period-wrap {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.zra-sales-period-label {
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  padding: 5px;
}

.zra-sales-tab-pane {
  padding-top: 20px;
}

.zra-sales-clear-link {
  padding: 5px;
  text-decoration: none !important;
}

.zra-sales-clear-button {
  align-items: center;
  background: linear-gradient(135deg, #64748b, #334155);
  border: 1px solid rgba(51, 65, 85, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
  color: #ffffff !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  line-height: 1;
  padding: 9px 14px;
}

.zra-sales-clear-button:hover,
.zra-sales-clear-button:focus {
  background: linear-gradient(135deg, #0f172a, #1e40af);
  color: #ffffff !important;
}

.zra-sales-clear-badge {
  color: #ffffff;
}

.zra-sales-badge-action {
  background: rgba(249, 115, 22, 0.12) !important;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 999px;
  color: #c2410c !important;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 8px 10px;
  white-space: nowrap;
}

.zra-sales-badge-complete {
  background: rgba(21, 128, 61, 0.12) !important;
  border: 1px solid rgba(21, 128, 61, 0.24);
  border-radius: 999px;
  color: #15803d !important;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 8px 10px;
  white-space: nowrap;
}

.zra-sales-adjustment-cell {
  min-width: 260px;
}

.zra-sales-adjustment-actions {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 240px;
}

.zra-sales-adjustment-button,
.zra-sales-adjustment-chip {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  flex: 1 1 112px;
  gap: 9px;
  justify-content: flex-start;
  line-height: 1.15;
  min-height: 46px;
  padding: 9px 11px;
  text-decoration: none !important;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  white-space: nowrap;
}

.zra-sales-adjustment-button i,
.zra-sales-adjustment-chip i {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.zra-sales-adjustment-button strong {
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.zra-sales-adjustment-button small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-top: 2px;
  opacity: 0.82;
}

.zra-sales-adjustment-button--credit {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.18);
  color: #be123c !important;
}

.zra-sales-adjustment-button--credit i {
  background: #fff1f2;
}

.zra-sales-adjustment-button--debit {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #b45309 !important;
}

.zra-sales-adjustment-button--debit i {
  background: #fffbeb;
}

.zra-sales-adjustment-button:hover,
.zra-sales-adjustment-button:focus {
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.zra-sales-adjustment-chip {
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.16);
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.zra-sales-adjustment-chip--credit {
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(225, 29, 72, 0.18);
  color: #be123c;
}

.zra-sales-adjustment-chip--debit {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.22);
  color: #b45309;
}

.zra-sales-adjustment-chip--credit i,
.zra-sales-adjustment-chip--debit i {
  background: rgba(255, 255, 255, 0.72);
}

.zra-sales-adjustment-chip--muted {
  background: #f8fafc;
  color: #94a3b8;
}

.zra-sales-filter-submit {
  margin-top: 0 !important;
}

.zra-sales-filter-submit .btn,
.zra-sales-filter-submit input[type='submit'] {
  align-items: center;
  background: linear-gradient(135deg, var(--theme-sidebar-bg, #0c2e8a), var(--theme-sidebar-bg-2, #123c96)) !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
}

.zra-sales-filter-card .label-primary {
  background: rgba(12, 46, 138, 0.08) !important;
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 999px;
  color: var(--theme-primary) !important;
  display: inline-flex;
  font-weight: 800;
  margin: 0 18px 16px;
}

.zra-sales-reports {
  padding: 0;
}

.zra-sales-tabs.nav-tabs {
  background: transparent;
  border: 0 !important;
  border-radius: 8px;
  box-shadow: none;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 0 16px;
  padding: 0;
  width: 100%;
}

.zra-sales-tabs.nav-tabs::before,
.zra-sales-tabs.nav-tabs::after {
  content: none !important;
  display: none !important;
}

.zra-sales-tabs.nav-tabs > li {
  float: none !important;
  margin: 0 !important;
  min-width: 0;
  padding: 0 !important;
  text-align: center !important;
  width: 100% !important;
}

.zra-sales-tabs.nav-tabs > li > a {
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 8px !important;
  box-shadow: none;
  color: #ffffff !important;
  display: flex !important;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  margin: 0 !important;
  min-height: 54px;
  overflow: hidden;
  padding: 12px 10px;
  position: relative;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
  width: 100%;
}

.zra-sales-tabs.nav-tabs > li > a b {
  display: block;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zra-sales-tabs.nav-tabs > li > a.all { background: linear-gradient(135deg, #10b981, #059669) !important; }
.zra-sales-tabs.nav-tabs > li > a.B2B_all { background: linear-gradient(135deg, #22d3ee, #0284c7) !important; }
.zra-sales-tabs.nav-tabs > li > a.B2C_all { background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important; }
.zra-sales-tabs.nav-tabs > li > a.C1_all { background: linear-gradient(135deg, #14b8a6, #0f766e) !important; }
.zra-sales-tabs.nav-tabs > li > a.C2_all { background: linear-gradient(135deg, #f59e0b, #ea580c) !important; }
.zra-sales-tabs.nav-tabs > li > a.C3_all { background: linear-gradient(135deg, #fb7185, #e11d48) !important; }
.zra-sales-tabs.nav-tabs > li > a.offline_all { background: linear-gradient(135deg, #64748b, #334155) !important; }

.zra-sales-tabs.nav-tabs > li.active > a,
.zra-sales-tabs.nav-tabs > li > a:hover,
.zra-sales-tabs.nav-tabs > li > a:focus {
  color: #ffffff !important;
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.zra-sales-tabs.nav-tabs > li.active > a,
.zra-sales-tabs.nav-tabs > li.active > a:hover,
.zra-sales-tabs.nav-tabs > li.active > a:focus {
  background: #ffffff !important;
  border-color: rgba(12, 46, 138, 0.18) !important;
  box-shadow: 0 14px 28px rgba(12, 46, 138, 0.16);
  color: var(--theme-primary) !important;
  filter: none;
  min-height: 54px;
  padding: 12px 10px;
}

.zra-sales-tabs.nav-tabs > li.active > a::before {
  background: var(--theme-sidebar-accent, #50d8af);
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 14px;
  position: absolute;
  right: 14px;
  top: 7px;
}

.zra-sales-tabs.nav-tabs > li.active > a::after {
  display: none;
}

.zra-sales-page .tab-content > .tab-pane {
  padding-top: 20px !important;
}

/* Legacy sales invoice report page */
.zra-sales-page input::-webkit-outer-spin-button,
.zra-sales-page input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.zra-sales-page input[type=number] {
  -moz-appearance: textfield;
}

body.zra-sales-page .legacy-invoice-report .zra-sales-shell {
  max-width: none;
  width: 100%;
}

.legacy-invoice-report .nav-tabs > li > a {
  border-radius: 4px 4px 0 0;
  transition: box-shadow 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.legacy-invoice-report .nav-tabs > li > a.has-data {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.legacy-invoice-report .nav-tabs > li > a.has-no-data {
  opacity: 0.9;
}

.legacy-invoice-report .table > thead > tr > th,
.legacy-invoice-report .table > tfoot > tr > td {
  vertical-align: middle;
  white-space: nowrap;
}

.legacy-invoice-report .table > tbody > tr > td {
  vertical-align: middle;
}

.legacy-invoice-report .report-total-row td {
  background: #f8fafc;
  font-weight: 600;
}

.legacy-invoice-report .report-note-row td {
  background: #fff8e5;
  color: #7a5a00;
}

.legacy-invoice-report .label {
  display: inline-block;
  line-height: 1.35;
}

.legacy-invoice-report .legacy-report-page-title {
  float: none;
  width: 100%;
}

.legacy-invoice-report .legacy-report-tabs-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.legacy-invoice-report .legacy-report-tabs-panel > .x_title {
  display: none;
}

body.zra-sales-page .legacy-invoice-report .tab-content .x_title {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: space-between;
}

body.zra-sales-page .legacy-invoice-report .tab-content .x_title h2 {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}

.legacy-invoice-report .legacy-report-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto !important;
  width: auto !important;
}

.legacy-invoice-report .legacy-report-actions > li {
  float: none !important;
  margin: 0;
}

.legacy-invoice-report .legacy-report-actions button {
  line-height: 1;
}

.legacy-invoice-report .legacy-report-actions .legacy-table-action {
  gap: 6px;
  min-width: 74px;
  padding: 0 12px !important;
  width: auto !important;
}

.legacy-invoice-report .legacy-report-actions .legacy-table-action,
.legacy-invoice-report .legacy-report-actions .legacy-table-action i,
.legacy-invoice-report .legacy-report-actions .legacy-table-action span {
  color: #ffffff !important;
}

.legacy-invoice-report .legacy-report-actions .legacy-table-action span {
  font-size: 12px;
  font-weight: 700;
}

.legacy-invoice-report .legacy-report-actions button[disabled] {
  cursor: wait;
  opacity: 0.65;
}

.legacy-invoice-report .zra-sales-tabs.nav-tabs {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.legacy-invoice-report .zra-sales-tabs.nav-tabs > li > a.B2G_all {
  background: linear-gradient(135deg, #fb923c, #ea580c) !important;
}

.legacy-invoice-report .zra-sales-tabs.nav-tabs > li > a.C1_all {
  background: linear-gradient(135deg, #facc15, #ca8a04) !important;
}

.legacy-invoice-report .zra-sales-tabs.nav-tabs > li > a.has-no-data {
  color: #ffffff !important;
  filter: saturate(0.86);
}

.legacy-invoice-report .zra-sales-tabs.nav-tabs > li.active > a.has-no-data,
.legacy-invoice-report .zra-sales-tabs.nav-tabs > li.active > a.has-no-data:hover,
.legacy-invoice-report .zra-sales-tabs.nav-tabs > li.active > a.has-no-data:focus,
.legacy-invoice-report .zra-sales-tabs.nav-tabs > li.active > a.has-no-data b {
  color: var(--theme-primary, #0c2e8a) !important;
}

.legacy-invoice-report #datatable-buttons0 > thead > tr > th:nth-last-child(2),
.legacy-invoice-report #datatable-buttons0 > tbody > tr > td:nth-last-child(2),
.legacy-invoice-report #datatable-buttons1 > thead > tr > th:nth-last-child(2),
.legacy-invoice-report #datatable-buttons1 > tbody > tr > td:nth-last-child(2),
.legacy-invoice-report #datatable-buttons2 > thead > tr > th:nth-last-child(2),
.legacy-invoice-report #datatable-buttons2 > tbody > tr > td:nth-last-child(2),
.legacy-invoice-report #datatable-buttons3 > thead > tr > th:nth-last-child(2),
.legacy-invoice-report #datatable-buttons3 > tbody > tr > td:nth-last-child(2),
.legacy-invoice-report #datatable-buttons5 > thead > tr > th:nth-last-child(2),
.legacy-invoice-report #datatable-buttons5 > tbody > tr > td:nth-last-child(2),
.legacy-invoice-report #datatable-buttons6 > thead > tr > th:nth-last-child(2),
.legacy-invoice-report #datatable-buttons6 > tbody > tr > td:nth-last-child(2) {
  display: none;
}

.legacy-invoice-report #datatable-buttons0 .report-total-row > td:nth-last-child(2),
.legacy-invoice-report #datatable-buttons1 .report-total-row > td:nth-last-child(2),
.legacy-invoice-report #datatable-buttons2 .report-total-row > td:nth-last-child(2),
.legacy-invoice-report #datatable-buttons3 .report-total-row > td:nth-last-child(2),
.legacy-invoice-report #datatable-buttons5 .report-total-row > td:nth-last-child(2),
.legacy-invoice-report #datatable-buttons6 .report-total-row > td:nth-last-child(2) {
  display: none;
}

.legacy-invoice-report .legacy-receipt-button {
  align-items: center;
  background: #123a91;
  border: 1px solid #123a91;
  border-radius: 6px;
  color: #ffffff !important;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  line-height: 1;
  padding: 7px 10px;
  text-decoration: none !important;
  white-space: nowrap;
}

.legacy-invoice-report .legacy-receipt-button:hover,
.legacy-invoice-report .legacy-receipt-button:focus {
  background: #0d2b6c;
  border-color: #0d2b6c;
  color: #ffffff !important;
}

.legacy-invoice-report .legacy-receipt-button i,
.legacy-invoice-report .legacy-receipt-button span {
  color: #ffffff !important;
}

.legacy-invoice-report .zra-sales-reports .table > thead > tr > th,
.legacy-invoice-report .zra-sales-reports .table > tbody > tr > td,
.legacy-invoice-report .zra-sales-reports .table > tfoot > tr > td {
  position: static !important;
  right: auto !important;
  z-index: auto !important;
}

.legacy-invoice-report .modal-footer {
  border: 1px solid #ffffff;
}

.legacy-invoice-report .legacy-report-row {
  margin-top: -10px;
}

.legacy-invoice-report .legacy-flash-label {
  font-size: 16px;
}

.legacy-invoice-report .legacy-clear-inline {
  padding: 5px;
  text-decoration: none !important;
}

.legacy-invoice-report .legacy-clear-badge {
  color: #ffffff;
}

.legacy-invoice-report .legacy-report-table {
  width: 100% !important;
}

.legacy-invoice-report .legacy-report-subrow {
  background-color: #d3d3d3;
}

.legacy-invoice-report .legacy-report-clickable {
  cursor: pointer;
}

.legacy-invoice-report .label[onclick],
.legacy-invoice-report a .label {
  cursor: pointer;
}

.legacy-invoice-report .legacy-report-float-right {
  float: right !important;
}

.legacy-invoice-report .legacy-report-export-link {
  color: #ffffff !important;
  float: right !important;
  text-decoration: none !important;
}

.legacy-invoice-report .legacy-report-upload-link {
  background-color: #f0ad4d !important;
  color: #ffffff !important;
  float: right !important;
  text-decoration: none !important;
}

.legacy-invoice-report .legacy-center-cell {
  text-align: center;
}

body.zra-sales-page .legacy-invoice-report footer {
  align-items: center;
  border-radius: 0 0 8px 8px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  margin: 28px 0 0;
  min-height: 56px;
  padding: 16px 24px;
  width: 100%;
}

body.zra-sales-page .legacy-invoice-report footer .pull-right {
  float: none !important;
  text-align: right;
  width: 100%;
}

@media (max-width: 767px) {
  body.zra-sales-page .legacy-invoice-report .tab-content .x_title {
    align-items: stretch;
    flex-wrap: wrap;
  }

  body.zra-sales-page .legacy-invoice-report .legacy-report-actions {
    justify-content: flex-start;
    margin-left: 0 !important;
    width: 100% !important;
  }

  body.zra-sales-page .legacy-invoice-report footer {
    justify-content: center;
    padding: 16px;
  }

  body.zra-sales-page .legacy-invoice-report footer .pull-right {
    text-align: center;
  }
}

body.legacy-report-print {
  color: #111827;
  font-family: Arial, sans-serif;
  margin: 24px;
}

body.legacy-report-print h1 {
  font-size: 20px;
  margin: 0 0 6px;
}

body.legacy-report-print .period {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

body.legacy-report-print table {
  border-collapse: collapse;
  font-size: 11px;
  width: 100%;
}

body.legacy-report-print th,
body.legacy-report-print td {
  border: 1px solid #cbd5e1;
  padding: 6px 7px;
  text-align: left;
  vertical-align: top;
}

body.legacy-report-print th {
  background: #e2e8f0;
  color: #0f172a;
}

body.legacy-report-print tfoot td {
  background: #f8fafc;
  font-weight: 700;
}

.zra-sales-page .tab-content .x_panel {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 1) 135px),
    #ffffff;
  border-color: rgba(12, 46, 138, 0.1);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.08);
  margin-bottom: 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.zra-sales-page .tab-content .x_panel:hover {
  border-color: rgba(80, 216, 175, 0.28);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.11);
}

.zra-sales-page .tab-content .x_title {
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(80, 216, 175, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(12, 46, 138, 0.06), rgba(248, 250, 252, 0.92));
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 74px;
  padding: 18px 20px;
}

.zra-sales-page .tab-content .x_title h2 {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  letter-spacing: 0;
  min-width: 0;
}

.zra-sales-page .tab-content .panel_toolbox {
  align-items: center;
  display: flex !important;
  float: none !important;
  gap: 8px;
  justify-content: flex-end;
  margin: 0 0 0 auto !important;
  min-width: 0;
  width: auto;
}

.zra-sales-page .tab-content .panel_toolbox > li {
  display: inline-flex;
  float: none !important;
  margin: 0 !important;
}

.zra-sales-page .tab-content .panel_toolbox > li > a {
  align-items: center;
  display: inline-flex;
  margin: 0 !important;
}

.zra-sales-page .tab-content .x_title h2::before {
  background: linear-gradient(135deg, var(--theme-sidebar-accent, #50d8af), #0ea5e9);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.18);
  content: "";
  display: inline-block;
  height: 10px;
  width: 10px;
}

.zra-sales-page .tab-content .x_title small {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zra-sales-page .tab-content .panel_toolbox .collapse-link,
.zra-sales-page .tab-content .panel_toolbox .btn {
  align-items: center;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  margin: 0 !important;
  min-height: 38px;
  padding: 0 !important;
  transition: box-shadow 160ms ease, transform 160ms ease;
  width: 38px;
}

.zra-sales-page .tab-content .panel_toolbox .collapse-link {
  background: #ffffff;
  color: #64748b !important;
}

.zra-sales-page .tab-content .panel_toolbox .collapse-link:hover,
.zra-sales-page .tab-content .panel_toolbox .collapse-link:focus,
.zra-sales-page .tab-content .panel_toolbox .btn:hover,
.zra-sales-page .tab-content .panel_toolbox .btn:focus {
  box-shadow: 0 12px 24px rgba(12, 46, 138, 0.18);
  transform: translateY(-1px);
}

.zra-sales-page .tab-content .panel_toolbox .btn-success {
  background: linear-gradient(135deg, #50d8af, #10b981) !important;
}

.zra-sales-page .tab-content .panel_toolbox .btn-info {
  background: linear-gradient(135deg, #2563eb, #0c2e8a) !important;
}

.zra-sales-page .tab-content .panel_toolbox .btn i,
.zra-sales-page .tab-content .panel_toolbox .collapse-link i {
  font-size: 15px;
}

.zra-sales-page .table-responsive {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.08);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  margin: 0;
  overflow-x: auto;
}

.zra-sales-page .dataTables_wrapper {
  padding: 16px;
}

.zra-sales-page .dataTables_wrapper > .row:first-child,
.zra-sales-page .dataTables_wrapper > .row:last-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.zra-sales-page .dataTables_wrapper > .row:last-child {
  margin: 12px 0 0;
}

.zra-sales-page .dataTables_wrapper > .row:first-child > [class*='col-'],
.zra-sales-page .dataTables_wrapper > .row:last-child > [class*='col-'] {
  float: none;
  padding: 0;
  width: auto;
}

.zra-sales-page .dataTables_wrapper > .row:first-child > [class*='col-']:last-child,
.zra-sales-page .dataTables_wrapper > .row:last-child > [class*='col-']:last-child {
  margin-left: auto;
}

.zra-sales-page .dataTables_length label,
.zra-sales-page .dataTables_filter label {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  margin: 0;
  text-transform: uppercase;
}

.zra-sales-page .dataTables_filter input,
.zra-sales-page .dataTables_length select {
  background-color: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.16);
  border-radius: 8px;
  box-shadow: none;
  color: #0f172a;
  min-height: 38px;
}

.zra-sales-page .dataTables_filter input:focus,
.zra-sales-page .dataTables_length select:focus {
  border-color: var(--theme-sidebar-accent, #50d8af);
  box-shadow: 0 0 0 3px rgba(80, 216, 175, 0.16);
}

.zra-sales-page .dataTables_filter input {
  min-width: 260px;
}

.zra-sales-page table.table {
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  min-width: 1060px;
}

.zra-sales-page table.table > thead > tr > th {
  background: linear-gradient(180deg, #f5f9ff 0%, #eaf2ff 100%) !important;
  border-bottom: 1px solid rgba(12, 46, 138, 0.12) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  color: #1e293b !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 11px 12px !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.zra-sales-page table.table > thead > tr > th:first-child {
  border-top-left-radius: 8px;
}

.zra-sales-page table.table > thead > tr > th:last-child {
  border-top-right-radius: 8px;
}

.zra-sales-page table.table > tbody > tr > td {
  background: #ffffff;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 1px solid rgba(12, 46, 138, 0.07) !important;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  padding: 11px 12px !important;
  vertical-align: middle !important;
}

.zra-sales-page table.table > tbody > tr {
  transition: background-color 140ms ease;
}

.zra-sales-page table.table > tbody > tr:nth-child(even) > td {
  background: #f8fbff;
}

.zra-sales-page table.table > tbody > tr:hover > td {
  background: rgba(80, 216, 175, 0.1);
  color: #0f172a;
}

.zra-sales-page table.table > tbody > tr.zra-sales-report-row--sale > td:first-child {
  box-shadow: inset 4px 0 0 #10b981;
}

.zra-sales-page table.table > tbody > tr.zra-sales-report-row--credit > td:first-child {
  box-shadow: inset 4px 0 0 #e11d48;
}

.zra-sales-page table.table > tbody > tr.zra-sales-report-row--debit > td:first-child {
  box-shadow: inset 4px 0 0 #f59e0b;
}

.zra-sales-page table.table > tbody > tr.zra-sales-report-row--other > td:first-child {
  box-shadow: inset 4px 0 0 #64748b;
}

.zra-sales-page table.table > tbody > tr.zra-sales-report-row--credit > td {
  background: rgba(255, 241, 242, 0.52);
}

.zra-sales-page table.table > tbody > tr.zra-sales-report-row--debit > td {
  background: rgba(255, 251, 235, 0.62);
}

.zra-sales-page table.table > tbody > tr > td:first-child,
.zra-sales-page table.table > thead > tr > th:first-child {
  text-align: center;
  width: 58px;
}

.zra-sales-page table.table > thead > tr > th.zra-sales-date-heading,
.zra-sales-page table.table > tbody > tr > td.zra-sales-date-cell {
  min-width: 84px;
  width: 84px;
  white-space: nowrap;
}

.zra-sales-date-main {
  color: #1e293b;
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.zra-sales-date-time {
  color: #64748b;
  display: block;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2px;
}

.zra-sales-page table.table > thead > tr > th.zra-sales-invoice-heading,
.zra-sales-page table.table > tbody > tr > td.zra-sales-invoice-cell {
  max-width: 210px;
  min-width: 180px;
  white-space: normal;
}

.zra-sales-page table.table > tbody > tr > td.zra-sales-invoice-cell {
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.zra-sales-page table.table > tbody > tr > td:nth-child(8),
.zra-sales-page table.table > tbody > tr > td:nth-child(9),
.zra-sales-page table.table > tbody > tr > td:nth-child(10),
.zra-sales-page table.table > tfoot > tr > td:nth-child(8),
.zra-sales-page table.table > tfoot > tr > td:nth-child(9),
.zra-sales-page table.table > tfoot > tr > td:nth-child(10) {
  font-variant-numeric: tabular-nums;
}

.zra-sales-page table.table > thead > tr > th.zra-sales-money-heading,
.zra-sales-page table.table > tbody > tr > td.zra-sales-money-cell,
.zra-sales-page table.table > tfoot > tr > td.zra-sales-money-cell {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.zra-sales-page table.table > tbody > tr > td:last-child a {
  align-items: center;
  background: rgba(12, 46, 138, 0.08);
  border: 1px solid rgba(12, 46, 138, 0.12);
  border-radius: 8px;
  color: var(--theme-primary) !important;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.zra-sales-page table.table > tbody > tr > td:last-child a:hover,
.zra-sales-page table.table > tbody > tr > td:last-child a:focus {
  background: var(--theme-primary);
  color: #ffffff !important;
}

.zra-sales-type-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  line-height: 1;
  padding: 9px 11px;
  white-space: nowrap;
}

.zra-sales-type-badge i {
  font-size: 12px;
}

.zra-sales-type-badge--sale {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: #047857;
}

.zra-sales-type-badge--credit {
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.2);
  color: #be123c;
}

.zra-sales-type-badge--debit {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.26);
  color: #b45309;
}

.zra-sales-type-badge--other {
  background: rgba(100, 116, 139, 0.12);
  border: 1px solid rgba(100, 116, 139, 0.22);
  color: #475569;
}

.zra-purchase-page .zra-sales-tabs.nav-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zra-purchase-page .tab-content.zra-purchase-reports {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.zra-purchase-page .purchase-container {
  background: transparent;
  min-height: 0;
  padding: 0;
}

.zra-purchase-page .purchase-container .row {
  margin-left: 0;
  margin-right: 0;
}

.zra-purchase-page .purchase-container [class*='col-'] {
  padding-left: 0;
  padding-right: 0;
}

.zra-purchase-page .action-bar {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(12, 46, 138, 0.1);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.zra-purchase-page .checkbox-group,
.zra-purchase-page .btn-submit-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zra-purchase-page .selected-count {
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 800;
}

.zra-purchase-page .btn-submit {
  align-items: center;
  background: #16a34a !important;
  border: 0 !important;
  border-radius: 7px !important;
  color: #ffffff !important;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.zra-purchase-page .btn-submit:hover:not(:disabled),
.zra-purchase-page .btn-submit:focus:not(:disabled) {
  background: #15803d !important;
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.2);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.zra-purchase-page .btn-submit.secondary {
  background: #e5e7eb !important;
  color: #475569 !important;
}

.zra-purchase-page .btn-submit.secondary:hover:not(:disabled),
.zra-purchase-page .btn-submit.secondary:focus:not(:disabled) {
  background: #d1d5db !important;
  box-shadow: 0 8px 16px rgba(100, 116, 139, 0.16);
  color: #1f2937 !important;
}

.zra-purchase-page .btn-submit:disabled {
  background: #cbd5e1 !important;
  box-shadow: none;
  color: #f8fafc !important;
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.zra-purchase-loader {
  align-items: center;
  background: #f8fbff;
  border: 1px dashed rgba(12, 46, 138, 0.18);
  border-radius: 8px;
  color: var(--theme-primary);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
  min-height: 62px;
  padding: 14px;
}

.zra-purchase-loader i {
  color: var(--theme-sidebar-accent);
  font-size: 18px;
}

.zra-purchase-process-loader {
  align-items: center;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 8px;
  color: #15803d;
  display: none;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  margin: -2px 0 12px;
  min-height: 44px;
  padding: 10px 14px;
}

.zra-purchase-process-loader i {
  font-size: 16px;
}

.zra-purchase-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  line-height: 1;
  padding: 7px 9px;
  white-space: nowrap;
}

.zra-purchase-status i {
  font-size: 11px;
}

.zra-purchase-status--approved {
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.22);
  color: #15803d;
}

.zra-purchase-status--pending {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.26);
  color: #b45309;
}

.zra-purchase-page .purchase-table tbody tr {
  border-left: 0;
}

.zra-purchase-page .zra-purchase-table > tbody > tr > td:nth-child(6),
.zra-purchase-page .zra-purchase-table > tbody > tr > td:nth-child(7) {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.zra-purchase-page .zra-purchase-table > thead > tr > th:nth-child(6),
.zra-purchase-page .zra-purchase-table > thead > tr > th:nth-child(7) {
  text-align: right;
}

.zra-purchase-view-btn i {
  font-size: 13px;
}

@media (max-width: 767px) {
  .zra-purchase-page .action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .zra-purchase-page .checkbox-group,
  .zra-purchase-page .btn-submit-group {
    justify-content: space-between;
    width: 100%;
  }

  .zra-purchase-page .btn-submit {
    flex: 1 1 0;
  }
}

.zra-sales-page table.table > tfoot > tr > td {
  background: #ffffff !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 1px solid rgba(12, 46, 138, 0.12) !important;
  color: #0f172a;
  font-size: 13px;
  padding: 14px 16px !important;
  vertical-align: middle !important;
}

.zra-sales-page table.table > tfoot > tr:first-child > td {
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.08), rgba(80, 216, 175, 0.12)) !important;
  font-weight: 800;
}

.zra-sales-page table.table > tfoot > tr:first-child > td:not(:empty) {
  font-variant-numeric: tabular-nums;
}

.zra-sales-page table.table > tfoot center {
  text-align: center;
}

.zra-sales-page table.table > tfoot > tr:last-child > td {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.zra-sales-invoice-modal .modal-dialog {
  max-width: none !important;
  width: 100% !important;
}

.zra-sales-invoice-modal .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
  overflow: hidden;
}

.zra-sales-invoice-modal .modal-header {
  align-items: center;
  background: linear-gradient(135deg, var(--theme-sidebar-bg, #0c2e8a), var(--theme-sidebar-bg-2, #123c96)) !important;
  border: 0;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 18px 22px;
  text-align: left !important;
}

.zra-sales-invoice-modal .zra-sales-invoice-title {
  flex: 1 1 auto;
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: none;
  text-align: left !important;
}

.zra-sales-invoice-modal .modal-header .close {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff !important;
  display: inline-flex;
  font-size: 28px;
  height: 42px;
  justify-content: center;
  margin: 0;
  margin-left: auto !important;
  opacity: 1;
  order: 2;
  text-shadow: none;
  width: 42px;
}

.zra-sales-invoice-title span {
  color: var(--theme-sidebar-accent, #50d8af);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.zra-sales-invoice-title .modal-title {
  color: #ffffff !important;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.zra-sales-invoice-modal .modal-body {
  background: #f4f7fb;
  max-height: calc(100vh - 160px);
  overflow: auto;
  padding: 18px !important;
}

.zra-sales-invoice-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.zra-sales-invoice-steps span {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  color: #0f172a;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 10px;
}

.zra-sales-invoice-steps i {
  color: var(--theme-primary);
}

.zra-sales-invoice-section,
.zra-sales-total-row,
.zra-sales-invoice-actions {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  margin-bottom: 14px;
  padding: 16px;
}

.zra-sales-spacer {
  display: none !important;
}

.zra-sales-invoice-section {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.zra-sales-invoice-top-grid {
  align-items: stretch;
  gap: 14px 18px;
  grid-template-columns: minmax(300px, 1.25fr) minmax(230px, 0.8fr) minmax(260px, 0.9fr);
}

.zra-sales-invoice-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(12, 46, 138, 0.08);
  border-radius: 8px;
  padding: 14px !important;
}

.zra-sales-invoice-card--meta {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.zra-sales-invoice-card--payment {
  align-content: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.zra-sales-payment-field {
  min-width: 0;
}

.zra-sales-customer-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.zra-sales-customer-address {
  background: rgba(12, 46, 138, 0.04);
  border: 1px dashed rgba(12, 46, 138, 0.18);
  border-radius: 8px;
  margin-top: 12px;
  min-height: 92px;
  padding: 12px 14px;
}

.zra-sales-customer-address span {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.zra-sales-customer-address p {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.zra-sales-current-date {
  background: rgba(12, 46, 138, 0.05);
  border: 1px solid rgba(12, 46, 138, 0.08);
  border-radius: 8px;
  padding: 11px 12px;
}

.zra-sales-current-date label {
  display: block;
  margin-bottom: 4px;
}

.zra-sales-current-date span {
  color: #0f172a;
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.zra-sales-invoice-section--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zra-sales-invoice-section--totals {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.zra-sales-invoice-section > [class*='col-sm-'],
.zra-sales-total-row > [class*='col-sm-'],
.zra-sales-invoice-actions > [class*='col-sm-'] {
  float: none !important;
  margin: 0 !important;
  min-width: 0;
  padding: 0 !important;
  width: auto !important;
}

.zra-sales-invoice-section > [class*='col-sm-']:empty,
.zra-sales-total-row > [class*='col-sm-']:empty,
.zra-sales-invoice-actions > [class*='col-sm-']:empty {
  display: none;
}

.zra-sales-invoice-section--compact > .col-sm-3:last-child,
.zra-sales-invoice-section--totals > .col-sm-2:nth-last-child(2),
.zra-sales-total-row > .col-sm-4,
.zra-sales-total-row > .col-sm-6,
.zra-sales-invoice-actions > .col-sm-4,
.zra-sales-invoice-actions > .col-sm-6 {
  display: none !important;
}

.zra-sales-invoice-modal label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.zra-sales-invoice-modal .form-control {
  border: 1px solid rgba(12, 46, 138, 0.14);
  border-radius: 8px;
  box-shadow: none;
  min-height: 40px;
}

.zra-sales-invoice-modal .form-control[readonly],
.zra-sales-invoice-modal .form-control:disabled {
  background: #eef2f7;
  color: #475569;
}

.zra-sales-invoice-modal .tpin_txt {
  background: rgba(80, 216, 175, 0.12);
  border: 1px solid rgba(80, 216, 175, 0.24);
  border-radius: 999px;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 6px 10px;
}

.zra-sales-items-builder {
  display: block;
  overflow-x: auto;
  padding: 0;
}

.zra-sales-items-builder > .col-sm-12,
.zra-sales-items-builder [style*='background-color:#f1f1f1'],
.zra-sales-items-builder [style*='background-color: #f1f1f1'] {
  background: transparent !important;
}

.zra-sales-items-builder > .col-sm-12 {
  float: none !important;
  min-width: 1040px;
  padding: 14px !important;
  width: 100% !important;
}

.zra-sales-items-builder .zra-sales-items-body,
.zra-sales-items-builder .zra-sales-items-inner,
.zra-sales-items-builder #content_s,
.zra-sales-items-builder .zra-sales-item-grid-row {
  clear: both;
  float: none !important;
  width: 100% !important;
}

.zra-sales-items-builder .zra-sales-items-inner {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.zra-sales-items-head,
.zra-sales-item-grid-row {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 2fr) minmax(82px, 0.7fr) minmax(100px, 0.85fr) minmax(100px, 0.85fr) minmax(110px, 0.9fr) minmax(140px, 1.1fr) minmax(140px, 1.1fr) minmax(46px, 0.35fr);
  width: 100%;
}

.zra-sales-items-head > [class*='col-sm-'],
.zra-sales-item-grid-row > [class*='col-sm-'] {
  float: none !important;
  margin: 0 !important;
  min-width: 0;
  padding: 0 !important;
  width: auto !important;
}

.zra-sales-item-action-cell,
.zra-sales-item-action-head {
  align-items: flex-end;
  display: flex !important;
  justify-content: center;
}

.zra-sales-item-main-head small,
.zra-sales-unit-head small,
.zra-sales-tax-head small {
  color: #94a3b8;
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  margin-top: -4px;
  text-transform: none;
}

.zra-sales-item-main-cell,
.zra-sales-unit-cell,
.zra-sales-tax-cell {
  display: flex !important;
  flex-direction: column;
  gap: 3px;
  justify-content: flex-start;
}

.zra-sales-item-meta {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 10px;
  gap: 7px;
  line-height: 1;
  min-height: 17px;
  overflow: hidden;
  white-space: nowrap;
}

.zra-sales-item-meta > span {
  align-items: center;
  display: inline-flex;
  gap: 3px;
  min-width: 0;
}

.zra-sales-item-meta > span:first-child {
  flex: 1 1 auto;
}

.zra-sales-item-meta b {
  color: #94a3b8;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.zra-sales-item-meta input,
.zra-sales-tax-type-input {
  background: transparent !important;
  border: 0;
  color: #475569 !important;
  font-size: 10px;
  font-weight: 700;
  height: 17px;
  line-height: 17px;
  min-height: 17px !important;
  outline: 0;
  overflow: hidden;
  padding: 0;
  text-overflow: ellipsis;
}

.zra-sales-item-meta input:disabled {
  opacity: 1;
  -webkit-text-fill-color: #475569;
}

.zra-sales-item-code-meta > span:first-child input {
  min-width: 55px;
  width: 100%;
}

.zra-sales-unit-meta {
  width: 100%;
}

.zra-sales-unit-meta > span {
  width: 100%;
}

.zra-sales-unit-meta input {
  min-width: 0;
  width: 100%;
}

.zra-sales-stock-meta {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zra-sales-tax-type-input {
  display: block;
  width: 100%;
}

.zra-sales-remove-item-row {
  align-items: center;
  background: #dc3545;
  border: 0;
  border-radius: 7px;
  box-shadow: 0 8px 16px rgba(220, 53, 69, 0.18);
  color: #ffffff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  width: 34px;
}

.zra-sales-remove-item-row:hover,
.zra-sales-remove-item-row:focus {
  background: #bb2d3b;
  box-shadow: 0 10px 18px rgba(220, 53, 69, 0.24);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.zra-sales-remove-item-row:disabled {
  background: #cbd5e1;
  box-shadow: none;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
}

.zra-sales-items-builder label {
  color: #475569;
  font-size: 11px;
  line-height: 1.25;
  min-height: 28px;
}

.zra-sales-items-builder .form-control {
  font-size: 12px;
  min-height: 38px;
  padding: 8px 9px;
}

.zra-sales-items-builder .fstdiv,
.zra-sales-items-builder .fstdropdown {
  max-width: 100%;
  width: 100%;
}

.zra-sales-items-builder #btnAdd {
  align-items: center;
  background: linear-gradient(135deg, var(--theme-sidebar-bg, #0c2e8a), var(--theme-sidebar-bg-2, #123c96)) !important;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(12, 46, 138, 0.18);
  display: inline-flex;
  float: none !important;
  font-size: 18px;
  height: 34px;
  justify-content: center;
  margin-left: 8px;
  padding: 0;
  width: 38px;
}

.zra-sales-items-head > .col-sm-2:last-of-type,
.zra-sales-items-head .zra-sales-add-row-heading {
  align-items: center;
  display: flex !important;
  gap: 8px;
  justify-content: space-between;
}

.zra-sales-items-head > .col-sm-2:last-of-type label,
.zra-sales-items-head .zra-sales-add-row-heading label {
  margin: 0;
}

.zra-sales-items-inner #content_s {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 0;
}

.zra-sales-items-builder #content_s > .zra-sales-item-grid-row {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 10px !important;
}

.zra-sales-row-divider,
.zra-sales-row-border-divider {
  grid-column: 1 / -1;
}

.zra-sales-invoice-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.zra-sales-summary-panel {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  padding: 16px;
}

.zra-sales-summary-panel__title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 12px;
}

/* ZRA sales report table compact + sticky columns (moved from inline view styles) */
.zra-sales-reports .table > thead > tr > th {
  padding: 8px 9px;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.zra-sales-reports .table > tbody > tr > td {
  padding: 4px 7px !important;
  font-size: 11px;
  line-height: 1.05;
  vertical-align: middle;
}

.zra-sales-reports .table > tbody > tr > td:nth-child(2) {
  white-space: nowrap;
}

.zra-sales-reports .table > tbody > tr > td:nth-child(3) {
  font-weight: 700;
  color: #132f56;
}

.zra-sales-adjustment-cell {
  min-width: 145px;
}

.zra-sales-adjustment-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.zra-sales-adjustment-button {
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 7px;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.zra-sales-adjustment-button i {
  font-size: 10px;
}

.zra-sales-adjustment-button span strong {
  display: inline;
  font-size: 10px;
  line-height: 1;
}

.zra-sales-adjustment-button span small {
  display: none;
}

.zra-sales-adjustment-chip {
  min-height: 23px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  white-space: nowrap;
}

.zra-sales-reports .table-responsive {
  position: relative;
}

.zra-sales-reports .table {
  isolation: isolate;
}

.zra-sales-reports .table > thead > tr > th:last-child,
.zra-sales-reports .table > tbody > tr > td:last-child,
.zra-sales-reports .table > tfoot > tr > td:last-child {
  position: sticky;
  right: 0;
  white-space: nowrap;
}

.zra-sales-reports .table > thead > tr > th:last-child {
  background: #edf1f8;
  z-index: 6;
}

.zra-sales-reports .table > tbody > tr > td:last-child {
  background: #eef5f3;
  border-left: 1px solid rgba(12, 46, 138, 0.12);
  z-index: 4;
}

.zra-sales-reports .table > tfoot > tr > td:last-child {
  background: #f1f3f7;
  z-index: 4;
}

.zra-purchase-page .zra-purchase-reports .table > thead > tr > th:last-child,
.zra-purchase-page .zra-purchase-reports .table > tbody > tr > td:last-child,
.zra-purchase-page .zra-purchase-reports .table > tfoot > tr > td:last-child {
  box-shadow: none;
  position: static;
  right: auto;
  z-index: auto;
}

/* Sticky total amount + action (tabs with Adjustments column) */
#datatable-buttons0 > thead > tr > th:nth-last-child(-n+2),
#datatable-buttons1 > thead > tr > th:nth-last-child(-n+2),
#datatable-buttons2 > thead > tr > th:nth-last-child(-n+2),
#datatable-buttons3 > thead > tr > th:nth-last-child(-n+2),
#datatable-buttons4 > thead > tr > th:nth-last-child(-n+2),
#datatable-buttons0 > tbody > tr > td:nth-last-child(-n+2),
#datatable-buttons1 > tbody > tr > td:nth-last-child(-n+2),
#datatable-buttons2 > tbody > tr > td:nth-last-child(-n+2),
#datatable-buttons3 > tbody > tr > td:nth-last-child(-n+2),
#datatable-buttons4 > tbody > tr > td:nth-last-child(-n+2),
#datatable-buttons0 > tfoot > tr > td:nth-last-child(-n+2),
#datatable-buttons1 > tfoot > tr > td:nth-last-child(-n+2),
#datatable-buttons2 > tfoot > tr > td:nth-last-child(-n+2),
#datatable-buttons3 > tfoot > tr > td:nth-last-child(-n+2),
#datatable-buttons4 > tfoot > tr > td:nth-last-child(-n+2) {
  background-clip: padding-box;
  position: sticky;
  white-space: nowrap;
}

#datatable-buttons0 > thead > tr > th:last-child,
#datatable-buttons1 > thead > tr > th:last-child,
#datatable-buttons2 > thead > tr > th:last-child,
#datatable-buttons3 > thead > tr > th:last-child,
#datatable-buttons4 > thead > tr > th:last-child,
#datatable-buttons0 > tbody > tr > td:last-child,
#datatable-buttons1 > tbody > tr > td:last-child,
#datatable-buttons2 > tbody > tr > td:last-child,
#datatable-buttons3 > tbody > tr > td:last-child,
#datatable-buttons4 > tbody > tr > td:last-child,
#datatable-buttons0 > tfoot > tr > td:last-child,
#datatable-buttons1 > tfoot > tr > td:last-child,
#datatable-buttons2 > tfoot > tr > td:last-child,
#datatable-buttons3 > tfoot > tr > td:last-child,
#datatable-buttons4 > tfoot > tr > td:last-child {
  right: 0;
}

#datatable-buttons0 > thead > tr > th:nth-last-child(2),
#datatable-buttons1 > thead > tr > th:nth-last-child(2),
#datatable-buttons2 > thead > tr > th:nth-last-child(2),
#datatable-buttons3 > thead > tr > th:nth-last-child(2),
#datatable-buttons4 > thead > tr > th:nth-last-child(2),
#datatable-buttons0 > tbody > tr > td:nth-last-child(2),
#datatable-buttons1 > tbody > tr > td:nth-last-child(2),
#datatable-buttons2 > tbody > tr > td:nth-last-child(2),
#datatable-buttons3 > tbody > tr > td:nth-last-child(2),
#datatable-buttons4 > tbody > tr > td:nth-last-child(2),
#datatable-buttons0 > tfoot > tr > td:nth-last-child(2),
#datatable-buttons1 > tfoot > tr > td:nth-last-child(2),
#datatable-buttons2 > tfoot > tr > td:nth-last-child(2),
#datatable-buttons3 > tfoot > tr > td:nth-last-child(2),
#datatable-buttons4 > tfoot > tr > td:nth-last-child(2) {
  right: 74px;
}

/* Keep "Adjustments" non-sticky on all sales report tabs that include it */
#datatable-buttons0 > thead > tr > th:nth-last-child(2),
#datatable-buttons1 > thead > tr > th:nth-last-child(2),
#datatable-buttons2 > thead > tr > th:nth-last-child(2),
#datatable-buttons3 > thead > tr > th:nth-last-child(2),
#datatable-buttons4 > thead > tr > th:nth-last-child(2),
#datatable-buttons0 > tbody > tr > td:nth-last-child(2),
#datatable-buttons1 > tbody > tr > td:nth-last-child(2),
#datatable-buttons2 > tbody > tr > td:nth-last-child(2),
#datatable-buttons3 > tbody > tr > td:nth-last-child(2),
#datatable-buttons4 > tbody > tr > td:nth-last-child(2),
#datatable-buttons0 > tfoot > tr > td:nth-last-child(2),
#datatable-buttons1 > tfoot > tr > td:nth-last-child(2),
#datatable-buttons2 > tfoot > tr > td:nth-last-child(2),
#datatable-buttons3 > tfoot > tr > td:nth-last-child(2),
#datatable-buttons4 > tfoot > tr > td:nth-last-child(2) {
  position: static;
  right: auto;
}

/* Offline table without Adjustments column */
#datatable-buttons5 > thead > tr > th:nth-last-child(-n+2),
#datatable-buttons5 > tbody > tr > td:nth-last-child(-n+2),
#datatable-buttons5 > tfoot > tr > td:nth-last-child(-n+2) {
  background-clip: padding-box;
  position: sticky;
  white-space: nowrap;
}

#datatable-buttons5 > thead > tr > th:last-child,
#datatable-buttons5 > tbody > tr > td:last-child,
#datatable-buttons5 > tfoot > tr > td:last-child {
  right: 0;
}

#datatable-buttons5 > thead > tr > th:nth-last-child(2),
#datatable-buttons5 > tbody > tr > td:nth-last-child(2),
#datatable-buttons5 > tfoot > tr > td:nth-last-child(2) {
  right: 74px;
}

/* C3 uses the same Adjustments column as the other sales report tabs. */
#datatable-buttons5 > thead > tr > th:nth-last-child(2),
#datatable-buttons5 > tbody > tr > td:nth-last-child(2),
#datatable-buttons5 > tfoot > tr > td:nth-last-child(2) {
  position: static;
  right: auto;
}

#datatable-buttons0 > thead > tr > th:nth-last-child(-n+2),
#datatable-buttons1 > thead > tr > th:nth-last-child(-n+2),
#datatable-buttons2 > thead > tr > th:nth-last-child(-n+2),
#datatable-buttons3 > thead > tr > th:nth-last-child(-n+2),
#datatable-buttons4 > thead > tr > th:nth-last-child(-n+2),
#datatable-buttons5 > thead > tr > th:nth-last-child(-n+2) {
  background: #edf1f8;
  z-index: 7;
}

#datatable-buttons0 > tbody > tr > td:nth-last-child(-n+2),
#datatable-buttons1 > tbody > tr > td:nth-last-child(-n+2),
#datatable-buttons2 > tbody > tr > td:nth-last-child(-n+2),
#datatable-buttons3 > tbody > tr > td:nth-last-child(-n+2),
#datatable-buttons4 > tbody > tr > td:nth-last-child(-n+2),
#datatable-buttons5 > tbody > tr > td:nth-last-child(-n+2) {
  background: #ffffff;
  border-left: 1px solid rgba(12, 46, 138, 0.1);
  z-index: 4;
}

#datatable-buttons0 > tfoot > tr > td:nth-last-child(-n+2),
#datatable-buttons1 > tfoot > tr > td:nth-last-child(-n+2),
#datatable-buttons2 > tfoot > tr > td:nth-last-child(-n+2),
#datatable-buttons3 > tfoot > tr > td:nth-last-child(-n+2),
#datatable-buttons4 > tfoot > tr > td:nth-last-child(-n+2),
#datatable-buttons5 > tfoot > tr > td:nth-last-child(-n+2) {
  background: #f1f3f7;
  z-index: 4;
}

/* Keep sticky cells visually aligned with row striping and hover states */
#datatable-buttons0 > tbody > tr:nth-child(even) > td:nth-last-child(-n+2),
#datatable-buttons1 > tbody > tr:nth-child(even) > td:nth-last-child(-n+2),
#datatable-buttons2 > tbody > tr:nth-child(even) > td:nth-last-child(-n+2),
#datatable-buttons3 > tbody > tr:nth-child(even) > td:nth-last-child(-n+2),
#datatable-buttons4 > tbody > tr:nth-child(even) > td:nth-last-child(-n+2),
#datatable-buttons5 > tbody > tr:nth-child(even) > td:nth-last-child(-n+2) {
  background: #f8fbff;
}

#datatable-buttons0 > tbody > tr:hover > td:nth-last-child(-n+2),
#datatable-buttons1 > tbody > tr:hover > td:nth-last-child(-n+2),
#datatable-buttons2 > tbody > tr:hover > td:nth-last-child(-n+2),
#datatable-buttons3 > tbody > tr:hover > td:nth-last-child(-n+2),
#datatable-buttons4 > tbody > tr:hover > td:nth-last-child(-n+2),
#datatable-buttons5 > tbody > tr:hover > td:nth-last-child(-n+2) {
  background: #e8f8f2;
}

/* Tiered z-index avoids sticky-cell overlap while scrolling horizontally */
#datatable-buttons0 > thead > tr > th:last-child,
#datatable-buttons1 > thead > tr > th:last-child,
#datatable-buttons2 > thead > tr > th:last-child,
#datatable-buttons3 > thead > tr > th:last-child,
#datatable-buttons4 > thead > tr > th:last-child,
#datatable-buttons5 > thead > tr > th:last-child,
#datatable-buttons0 > tbody > tr > td:last-child,
#datatable-buttons1 > tbody > tr > td:last-child,
#datatable-buttons2 > tbody > tr > td:last-child,
#datatable-buttons3 > tbody > tr > td:last-child,
#datatable-buttons4 > tbody > tr > td:last-child,
#datatable-buttons5 > tbody > tr > td:last-child,
#datatable-buttons0 > tfoot > tr > td:last-child,
#datatable-buttons1 > tfoot > tr > td:last-child,
#datatable-buttons2 > tfoot > tr > td:last-child,
#datatable-buttons3 > tfoot > tr > td:last-child,
#datatable-buttons4 > tfoot > tr > td:last-child,
#datatable-buttons5 > tfoot > tr > td:last-child {
  z-index: 12;
}

#datatable-buttons0 > thead > tr > th:nth-last-child(2),
#datatable-buttons1 > thead > tr > th:nth-last-child(2),
#datatable-buttons2 > thead > tr > th:nth-last-child(2),
#datatable-buttons3 > thead > tr > th:nth-last-child(2),
#datatable-buttons4 > thead > tr > th:nth-last-child(2),
#datatable-buttons5 > thead > tr > th:nth-last-child(2),
#datatable-buttons0 > tbody > tr > td:nth-last-child(2),
#datatable-buttons1 > tbody > tr > td:nth-last-child(2),
#datatable-buttons2 > tbody > tr > td:nth-last-child(2),
#datatable-buttons3 > tbody > tr > td:nth-last-child(2),
#datatable-buttons4 > tbody > tr > td:nth-last-child(2),
#datatable-buttons5 > tbody > tr > td:nth-last-child(2),
#datatable-buttons0 > tfoot > tr > td:nth-last-child(2),
#datatable-buttons1 > tfoot > tr > td:nth-last-child(2),
#datatable-buttons2 > tfoot > tr > td:nth-last-child(2),
#datatable-buttons3 > tfoot > tr > td:nth-last-child(2),
#datatable-buttons4 > tfoot > tr > td:nth-last-child(2),
#datatable-buttons5 > tfoot > tr > td:nth-last-child(2) {
  font-weight: 800;
  z-index: 11;
}

#datatable-buttons0 > thead > tr > th:nth-last-child(3),
#datatable-buttons1 > thead > tr > th:nth-last-child(3),
#datatable-buttons2 > thead > tr > th:nth-last-child(3),
#datatable-buttons3 > thead > tr > th:nth-last-child(3),
#datatable-buttons4 > thead > tr > th:nth-last-child(3),
#datatable-buttons5 > thead > tr > th:nth-last-child(3),
#datatable-buttons0 > tbody > tr > td:nth-last-child(3),
#datatable-buttons1 > tbody > tr > td:nth-last-child(3),
#datatable-buttons2 > tbody > tr > td:nth-last-child(3),
#datatable-buttons3 > tbody > tr > td:nth-last-child(3),
#datatable-buttons4 > tbody > tr > td:nth-last-child(3),
#datatable-buttons5 > tbody > tr > td:nth-last-child(3),
#datatable-buttons0 > tfoot > tr > td:nth-last-child(3),
#datatable-buttons1 > tfoot > tr > td:nth-last-child(3),
#datatable-buttons2 > tfoot > tr > td:nth-last-child(3),
#datatable-buttons3 > tfoot > tr > td:nth-last-child(3),
#datatable-buttons4 > tfoot > tr > td:nth-last-child(3),
#datatable-buttons5 > tfoot > tr > td:nth-last-child(3) {
  z-index: 10;
}

#datatable-buttons0 > thead > tr > th:nth-last-child(4),
#datatable-buttons1 > thead > tr > th:nth-last-child(4),
#datatable-buttons2 > thead > tr > th:nth-last-child(4),
#datatable-buttons3 > thead > tr > th:nth-last-child(4),
#datatable-buttons4 > thead > tr > th:nth-last-child(4),
#datatable-buttons5 > thead > tr > th:nth-last-child(4),
#datatable-buttons0 > tbody > tr > td:nth-last-child(4),
#datatable-buttons1 > tbody > tr > td:nth-last-child(4),
#datatable-buttons2 > tbody > tr > td:nth-last-child(4),
#datatable-buttons3 > tbody > tr > td:nth-last-child(4),
#datatable-buttons4 > tbody > tr > td:nth-last-child(4),
#datatable-buttons5 > tbody > tr > td:nth-last-child(4),
#datatable-buttons0 > tfoot > tr > td:nth-last-child(4),
#datatable-buttons1 > tfoot > tr > td:nth-last-child(4),
#datatable-buttons2 > tfoot > tr > td:nth-last-child(4),
#datatable-buttons3 > tfoot > tr > td:nth-last-child(4),
#datatable-buttons4 > tfoot > tr > td:nth-last-child(4),
#datatable-buttons5 > tfoot > tr > td:nth-last-child(4) {
  z-index: 9;
}

#datatable-buttons0 > thead > tr > th:nth-last-child(5),
#datatable-buttons1 > thead > tr > th:nth-last-child(5),
#datatable-buttons2 > thead > tr > th:nth-last-child(5),
#datatable-buttons3 > thead > tr > th:nth-last-child(5),
#datatable-buttons4 > thead > tr > th:nth-last-child(5),
#datatable-buttons0 > tbody > tr > td:nth-last-child(5),
#datatable-buttons1 > tbody > tr > td:nth-last-child(5),
#datatable-buttons2 > tbody > tr > td:nth-last-child(5),
#datatable-buttons3 > tbody > tr > td:nth-last-child(5),
#datatable-buttons4 > tbody > tr > td:nth-last-child(5),
#datatable-buttons0 > tfoot > tr > td:nth-last-child(5),
#datatable-buttons1 > tfoot > tr > td:nth-last-child(5),
#datatable-buttons2 > tfoot > tr > td:nth-last-child(5),
#datatable-buttons3 > tfoot > tr > td:nth-last-child(5),
#datatable-buttons4 > tfoot > tr > td:nth-last-child(5) {
  z-index: 8;
}

@media (max-width: 1199px) {
  .zra-sales-reports .table > tbody > tr > td {
    padding: 3px 6px !important;
  }

  .zra-sales-adjustment-cell {
    min-width: 132px;
  }

  .zra-sales-adjustment-button {
    min-height: 22px;
    padding: 3px 6px;
  }
}

.zra-sales-summary-left-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.85fr) minmax(380px, 1.15fr);
}

.zra-sales-summary-fields-stack {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.zra-sales-field--conditional {
  grid-column: auto;
}

.zra-sales-exchange-rate-status {
  align-items: flex-start;
  color: #475569;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  font-weight: 600;
  gap: 2px;
  line-height: 1.35;
  margin-top: 5px;
  padding-left: 12px;
  position: relative;
}

.zra-sales-exchange-rate-status::before {
  background: #64748b;
  border-radius: 50%;
  content: '';
  height: 6px;
  left: 0;
  position: absolute;
  top: 4px;
  width: 6px;
}

.zra-sales-exchange-rate-status.is-loading::before {
  animation: zra-sales-exchange-rate-pulse 1s ease-in-out infinite;
  background: #2563eb;
}

.zra-sales-exchange-rate-status.is-ready::before {
  background: #16a34a;
}

.zra-sales-exchange-rate-status.is-error::before {
  background: #dc2626;
}

.zra-sales-exchange-rate-status.is-manual::before {
  background: #d97706;
}

.zra-sales-exchange-rate-status a {
  color: var(--theme-primary);
  font-size: 9px;
  text-decoration: underline;
}

.zra-sales-exchange-rate-status a:hover,
.zra-sales-exchange-rate-status a:focus {
  color: #08236d;
}

.zra-sales-field #ex_rate.is-loading {
  background-image: linear-gradient(90deg, #ffffff, #eff6ff, #ffffff);
  background-size: 200% 100%;
  animation: zra-sales-exchange-rate-loading 1.2s linear infinite;
}

@keyframes zra-sales-exchange-rate-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes zra-sales-exchange-rate-loading {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

.zra-sales-vat-tools {
  align-self: start;
  grid-column: auto;
  position: relative;
}

.zra-sales-unit-vat-popup-wrap {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-start;
  margin-top: 10px;
}

.zra-sales-unit-vat-btn {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.1), rgba(80, 216, 175, 0.2));
  border: 1px solid rgba(12, 46, 138, 0.18);
  border-radius: 8px;
  color: var(--theme-primary);
  display: inline-flex;
  font-size: 12px;
  height: 32px;
  justify-content: center;
  margin-top: 6px;
  padding: 0;
  width: 34px;
}

.zra-sales-unit-vat-btn:hover,
.zra-sales-unit-vat-btn:focus {
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.14), rgba(80, 216, 175, 0.26));
  border-color: rgba(12, 46, 138, 0.3);
  color: var(--theme-primary);
}

.zra-sales-unit-vat-btn--header {
  height: 24px;
  margin: 0 0 0 6px;
  vertical-align: middle;
  width: 26px;
}

.zra-sales-vat-open-btn {
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.1), rgba(80, 216, 175, 0.2));
  border: 1px solid rgba(12, 46, 138, 0.24);
  border-radius: 10px;
  color: var(--theme-primary);
  cursor: pointer;
  display: flex;
  gap: 9px;
  margin-left: auto;
  max-width: 520px;
  min-height: 56px;
  padding: 8px 10px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 100%;
}

.zra-sales-vat-open-btn:hover,
.zra-sales-vat-open-btn:focus {
  background: linear-gradient(135deg, rgba(12, 46, 138, 0.15), rgba(80, 216, 175, 0.28));
  border-color: rgba(12, 46, 138, 0.36);
  box-shadow: 0 12px 24px rgba(12, 46, 138, 0.14);
  color: var(--theme-primary);
  outline: none;
  transform: translateY(-1px);
}

.zra-sales-vat-open-icon {
  align-items: center;
  background: var(--theme-primary);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 16px;
  height: 34px;
  justify-content: center;
}

.zra-sales-vat-open-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.zra-sales-vat-open-btn .zra-sales-vat-open-copy strong,
.zra-sales-vat-open-btn:hover .zra-sales-vat-open-copy strong,
.zra-sales-vat-open-btn:focus .zra-sales-vat-open-copy strong {
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 900;
}

.zra-sales-vat-open-btn .zra-sales-vat-open-copy small,
.zra-sales-vat-open-btn:hover .zra-sales-vat-open-copy small,
.zra-sales-vat-open-btn:focus .zra-sales-vat-open-copy small {
  color: var(--theme-secondary) !important;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.zra-sales-vat-open-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.16);
  border-radius: 8px;
  color: var(--theme-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  gap: 6px;
  padding: 6px 8px;
  white-space: nowrap;
}

.zra-sales-vat-open-btn:hover .zra-sales-vat-open-action,
.zra-sales-vat-open-btn:focus .zra-sales-vat-open-action {
  background: var(--theme-primary);
  color: #ffffff;
}

.zra-sales-vat-popup {
  background: linear-gradient(145deg, #ffffff, #f3f8ff);
  border: 1px solid rgba(12, 46, 138, 0.16);
  border-radius: 12px;
  box-shadow: 0 20px 46px rgba(12, 46, 138, 0.2);
  display: none;
  margin-top: 10px;
  max-width: none;
  padding: 14px;
  width: 100%;
  z-index: 5;
}

.zra-sales-vat-popup.is-open {
  display: block;
}

.zra-sales-vat-popup__header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.zra-sales-vat-popup__header h4 {
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 900;
  margin: 0;
}

.zra-sales-vat-popup__header p {
  color: var(--theme-secondary) !important;
  font-size: 11px;
  margin: 2px 0 0;
}

.zra-sales-vat-popup__header small {
  color: #0c2e8a;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 3px;
}

.zra-sales-vat-popup__close {
  align-items: center;
  background: #eef4ff;
  border: 1px solid rgba(12, 46, 138, 0.16);
  border-radius: 999px;
  color: var(--theme-primary);
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.zra-sales-vat-popup__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zra-sales-vat-field--full {
  grid-column: 1 / -1;
}

.zra-sales-vat-field label {
  color: #334155;
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.zra-sales-vat-results {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.zra-sales-vat-result {
  background: #ffffff;
  border: 1px solid rgba(12, 46, 138, 0.14);
  border-radius: 10px;
  padding: 10px;
}

.zra-sales-vat-result span {
  color: #475569;
  display: block;
  font-size: 11px;
  margin-bottom: 4px;
}

.zra-sales-vat-result strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.zra-sales-vat-result--total {
  background: linear-gradient(135deg, rgba(80, 216, 175, 0.2), rgba(12, 46, 138, 0.1));
  border-color: rgba(80, 216, 175, 0.36);
}

.zra-sales-vat-result--total strong {
  color: var(--theme-primary);
}

.zra-sales-vat-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.zra-sales-total-stack {
  display: grid;
  gap: 12px;
}

.zra-sales-total-field {
  background: #f8fbff;
  border: 1px solid rgba(12, 46, 138, 0.08);
  border-radius: 8px;
  padding: 12px;
}

.zra-sales-total-field--grand {
  background: linear-gradient(135deg, rgba(80, 216, 175, 0.12), rgba(12, 46, 138, 0.08));
  border-color: rgba(80, 216, 175, 0.22);
}

.zra-sales-total-field--grand input {
  color: var(--theme-primary);
  font-size: 18px;
  font-weight: 900;
}

.zra-sales-total-row {
  align-items: end;
  display: flex;
  justify-content: flex-end;
}

.zra-sales-total-row > .col-sm-2 {
  min-width: 240px;
}

.zra-sales-total-row--grand {
  border-color: rgba(80, 216, 175, 0.24);
  box-shadow: 0 14px 30px rgba(80, 216, 175, 0.1);
}

.zra-sales-total-row--grand input {
  color: var(--theme-primary);
  font-size: 18px;
  font-weight: 800;
}

.zra-sales-invoice-actions {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
}

.zra-sales-action-buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.zra-sales-invoice-actions > .col-sm-2 {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: 300px;
}

.zra-sales-invoice-actions br {
  display: none;
}

.zra-sales-invoice-actions .btn {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}

.zra-sales-invoice-actions .btn i {
  font-size: 14px;
}

.zra-sales-invoice-actions .zra-sales-action-issue {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.24);
  color: #ffffff !important;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 15px;
}

.zra-sales-invoice-actions .zra-sales-action-issue:hover,
.zra-sales-invoice-actions .zra-sales-action-issue:focus {
  background: linear-gradient(135deg, #059669, #047857) !important;
  color: #ffffff !important;
}

.zra-sales-invoice-actions .zra-sales-action-close {
  background: #fff1f2;
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 8px;
  color: #be123c;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 15px;
}

.zra-sales-invoice-actions .zra-sales-action-close:hover,
.zra-sales-invoice-actions .zra-sales-action-close:focus {
  background: #ffe4e6;
  border-color: rgba(225, 29, 72, 0.32);
  color: #9f1239;
}

.zra-sales-invoice-modal .modal-footer {
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  display: none;
  min-height: 0;
  padding: 0;
}

@media (max-width: 1199px) {
  .zra-sales-page .right_col.zra-sales-main {
    padding: 18px 14px 30px;
  }

  .zra-sales-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zra-sales-invoice-section,
  .zra-sales-invoice-section--compact,
  .zra-sales-invoice-section--totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zra-sales-invoice-top-grid {
    gap: 14px;
    grid-template-columns: minmax(260px, 1.1fr) minmax(210px, 0.8fr) minmax(230px, 0.85fr);
  }

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

  .zra-sales-vat-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .zra-sales-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .zra-sales-primary-action {
    justify-content: center;
    width: 100%;
  }

  .zra-sales-invoice-modal .modal-dialog {
    margin: 10px auto;
    width: calc(100vw - 20px) !important;
  }

  .zra-sales-invoice-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zra-sales-invoice-summary-grid {
    grid-template-columns: 1fr;
  }

  .zra-sales-invoice-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zra-sales-invoice-card--customer {
    grid-column: 1 / -1;
  }

  .zra-sales-tabs.nav-tabs {
    gap: 10px;
    grid-template-columns: repeat(6, minmax(118px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 6px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .zra-sales-tabs.nav-tabs > li {
    scroll-snap-align: start;
  }

}

@media (max-width: 767px) {
  .zra-sales-page .right_col.zra-sales-main {
    padding: 14px 10px 26px;
  }

  .zra-sales-hero h1 {
    font-size: 24px;
  }

  .zra-sales-period-wrap {
    align-items: stretch;
    flex-direction: column;
  }

  .zra-sales-period-label,
  .zra-sales-clear-button {
    justify-content: center;
    width: 100%;
  }

  .zra-sales-filter-grid,
  .zra-sales-invoice-section,
  .zra-sales-invoice-section--compact,
  .zra-sales-invoice-section--totals,
  .zra-sales-invoice-steps {
    grid-template-columns: 1fr;
  }

  .zra-sales-invoice-top-grid,
  .zra-sales-summary-left-grid {
    grid-template-columns: 1fr;
  }

  .zra-sales-invoice-card--customer {
    grid-column: auto;
  }

  .zra-sales-vat-popup__grid,
  .zra-sales-vat-results {
    grid-template-columns: 1fr;
  }

  .zra-sales-unit-vat-popup-wrap {
    justify-content: stretch;
  }

  .zra-sales-tabs.nav-tabs {
    gap: 9px;
    grid-template-columns: repeat(6, minmax(106px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 4px;
    scrollbar-width: thin;
  }

  .zra-sales-tabs.nav-tabs > li {
    min-width: 0;
  }

  .zra-sales-tabs.nav-tabs > li > a {
    font-size: 12px;
    min-height: 46px;
    padding: 10px 9px;
  }

  .zra-sales-tabs.nav-tabs > li.active > a,
  .zra-sales-tabs.nav-tabs > li.active > a:hover,
  .zra-sales-tabs.nav-tabs > li.active > a:focus {
    min-height: 46px;
    padding: 10px 9px;
  }

  .zra-sales-tabs.nav-tabs > li.active > a::after {
    transform: none;
  }

  .zra-sales-tabs.nav-tabs > li.active > a::before {
    left: 12px;
    right: 12px;
  }

  .zra-sales-page .dataTables_wrapper {
    padding: 12px;
  }

  .zra-sales-page .tab-content .x_title {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }

  .zra-sales-page .tab-content .x_title h2 {
    font-size: 18px;
    width: 100%;
  }

  .zra-sales-page .tab-content .panel_toolbox {
    justify-content: flex-end;
    margin-left: auto !important;
    width: 100%;
  }

  .zra-sales-page .dataTables_wrapper > .row:first-child,
  .zra-sales-page .dataTables_wrapper > .row:last-child {
    align-items: stretch;
    flex-direction: column;
  }

  .zra-sales-page .dataTables_wrapper > .row:first-child > [class*='col-'],
  .zra-sales-page .dataTables_wrapper > .row:last-child > [class*='col-'],
  .zra-sales-page .dataTables_wrapper > .row:first-child > [class*='col-']:last-child,
  .zra-sales-page .dataTables_wrapper > .row:last-child > [class*='col-']:last-child {
    margin-left: 0;
    width: 100%;
  }

  .zra-sales-page .dataTables_length label,
  .zra-sales-page .dataTables_filter label {
    align-items: stretch;
    flex-direction: column;
  }

  .zra-sales-page .dataTables_filter input,
  .zra-sales-page .dataTables_length select {
    margin-left: 0;
    min-width: 0;
    width: 100%;
  }

  .zra-sales-page .dataTables_info,
  .zra-sales-page .dataTables_paginate {
    text-align: left;
  }

  .zra-sales-page .table-responsive {
    border-radius: 8px;
  }

  .zra-sales-page table.table {
    min-width: 980px;
  }

  .zra-sales-adjustment-cell {
    min-width: 145px;
  }

  .zra-sales-adjustment-actions {
    min-width: 136px;
  }

  .zra-sales-adjustment-button,
  .zra-sales-adjustment-chip {
    flex-basis: 64px;
    min-height: 26px;
    padding: 4px 6px;
  }

  .zra-sales-page table.table > thead > tr > th,
  .zra-sales-page table.table > tbody > tr > td,
  .zra-sales-page table.table > tfoot > tr > td {
    font-size: 12px;
    padding: 9px 10px !important;
  }

  .zra-sales-invoice-modal .modal-header {
    padding: 15px;
  }

  .zra-sales-invoice-title .modal-title {
    font-size: 19px;
  }

  .zra-sales-invoice-modal .modal-body {
    max-height: calc(100vh - 124px);
    padding: 12px !important;
  }

  .zra-sales-items-builder > .col-sm-12 {
    min-width: 1040px;
  }

  .zra-sales-total-row,
  .zra-sales-invoice-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .zra-sales-action-buttons {
    justify-content: stretch;
    width: 100%;
  }

  .zra-sales-total-row > .col-sm-2,
  .zra-sales-invoice-actions > .col-sm-2 {
    min-width: 0;
    width: 100% !important;
  }

  .zra-sales-invoice-actions > .col-sm-2 {
    flex-direction: column;
  }

  .zra-sales-invoice-actions input[type='submit'],
  .zra-sales-invoice-actions .btn-default {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .zra-sales-tabs.nav-tabs {
    grid-template-columns: repeat(6, minmax(98px, 1fr));
  }
}

/* Final DataTables width guard: controls stay fixed, only table content scrolls */
body .zra-code-table-wrap,
body .settings-module-table-wrap,
body .table-responsive:has(.dataTables_wrapper) {
  max-width: 100%;
  overflow-x: visible !important;
  width: 100%;
}

body .dataTables_wrapper {
  box-sizing: border-box;
  max-width: 100% !important;
  overflow: visible !important;
  width: 100% !important;
}

body .dataTables_wrapper > .row:first-child,
body .dataTables_wrapper > .row:last-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  min-width: 0;
  overflow: visible !important;
  width: 100% !important;
}

body .dataTables_wrapper > .row:first-child > [class*='col-'],
body .dataTables_wrapper > .row:last-child > [class*='col-'] {
  float: none !important;
  min-width: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: auto;
}

body .dataTables_wrapper > .row:first-child > [class*='col-']:last-child,
body .dataTables_wrapper > .row:last-child > [class*='col-']:last-child {
  margin-left: auto;
}

body .dataTables_wrapper .dataTables_length,
body .dataTables_wrapper .dataTables_filter,
body .dataTables_wrapper .dataTables_info,
body .dataTables_wrapper .dataTables_paginate {
  max-width: 100%;
}

body .dataTables_wrapper .dataTables_filter {
  text-align: right;
}

body .dataTables_wrapper .dataTables_length label,
body .dataTables_wrapper .dataTables_filter label {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
  max-width: 100%;
}

body .dataTables_wrapper .dataTables_length select,
body .dataTables_wrapper .dataTables_filter input {
  box-sizing: border-box;
  margin-left: 0;
  max-width: 100%;
  min-width: 0;
}

body .dataTables_wrapper .dataTables_filter input {
  width: min(320px, 100%);
}

body .dataTables_wrapper > .row:not(:first-child):not(:last-child) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100% !important;
}

body .dataTables_wrapper > .row:not(:first-child):not(:last-child) > [class*='col-'] {
  float: none !important;
  max-width: 100%;
  min-width: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

body .dataTables_scroll,
body .dataTables_scrollHead,
body .dataTables_scrollBody {
  max-width: 100% !important;
  width: 100% !important;
}

body .dataTables_scroll {
  overflow: hidden;
}

body .dataTables_scrollBody {
  overflow-x: auto !important;
  overflow-y: hidden;
}

@media (max-width: 767px) {
  body .dataTables_wrapper > .row:first-child,
  body .dataTables_wrapper > .row:last-child {
    align-items: stretch;
    flex-direction: column;
  }

  body .dataTables_wrapper > .row:first-child > [class*='col-'],
  body .dataTables_wrapper > .row:last-child > [class*='col-'],
  body .dataTables_wrapper > .row:first-child > [class*='col-']:last-child,
  body .dataTables_wrapper > .row:last-child > [class*='col-']:last-child {
    margin-left: 0;
    width: 100%;
  }

  body .dataTables_wrapper .dataTables_length label,
  body .dataTables_wrapper .dataTables_filter label {
    align-items: stretch;
    flex-direction: column;
  }

  body .dataTables_wrapper .dataTables_length select,
  body .dataTables_wrapper .dataTables_filter input {
    width: 100%;
  }

  body .dataTables_wrapper .dataTables_filter,
  body .dataTables_wrapper .dataTables_info,
  body .dataTables_wrapper .dataTables_paginate {
    text-align: left;
  }
}

/* DataTables control bar polish */
body .dataTables_wrapper .dataTables_length,
body .dataTables_wrapper .dataTables_filter {
  float: none !important;
  width: auto !important;
}

body .dataTables_wrapper .dataTables_length label,
body .dataTables_wrapper .dataTables_filter label {
  align-items: center !important;
  display: flex;
  flex-direction: row !important;
  gap: 10px;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

body .dataTables_wrapper .dataTables_length select {
  box-sizing: border-box;
  flex: 0 0 86px;
  margin-left: 0 !important;
  max-width: 100%;
  min-width: 86px !important;
  padding-left: 12px;
  padding-right: 28px;
  width: 86px !important;
}

body .dataTables_wrapper .dataTables_filter input {
  box-sizing: border-box;
  margin-left: 0 !important;
  max-width: 420px;
  min-width: 0 !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  body .dataTables_wrapper > .row:first-child {
    align-items: center !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    justify-content: space-between;
  }

  body .dataTables_wrapper > .row:first-child > [class*='col-'] {
    float: none !important;
    flex: 0 1 auto !important;
    max-width: none !important;
    min-width: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: auto !important;
  }

  body .dataTables_wrapper > .row:first-child > [class*='col-']:has(.dataTables_filter) {
    flex: 1 1 420px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    order: 1;
  }

  body .dataTables_wrapper > .row:first-child > [class*='col-']:has(.dataTables_length) {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    order: 2;
  }

  body .dataTables_wrapper .dataTables_filter {
    max-width: 420px;
    text-align: left !important;
    width: 100% !important;
  }

  body .dataTables_wrapper .dataTables_filter label {
    display: block !important;
  }

  body .dataTables_wrapper .dataTables_length {
    text-align: right !important;
  }

  body .dataTables_wrapper .dataTables_length label {
    justify-content: flex-end;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  body .dataTables_wrapper > .row:first-child {
    align-items: stretch !important;
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap !important;
    justify-content: stretch;
  }

  body .dataTables_wrapper > .row:first-child > [class*='col-'],
  body .dataTables_wrapper > .row:first-child > [class*='col-']:last-child {
    margin-left: 0 !important;
    width: 100% !important;
  }

  body .dataTables_wrapper .dataTables_length,
  body .dataTables_wrapper .dataTables_filter {
    max-width: 100%;
    text-align: left !important;
    width: 100% !important;
  }

  body .dataTables_wrapper .dataTables_length label {
    display: grid;
    grid-template-columns: auto minmax(86px, 110px);
    justify-content: start;
  }

  body .dataTables_wrapper .dataTables_filter label {
    display: block;
  }

  body .dataTables_wrapper .dataTables_filter input {
    max-width: none;
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* ZRA sales receipt page */
body.zra-receipt-page {
  background: #eef2f8;
  color: #1f2937;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

body.zra-receipt-page #background.receipt-sheet {
  background: #ffffff;
  border: 1px solid #d7deea;
  border-radius: 12px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(12, 46, 138, 0.08);
  display: flex;
  flex-direction: column;
  margin: 18px auto;
  max-width: 210mm;
  min-height: 286mm;
  padding: 10mm;
  width: min(210mm, calc(100% - 24px));
}

body.zra-receipt-page #background.receipt-sheet .col-sm-12,
body.zra-receipt-page #background.receipt-sheet .col-sm-8,
body.zra-receipt-page #background.receipt-sheet .col-sm-7,
body.zra-receipt-page #background.receipt-sheet .col-sm-6,
body.zra-receipt-page #background.receipt-sheet .col-sm-5,
body.zra-receipt-page #background.receipt-sheet .col-sm-4,
body.zra-receipt-page #background.receipt-sheet .col-sm-2 {
  box-sizing: border-box;
  padding-left: 8px;
  padding-right: 8px;
}

body.zra-receipt-page #background.receipt-sheet::after,
body.zra-receipt-page .receipt-top-row::after,
body.zra-receipt-page #title::after {
  clear: both;
  content: "";
  display: table;
}

body.zra-receipt-page .receipt-no-break,
body.zra-receipt-page .qr-container,
body.zra-receipt-page #barcodeBlock,
body.zra-receipt-page #qrcode,
body.zra-receipt-page #TAXINVOICE {
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}

body.zra-receipt-page .receipt-barcode-row {
  margin-top: 4px;
  text-align: right;
}

body.zra-receipt-page .receipt-print-header,
body.zra-receipt-page .receipt-print-footer {
  display: none;
}

body.zra-receipt-page .barcode-block {
  background: #f9fbff;
  border: 1px solid #dbe3f2;
  border-radius: 8px;
  float: right;
  height: 56px;
  padding: 2px;
  width: 180px;
}

body.zra-receipt-page .receipt-barcode-img {
  background: #ffffff;
  border: 1px solid #e3e9f5;
  border-radius: 6px;
  height: 100%;
  width: 100%;
}

body.zra-receipt-page .receipt-top-row {
  background: linear-gradient(90deg, #fcfdff 0%, #f5f8ff 58%, #eefaf6 100%);
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  margin-top: 12px;
  padding: 12px;
}

body.zra-receipt-page .receipt-brand-col {
  float: left;
  text-align: left;
}

body.zra-receipt-page .receipt-company-col {
  float: left;
}

body.zra-receipt-page .receipt-right-col {
  float: right;
}

body.zra-receipt-page .receipt-company-logo {
  height: 76px;
  object-fit: contain;
  width: 76px;
}

/* Reduced company header size per request */
body.zra-receipt-page .receipt-company-title {
  color: #123b9a;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

body.zra-receipt-page .receipt-company-subtitle {
  color: #4e6286;
  font-size: 12px;
  font-weight: 700;
}

body.zra-receipt-page .receipt-company-meta {
  color: #5d6f8e;
  font-size: 11px;
  line-height: 1.35;
}

body.zra-receipt-page .receipt-tax-title {
  align-items: center;
  background: linear-gradient(135deg, #103d9f 0%, #1c52b7 55%, #2eb3a0 110%);
  border-radius: 9px;
  color: #ffffff;
  display: flex;
  justify-content: center;
  margin-top: 2px;
  min-height: 50px;
  padding: 8px 10px;
  text-align: center;
  width: 100%;
}

body.zra-receipt-page .receipt-tax-heading {
  font-weight: 800;
  line-height: 1.2;
}

body.zra-receipt-page .receipt-tax-heading-lg,
body.zra-receipt-page .receipt-tax-heading-md,
body.zra-receipt-page .receipt-tax-heading-sm {
  font-size: 20px;
}

body.zra-receipt-page .receipt-customer-col,
body.zra-receipt-page .receipt-invoice-box,
body.zra-receipt-page .receipt-meta-table,
body.zra-receipt-page .receipt-summary-table,
body.zra-receipt-page .receipt-bank-table {
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 9px;
}

body.zra-receipt-page .receipt-customer-col {
  float: left;
  margin-top: 12px;
  padding: 12px 16px;
}

body.zra-receipt-page .receipt-customer-invoice-row {
  align-items: stretch;
  clear: both;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 12px;
}

body.zra-receipt-page .receipt-customer-invoice-row .receipt-customer-col,
body.zra-receipt-page .receipt-customer-invoice-row .receipt-right-col {
  float: none !important;
  margin-top: 0;
  position: static;
}

body.zra-receipt-page .receipt-customer-invoice-row .receipt-invoice-main-col {
  display: flex;
}

body.zra-receipt-page .receipt-customer-invoice-row .receipt-invoice-box {
  height: 100%;
  width: 100%;
}

body.zra-receipt-page .receipt-customer-main-col {
  flex: 0 0 calc(56% - 6px);
  width: calc(56% - 6px);
}

body.zra-receipt-page .receipt-invoice-main-col {
  flex: 0 0 calc(44% - 6px);
  width: calc(44% - 6px);
}

body.zra-receipt-page .receipt-customer-title {
  color: #123b9a;
  font-size: 13px;
  font-weight: 800;
}

body.zra-receipt-page .receipt-customer-name {
  color: #24364f;
  display: block;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.zra-receipt-page .receipt-customer-address {
  color: #5f718f;
  display: block;
  font-size: 10px;
  line-height: 1.3;
}

body.zra-receipt-page .receipt-customer-sub,
body.zra-receipt-page .receipt-customer-meta {
  color: #5f718f;
  font-size: 10px;
}

body.zra-receipt-page .receipt-invoice-box {
  margin-top: 0;
  padding: 12px 16px;
}

body.zra-receipt-page .receipt-invoice-table {
  border-collapse: collapse;
  table-layout: auto;
  width: 100%;
}

body.zra-receipt-page .receipt-invoice-table td {
  padding: 4px 2px;
  vertical-align: top;
}

body.zra-receipt-page .receipt-invoice-table td:first-child {
  padding-right: 12px;
  width: 34%;
}

body.zra-receipt-page .receipt-invoice-table td:last-child {
  overflow: visible;
  padding-right: 2px;
  text-align: right;
  width: 66%;
}

body.zra-receipt-page .receipt-invoice-label {
  color: #123b9a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

body.zra-receipt-page .receipt-invoice-value {
  color: #2f3f5a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

body.zra-receipt-page #title {
  align-items: stretch;
  clear: both;
  display: block !important;
  margin-top: 0;
  overflow-x: visible;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  visibility: visible !important;
}

body.zra-receipt-page #title {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
}

body.zra-receipt-page .receipt-items-wrap {
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-collapse: collapse;
  display: table !important;
  flex: 0 0 100%;
  margin-bottom: 16px;
  margin-top: 6px;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
  visibility: visible !important;
}

body.zra-receipt-page .receipt-item-header-row {
  display: table-row !important;
  height: auto;
  visibility: visible !important;
}

body.zra-receipt-page .receipt-item-head {
  background: #eff4ff;
  border-bottom: 1px solid #d9e3f2;
  color: #123b9a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  padding: 8px 6px;
  text-transform: none;
}

body.zra-receipt-page .receipt-item-head-name,
body.zra-receipt-page .receipt-item-name {
  min-width: 170px;
  width: 19%;
}

body.zra-receipt-page .receipt-item-row {
  color: #30445f;
  display: table-row !important;
  font-size: 11px;
  visibility: visible !important;
}

body.zra-receipt-page .receipt-item-row:nth-child(even) {
  background: #fbfdff;
}

body.zra-receipt-page .receipt-item-index {
  font-weight: 700;
  padding: 6px 4px;
}

body.zra-receipt-page .receipt-item-code {
  font-size: 10px;
  font-weight: 700;
}

body.zra-receipt-page .receipt-item-tax-meta {
  color: #6b7e9c;
  display: inline-block;
  font-size: 9px;
  line-height: 1.1;
  margin-top: 1px;
}

body.zra-receipt-page .receipt-item-total {
  font-weight: 800;
}

body.zra-receipt-page .receipt-items-wrap td,
body.zra-receipt-page .receipt-items-wrap th {
  border-bottom: 1px solid #e4ebf6;
  display: table-cell !important;
  overflow-wrap: anywhere;
  padding: 7px 6px;
  text-align: center;
  vertical-align: top;
  visibility: visible !important;
  word-break: break-word;
}

body.zra-receipt-page .receipt-spacer-cell {
  border: 0;
  padding: 4px 0;
}

body.zra-receipt-page .receipt-meta-table {
  border-collapse: collapse;
  float: none;
  flex: 1 1 0;
  margin-top: 0;
  min-height: 248px;
  padding: 10px 12px;
  width: auto;
}

body.zra-receipt-page .receipt-details-summary-group {
  align-items: stretch;
  display: flex;
  flex: 0 0 100%;
  gap: 12px;
  width: 100%;
}

body.zra-receipt-page .receipt-details-summary-group .receipt-meta-table,
body.zra-receipt-page .receipt-details-summary-group .receipt-summary-table {
  flex: 1 1 0;
}

body.zra-receipt-page .receipt-meta-cell {
  color: #485b78;
  padding: 3px 6px 3px 8px;
  text-align: left;
  width: 50%;
}

body.zra-receipt-page .receipt-label {
  color: #5b6e8d;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

body.zra-receipt-page .receipt-value,
body.zra-receipt-page .receipt-value-regular {
  color: #30445f;
  font-size: 12px;
  text-align: left;
}

body.zra-receipt-page .receipt-value {
  font-weight: 700;
}

body.zra-receipt-page .receipt-letter-spaced {
  letter-spacing: 0.2px;
}

body.zra-receipt-page .receipt-gap-row {
  height: 8px;
}

body.zra-receipt-page .receipt-summary-table {
  border-collapse: collapse;
  float: none;
  flex: 1 1 0;
  margin-left: 0;
  margin-top: 0;
  min-height: 248px;
  padding: 10px 16px 10px 12px;
  width: auto;
}

body.zra-receipt-page .receipt-summary-table > tbody > tr > td,
body.zra-receipt-page .receipt-summary-table > tbody > tr > th {
  padding-top: 3px;
  vertical-align: top;
}

body.zra-receipt-page .receipt-summary-label,
body.zra-receipt-page .receipt-summary-label-lg {
  color: #334766;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px 3px 4px;
  text-align: right;
  vertical-align: top;
}

body.zra-receipt-page .receipt-summary-label-lg {
  font-size: 14px;
}

body.zra-receipt-page .receipt-summary-value-cell,
body.zra-receipt-page .receipt-empty-value {
  padding: 3px 8px 3px 10px;
  text-align: right;
  vertical-align: top;
}

body.zra-receipt-page .receipt-summary-table td,
body.zra-receipt-page .receipt-meta-table td {
  vertical-align: top;
}

body.zra-receipt-page .receipt-summary-value {
  color: #2f425f;
  font-size: 12px;
  font-weight: 700;
}

body.zra-receipt-page .receipt-qr-cell {
  text-align: center;
}

body.zra-receipt-page .receipt-qr-wrap {
  margin: 0;
}

body.zra-receipt-page .qr-container {
  background: #ffffff;
  border: 1px solid #d9e2f0;
  border-radius: 8px;
  display: inline-block;
  margin-top: 6px;
  padding: 8px;
}

body.zra-receipt-page #qrcode img,
body.zra-receipt-page #qrcode canvas {
  display: block;
  margin: 0 auto;
}

body.zra-receipt-page .receipt-powered-by {
  color: #637796;
  font-size: 10px;
  font-weight: 700;
  margin-top: 6px;
}

body.zra-receipt-page .receipt-qr-note {
  color: #5f7292;
  display: block;
  font-size: 8px;
  line-height: 1.2;
  margin-top: 4px;
}

body.zra-receipt-page .receipt-powered-footer {
  border-top: 1px solid #cfd9ea;
  clear: both;
  color: #637796;
  flex: 0 0 100%;
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
  padding: 8px 12px 0;
  text-align: center;
}

body.zra-receipt-page .receipt-empty-label {
  color: #6a7c99;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

body.zra-receipt-page .receipt-bank-table {
  flex: 0 0 100%;
  margin-top: 8px;
  padding: 10px 12px;
  width: 100%;
}

body.zra-receipt-page .receipt-bank-label {
  color: #123b9a;
  font-size: 14px;
  font-weight: 800;
}

body.zra-receipt-page .receipt-bank-value {
  color: #5e708f;
  font-size: 12px;
}

body.zra-receipt-page .receipt-bank-empty {
  color: #7083a0;
  font-size: 13px;
  text-align: right;
}

body.zra-receipt-page .receipt-controls-row {
  float: left;
  margin-top: 18px;
}

body.zra-receipt-page .receipt-btn {
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
}

body.zra-receipt-page .receipt-btn-linkless {
  text-decoration: none;
}

body.zra-receipt-page .receipt-btn + .receipt-btn {
  margin-left: 10px;
}

body.zra-receipt-page .receipt-btn i {
  font-size: 12px;
}

/* Purchase receipts use the sales receipt shell with two additional item columns. */
body.zra-purchase-receipt-page #background.receipt-sheet {
  margin-left: auto !important;
  margin-right: auto !important;
}

body.zra-purchase-receipt-page .receipt-items-wrap {
  font-variant-numeric: tabular-nums;
}

body.zra-purchase-receipt-page .receipt-item-head,
body.zra-purchase-receipt-page .receipt-items-wrap td {
  font-size: 9px;
  line-height: 1.2;
  padding: 6px 3px;
}

body.zra-purchase-receipt-page .receipt-item-head-name,
body.zra-purchase-receipt-page .receipt-item-name {
  min-width: 0;
  width: 15%;
}

body.zra-purchase-receipt-page .receipt-item-code {
  font-size: 8px;
}

body.zra-purchase-receipt-page .purchase-customer-identity {
  align-items: center;
  display: flex;
  gap: 12px;
  min-height: 58px;
}

body.zra-purchase-receipt-page .purchase-customer-logo {
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  flex: 0 0 56px;
  height: 56px;
  object-fit: contain;
  padding: 4px;
  width: 56px;
}

body.zra-purchase-receipt-page .purchase-customer-content {
  min-width: 0;
}

body.zra-purchase-receipt-page .receipt-invoice-time {
  color: #71819b;
  display: block;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.15;
  margin-top: 2px;
}

/* compact mode for long invoices */
body.zra-receipt-page.receipt-compact .receipt-item-head,
body.zra-receipt-page.receipt-compact .receipt-item-row,
body.zra-receipt-page.receipt-compact .receipt-summary-value,
body.zra-receipt-page.receipt-compact .receipt-value,
body.zra-receipt-page.receipt-compact .receipt-value-regular,
body.zra-receipt-page.receipt-compact .receipt-label {
  font-size: 10px !important;
}

body.zra-receipt-page.receipt-compact .receipt-item-head {
  padding: 5px 4px;
}

@media (max-width: 991px) {
  body.zra-receipt-page #background.receipt-sheet {
    margin: 10px;
    min-height: auto;
    padding: 12px;
    width: auto;
  }

  body.zra-receipt-page #title {
    display: block !important;
    gap: 0;
  }

  body.zra-receipt-page .receipt-brand-col,
  body.zra-receipt-page .receipt-company-col,
  body.zra-receipt-page .receipt-right-col,
  body.zra-receipt-page .receipt-customer-col,
  body.zra-receipt-page .receipt-meta-table,
  body.zra-receipt-page .receipt-summary-table {
    float: none;
    margin-left: 0;
    width: 100%;
  }

  body.zra-receipt-page .receipt-customer-invoice-row {
    display: block;
    margin-bottom: 10px;
  }

  body.zra-receipt-page .receipt-customer-main-col,
  body.zra-receipt-page .receipt-invoice-main-col {
    width: 100%;
  }

  body.zra-receipt-page .receipt-company-title {
    font-size: 16px;
  }

  body.zra-receipt-page .receipt-tax-title {
    margin-top: 10px;
    min-height: 44px;
  }

  body.zra-receipt-page .receipt-tax-heading-lg,
  body.zra-receipt-page .receipt-tax-heading-md,
  body.zra-receipt-page .receipt-tax-heading-sm {
    font-size: 18px;
  }

  body.zra-receipt-page .receipt-items-wrap {
    margin-bottom: 8px;
    min-width: 0;
  }

  body.zra-receipt-page .receipt-meta-table,
  body.zra-receipt-page .receipt-summary-table {
    min-height: 0;
  }

  body.zra-receipt-page .receipt-details-summary-group {
    display: block;
  }
}

@page {
  size: A4 portrait;
  margin: 8mm 8mm 16mm;
}

@media print {
  body.zra-receipt-page {
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.zra-receipt-page,
  body.zra-receipt-page * {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.zra-receipt-page #title {
    display: block !important;
  }
  body.zra-receipt-page .receipt-customer-invoice-row {
    align-items: stretch !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  body.zra-receipt-page .receipt-customer-invoice-row .receipt-customer-col,
  body.zra-receipt-page .receipt-customer-invoice-row .receipt-right-col {
    float: none !important;
    margin-top: 0 !important;
    position: static !important;
  }

  body.zra-receipt-page .receipt-customer-invoice-row .receipt-invoice-main-col {
    display: flex !important;
  }

  body.zra-receipt-page .receipt-customer-invoice-row .receipt-invoice-box {
    height: 100% !important;
    width: 100% !important;
  }


  body.zra-receipt-page #background.receipt-sheet {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 !important;
    max-width: 210mm !important;
    min-height: 277mm !important;
    padding: 10mm 10mm 16mm 10mm !important;
    width: 100% !important;
  }

  body.zra-receipt-page .receipt-print-header {
    display: none !important;
    position: static !important;
    right: 8mm !important;
    top: auto !important;
    width: 186px !important;
    z-index: 9999 !important;
  }

  body.zra-receipt-page .receipt-print-header .barcode-block {
    display: block !important;
    float: none !important;
    height: 58px !important;
    margin: 0 !important;
    width: 186px !important;
  }

  body.zra-receipt-page .receipt-print-footer {
    background: #f7faff !important;
    border-top: 1px solid #cfd9ea !important;
    bottom: auto !important;
    color: #4f6284 !important;
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    left: auto !important;
    margin-top: 8mm !important;
    padding-top: 4px !important;
    position: static !important;
    right: auto !important;
    text-align: center !important;
    width: 100% !important;
    z-index: auto !important;
  }

  body.zra-receipt-page #background.receipt-sheet .col-sm-12,
  body.zra-receipt-page #background.receipt-sheet .col-sm-8,
  body.zra-receipt-page #background.receipt-sheet .col-sm-7,
  body.zra-receipt-page #background.receipt-sheet .col-sm-6,
  body.zra-receipt-page #background.receipt-sheet .col-sm-5,
  body.zra-receipt-page #background.receipt-sheet .col-sm-4,
  body.zra-receipt-page #background.receipt-sheet .col-sm-2 {
    box-sizing: border-box !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body.zra-receipt-page #np,
  body.zra-receipt-page #pdfDiv,
  body.zra-receipt-page #pdfDivDownload,
  body.zra-receipt-page button {
    display: none !important;
  }

  body.zra-receipt-page .receipt-brand-col {
    float: left !important;
    width: 16.66666667% !important;
  }

  body.zra-receipt-page .receipt-company-col {
    float: left !important;
    width: 50% !important;
  }

  body.zra-receipt-page .receipt-right-col {
    float: right !important;
    width: 33.33333333% !important;
  }

  body.zra-receipt-page .receipt-customer-col {
    float: left !important;
    width: 66.66666667% !important;
  }

  body.zra-receipt-page .receipt-customer-main-col {
    flex: 0 0 calc(56% - 6px) !important;
    width: calc(56% - 6px) !important;
  }

  body.zra-receipt-page .receipt-invoice-main-col {
    flex: 0 0 calc(44% - 6px) !important;
    width: calc(44% - 6px) !important;
  }

  body.zra-receipt-page .receipt-meta-table,
  body.zra-receipt-page .receipt-summary-table {
    align-self: stretch !important;
    float: none !important;
    flex: 0 0 calc(50% - 6px) !important;
    margin-top: 0 !important;
    min-height: 238px !important;
    padding: 10px 12px !important;
    width: calc(50% - 6px) !important;
  }

  body.zra-receipt-page .receipt-bank-table {
    margin-top: 12px !important;
    padding: 12px !important;
  }

  body.zra-receipt-page .receipt-items-wrap {
    display: table !important;
    flex: 0 0 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.zra-receipt-page .receipt-items-wrap > thead {
    break-after: avoid !important;
    display: table-header-group !important;
    page-break-after: avoid !important;
  }

  body.zra-receipt-page .receipt-items-wrap > tbody {
    display: table-row-group !important;
  }

  body.zra-receipt-page .receipt-item-header-row,
  body.zra-receipt-page .receipt-item-row {
    display: table-row !important;
  }

  body.zra-receipt-page .receipt-item-row {
    break-inside: avoid !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.zra-receipt-page .receipt-item-row > td,
  body.zra-receipt-page .receipt-item-row > th {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.zra-receipt-page .receipt-items-wrap th,
  body.zra-receipt-page .receipt-items-wrap td {
    display: table-cell !important;
    padding: 4px !important;
  }

  body.zra-receipt-page .receipt-top-row,
  body.zra-receipt-page .receipt-tax-title,
  body.zra-receipt-page .receipt-customer-invoice-row,
  body.zra-receipt-page .receipt-details-summary-group,
  body.zra-receipt-page .receipt-bank-table {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.zra-receipt-page .receipt-details-summary-group {
    align-items: stretch !important;
    display: flex !important;
    gap: 12px !important;
  }

  body.zra-receipt-page .receipt-barcode-row {
    display: block !important;
  }

  body.zra-receipt-page .receipt-barcode-row::after {
    clear: both;
    content: '';
    display: table;
  }

  body.zra-receipt-page .receipt-barcode-row .barcode-block {
    float: right !important;
    margin-bottom: 4mm !important;
  }

  body.zra-receipt-page .barcode-block {
    display: block !important;
    float: none !important;
    height: 58px !important;
    margin: 0 !important;
    width: 186px !important;
  }

  body.zra-receipt-page .receipt-top-row {
    clear: both !important;
    margin-top: 4px !important;
  }

  body.zra-receipt-page .receipt-top-row {
    background: linear-gradient(90deg, #fcfdff 0%, #f5f8ff 58%, #eefaf6 100%) !important;
    border: 1px solid #d8e2ef !important;
  }

  body.zra-receipt-page .receipt-tax-title {
    background: linear-gradient(135deg, #103d9f 0%, #1c52b7 55%, #2eb3a0 110%) !important;
    color: #ffffff !important;
  }

  body.zra-receipt-page .receipt-tax-title .receipt-tax-heading,
  body.zra-receipt-page .receipt-tax-title .receipt-tax-heading-lg,
  body.zra-receipt-page .receipt-tax-title .receipt-tax-heading-md,
  body.zra-receipt-page .receipt-tax-title .receipt-tax-heading-sm {
    color: #ffffff !important;
  }

  body.zra-receipt-page .receipt-item-head {
    background: #eff4ff !important;
    color: #123b9a !important;
  }

  body.zra-receipt-page .receipt-item-tax-meta {
    color: #5f7292 !important;
    font-size: 8px !important;
  }

  body.zra-receipt-page .receipt-item-row:nth-child(even) {
    background: #fbfdff !important;
  }

  body.zra-receipt-page .receipt-customer-col,
  body.zra-receipt-page .receipt-invoice-box,
  body.zra-receipt-page .receipt-meta-table,
  body.zra-receipt-page .receipt-summary-table,
  body.zra-receipt-page .receipt-bank-table {
    border: 1px solid #dbe3f0 !important;
    border-radius: 9px !important;
  }

  body.zra-receipt-page .receipt-powered-footer {
    display: none !important;
  }

  body.zra-receipt-page .receipt-qr-note {
    color: #5f7292 !important;
    font-size: 8px !important;
    margin-top: 3px !important;
  }

  body.zra-receipt-page .receipt-item-head,
  body.zra-receipt-page .receipt-item-row,
  body.zra-receipt-page .receipt-summary-value,
  body.zra-receipt-page .receipt-value,
  body.zra-receipt-page .receipt-value-regular,
  body.zra-receipt-page .receipt-label {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  body.zra-receipt-page .receipt-item-head {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  body.zra-receipt-page .receipt-tax-title {
    min-height: 42px !important;
    padding: 6px 8px !important;
  }

  body.zra-receipt-page .receipt-tax-heading-lg,
  body.zra-receipt-page .receipt-tax-heading-md,
  body.zra-receipt-page .receipt-tax-heading-sm {
    font-size: 18px !important;
    line-height: 1.15 !important;
  }

  body.zra-receipt-page .receipt-invoice-label {
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  body.zra-receipt-page .receipt-invoice-value {
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  body.zra-receipt-page .receipt-powered-footer {
    border-top: 1px solid #cfd9ea !important;
    clear: both !important;
    font-size: 10px !important;
    margin-top: 8px !important;
    padding: 6px 8px 0 !important;
    text-align: center !important;
  }

  body.zra-receipt-page a[href]::after {
    content: none !important;
  }
}
