/*
 * Ubuzima+ Sales Register Canonical UI R1.1
 *
 * Single canonical Sales Register presentation owner.
 *
 * No business-data or workflow authority is implemented here.
 */


body.aquila-sales-register-r1-3-active {
  --sr-text: #0b1736;
  --sr-heading: #071633;
  --sr-muted: #566986;
  --sr-blue: #1554cf;
  --sr-border: #dbe4f0;
  --sr-border-soft: #e7edf5;
  --sr-soft: #f7f9fc;
}


/* ============================================================
   PAGE
   ============================================================ */

body.aquila-sales-register-r1-3-active
.aquila-sales-register-r1-3 {
  width: 100% !important;
  min-width: 0 !important;
  color: var(--sr-text) !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-breadcrumb {
  margin: 0 0 16px !important;
  color: #4b5f7e !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-breadcrumb a,

body.aquila-sales-register-r1-3-active
.aquila-sales-register-breadcrumb span,

body.aquila-sales-register-r1-3-active
.aquila-sales-register-breadcrumb li {
  color: inherit !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-back {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #1753c5 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}


/* ============================================================
   HERO
   ============================================================ */

body.aquila-sales-register-r1-3-active
.aquila-sales-register-hero {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 72px !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-hero[
  data-aquila-sales-register-has-icon="no"
]::before {
  content: "";
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 1px solid #cbdcff;
  border-radius: 10px;
  background-color: #f4f7ff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 27px 27px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b55c9' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='8' width='16' height='11' rx='2'/%3E%3Cpath d='M7 8V4h7l3 4'/%3E%3Cpath d='M8 12h3M8 15h8M15 11h2v3h-2z'/%3E%3C/svg%3E");
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-title {
  margin: 0 !important;
  color: var(--sr-heading) !important;
  font-size: 27px !important;
  font-weight: 750 !important;
  letter-spacing: -.035em !important;
  line-height: 1.05 !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-hero p {
  margin: 7px 0 0 !important;
  color: var(--sr-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}


/* ============================================================
   ACTIONS
   ============================================================ */

body.aquila-sales-register-r1-3-active
.aquila-sales-register-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin-left: auto !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 126px !important;
  height: 44px !important;
  padding: 0 16px !important;
  border: 1px solid #d5dfed !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #17396f !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-action[
  data-aquila-sales-register-action="refresh"
] {
  background: #eef4ff !important;
  color: #184eaf !important;
}


/* ============================================================
   FILTERS — CANONICAL 4 × 2
   ============================================================ */

body.aquila-sales-register-r1-3-active
.aquila-sales-register-filters {
  display: grid !important;
  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    ) !important;
  gap: 18px 28px !important;
  align-items: end !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 14px !important;
  padding: 20px !important;
  border: 1px solid var(--sr-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-grid-item {
  min-width: 0 !important;
  order:
    var(
      --aquila-sales-filter-order,
      0
    ) !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-grid-item[
  data-aquila-sales-filter-order="1"
],
body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-field[
  data-aquila-sales-filter-order="1"
] {
  --aquila-sales-filter-order: 1;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-grid-item[
  data-aquila-sales-filter-order="2"
],
body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-field[
  data-aquila-sales-filter-order="2"
] {
  --aquila-sales-filter-order: 2;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-grid-item[
  data-aquila-sales-filter-order="3"
],
body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-field[
  data-aquila-sales-filter-order="3"
] {
  --aquila-sales-filter-order: 3;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-grid-item[
  data-aquila-sales-filter-order="4"
],
body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-field[
  data-aquila-sales-filter-order="4"
] {
  --aquila-sales-filter-order: 4;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-grid-item[
  data-aquila-sales-filter-order="5"
],
body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-field[
  data-aquila-sales-filter-order="5"
] {
  --aquila-sales-filter-order: 5;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-grid-item[
  data-aquila-sales-filter-order="6"
],
body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-field[
  data-aquila-sales-filter-order="6"
] {
  --aquila-sales-filter-order: 6;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-grid-item[
  data-aquila-sales-filter-order="7"
],
body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-field[
  data-aquila-sales-filter-order="7"
] {
  --aquila-sales-filter-order: 7;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-grid-item[
  data-aquila-sales-filter-order="8"
],
body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-field[
  data-aquila-sales-filter-order="8"
] {
  --aquila-sales-filter-order: 8;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-field {
  display: grid !important;
  gap: 7px !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #12264b !important;
  font-size: 11px !important;
  font-weight: 650 !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-field input,

body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-field select {
  width: 100% !important;
  height: 39px !important;
  min-height: 39px !important;
  padding: 0 12px !important;
  border: 1px solid #ccd8e8 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #344967 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-status {
  grid-column: 1 / -1 !important;
  margin: -2px 0 0 !important;
  color: #334766 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}


/* ============================================================
   REGISTER CARDS
   ============================================================ */

body.aquila-sales-register-r1-3-active
.aquila-sales-register-section {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 12px !important;
  padding: 16px 18px 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 1px solid var(--sr-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-section h2,

body.aquila-sales-register-r1-3-active
.aquila-sales-register-section h3,

body.aquila-sales-register-r1-3-active
.aquila-sales-register-section h4 {
  margin: 3px 0 5px !important;
  color: #0b1938 !important;
  font-size: 18px !important;
  font-weight: 720 !important;
  letter-spacing: -.025em !important;
  line-height: 1.15 !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-section > p,

body.aquila-sales-register-r1-3-active
.aquila-sales-register-section header p {
  margin: 0 0 11px !important;
  color: #5c6e88 !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}


/* ============================================================
   REMOVE UNUSED SN COLUMN
   ============================================================ */

body.aquila-sales-register-r1-3-active
.aquila-sales-register-sn-column {
  display: none !important;
}


/* ============================================================
   CANONICAL TABLE CONTRACT
   ============================================================ */

body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table {
  width: 100% !important;
  min-width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: auto !important;
  border: 1px solid #dbe4ef !important;
  border-radius: 7px !important;
  background: #fff !important;
  font-variant-numeric: tabular-nums !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table th {
  height: 33px !important;
  padding: 7px 8px !important;
  overflow: hidden !important;
  border-right: 1px solid #e0e7f1 !important;
  border-bottom: 1px solid #dce4ef !important;
  background: #f6f8fc !important;
  color: #213758 !important;
  font-size: 9px !important;
  font-weight: 750 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table th:last-child {
  border-right: 0 !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table td {
  height: 39px !important;
  max-width: 0 !important;
  padding: 8px 8px !important;
  overflow: hidden !important;
  border-bottom: 1px solid #edf1f6 !important;
  color: #344966 !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table
tbody tr:last-child td {
  border-bottom: 0 !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table
tbody tr:hover td {
  background: #fafcff !important;
}


/*
 * Genuine empty states remain full-width and centered.
 *
 * No fake rows are introduced.
 */

body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table
tbody tr:only-child td[colspan] {
  height: 98px !important;
  max-width: none !important;
  padding: 22px !important;
  overflow: visible !important;
  color: #61708a !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  text-align: center !important;
  text-overflow: clip !important;
  vertical-align: middle !important;
  white-space: normal !important;
}


/* ============================================================
   RETURN / REFUND TABLES
   ============================================================ */

body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table[
  data-aquila-canonical-table="returns"
] {
  min-width: 920px !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table[
  data-aquila-canonical-table="refunds"
] {
  min-width: 900px !important;
}


/* ============================================================
   CARD HEIGHT STABILITY
   ============================================================ */

body.aquila-sales-register-r1-3-active
.aquila-sales-register-section[
  data-aquila-sales-register-section="transactions"
] {
  min-height: 220px !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-section[
  data-aquila-sales-register-section="returns"
] {
  min-height: 198px !important;
}


body.aquila-sales-register-r1-3-active
.aquila-sales-register-section[
  data-aquila-sales-register-section="refunds"
] {
  min-height: 198px !important;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1280px) {

  body.aquila-sales-register-r1-3-active
  .aquila-sales-register-actions {
    flex-wrap: wrap !important;
  }


  body.aquila-sales-register-r1-3-active
  .aquila-sales-register-filters {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;
  }
}


@media (max-width: 768px) {

  body.aquila-sales-register-r1-3-active
  .aquila-sales-register-hero {
    align-items: flex-start !important;
    flex-direction: column !important;
  }


  body.aquila-sales-register-r1-3-active
  .aquila-sales-register-actions {
    width: 100% !important;
    justify-content: flex-start !important;
  }


  body.aquila-sales-register-r1-3-active
  .aquila-sales-register-action {
    flex: 1 1 140px !important;
  }


  body.aquila-sales-register-r1-3-active
  .aquila-sales-register-filters {
    grid-template-columns:
      1fr !important;
    gap: 12px !important;
    padding: 14px !important;
  }


  body.aquila-sales-register-r1-3-active
  .aquila-sales-register-section {
    overflow-x: auto !important;
  }
}


@media (max-width: 430px) {

  body.aquila-sales-register-r1-3-active
  .aquila-sales-register-title {
    font-size: 23px !important;
  }


  body.aquila-sales-register-r1-3-active
  .aquila-sales-register-action {
    width: 100% !important;
    flex-basis: 100% !important;
  }
}
/* ============================================================
   SALES REGISTER CANONICAL R1.2.2
   ============================================================ */


/* Unwanted platform shell */

html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-platform-shell-r1-2-2,

html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-exit-main-r1-2-2 {
  display: none !important;
}


/* Keep Back */

html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-back {
  display: inline-flex !important;
}


/* Stable table viewport */

html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-section {
  width: 100% !important;

  max-width: 100% !important;

  min-width: 0 !important;

  overflow-x: auto !important;

  overflow-y: visible !important;

  overscroll-behavior-x: contain !important;

  scrollbar-gutter: stable both-edges !important;

  -webkit-overflow-scrolling: touch !important;
}


/* Canonical semantic table */

html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table[
  data-aquila-canonical-table
] {
  width: max-content !important;

  min-width: 100% !important;

  max-width: none !important;

  table-layout: auto !important;

  border-collapse: separate !important;

  border-spacing: 0 !important;

  font-variant-numeric: tabular-nums !important;
}


/* Generic semantic cells */

html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table[
  data-aquila-canonical-table
]
th.aquila-sales-col,

html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table[
  data-aquila-canonical-table
]
td.aquila-sales-col {
  width: auto !important;

  min-width: 110px !important;

  max-width: none !important;

  box-sizing: border-box !important;

  overflow: visible !important;

  text-overflow: clip !important;

  white-space: nowrap !important;
}


/* SN */

html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-sn-column {
  display: none !important;

  width: 0 !important;

  min-width: 0 !important;

  max-width: 0 !important;

  padding: 0 !important;

  border: 0 !important;
}


/* Transaction timestamp */

html
body.aquila-sales-register-r1-3-active
.aquila-col-transaction-timestamp {
  min-width: 170px !important;
}


/* Business date */

html
body.aquila-sales-register-r1-3-active
.aquila-col-business-date {
  min-width: 125px !important;
}


/* Sale number */

html
body.aquila-sales-register-r1-3-active
.aquila-col-sale-number {
  min-width: 165px !important;
}


/* Customer reference */

html
body.aquila-sales-register-r1-3-active
.aquila-col-customer {
  min-width: 145px !important;
}


/* Customer Name */

html
body.aquila-sales-register-r1-3-active
.aquila-col-customer-name {
  min-width: 190px !important;
}


/* Phone/TIN */

html
body.aquila-sales-register-r1-3-active
.aquila-col-phone-tin {
  min-width: 155px !important;
}


/* Products */

html
body.aquila-sales-register-r1-3-active
th.aquila-col-products {
  min-width: 250px !important;
}


html
body.aquila-sales-register-r1-3-active
td.aquila-col-products {
  width: 300px !important;

  min-width: 250px !important;

  max-width: 380px !important;

  white-space: normal !important;

  overflow-wrap: anywhere !important;
}


/* Classification */

html
body.aquila-sales-register-r1-3-active
.aquila-col-sale-type,

html
body.aquila-sales-register-r1-3-active
.aquila-col-payment,

html
body.aquila-sales-register-r1-3-active
.aquila-col-status {
  min-width: 115px !important;
}


/* Item count */

html
body.aquila-sales-register-r1-3-active
.aquila-col-items {
  width: 80px !important;

  min-width: 80px !important;

  text-align: center !important;
}


/* Money */

html
body.aquila-sales-register-r1-3-active
.aquila-col-total,

html
body.aquila-sales-register-r1-3-active
.aquila-col-balance,

html
body.aquila-sales-register-r1-3-active
.aquila-col-requested,

html
body.aquila-sales-register-r1-3-active
.aquila-col-approved,

html
body.aquila-sales-register-r1-3-active
.aquila-col-requested-refund {
  min-width: 120px !important;

  text-align: right !important;

  font-variant-numeric: tabular-nums !important;
}


/* Returns / refunds */

html
body.aquila-sales-register-r1-3-active
.aquila-col-return-number,

html
body.aquila-sales-register-r1-3-active
.aquila-col-credit-note {
  min-width: 150px !important;
}


html
body.aquila-sales-register-r1-3-active
.aquila-col-refund-method,

html
body.aquila-sales-register-r1-3-active
.aquila-col-preferred-method,

html
body.aquila-sales-register-r1-3-active
.aquila-col-permission {
  min-width: 140px !important;
}


html
body.aquila-sales-register-r1-3-active
.aquila-col-requested-at,

html
body.aquila-sales-register-r1-3-active
.aquila-col-approved-at {
  min-width: 150px !important;
}


html
body.aquila-sales-register-r1-3-active
td.aquila-col-reason {
  width: 235px !important;

  min-width: 190px !important;

  max-width: 280px !important;

  white-space: normal !important;

  overflow-wrap: anywhere !important;
}


/* Actions */

html
body.aquila-sales-register-r1-3-active
.aquila-col-actions {
  min-width: 145px !important;

  overflow: visible !important;

  white-space: nowrap !important;
}


/* Empty-state rows */

html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-empty-state {
  width: auto !important;

  min-width: 100% !important;

  max-width: none !important;

  padding: 24px !important;

  overflow: visible !important;

  text-align: center !important;

  white-space: normal !important;
}


/* Natural table minimums */

html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table[
  data-aquila-canonical-table="transactions"
] {
  min-width: 1480px !important;
}


html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table[
  data-aquila-canonical-table="returns"
] {
  min-width: 1040px !important;
}


html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-canonical-table[
  data-aquila-canonical-table="refunds"
] {
  min-width: 1040px !important;
}


@media print {

  html
  body.aquila-sales-register-r1-3-active
  .aquila-sales-register-canonical-table[
    data-aquila-canonical-table
  ] {
    width: 100% !important;

    min-width: 0 !important;
  }
}

/* ============================================================
   UBuzima+ SALES REGISTER CANONICAL R1.3
   FINAL FIT-TO-SPACE AUTHORITY
   ============================================================ */


/* ------------------------------------------------------------
   EXACT MODULE NAVIGATION CLEANUP

   Native structure:
     .module-page-navigation-exit
     .module-page-navigation-context
     .module-page-navigation-actions
       > dashboard button
       > .module-page-navigation-back

   Back is deliberately preserved.
   ------------------------------------------------------------ */


html
body.aquila-sales-register-r1-3-active
.module-page-navigation
.module-page-navigation-exit {
  display: none !important;
}


html
body.aquila-sales-register-r1-3-active
.module-page-navigation
.module-page-navigation-context {
  display: none !important;
}


html
body.aquila-sales-register-r1-3-active
.module-page-navigation
.module-page-navigation-actions
> button:not(.module-page-navigation-back) {
  display: none !important;
}


html
body.aquila-sales-register-r1-3-active
.module-page-navigation
.module-page-navigation-back {
  display: inline-flex !important;
}


html
body.aquila-sales-register-r1-3-active
.module-page-navigation {
  display: flex !important;

  align-items: center !important;

  justify-content: flex-start !important;

  min-height: 0 !important;

  gap: 0 !important;

  padding-top: 0 !important;

  padding-bottom: 0 !important;
}


html
body.aquila-sales-register-r1-3-active
.module-page-navigation-actions {
  display: flex !important;

  align-items: center !important;

  justify-content: flex-start !important;

  width: auto !important;

  margin: 0 !important;

  gap: 0 !important;
}


/* ------------------------------------------------------------
   TABLE CONTAINER

   R1.2.2 ERROR:
     width:max-content
     min-width:1480px
     horizontal scroll

   R1.3:
     fit the actual card/container.
   ------------------------------------------------------------ */


html
body.aquila-sales-register-r1-3-active
.managed-sales-table-card,

html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-r1-3-card {
  width: 100% !important;

  max-width: 100% !important;

  min-width: 0 !important;

  box-sizing: border-box !important;
}


html
body.aquila-sales-register-r1-3-active
.managed-sales-table-wrap,

html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-r1-3-wrap {
  width: 100% !important;

  max-width: 100% !important;

  min-width: 0 !important;

  overflow-x: hidden !important;

  overflow-y: visible !important;

  scrollbar-gutter: auto !important;

  box-sizing: border-box !important;
}


/* ------------------------------------------------------------
   CANONICAL TABLE

   IMPORTANT:
   No minimum pixel width on desktop.
   No max-content.
   ------------------------------------------------------------ */


html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table,

html
body.aquila-sales-register-r1-3-active
table.managed-sales-table.aquila-sales-register-r1-3-table {
  width: 100% !important;

  min-width: 0 !important;

  max-width: 100% !important;

  table-layout: fixed !important;

  border-collapse: separate !important;

  border-spacing: 0 !important;

  box-sizing: border-box !important;

  font-variant-numeric: tabular-nums !important;
}


/* ------------------------------------------------------------
   SEMANTIC COLUMN WIDTHS

   JS normalizes the actual headers to exactly 100%.
   ------------------------------------------------------------ */


html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
th.aquila-sales-register-r1-3-cell,

html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
td.aquila-sales-register-r1-3-cell {
  width:
    var(
      --aquila-sales-col-width,
      auto
    ) !important;

  min-width: 0 !important;

  max-width: none !important;

  box-sizing: border-box !important;

  padding: 6px 5px !important;

  overflow: hidden !important;

  text-overflow: ellipsis !important;

  white-space: nowrap !important;

  vertical-align: middle !important;

  line-height: 1.22 !important;
}


/* Requested compact business-table typography */

html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
th {
  font-size: 9.5px !important;

  font-weight: 700 !important;

  letter-spacing: 0 !important;
}


html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
td {
  font-size: 9.5px !important;
}


/* SN — presentation removal only */

html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
.aquila-sales-register-r1-3-sn {
  display: none !important;

  width: 0 !important;

  min-width: 0 !important;

  max-width: 0 !important;

  padding: 0 !important;

  border: 0 !important;
}


/* ------------------------------------------------------------
   COLUMNS THAT BENEFIT FROM CONTROLLED WRAPPING
   ------------------------------------------------------------ */


html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
td.aquila-sales-col-customer-name,

html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
td.aquila-sales-col-products,

html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
td.aquila-sales-col-reason {
  white-space: normal !important;

  overflow-wrap: anywhere !important;

  word-break: normal !important;

  line-height: 1.18 !important;
}


/* Numeric columns */

html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
.aquila-sales-col-total,

html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
.aquila-sales-col-paid,

html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
.aquila-sales-col-balance,

html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
.aquila-sales-col-requested,

html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
.aquila-sales-col-approved,

html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
.aquila-sales-col-requested-refund {
  text-align: right !important;

  font-variant-numeric: tabular-nums !important;
}


/* Items */

html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
.aquila-sales-col-items {
  text-align: center !important;
}


/* ------------------------------------------------------------
   ACTION COLUMN

   Do not reserve 200–250px.
   Buttons compact into the allocated semantic percentage.
   ------------------------------------------------------------ */


html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
.managed-sales-row-actions {
  display: grid !important;

  grid-template-columns: 1fr !important;

  gap: 3px !important;

  width: 100% !important;

  min-width: 0 !important;
}


html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
.managed-sales-row-actions
button {
  width: 100% !important;

  min-width: 0 !important;

  max-width: 100% !important;

  min-height: 24px !important;

  height: auto !important;

  padding: 4px 3px !important;

  font-size: 8.5px !important;

  line-height: 1.1 !important;

  white-space: normal !important;

  overflow-wrap: anywhere !important;
}


/* ------------------------------------------------------------
   EMPTY STATE
   ------------------------------------------------------------ */


html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
.aquila-sales-register-r1-3-empty {
  width: auto !important;

  min-width: 0 !important;

  max-width: none !important;

  padding: 20px !important;

  text-align: center !important;

  white-space: normal !important;

  overflow: visible !important;

  text-overflow: clip !important;
}


/* ------------------------------------------------------------
   FILTER / ACTION TYPOGRAPHY
   Keep page controls compact without altering their behavior.
   ------------------------------------------------------------ */


html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-field,

html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-field
input,

html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-filter-field
select {
  font-size: 9.5px !important;
}


html
body.aquila-sales-register-r1-3-active
.aquila-sales-register-action {
  font-size: 9.5px !important;
}


/* ------------------------------------------------------------
   TABLE HEADER / BODY ALIGNMENT
   ------------------------------------------------------------ */


html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
thead,

html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
tbody,

html
body.aquila-sales-register-r1-3-active
table.aquila-sales-register-r1-3-table
tr {
  width: 100% !important;
}


/* ------------------------------------------------------------
   PRINT
   ------------------------------------------------------------ */


@media print {

  html
  body.aquila-sales-register-r1-3-active
  table.aquila-sales-register-r1-3-table {
    width: 100% !important;

    min-width: 0 !important;

    max-width: 100% !important;

    table-layout: fixed !important;
  }
}


/* ------------------------------------------------------------
   SMALL VIEWPORT

   Still keep the table inside the provided space rather than
   reintroducing the previous forced desktop minimum.
   ------------------------------------------------------------ */


@media (max-width: 720px) {

  html
  body.aquila-sales-register-r1-3-active
  .managed-sales-table-wrap {
    width: 100% !important;

    max-width: 100% !important;

    min-width: 0 !important;

    overflow-x: hidden !important;
  }


  html
  body.aquila-sales-register-r1-3-active
  table.aquila-sales-register-r1-3-table {
    width: 100% !important;

    min-width: 0 !important;

    max-width: 100% !important;
  }


  html
  body.aquila-sales-register-r1-3-active
  table.aquila-sales-register-r1-3-table
  th,

  html
  body.aquila-sales-register-r1-3-active
  table.aquila-sales-register-r1-3-table
  td {
    padding-left: 3px !important;

    padding-right: 3px !important;
  }
}
