* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  background: #f5f7f9;
  color: #18212f;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  margin: 0;
}

input,
select,
textarea,
table {
  font-size: 16px;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #dde4ec;
  display: flex;
  gap: 10px;
  min-height: 46px;
  padding: 6px 5%;
  width: 100%;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 26px;
  object-fit: contain;
  width: 26px;
}

.header-menu {
  position: relative;
}

.header-menu-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid transparent;
  color: #0f3d5e;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.header-menu-button:hover,
.header-menu.open .header-menu-button,
.header-menu:focus-within .header-menu-button {
  background: #edf5ff;
  border-color: #c8d9eb;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  background: #0f3d5e;
  content: "";
  display: block;
  height: 2px;
  width: 20px;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  left: 0;
  position: absolute;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

.header-menu-list {
  background: #ffffff;
  border: 1px solid #c8d9eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
  display: none;
  min-width: 230px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
}

.header-menu.open .header-menu-list,
.header-menu:focus-within .header-menu-list {
  display: grid;
}

.header-menu-level {
  display: none;
}

.header-menu-level.is-active {
  display: grid;
}

.header-menu-list a,
.header-menu-list button {
  background: transparent;
  border: 0;
  color: #0f172a;
  cursor: pointer;
  display: block;
  font: inherit;
  padding: 10px 12px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.header-menu-list a.active,
.header-menu-list a:hover,
.header-menu-list button:hover {
  background: #edf5ff;
  color: #0f172a;
}

.header-menu-parent::after {
  content: ">";
  float: right;
  font-weight: 900;
}

.header-menu-back {
  color: #64748b !important;
  font-weight: 900 !important;
}

.user-chip {
  align-items: flex-end;
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  line-height: 1;
  margin-left: auto;
  min-width: 0;
}

.user-chip span {
  color: #526074;
  font-size: .76rem;
  font-weight: 850;
  max-width: 260px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip small {
  color: #17674f;
  font-size: .66rem;
  font-weight: 850;
  margin-top: 1px;
  text-align: right;
  white-space: nowrap;
}

.header-menu-list a.logout-link {
  border-top: 1px solid #c8d9eb;
  color: #b42318;
  margin-top: 6px;
}

.header-menu-list a.logout-link:hover {
  background: #fff1f1;
  color: #991b1b;
}

.shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 20px 24px 42px;
}

.invoice-detail-shell {
  max-width: none;
  padding: 0;
  width: 100%;
}

@media (min-width: 1000px) {
  .shell {
    max-width: 90%;
  }

  .invoice-detail-shell {
    max-width: none;
  }

  .page-product .shell {
    max-width: none;
    padding: 8px 5%;
  }
}

.dashboard-header,
.page-heading {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin-bottom: 18px;
  padding: 28px;
}

.page-heading {
  align-items: center;
  column-gap: 16px;
  display: grid;
  row-gap: 0;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  margin-bottom: 8px;
  padding: 8px 12px;
}

.eyebrow,
.section-title span,
.kpi-grid span,
.status-label {
  color: #687589;
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0 0 16px;
}

.lead,
.page-heading p {
  color: #526074;
  line-height: 1.35;
  max-width: 760px;
}

.page-heading .eyebrow {
  font-size: .68rem;
  grid-column: 1;
  margin-bottom: 2px;
}

.page-heading h1 {
  font-size: clamp(1.08rem, 1.5vw, 1.45rem);
  grid-column: 1;
  line-height: 1.05;
  margin-bottom: 3px;
}

.page-heading p {
  font-size: .85rem;
  margin: 0;
}

.page-heading p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-panel,
.next-steps {
  background: #102236;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.status-panel strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.status-panel span:last-child {
  color: #cbd8e7;
}

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

.kpi-grid article,
.module-grid article {
  background: #ffffff;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  padding: 18px;
}

.kpi-grid strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.kpi-grid small,
.module-grid p,
.timeline p,
.next-steps li {
  color: #5b687b;
  line-height: 1.5;
}

.workbench {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin-top: 18px;
}

.database-panel {
  background: #ffffff;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  margin-top: 18px;
  padding: 18px;
}

.database-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.database-grid article {
  background: #f5f7f9;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  padding: 16px;
}

.database-grid span {
  color: #687589;
  display: block;
  font-size: .82rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.database-grid strong {
  display: block;
  font-size: 1.6rem;
}

.panel-note {
  color: #526074;
  line-height: 1.6;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #dde4ec;
  padding: 12px 10px;
  text-align: left;
}

th {
  color: #526074;
  font-size: .82rem;
  text-transform: uppercase;
}

.section-title {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title strong {
  color: #223047;
}

.module-icon {
  align-items: center;
  background: #e8f1ee;
  border-radius: 6px;
  color: #17674f;
  display: inline-flex;
  font-size: .8rem;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  margin-bottom: 14px;
  width: 46px;
}

.module-grid h2,
.timeline h2 {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.module-link {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  color: #18212f;
  display: grid;
  gap: 12px;
  justify-items: center;
  min-height: 150px;
  padding: 18px;
  text-align: center;
  text-decoration: none;
}

button.module-link {
  cursor: pointer;
  font: inherit;
}

.module-submenu-page[hidden],
.module-grid[hidden] {
  display: none;
}

.module-parent-link .module-icon,
.module-back-link .module-icon {
  background: #eef3f8;
}

.module-link:hover {
  border-color: #bdd5cc;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}

.module-link img {
  height: 58px;
  object-fit: contain;
  width: 58px;
}

.module-link span {
  font-weight: 850;
}

.module-link small {
  color: #5b687b;
  line-height: 1.4;
}

.malewa-menu {
  display: grid;
  gap: 18px;
}

.module-category {
  background: #ffffff;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  padding: 18px;
}

.module-category > p {
  color: #526074;
  line-height: 1.5;
  margin: 0 0 14px;
}

.module-title-with-logo {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.module-title-with-logo img {
  height: 20px;
  object-fit: contain;
  width: 20px;
}

.diary-menu-grid {
  margin-bottom: 18px;
}

.product-workspace {
  display: grid;
  gap: 14px;
}

.legacy-tabs {
  align-items: flex-end;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
}

.legacy-tabs a {
  background: #e8edf4;
  border: 1px solid #bfcbd9;
  border-bottom-color: #8fa0b3;
  border-radius: 6px 6px 0 0;
  color: #334155;
  font-size: .88rem;
  font-weight: 850;
  padding: 10px 14px;
  text-decoration: none;
}

.legacy-tabs a.active {
  background: #ffffff;
  border-bottom-color: #ffffff;
  color: #17674f;
}

.product-kpi {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-filter {
  justify-content: space-between;
}

.product-form-panel {
  margin-top: 12px;
}

.action-modal {
  align-items: center;
  background: rgba(15, 23, 42, .48);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 80;
}

.action-modal.is-open {
  display: flex;
}

.action-modal-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  max-height: 90vh;
  max-width: min(92vw, 760px);
  overflow: auto;
  width: min(92vw, 760px);
}

.action-modal-card.wide {
  max-width: min(96vw, 1080px);
  width: min(96vw, 1080px);
}

.quick-current-carts-modal .action-modal-card.wide {
  max-width: min(96vw, 900px);
  width: min(96vw, 900px);
}

.payment-form-card {
  max-width: min(94vw, 500px);
  width: min(94vw, 500px);
}

.payment-form-card-locked {
  max-width: min(94vw, 500px);
  width: min(94vw, 500px);
}

.payment-locked-field {
  display: none !important;
}

.payment-entry-form {
  padding: 12px;
}

.payment-entry-form .form-grid {
  gap: 9px 11px;
}

.payment-entry-form label {
  font-size: .86rem;
  gap: 4px;
}

.payment-entry-form input,
.payment-entry-form select {
  min-height: 30px;
  padding: 5px 7px;
}

.payment-malewa-form {
  background: #f7f9fb;
}

.payment-malewa-grid {
  display: grid;
  gap: 8px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.payment-malewa-grid label {
  color: #334155;
  display: grid;
  font-size: .86rem;
  font-weight: 850;
  gap: 4px;
}

.payment-malewa-grid input,
.payment-malewa-grid select {
  border: 1px solid #b9c5d3;
  border-radius: 4px;
  font: inherit;
  min-height: 30px;
  padding: 5px 7px;
  width: 100%;
}

.payment-line-wide,
.payment-final-balance {
  grid-column: 1 / -1;
}

.payment-balance-chip {
  align-self: end;
  background: #eef5fb;
  border: 1px solid #c8d9eb;
  border-radius: 4px;
  color: #0f3d5e;
  font-size: .86rem;
  font-weight: 900;
  min-height: 30px;
  padding: 6px 10px;
  white-space: nowrap;
}

.payment-final-balance {
  color: #334155;
  font-size: .86rem;
  font-weight: 850;
  margin: 2px 0 0;
}

body.page-pressing-new #customer-modal {
  padding: 10px;
}

body.page-pressing-new #customer-modal .action-modal-card.wide {
  max-height: 92vh;
  max-width: min(94vw, 900px);
  width: min(94vw, 900px);
}

body.page-pressing-new #customer-modal .action-modal-header {
  min-height: 34px;
  padding: 6px 10px;
}

body.page-pressing-new #customer-modal .action-modal-header h2 {
  font-size: .92rem;
}

body.page-pressing-new #customer-modal .modal-close {
  min-height: 24px;
  min-width: 26px;
}

body.page-pressing-new #customer-modal .action-modal-body {
  padding: 10px;
}

body.page-pressing-new #customer-modal .form-grid {
  gap: 7px 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-pressing-new #customer-modal .customer-form label {
  font-size: .82rem;
  gap: 3px;
}

body.page-pressing-new #customer-modal .form-grid input,
body.page-pressing-new #customer-modal .form-grid select,
body.page-pressing-new #customer-modal .form-grid textarea {
  font-size: .86rem;
  min-height: 28px;
  padding: 4px 6px;
}

body.page-pressing-new #customer-modal .form-grid textarea {
  min-height: 54px;
}

body.page-pressing-new #customer-modal .span-2 {
  grid-column: span 2;
}

body.page-pressing-new #customer-modal .modal-actions {
  margin-top: 9px;
}

.action-modal-header {
  align-items: center;
  background: #0f3d5e;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 12px;
}

.action-modal-header h2 {
  font-size: 1rem;
  margin: 0;
}

.modal-close {
  align-items: center;
  background: #dc2626;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 28px;
  min-width: 30px;
  text-decoration: none;
}

.action-modal-body {
  padding: 18px;
}

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

.form-grid label,
.invoice-entry-form label,
.customer-form label {
  color: #334155;
  display: grid;
  font-weight: 800;
  gap: 5px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid #b9c5d3;
  border-radius: 4px;
  font: inherit;
  min-height: 34px;
  padding: 6px 8px;
  width: 100%;
}

.span-2 {
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

.invoice-entry-form {
  display: grid;
  gap: 14px;
}

.invoice-search-results {
  align-items: stretch;
  display: grid;
  gap: 4px;
  max-height: 150px;
  overflow: auto;
}

.invoice-search-results button {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: space-between;
  min-height: 32px;
  padding: 6px 8px;
  text-align: left;
}

.invoice-form-lines input {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font: inherit;
  min-height: 30px;
  padding: 4px 6px;
  width: 92px;
}

.invoice-total-grid {
  align-items: end;
}

.invoice-form-total {
  background: #0f3d5e;
  color: #ffffff;
  display: grid;
  gap: 2px;
  min-height: 56px;
  padding: 8px 12px;
}

.invoice-form-total strong {
  font-size: 1.1rem;
}

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

.entry-form .product-form-tabs,
.entry-form .product-tab-panel {
  grid-column: 1 / -1;
}

.product-form-tabs {
  align-items: center;
  border-bottom: 1px solid #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.product-form-tab {
  background: #e8edf4;
  border: 1px solid #bfcbd9;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  min-height: 32px;
  padding: 7px 12px;
}

.product-form-tab.active {
  background: #ffffff;
  color: #0f3d5e;
}

.product-tab-panel {
  display: none;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-tab-panel.active {
  display: grid;
}

.product-tab-panel label:nth-last-child(1):nth-child(odd),
.product-tab-panel label:has(textarea) {
  grid-column: 1 / -1;
}

.entry-form label {
  display: grid;
  font-weight: 800;
  gap: 6px;
}

.entry-form label:nth-of-type(7),
.entry-form label:nth-of-type(8),
.entry-form .form-actions,
.entry-form .diary-form-meta {
  grid-column: 1 / -1;
}

.entry-form textarea {
  border: 1px solid #b8c4d2;
  min-height: 86px;
  padding: 8px 10px;
  resize: vertical;
}

.form-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.scan-button {
  background: #f6d84e;
  border-color: #b68a00;
}

.empty-product-box {
  align-items: center;
  background: #f7f9fb;
  border: 1px dashed #aab8c7;
  border-radius: 8px;
  color: #526074;
  display: grid;
  gap: 14px;
  justify-items: center;
  min-height: 180px;
  padding: 28px;
}

.scan-product-box {
  background: #102236;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 0 auto;
  max-width: 420px;
  padding: 24px;
}

.scan-product-box button {
  align-self: end;
  background: #dc2626;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  justify-self: end;
  min-height: 30px;
  width: 34px;
}

.scan-product-box strong {
  font-size: 1.1rem;
}

.scan-product-box input {
  border: 2px solid #f6d84e;
  border-radius: 6px;
  font: inherit;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.scan-product-box span {
  color: #f6d84e;
  font-size: .9rem;
}

.finance-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.finance-summary article {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 16px;
  text-align: center;
}

.finance-summary img {
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.finance-summary span {
  color: #59677a;
  font-size: .82rem;
  font-weight: 850;
}

.finance-summary strong {
  font-size: 1.1rem;
}

.financial-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(340px, .9fr) minmax(0, 1.3fr);
}

.financial-account-modal {
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, .16);
  margin: 18px auto 0;
  max-width: 520px;
  overflow: hidden;
}

.financial-account-modal .diary-entry-form {
  padding: 16px;
}

.print-report-header a {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 900;
  text-decoration: none;
}

.quick-order-screen {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 360px;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

body.page-quick-order,
body.page-quick-order .shell {
  overflow-x: hidden;
}

.quick-order-main,
.quick-cart,
.quick-payment {
  background: #ffffff;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
}

.quick-payment {
  grid-column: 1 / -1;
  min-height: 620px;
}

.quick-order-toolbar,
.quick-category-strip,
.quick-qty-box,
.quick-main-buttons,
.quick-payment-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-order-toolbar {
  align-items: stretch;
  display: grid;
  grid-template-columns: auto auto minmax(240px, 1fr) auto;
  min-width: 0;
}

.quick-order-toolbar .legacy-action-button {
  min-height: 38px;
}

.quick-search-field {
  align-self: stretch;
}

.quick-search-field span {
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.quick-order-toolbar label,
.quick-qty-box label,
.quick-payment-form label {
  color: #223047;
  display: grid;
  font-size: .86rem;
  font-weight: 850;
  gap: 4px;
}

.quick-order-toolbar input,
.quick-qty-box input,
.quick-payment-form input,
.quick-payment-form select {
  border: 1px solid #bfcbd9;
  border-radius: 4px;
  font: inherit;
  min-height: 34px;
  padding: 6px 8px;
}

.quick-order-toolbar input {
  height: 38px;
  width: 100%;
}

.quick-category-strip {
  background: #f7f9fb;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 34px minmax(70px, .62fr) repeat(5, minmax(0, 1fr)) 34px;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 6px;
}

.quick-category,
.quick-category-nav {
  background: #e8edf4;
  border: 1px solid #bfcbd9;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: .74rem;
  font-weight: 850;
  min-height: 34px;
  min-width: 0;
  padding: 6px;
  text-align: center;
}

.quick-category-nav {
  align-items: center;
  background: #102236;
  color: #ffffff;
  display: inline-grid;
  font-size: 1rem;
  justify-items: center;
  padding: 7px 0;
}

.quick-category {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-rows: 24px 32px;
  height: 84px;
  justify-items: center;
  min-height: 84px;
  overflow: hidden;
}

.quick-category img {
  height: 24px;
  object-fit: contain;
  width: 24px;
}

.quick-category span {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  line-height: 1.08;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.quick-category-nav:disabled {
  background: #cbd5e1;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: default;
}

.quick-category.active {
  background: #17674f;
  border-color: #17674f;
  color: #ffffff;
}

.quick-product-catalogue {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(132px, 1fr));
  min-width: 0;
  max-height: none;
  overflow: hidden;
}

.quick-product-pager {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.quick-product-pager strong {
  color: #334155;
  font-weight: 900;
  min-width: 60px;
  text-align: center;
}

.quick-current-carts {
  background: #f7f9fb;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.quick-current-cart-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.quick-current-cart {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 38px auto auto auto;
  justify-items: center;
  min-height: 142px;
  overflow: hidden;
  padding: 10px;
  text-align: center;
  position: relative;
}

.quick-current-cart:hover,
.quick-current-cart.is-selected {
  border-color: #17674f;
  box-shadow: inset 0 0 0 2px rgba(23, 103, 79, .18);
  color: #17674f;
}

.quick-current-cart.has-items {
  background: #ffe8ba;
  border-color: #f59e0b;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .28);
}

.quick-current-cart > img {
  height: 37px;
  object-fit: contain;
  width: 100%;
}

.quick-current-cart-clear {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(15, 23, 42, .18);
  cursor: pointer;
  display: none;
  height: 24px;
  justify-content: center;
  padding: 3px;
  position: absolute;
  right: 6px;
  top: 6px;
  width: 24px;
  z-index: 2;
}

.quick-current-cart.has-items .quick-current-cart-clear {
  display: inline-flex;
}

.quick-current-cart-clear img {
  height: 13px;
  width: 13px;
}

.quick-cart-pager {
  align-items: center;
  display: flex;
  gap: 8px;
}

.quick-cart-pager strong {
  min-width: 54px;
  text-align: center;
}

.quick-cart-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.quick-cart-rename-modal .action-modal-card {
  max-width: min(96vw, 900px);
  width: min(96vw, 900px);
}

.quick-cart-rename-form {
  display: grid;
  gap: 12px;
}

.quick-cart-rename-grid {
  display: grid;
  gap: 8px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-cart-rename-grid label {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 76px minmax(0, 1fr);
}

.quick-cart-rename-grid span {
  color: #334155;
  font-size: .86rem;
  font-weight: 800;
}

.quick-cart-rename-grid input {
  box-sizing: border-box;
  height: 32px;
  width: 100%;
}

.quick-current-cart strong,
.quick-current-cart span,
.quick-current-cart b,
.quick-current-cart small {
  color: #223047;
  line-height: 1.12;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-current-cart strong {
  font-size: .95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-current-cart span {
  color: #475569;
  font-weight: 850;
}

.quick-current-cart b {
  color: #17674f;
  font-size: 1rem;
  font-weight: 900;
}

.quick-current-cart small {
  color: #64748b;
  display: -webkit-box;
  font-size: .72rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

@media (max-width: 900px) {
  .quick-current-cart-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

.quick-product-card {
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #f8fafc, 0 1px 2px rgba(15, 23, 42, .08);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 70% 30%;
  min-height: 112px;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: center;
}

.quick-product-card:hover {
  border-color: #17674f;
  box-shadow: inset 0 0 0 2px rgba(23, 103, 79, .22), 0 3px 8px rgba(15, 23, 42, .12);
}

.quick-product-card img {
  align-self: stretch;
  grid-column: 1 / 3;
  grid-row: 1;
  height: calc(100% - 4px);
  justify-self: stretch;
  margin: 2px;
  object-fit: contain;
  width: calc(100% - 4px);
}

.quick-product-card strong {
  align-items: center;
  color: #223047;
  display: flex;
  font-size: .86rem;
  font-weight: 400;
  grid-column: 1 / 3;
  grid-row: 2;
  justify-content: center;
  line-height: 1.08;
  min-height: 0;
  overflow: hidden;
  padding: 2px 4px;
  text-align: center;
}

.quick-product-price {
  align-items: center;
  align-self: start;
  background: #00ff00;
  color: #000000;
  display: flex;
  font-size: .86rem;
  font-weight: 400;
  grid-column: 2;
  grid-row: 1;
  justify-content: center;
  line-height: 1;
  min-height: 18px;
  overflow: hidden;
  padding: 1px 4px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.quick-cart-head,
.quick-total-box,
.quick-payment-detail,
.quick-payment-header {
  background: #102236;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.quick-cart-head {
  border-radius: 0;
}

.quick-total-box strong {
  font-size: 1.7rem;
}

.quick-total-box {
  border-radius: 0;
  border-top: 1px solid #cbd5e1;
}

.quick-cart {
  align-content: start;
  border-color: #d6dee8;
  overflow: hidden;
  padding: 0;
}

.quick-cart-table-wrap {
  border: 0;
  max-height: 380px;
  max-width: 100%;
  overflow-x: hidden;
}

.quick-cart-table {
  max-width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  width: 100%;
}

.quick-cart-table th:first-child,
.quick-cart-table td:first-child {
  width: 50%;
}

.quick-cart-table th,
.quick-cart-table td {
  font-size: 12px;
  padding: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.quick-qty-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px;
}

.quick-qty-box label {
  grid-column: 1 / -1;
}

.quick-qty-box .legacy-action-button {
  font-size: .78rem;
  min-height: 42px;
  white-space: nowrap;
  width: 100%;
}

.quick-qty-box .validate-cart-button,
.quick-main-buttons .validate-cart-button {
  grid-column: 1 / -1;
}

.quick-qty-box .validate-cart-button,
.quick-main-buttons .validate-cart-button,
.validate-cart-button {
  background: #17674f;
  border-color: #0f513d;
  color: #ffffff;
}

.quick-payment-header {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.quick-payment-detail {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-payment-form {
  background: #f7f9fb;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) minmax(0, 1fr);
  padding: 12px;
}

.quick-payment-form button {
  align-self: end;
  min-height: 34px;
  padding-inline: 0;
}

.quick-payment-form label,
.quick-payment-form input,
.quick-payment-form select {
  min-width: 0;
  width: 100%;
}

.quick-main-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-payment-detail label,
.quick-payment-detail span {
  display: grid;
  gap: 4px;
  font-weight: 850;
}

.quick-cart-table tr.is-selected {
  background: #edf6ff;
  box-shadow: inset 4px 0 0 #1f6fb8;
}

.next-steps {
  justify-content: flex-start;
}

.next-steps .section-title strong,
.next-steps .section-title span,
.next-steps li {
  color: #ffffff;
}

.next-steps ol {
  padding-left: 20px;
}

.button {
  background: #17674f;
  border-radius: 6px;
  color: #ffffff;
  display: block;
  font-weight: 800;
  margin-top: 12px;
  padding: 12px 14px;
  text-align: center;
  text-decoration: none;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 18px;
}

.timeline article > span {
  align-items: center;
  background: #102236;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-weight: 850;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.footer {
  border-top: 1px solid #dde4ec;
  color: #687589;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px 24px 28px;
}

.login-body {
  background:
    linear-gradient(135deg, rgba(12, 25, 40, .72), rgba(12, 34, 31, .58)),
    url("../img/theme/malewa-soft.jpg") center / cover fixed no-repeat,
    #102236;
  min-height: 100vh;
}

.login-screen {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) 430px;
  margin: 0 auto;
  min-height: 100vh;
  max-width: 1180px;
  padding: 34px 24px;
}

.login-brand {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 54px 42px 0;
}

.app-mark {
  align-items: center;
  background: transparent;
  border-radius: 8px;
  display: inline-flex;
  height: 76px;
  justify-content: center;
  margin-bottom: 28px;
  padding: 0;
  width: 210px;
}

.app-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.login-brand .eyebrow {
  color: #cbd8e7;
}

.login-brand h1 {
  max-width: 620px;
}

.login-brand p {
  color: #d7e1ec;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}

.login-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.login-stats span {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 6px;
  color: #ffffff;
  font-weight: 800;
  padding: 10px 14px;
}

.login-card {
  align-self: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  padding: 28px;
}

.login-card-head {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.login-card-head h2 {
  font-size: 1.55rem;
  font-weight: 850;
  margin: 0;
}

.lock-icon {
  align-items: center;
  background: #e8f1ee;
  border-radius: 8px;
  color: #17674f;
  display: inline-flex;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.login-logo-mark {
  background: #ffffff;
  border: 1px solid #dde4ec;
  padding: 6px;
  width: 48px;
}

.login-logo-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.alert {
  background: #fff1f0;
  border: 1px solid #ffd0cc;
  border-radius: 6px;
  color: #9a2b20;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 12px;
}

.alert-success {
  background: #edfdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  color: #223047;
  font-weight: 800;
  margin-top: 6px;
}

.login-form input {
  background: #f7f9fb;
  border: 1px solid #ccd6e2;
  border-radius: 6px;
  color: #18212f;
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.login-form input:focus {
  border-color: #17674f;
  outline: 3px solid rgba(23, 103, 79, .16);
}

.password-field {
  display: flex;
}

.password-field input {
  border-right: 0;
}

.password-toggle {
  align-items: center;
  background: #eef3f8;
  border: 1px solid #b8c4d2;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 44px;
  font: inherit;
  justify-content: center;
  min-height: 46px;
  padding: 0;
}

.password-field input:first-child {
  border-radius: 6px 0 0 6px;
}

.password-toggle img {
  display: block;
  height: 21px;
  width: 21px;
}

.password-toggle:hover,
.password-toggle:focus {
  background: #c9dff5;
  border-color: #4c89c3;
  outline: none;
}

.login-form > button.login-submit {
  align-items: center;
  background: #ffd800;
  border: 1px solid #b59400;
  border-radius: 6px;
  color: #111111;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: .88rem;
  font-weight: 850;
  justify-content: center;
  margin-top: 12px;
  min-height: 48px;
  padding: 0 12px;
  white-space: nowrap;
}

.login-form > button.login-submit:hover,
.login-form > button.login-submit:focus {
  background: #c9dff5;
  border-color: #4c89c3;
  outline: none;
}

.login-note {
  color: #687589;
  font-size: .9rem;
  line-height: 1.5;
  margin: 18px 0 0;
}

.muted {
  color: #5b687b;
  margin: 0;
}

.module-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.module-summary-item {
  background: #ffffff;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.module-summary-item span {
  color: #59677a;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.module-summary-item strong {
  font-size: 1.2rem;
}

.invoice-kpi-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .invoice-kpi-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.summary-card {
  background: #ffffff;
  border: 1px solid #d6dee8;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.summary-card-link {
  color: inherit;
  cursor: pointer;
  min-width: 0;
  text-decoration: none;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease;
  width: 100%;
}

.summary-card-link:hover,
.summary-card-link.is-active {
  background: #edf6ff;
  border-color: #1f6fb8;
  box-shadow: inset 4px 0 0 #1f6fb8;
}

.summary-card span {
  color: #59677a;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-card strong {
  color: #15803d;
  font-size: 1.2rem;
}

.summary-card.negative strong {
  color: #b91c1c;
}

.summary-value-positive {
  color: #15803d;
}

.summary-value-negative {
  color: #b91c1c;
}

.table-panel {
  background: #ffffff;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.legacy-toolbar,
.list-filter,
.pager {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legacy-toolbar form {
  margin: 0;
}

.inline-action-form {
  display: inline-flex;
  margin: 0;
}

.legacy-action-button,
.icon-button {
  align-items: center;
  background: #d9d9d9;
  border: 1px solid #8f8f8f;
  border-radius: 4px;
  color: #111111;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  text-decoration: none;
}

.legacy-action-button:hover,
.icon-button:hover {
  background: #c9dff5;
  border-color: #4c89c3;
}

.is-hidden {
  display: none !important;
}

.list-filter {
  background: #f7f9fb;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  padding: 12px;
}

.list-filter label {
  align-items: center;
  color: #223047;
  display: flex;
  font-size: .9rem;
  font-weight: 800;
  gap: 8px;
}

.list-filter input,
.list-filter select {
  border: 1px solid #ccd6e2;
  border-radius: 6px;
  font: inherit;
  min-height: 34px;
  padding: 6px 8px;
}

.responsive-table {
  overflow-x: auto;
}

.data-list {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.data-list th,
.data-list td {
  border-bottom: 1px solid #d6dee8;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.data-list th {
  background: #eef2f6;
  color: #334155;
  font-size: 16px;
  text-transform: uppercase;
}

.data-list th small {
  color: #64748b;
  display: block;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 2px;
  text-transform: none;
}

.stock-direction-cell {
  text-align: center;
  width: 42px;
}

.stock-direction-icon {
  align-items: center;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 20px;
  min-width: 20px;
}

.stock-direction-icon.stock-in {
  color: #16a34a;
}

.stock-direction-icon.stock-out {
  color: #dc2626;
}

.invoice-preview {
  align-content: start;
  background: #fff;
  color: #000;
  display: grid;
  font-family: Arial, Helvetica, sans-serif;
  gap: 0;
  margin: 0 auto;
  min-height: 297mm;
  padding: 12mm;
  width: 210mm;
}

.invoice-preview-head {
  align-items: start;
  display: grid;
  column-gap: 24px;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-areas:
    "company title"
    "billed meta";
  min-height: 0;
  row-gap: 10px;
}

.invoice-left-stack,
.invoice-right-stack {
  display: contents;
}

.invoice-company {
  grid-area: company;
}

.invoice-billed-to {
  grid-area: billed;
}

.invoice-title-box {
  grid-area: title;
}

.invoice-document-meta {
  grid-area: meta;
}

.invoice-company strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
  margin-bottom: 7px;
}

.invoice-template-logo {
  display: block;
  height: 50px;
  margin-bottom: 4px;
  object-fit: contain;
  object-position: left center;
  width: auto;
  max-width: 180px;
}

.invoice-company p,
.invoice-billed-to p,
.invoice-meta p,
.invoice-cgu p {
  font-size: 12px;
  line-height: 17px;
  margin: 0;
}

.invoice-billed-to {
  margin-top: 0;
}

.invoice-title-box {
  display: grid;
  gap: 0;
  justify-items: center;
  text-align: center;
}

.invoice-title-box h3 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 2px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.invoice-title-box strong {
  color: #000080;
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
  margin-bottom: 18px;
}

.invoice-title-box span {
  color: #000;
  font-size: 11px;
  line-height: 13px;
}

.invoice-title-box b {
  color: #008000;
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
}

.invoice-cancel-label {
  border: 2px solid #b91c1c;
  color: #b91c1c;
  font-size: 1.4rem;
  font-weight: 900;
  padding: 10px;
  text-align: center;
}

.invoice-meta {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-top: 0;
  min-height: 0;
}

.invoice-meta-legacy-hidden {
  display: none;
}

.invoice-billed-to span,
.invoice-meta span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
  margin-bottom: 2px;
}

.invoice-billed-to strong,
.invoice-meta strong {
  color: #000080;
  display: block;
  font-size: 12px;
  line-height: 17px;
  margin-bottom: 0;
}

.invoice-document-meta,
.invoice-meta dl,
.invoice-totals {
  align-content: start;
  align-items: start;
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 0;
  row-gap: 6px;
}

.invoice-document-meta dt,
.invoice-meta dt,
.invoice-totals dt {
  color: #000;
  font-weight: 400;
}

.invoice-document-meta dd,
.invoice-meta dd,
.invoice-totals dd {
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.invoice-document-meta dt,
.invoice-document-meta dd,
.invoice-meta dt,
.invoice-meta dd {
  font-size: 12px;
  line-height: 17px;
  margin-bottom: 0;
}

.invoice-meta + .invoice-items {
  margin-top: 2px;
}

.invoice-items {
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 0;
  width: 100%;
}

.invoice-items th,
.invoice-items td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.invoice-items th {
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  padding: 2px 8px;
  text-align: left;
}

.invoice-items td {
  border-bottom: 1px solid #000;
  font-size: 12px;
  line-height: 17px;
  height: 33px;
  max-height: 33px;
  padding: 2px 6px;
  vertical-align: middle;
}

.invoice-items tr {
  height: 33px;
  max-height: 33px;
}

.invoice-items td small {
  color: #000;
  display: block;
  font-size: 12px;
  line-height: 17px;
  margin-top: 0;
}

.invoice-items th:nth-child(1),
.invoice-items td:nth-child(1) {
  text-align: right;
  width: 36px;
}

.invoice-items th:nth-child(2),
.invoice-items td:nth-child(2) {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  width: 60px;
}

.invoice-items th:nth-child(3),
.invoice-items td:nth-child(3) {
  padding-left: 30px;
  width: auto;
}

.invoice-items th:nth-child(4),
.invoice-items td:nth-child(4) {
  text-align: center;
  width: 92px;
}

.invoice-items td:nth-child(5),
.invoice-items th:nth-child(6),
.invoice-items td:nth-child(6) {
  text-align: right;
  width: 86px;
}

.invoice-items th:nth-child(5) {
  text-align: center;
  width: 86px;
}

.invoice-product-picture img {
  display: block;
  height: 24px;
  margin: 0 auto;
  object-fit: contain;
  width: 24px;
}

.invoice-line-no {
  text-align: right;
  width: 36px;
}

.invoice-footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 260px;
  margin-top: 10px;
}

.invoice-cgu {
  color: #000;
  font-size: 12px;
}

.invoice-cgu-title {
  display: block;
  margin-top: 20px;
}

.invoice-bank-box {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: 42px minmax(0, 1fr);
  margin-top: 5px;
  min-height: 28px;
}

.invoice-bank-logo,
.invoice-bank-info {
  min-height: 28px;
}

.invoice-bank-logo {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 3px;
}

.invoice-bank-logo img {
  display: block;
  max-height: 24px;
  max-width: 38px;
  object-fit: contain;
}

.invoice-bank-info {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 2px 4px;
}

.invoice-bank-info strong,
.invoice-bank-info span {
  display: block;
  font-size: 12px;
  line-height: 17px;
}

.settings-bank-picker {
  display: grid;
  gap: 8px;
}

.settings-bank-picker > span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.settings-bank-checkboxes {
  display: grid;
  gap: 8px;
}

.settings-bank-choice {
  align-items: center;
  background: transparent;
  border: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 48px;
  padding: 6px 8px;
}

.admin-tabbed-module .payroll-settings-form .settings-bank-choice {
  align-items: center;
  display: grid;
  font-size: 12px;
  font-weight: 400;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr);
  line-height: 1.2;
  width: 100%;
}

.settings-bank-choice-label {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr);
  margin: 0;
  min-width: 0;
}

.admin-tabbed-module .payroll-settings-form .settings-bank-choice-label {
  align-items: center;
  display: grid;
  font-size: 12px;
  font-weight: 400;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr);
  line-height: 1.2;
  width: 100%;
}

.settings-bank-choice input {
  cursor: pointer;
  height: 16px;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 16px;
}

.admin-tabbed-module .payroll-settings-form .settings-bank-choice input {
  height: 16px;
  min-height: 0;
  padding: 0;
  width: 16px;
}

.settings-bank-choice img {
  height: 34px;
  object-fit: contain;
  width: 42px;
}

.settings-bank-choice strong,
.settings-bank-choice small,
.settings-bank-picker-empty {
  display: block;
  font-size: 12px;
  line-height: 15px;
  margin: 0;
  text-align: left;
}

.settings-bank-choice small,
.settings-bank-picker-empty {
  color: #64748b;
}

.settings-bank-display-cell {
  text-align: center;
}

.settings-bank-display-cell input {
  cursor: pointer;
  height: 16px;
  min-height: 0;
  padding: 0;
  width: 16px;
}

.settings-bank-display-info {
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
  margin: 8px 0 0;
}

.settings-bank-display-info:not([data-invoice-bank-status]):not([data-settings-options-status]) {
  display: none;
}

.invoice-totals dt,
.invoice-totals dd {
  border-bottom: 0;
  font-size: 12px;
  line-height: 17px;
  margin-bottom: 3px;
  padding: 0;
}

.invoice-totals dd {
  font-family: Arial, Helvetica, sans-serif;
  min-width: 104px;
}

.negative-text {
  color: #b91c1c;
}

.invoice-preview-actions {
  display: flex;
  justify-content: flex-end;
}

.invoice-page-shell {
  align-items: start;
  display: grid;
  gap: 0;
  grid-template-columns: 25% 75%;
  margin-top: 0;
  min-height: calc(100vh - 64px);
  width: 100%;
}

.invoice-page-actions {
  align-content: start;
  background: #e8edf4;
  border-right: 1px solid #cbd5e1;
  display: grid;
  gap: 6px;
  grid-template-columns: max-content;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 18px 10px;
  position: sticky;
  top: 0;
}

.invoice-page-actions > .legacy-action-button,
.invoice-page-actions > form,
.invoice-page-actions > .invoice-payment-panel {
  justify-self: stretch;
  max-width: 100%;
}

.invoice-page-actions .legacy-action-button,
.invoice-page-actions form .legacy-action-button {
  justify-content: center;
  min-height: 35px;
  white-space: nowrap;
  width: 100%;
}

.invoice-page-actions form {
  margin: 0;
}

.invoice-payment-panel {
  display: grid;
  gap: 8px;
}

.invoice-payment-panel summary {
  cursor: pointer;
  list-style: none;
}

.invoice-payment-panel summary::-webkit-details-marker {
  display: none;
}

.invoice-payment-panel form {
  background: #eef2f7;
  border: 1px solid #cbd5e1;
  display: grid;
  gap: 8px;
  padding: 8px;
}

.invoice-payment-panel label {
  color: #334155;
  display: grid;
  font-size: .78rem;
  font-weight: 800;
  gap: 3px;
}

.invoice-payment-panel input,
.invoice-payment-panel select {
  border: 1px solid #b8c2d1;
  font: inherit;
  min-height: 32px;
  padding: 5px 7px;
}

.invoice-page-preview {
  background: #6b7280;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: calc(100vh - 64px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
}

.invoice-scale-frame {
  height: var(--invoice-scaled-height, auto);
  margin: 0 auto;
  width: var(--invoice-scaled-width, min(100%, 825px));
}

.invoice-page-preview .invoice-preview {
  aspect-ratio: 825 / 1160;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .28);
  font-size: 14px;
  max-width: none;
  min-height: 1160px;
  padding: 20px;
  transform: scale(var(--invoice-scale, 1));
  transform-origin: top left;
  width: 825px;
}

.invoice-entry-form {
  display: grid;
  gap: 14px;
}

.invoice-form-customer,
.invoice-adjustments,
.invoice-form-total {
  background: #fff;
  border: 1px solid #d6dee8;
  color: #111827;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.invoice-form-customer {
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 10px 12px;
}

.invoice-form-customer label,
.invoice-form-customer .invoice-search-results,
.invoice-customer-name {
  grid-column: 1 / -1;
}

.invoice-customer-info {
  grid-column: span 2;
}

.invoice-form-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

.invoice-form-customer label,
.invoice-form-meta label,
.invoice-adjustments label {
  color: #1f2937;
  display: grid;
  font-size: .86rem;
  font-weight: 800;
  gap: 6px;
}

.invoice-customer-display,
.invoice-customer-info {
  background: #fbfdff;
  border: 1px solid #edf2f7;
  color: #1f2937;
  padding: 6px 8px;
}

.invoice-customer-name {
  background: transparent;
  border: 0;
  color: #0f3d5e;
  font-size: .95rem;
  font-weight: 900;
  padding: 0 0 2px;
}

.invoice-customer-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.invoice-customer-info span {
  color: #64748b;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-customer-info strong {
  color: #1f2937;
  font-size: .82rem;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.invoice-customer-info.invoice-customer-wide {
  display: grid;
  gap: 3px;
  grid-column: span 3;
}

.invoice-total-row {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, auto);
}

.invoice-adjustments {
  align-content: start;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px;
}

.invoice-adjustments label:first-child {
  grid-column: 1 / -1;
}

.invoice-draft-lines {
  border: 1px solid #d6dee8;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.invoice-draft-title {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(220px, 1fr);
}

.invoice-draft-line {
  align-items: start;
  display: grid;
  gap: 6px;
  grid-template-columns: 68px 48px minmax(150px, 1fr) 66px 92px 86px 82px 34px;
}

.invoice-draft-line[data-invoice-line] {
  border-top: 1px solid #dbe4ee;
  padding-top: 10px;
}

.invoice-draft-header {
  color: #64748b;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.line-icon-button {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #b8c4d2;
  color: #0f3d5e;
  cursor: pointer;
  display: inline-flex;
  font-size: .9rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  width: 28px;
}

.line-delete-button {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #b91c1c;
  height: 22px;
}

.invoice-product-cell {
  align-items: center;
  display: flex;
  justify-content: center;
}

.invoice-product-img {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  height: 44px;
  object-fit: contain;
  padding: 3px;
  width: 44px;
}

.invoice-product-detail {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.invoice-product-detail strong {
  align-items: center;
  box-sizing: border-box;
  color: #1f2937;
  display: flex;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.15;
  min-height: 30px;
  overflow-wrap: anywhere;
  padding: 4px 6px;
}

.invoice-line-sku {
  border: 0;
  color: #1d4ed8;
  font-size: .72rem;
  height: 18px;
  min-height: 18px;
  padding: 0;
}

.invoice-line-quantity {
  display: grid;
  gap: 2px;
}

.invoice-line-quantity small,
.invoice-line-tax small {
  color: #1d4ed8;
  font-size: .72rem;
  min-height: 14px;
}

.invoice-line-quantity small {
  color: #b91c1c;
  font-weight: 800;
  text-align: center;
}

.invoice-line-total {
  align-items: center;
  box-sizing: border-box;
  color: #1f2937;
  display: flex;
  font-family: Consolas, "Courier New", monospace;
  font-size: .84rem;
  justify-content: flex-end;
  min-height: 30px;
  padding: 4px 0;
  text-align: right;
}

.invoice-line-actions {
  display: grid;
  gap: 2px;
  grid-template-columns: 28px;
  justify-content: end;
}

#invoice-modal .action-modal-card {
  max-width: 900px;
  width: min(96vw, 900px);
}

.invoice-draft-line input,
.invoice-draft-line select {
  box-sizing: border-box;
  height: 30px;
  min-width: 0;
  width: 100%;
}

.invoice-draft-line [data-line-price] {
  font-family: Consolas, "Courier New", monospace;
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
}

.invoice-search-results[hidden] {
  display: none;
}

.invoice-search-item {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  text-align: left;
}

.invoice-search-item:hover,
.invoice-search-item:focus {
  background: #eef6ff;
  outline: none;
}

.invoice-search-item span {
  color: #64748b;
  display: grid;
  font-size: .8rem;
}

.invoice-search-item strong {
  color: #0f172a;
  font-size: .88rem;
}

.invoice-search-item img {
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.invoice-search-empty {
  color: #64748b;
  font-weight: 800;
  padding: 10px;
}

.invoice-form-total {
  grid-template-columns: 1fr auto;
  justify-self: end;
  min-width: 320px;
}

.invoice-form-total span,
.invoice-form-total strong {
  font-size: .95rem;
  font-weight: 900;
}

.invoice-form-total strong {
  color: #15803d;
  font-family: Consolas, "Courier New", monospace;
  text-align: right;
}

.payroll-command-bar {
  align-items: center;
  background: #e8edf4;
  border: 1px solid #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
}

.payroll-command-bar .legacy-action-button {
  flex: 0 1 auto;
  min-width: 0;
  white-space: normal;
}

.attendance-summary + .payroll-command-bar {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.attendance-summary + .payroll-command-bar .legacy-action-button {
  min-height: 32px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

.attendance-nav {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.attendance-nav .legacy-action-button {
  min-height: 32px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

@media (min-width: 901px) {
  .attendance-nav.payroll-command-bar {
    align-items: flex-end;
    background: transparent;
    border: 0;
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    padding: 0;
  }

  .attendance-nav .legacy-action-button {
    background: #e8edf4;
    border: 1px solid #bfcbd9;
    border-bottom-color: #8fa0b3;
    border-radius: 6px 6px 0 0;
    color: #334155;
    font-size: .88rem;
    font-weight: 850;
    min-height: 36px;
    padding: 10px 14px;
    text-decoration: none;
  }

  .attendance-nav .legacy-action-button.active {
    background: #ffffff;
    border-bottom-color: #ffffff;
    color: #17674f;
  }
}

.payroll-workspace {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(210px, 25%) minmax(0, 1fr);
}

.payroll-sidebar {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  display: grid;
  gap: 4px;
  padding: 8px;
  position: sticky;
  top: 78px;
}

.payroll-tab {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d6dee8;
  color: #1f2937;
  cursor: pointer;
  display: grid;
  gap: 2px;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 44px;
  padding: 6px 8px;
  text-align: left;
}

.payroll-tab span {
  background: #0f3d5e;
  color: #ffffff;
  display: grid;
  font-size: .78rem;
  font-weight: 900;
  height: 28px;
  place-items: center;
}

.payroll-tab strong {
  font-size: .92rem;
}

.payroll-tab.is-active {
  background: #d7ebff;
  border-color: #4c89c3;
  box-shadow: inset 4px 0 0 #1d4ed8;
}

.payroll-panels {
  min-width: 0;
  overflow: hidden;
}

.payroll-panel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: none;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
}

.payroll-panel.is-active {
  display: grid;
}

.payroll-panel > *,
.payroll-settings-block,
.payroll-bulletins-layout,
.payroll-slip-list,
.payroll-preparation-table {
  min-width: 0;
}

.payroll-panel .responsive-table {
  background: #ffffff;
  border: 1px solid #b8c4d2;
  box-shadow: inset 0 -10px 14px rgba(15, 23, 42, .04);
  max-width: 100%;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
}

.payroll-panel .responsive-table.list-frame {
  max-height: min(58vh, 620px);
}

.payroll-panel .responsive-table table {
  width: max-content;
  min-width: 100%;
}

.payroll-panel .responsive-table::-webkit-scrollbar {
  height: 13px;
  width: 13px;
}

.payroll-panel .responsive-table::-webkit-scrollbar-thumb {
  background: #8aa3bd;
  border: 3px solid #ffffff;
  border-radius: 999px;
}

.payroll-panel .responsive-table::-webkit-scrollbar-track {
  background: #edf2f7;
}

.payroll-panel .data-list th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.payroll-panel header {
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
}

.payroll-panel header span {
  color: #0f3d5e;
  font-weight: 900;
}

.payroll-panel h2 {
  font-size: 1.15rem;
  margin: 0;
}

.payroll-panel p {
  color: #475569;
  margin: 0;
}

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

.payroll-action-card {
  background: #f8fafc;
  border: 1px solid #d6dee8;
  color: inherit;
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 12px;
  text-decoration: none;
}

.payroll-action-card:hover,
.payroll-action-card:focus {
  background: #eef6ff;
  border-color: #4c89c3;
  outline: none;
}

.payroll-action-card strong {
  color: #111827;
  font-size: .95rem;
}

.payroll-action-card small {
  color: #475569;
  line-height: 1.35;
}

.payroll-filter {
  align-items: end;
  background: #f8fafc;
  border: 1px solid #d6dee8;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 180px) minmax(180px, 1fr) auto;
  padding: 10px;
}

.payroll-filter label {
  color: #334155;
  display: grid;
  font-weight: 800;
  gap: 5px;
}

.payroll-filter input,
.payroll-filter select,
.payroll-preparation-table input,
.payroll-preparation-table select {
  border: 1px solid #b8c4d2;
  border-radius: 4px;
  font: inherit;
  min-height: 32px;
  padding: 5px 7px;
}

.payroll-preparation-table td strong,
.payroll-preparation-table td small {
  display: block;
}

.payroll-preparation-table td small {
  color: #64748b;
  margin-top: 3px;
}

.payroll-preparation-table input {
  font-family: Consolas, "Courier New", monospace;
  max-width: 96px;
  text-align: right;
}

.payroll-preparation-table select {
  min-width: 120px;
}

.payroll-preparation-summary {
  margin: 0 0 10px;
}

.payroll-dashboard-summary {
  margin: 0;
}

.payroll-dashboard-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payroll-dashboard-block {
  background: #f8fafc;
  border: 1px solid #d6dee8;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.payroll-dashboard-block h3 {
  font-size: 1rem;
  margin: 0;
}

.payroll-dashboard-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payroll-dashboard-metrics div {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 10px;
}

.payroll-dashboard-metrics span {
  color: #64748b;
  font-weight: 800;
}

.payroll-dashboard-metrics strong {
  color: #0f3d5e;
  font-size: 1rem;
}

.payroll-status {
  border: 1px solid currentColor;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 900;
  min-height: 24px;
  padding: 3px 7px;
}

.payroll-status.ok {
  color: #15803d;
}

.payroll-status.warn {
  color: #b45309;
}

.payroll-preparation-locked-row {
  background: #fff7ed;
  box-shadow: inset 4px 0 0 #f97316;
}

.payroll-preparation-locked-row input,
.payroll-preparation-locked-row select {
  background: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

.payroll-payment-form {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 120px 120px 96px 140px auto;
  min-width: 580px;
}

.payroll-payment-form input,
.payroll-payment-form select {
  border: 1px solid #b8c4d2;
  border-radius: 4px;
  font: inherit;
  min-height: 30px;
  min-width: 0;
  padding: 4px 6px;
}

.payroll-payments-table td small,
.payroll-payment-journal td small {
  color: #64748b;
  display: block;
  margin-top: 3px;
}

.amount-cell.is-paid {
  color: #15803d;
  font-weight: 900;
}

.amount-cell.is-due {
  color: #b91c1c;
  font-weight: 900;
}

.payroll-total-line td {
  background: #eef6ff;
  border-top: 2px solid #94a3b8;
}

.payroll-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.payroll-processing-actions {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #d6dee8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 10px;
}

.payroll-processing-summary {
  margin: 0;
}

.payroll-bulletin-placeholder {
  background: #f8fafc;
  border: 1px solid #d6dee8;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.payroll-bulletin-placeholder p {
  margin: 0;
}

.payroll-bulletins-layout {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.payroll-slip-list tr.is-selected td {
  background: #eef6ff;
}

.payroll-slip-list td strong,
.payroll-slip-list td small {
  display: block;
}

.payroll-slip-list td small {
  color: #64748b;
  margin-top: 3px;
}

.payroll-slip-preview {
  align-items: flex-start;
  background: rgba(15, 23, 42, .55);
  display: none;
  inset: 0;
  justify-content: center;
  min-width: 0;
  overflow: auto;
  padding: 34px 18px;
  position: fixed;
  z-index: 80;
}

.payroll-slip-preview.is-open {
  display: flex;
}

.payroll-slip-modal-toolbar {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  left: 50%;
  max-width: min(980px, calc(100vw - 36px));
  position: fixed;
  top: 18px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 82;
}

.payroll-slip-modal-toolbar form {
  margin: 0;
}

.payroll-slip-paper {
  background: #ffffff;
  align-content: start;
  border: 1px solid #b8c4d2;
  box-sizing: border-box;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
  display: grid;
  grid-auto-rows: max-content;
  gap: 12px;
  padding: 16px;
}

.payroll-print-button {
  justify-self: end;
}

.payslip-model {
  color: #111827;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 8px;
  margin-top: 32px;
  max-width: min(210mm, calc(100vw - 36px));
  min-height: 297mm;
  overflow-x: auto;
  width: 210mm;
}

.payslip-meta {
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
}

.payslip-meta div,
.payslip-total-row,
.payslip-net-row {
  border: 1px solid #111827;
  padding: 5px 7px;
}

.payslip-meta span,
.payslip-employee-grid span,
.payslip-cumuls span {
  color: #374151;
  font-weight: 700;
}

.payslip-title {
  align-items: end;
  border: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(170px, 50%) minmax(0, 1fr);
  padding: 0;
}

.payroll-slip-paper .payslip-title {
  border-bottom: 0;
  gap: 24px;
  padding-bottom: 0;
}

.payslip-title h3 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-align: center;
}

.payslip-title span {
  color: #111827;
  font-weight: 800;
}

.payslip-logo-zone {
  align-items: center;
  display: flex;
  height: auto;
  max-height: 64px;
  justify-content: flex-start;
  overflow: hidden;
}

.payslip-logo-zone img {
  max-height: 60px;
  max-width: 132px;
  object-fit: contain;
}

.payslip-brand-zone {
  align-self: end;
}

.payslip-brand-zone strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.05;
  margin-top: 0;
}

.payslip-heading-zone {
  align-self: end;
  padding-bottom: 5px;
}

.payslip-period-title {
  font-size: 1.55rem;
  font-weight: 900;
  margin-top: 2px;
  text-align: center;
}

.payslip-identity-row {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(170px, 50%) minmax(0, 1fr);
  margin-top: 7px;
}

.payslip-employee-card {
  background: var(--payslip-theme, #008000);
  border: 1px solid var(--payslip-theme, #006900);
  color: #ffffff;
  display: grid;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  padding: 12px 8px 10px;
}

.payslip-employee-card div {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 92px 1fr;
}

.payslip-employee-card div:last-child {
  display: block;
}

.payslip-employee-card span,
.payslip-employee-card strong {
  color: #ffffff;
}

.payslip-period-card {
  justify-content: center;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  padding: 0 0 7px;
}

.payslip-period-card div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 88px 72px 24px 1fr;
}

.payslip-period-card span {
  color: #111827;
  font-weight: 900;
}

.payslip-employee-grid {
  border: 1px solid #111827;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  margin-top: 6px;
}

.payslip-info-column {
  display: grid;
  gap: 0;
  padding: 4px 7px;
}

.payslip-info-column:first-child {
  border-right: 0;
}

.payslip-info-column div {
  display: flex;
  gap: 6px;
  min-height: 17px;
  padding: 0;
}

.payslip-info-column span {
  color: #111827;
  flex: 0 0 43%;
  font-weight: 900;
}

.payslip-info-column strong {
  color: #111827;
  flex: 1 1 auto;
  font-weight: 400;
}

.payslip-lines-model th {
  background: var(--payslip-theme, #008000);
  color: #ffffff;
  font-size: 11px;
  text-align: center;
}

.payslip-lines-model th,
.payslip-lines-model td {
  border-bottom: 0;
  border-color: #111827;
  border-top: 0;
  font-size: 11px;
  padding: 5px 6px;
}

.payslip-lines-model .payslip-section-row td {
  background: var(--payslip-theme-soft, #B3D9B3);
  color: #111827;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.payslip-lines-model .payslip-subtotal-row td {
  background: #f8fafc;
  border-top: 0;
  color: #111827;
  font-weight: 900;
}

.payslip-total-row,
.payslip-cumuls,
.payslip-net-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto 1fr auto;
  justify-self: end;
  width: auto;
}

.payslip-cumuls {
  border: 1px solid #111827;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  min-width: 520px;
}

.payslip-cumuls-table {
  border: 1px solid #111827;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
  width: 100%;
}

.payslip-cumuls-table th,
.payslip-cumuls-table td {
  border: 1px solid #111827;
  overflow-wrap: anywhere;
  padding: 3px 4px;
  text-align: center;
  white-space: normal;
  width: 11.111%;
  word-break: normal;
}

.payslip-cumuls-table th {
  background: var(--payslip-theme, #008000);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  text-transform: none;
}

.payslip-cumuls-table td:first-child {
  font-weight: 700;
}

.payslip-leave-balance {
  border: 1px solid #111827;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
}

.payslip-cumuls div,
.payslip-leave-balance div {
  border-right: 1px solid #d1d5db;
  display: grid;
  gap: 3px;
  padding: 6px;
  text-align: center;
}

.payslip-leave-balance span {
  color: #374151;
  font-weight: 700;
}

.payslip-net-row {
  align-items: center;
  background: #f3f4f6;
  font-size: 1.05rem;
  font-weight: 900;
  grid-template-columns: 1fr auto;
  min-width: 250px;
}

.payslip-net-leave-row {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 330px) 1fr minmax(0, 260px);
  justify-content: stretch;
}

.payslip-net-leave-row .payslip-net-row {
  grid-column: 3;
}

.payslip-legal {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.6fr 1fr;
  margin-top: auto;
  min-height: 70px;
  padding-top: 8px;
}

.payroll-slip-paper header {
  border-bottom: 2px solid #0f3d5e;
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
}

.payroll-slip-paper header span,
.payroll-slip-paper header small {
  color: #475569;
  font-weight: 800;
}

.payroll-slip-paper header strong {
  color: #0f3d5e;
  font-size: 1.3rem;
}

.payroll-slip-identity {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.payroll-slip-identity div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 7px;
}

.payroll-slip-identity dt {
  color: #64748b;
  font-size: .78rem;
  font-weight: 900;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.payroll-slip-identity dd {
  color: #111827;
  font-weight: 800;
  margin: 0;
}

.payroll-slip-lines {
  border-collapse: collapse;
  width: 100%;
}

.payroll-slip-lines th,
.payroll-slip-lines td {
  border: 1px solid #d6dee8;
  padding: 7px;
}

.payroll-slip-lines th {
  background: #0f3d5e;
  color: #ffffff;
  text-align: left;
}

.payroll-slip-lines .is-deduction td {
  color: #b91c1c;
}

.payroll-slip-lines .is-employer td {
  color: #1d4ed8;
}

.payroll-slip-lines.payslip-lines-model th,
.payroll-slip-lines.payslip-lines-model td {
  border-left: 1px solid #111827;
  border-right: 1px solid #111827;
  border-top: 0;
  border-bottom: 0;
}

.payroll-slip-lines.payslip-lines-model {
  border: 1px solid #111827;
}

.payroll-slip-lines.payslip-lines-model th {
  background: var(--payslip-theme, #008000);
  color: #ffffff;
  text-align: center;
}

.payroll-slip-lines.payslip-lines-model .payslip-section-row td {
  background: var(--payslip-theme-soft, #B3D9B3);
  color: #111827;
}

.payroll-slip-paper footer {
  display: grid;
  gap: 6px;
}

.payroll-slip-paper footer div {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  padding: 8px;
}

.payroll-slip-paper footer .net {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.payroll-settings-grid {
  display: grid;
  gap: 14px;
}

.payroll-settings-block {
  background: #ffffff;
  border: 1px solid #d6dee8;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.payroll-settings-block > header {
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
}

.payroll-settings-block h3 {
  font-size: 1rem;
  margin: 0;
}

.payroll-settings-block p {
  color: #64748b;
  margin: 0;
}

.payroll-settings-form {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
}

.payroll-settings-form.is-editing {
  background: #eef6ff;
  border: 1px solid #4c89c3;
  padding: 8px;
}

.payroll-settings-form label {
  color: #334155;
  display: grid;
  font-weight: 800;
  gap: 5px;
}

.payroll-settings-form input,
.payroll-settings-form select,
.payroll-settings-form textarea {
  border: 1px solid #b8c4d2;
  border-radius: 4px;
  font: inherit;
  min-height: 32px;
  min-width: 0;
  padding: 5px 7px;
}

.payroll-settings-form textarea {
  resize: vertical;
}

.payroll-settings-form .payroll-check {
  align-items: center;
  display: flex;
  gap: 6px;
  min-height: 32px;
}

.payroll-settings-form .payroll-check input {
  height: 16px;
  min-height: 0;
  padding: 0;
  width: 16px;
}

.payroll-template-form {
  grid-template-columns: minmax(170px, 220px) minmax(230px, 1fr) minmax(260px, 1fr);
}

.payroll-template-form input[type="color"] {
  height: 32px;
  padding: 2px;
}

.settings-form-grid {
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-tabbed-module .payroll-settings-form {
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-tabbed-module .payroll-settings-block {
  border: 1px solid #cfd8e6;
  gap: 12px;
  padding: 12px;
}

.admin-tabbed-module .payroll-settings-block > header {
  align-items: center;
  background: #1f2a3d;
  border: 0;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 12px;
}

.admin-tabbed-module .payroll-settings-block > header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.admin-tabbed-module .payroll-settings-block > header p {
  display: none;
}

.admin-tabbed-module .payroll-settings-form label {
  align-items: center;
  color: #223047;
  font-size: 16px;
  font-weight: 400;
  gap: 8px;
  grid-template-columns: 150px minmax(0, 1fr);
  line-height: 1.2;
}

.admin-tabbed-module .payroll-settings-form input,
.admin-tabbed-module .payroll-settings-form select,
.admin-tabbed-module .payroll-settings-form textarea {
  background: #f8fafc;
  border: 1px solid #cfd8e6;
  border-radius: 0;
  color: #111827;
  font: inherit;
  font-size: 16px;
  height: 32px;
  min-height: 32px;
  padding: 5px 8px;
  width: 100%;
}

.admin-tabbed-module .payroll-settings-form textarea {
  height: auto;
}

.admin-tabbed-module .payroll-settings-form .payroll-check {
  color: #223047;
  font-size: 12px;
  font-weight: 800;
  justify-content: flex-start;
  justify-self: start;
  min-height: 24px;
  text-align: left;
  width: auto;
}

.admin-tabbed-module .payroll-settings-form .payroll-check input {
  height: 16px;
  min-height: 0;
  padding: 0;
  width: 16px;
}

.ai-assistant-grid {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.ai-question-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-question-form label {
  align-items: stretch;
  display: grid;
  gap: 6px;
}

.ai-question-form textarea {
  min-height: 120px;
}

.ai-period-custom {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-scope-checks {
  border: 1px solid #d5e0ec;
  display: grid;
  gap: 6px 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 8px 10px 10px;
}

.ai-scope-checks legend {
  color: #223047;
  font-size: 12px;
  font-weight: 850;
  padding: 0 6px;
}

.ai-question-form .ai-scope-checks .payroll-check {
  align-items: center;
  display: flex;
  font-size: 12px;
  gap: 6px;
  min-height: 22px;
}

.ai-question-form .ai-scope-checks .payroll-check input {
  flex: 0 0 16px;
  height: 16px;
  min-height: 0;
  width: 16px;
}

.ai-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-examples button {
  background: #eef6ff;
  border: 1px solid #9bbfe7;
  color: #183a63;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 6px 8px;
}

.ai-context-panel pre {
  background: #0f172a;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
  max-height: 430px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-empty-context {
  background: #f8fafc;
  border: 1px dashed #b8c4d2;
  color: #64748b;
  font-size: 13px;
  padding: 14px;
}

.ai-chart-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-chart-card {
  background: #ffffff;
  border: 1px solid #d6dee8;
  padding: 10px;
}

.ai-chart-card h4 {
  color: #1f2a3d;
  font-size: 14px;
  margin: 0 0 8px;
}

.ai-chart-card canvas {
  border: 1px solid #edf2f7;
  display: block;
  max-width: 100%;
  width: 100%;
}

.ai-answer {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cfd8e6;
  color: #162033;
  font-size: 14px;
  line-height: 1.45;
  padding: 12px;
}

.ai-answer h4 {
  background: #eaf2ff;
  border-left: 4px solid #1f6fb8;
  color: #173b68;
  font-size: 15px;
  margin: 12px 0 6px;
  padding: 6px 8px;
}

.ai-answer h4:first-child {
  margin-top: 0;
}

.ai-answer p {
  margin: 0 0 8px;
}

.ai-answer ul {
  margin: 0 0 10px 18px;
  padding: 0;
}

.ai-answer li {
  background: #ffffff;
  border: 1px solid #edf2f7;
  margin: 4px 0;
  padding: 5px 7px;
}

.ai-answer strong {
  color: #0f172a;
  font-weight: 800;
}

.ai-answer .is-warning {
  background: #fff7ed;
  border-color: #fb923c;
  color: #9a3412;
}

.ai-answer .is-action {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #1d4ed8;
}

.ai-answer .is-positive {
  background: #f0fdf4;
  border-color: #4ade80;
  color: #166534;
}

@media (max-width: 900px) {
  .ai-assistant-grid,
  .ai-question-form,
  .ai-chart-grid,
  .ai-period-custom,
  .ai-scope-checks {
    grid-template-columns: 1fr;
  }
}

.settings-subblock {
  background: #ffffff;
  border: 1px solid #cfd8e6;
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  padding: 0 12px 12px;
}

.settings-subblock h4 {
  align-items: center;
  background: #1f2a3d;
  color: #ffffff;
  display: flex;
  font-size: .95rem;
  font-weight: 700;
  grid-column: 1 / -1;
  margin: 0 -12px 2px;
  min-height: 36px;
  padding: 7px 12px;
  text-transform: uppercase;
}

.settings-logo-block {
  grid-column: 1 / -1;
}

.settings-action-row {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.settings-logo-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: 120px minmax(0, 1fr);
}

.settings-logo-row img {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  height: 92px;
  object-fit: contain;
  padding: 8px;
  width: 120px;
}

.settings-image-picker,
.settings-bank-image {
  align-items: center;
  cursor: pointer;
  display: inline-grid;
  gap: 8px;
  justify-items: center;
  margin: 0;
}

.settings-image-picker input,
.settings-bank-image input {
  display: none;
}

.settings-image-picker span,
.settings-bank-image span {
  color: #406179;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.settings-bank-image img {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  height: 86px;
  object-fit: contain;
  padding: 8px;
  width: 120px;
}

.settings-bank-form {
  align-items: end;
  background: #f8fbfd;
  border: 1px solid #cbd9e6;
  display: grid;
  gap: 10px 12px;
  grid-template-columns: 148px repeat(3, minmax(0, 1fr));
  padding: 12px;
}

.settings-bank-block > header {
  align-items: center;
  background: #1f2a3d;
  border: 0;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 12px;
}

.settings-bank-block > header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.settings-bank-block > header p {
  display: none;
}

.settings-bank-block .list-frame {
  border-radius: 0;
  margin-top: 10px;
}

.settings-tax-block > header {
  align-items: center;
  background: #1f2a3d;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 12px;
}

.settings-tax-block > header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.settings-tax-block > form:not(.settings-tax-form) {
  display: none;
}

.settings-bank-block + #settings-taxes.active {
  display: block;
  margin-top: 12px;
}

.settings-modal[hidden] {
  display: none;
}

.settings-modal {
  align-items: center;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 80;
}

.settings-modal-backdrop {
  background: rgba(15, 38, 60, .42);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.settings-modal-card {
  background: #ffffff;
  border: 1px solid #9eb6ca;
  box-shadow: 0 18px 50px rgba(15, 38, 60, .28);
  max-height: min(720px, calc(100vh - 36px));
  max-width: 940px;
  overflow: auto;
  position: relative;
  width: min(940px, 100%);
}

.settings-modal-card > header {
  align-items: center;
  background: #eef5fa;
  border-bottom: 1px solid #c7d9e8;
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
}

.settings-modal-card > header h3 {
  font-size: 1rem;
  margin: 0;
}

.settings-bank-form > .settings-bank-image {
  align-self: stretch;
  background: #ffffff;
  border: 1px solid #c9d6e3;
  grid-row: span 3;
  min-height: 142px;
  padding: 10px;
}

.settings-bank-form > label:not(.settings-bank-image),
.settings-bank-form > .payroll-check {
  margin: 0;
}

.settings-bank-form > .legacy-action-button {
  justify-self: stretch;
}

.settings-tax-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) repeat(2, auto);
  padding: 12px;
}

.settings-bank-thumb {
  background: #f8fafc;
  border: 1px solid #d7e0ea;
  height: 34px;
  object-fit: contain;
  padding: 3px;
  width: 48px;
}

.settings-form-grid > .legacy-action-button {
  justify-self: end;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.mini-action-button {
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  color: #0f3d5e;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 28px;
  padding: 4px 8px;
}

.mini-action-button:hover,
.mini-action-button:focus {
  background: #eef6ff;
  border-color: #4c89c3;
  outline: none;
}

.payroll-reset-button {
  background: #ffffff;
  color: #334155;
}

.attendance-workspace,
.attendance-settings {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.attendance-filter,
.attendance-balance-form {
  margin: 0;
}

.attendance-workspace .payroll-filter,
.attendance-balance-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.attendance-workspace .payroll-filter label,
.attendance-balance-form label {
  align-items: stretch;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.attendance-workspace .payroll-filter input,
.attendance-workspace .payroll-filter select,
.attendance-balance-form input {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.attendance-workspace .payroll-filter .legacy-action-button,
.attendance-balance-form .legacy-action-button {
  align-self: end;
  min-width: 0;
  white-space: normal;
}

.attendance-summary,
.attendance-leave-summary,
.attendance-control-summary {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.attendance-shortcuts {
  background: #ffffff;
  border: 1px solid #d6dee8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
}

.attendance-shortcuts .legacy-action-button {
  min-height: 32px;
  padding: 7px 12px;
}

.attendance-summary .module-summary-item,
.attendance-leave-summary .module-summary-item,
.attendance-control-summary .module-summary-item {
  min-width: 0;
  padding: 10px 12px;
}

.attendance-request-form .span-2 {
  grid-column: span 2;
}

.attendance-week-form,
.attendance-holiday-form {
  margin-bottom: 10px;
}

.attendance-weekday-grid {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.attendance-inline-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}

.employee-inline-check {
  align-items: center;
  background: #ffffff;
  border: 1px solid #b8c4d2;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  justify-content: flex-start;
  min-height: 24px;
  padding: 3px 7px;
  text-align: left;
}

.employee-inline-check input {
  height: auto;
  min-height: auto;
  width: auto;
}

.attendance-type-picker {
  background: #ffffff;
  border: 1px solid #d6dee8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.attendance-type-choice {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #d6dee8;
  border-left: 5px solid var(--attendance-color, #94a3b8);
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  gap: 6px;
  min-height: 32px;
  min-width: 0;
  padding: 5px 9px;
}

.attendance-type-choice span {
  overflow-wrap: anywhere;
}

.attendance-clear-choice {
  --attendance-color: #111827;
}

.attendance-quick-details {
  background: #ffffff;
  border: 1px solid #d6dee8;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(120px, 180px) minmax(220px, 1fr);
  padding: 10px;
}

.attendance-quick-details label {
  color: #334155;
  display: grid;
  font-size: .86rem;
  font-weight: 850;
  gap: 4px;
}

.attendance-quick-details input {
  border: 1px solid #b8c4d2;
  font: inherit;
  min-height: 32px;
  padding: 5px 7px;
}

.attendance-leave-summary {
  margin: 0;
}

.attendance-calendar {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.attendance-month {
  background: #ffffff;
  border: 1px solid #d6dee8;
  display: grid;
  gap: 6px;
  padding: 8px;
}

.attendance-month h2 {
  color: #0f3d5e;
  font-size: .95rem;
  margin: 0;
  text-align: center;
}

.attendance-weekdays,
.attendance-days {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.attendance-weekdays span {
  color: #64748b;
  font-size: .72rem;
  font-weight: 900;
  text-align: center;
}

.attendance-day {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid #d6dee8;
  color: #111827;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  justify-content: center;
  min-width: 0;
  padding: 0;
}

.attendance-day.is-marked {
  background: var(--attendance-color, #22c55e);
  background: color-mix(in srgb, var(--attendance-color, #22c55e) 22%, #ffffff);
  border-color: var(--attendance-color, #22c55e);
  box-shadow: inset 0 -2px 0 var(--attendance-color, #22c55e);
}

.attendance-day.is-holiday {
  background: var(--attendance-color, #64748b);
  border-color: var(--attendance-color, #64748b);
  box-shadow: inset 0 0 0 2px var(--attendance-color, #64748b);
  color: #ffffff;
}

.attendance-day.is-rest-day {
  background: #f1f5f9;
  border-style: dashed;
  color: #94a3b8;
}

.attendance-day.is-range-selected {
  background: #dbeafe;
  border-color: #2563eb;
  box-shadow: inset 0 0 0 2px #2563eb;
}

.attendance-day.is-saving {
  opacity: .62;
  pointer-events: none;
}

.attendance-day:hover,
.attendance-day:focus {
  outline: 2px solid #0f3d5e;
  outline-offset: 1px;
}

.attendance-day.is-empty {
  background: transparent;
  border: 0;
  pointer-events: none;
}

.attendance-color-swatch {
  border: 1px solid #94a3b8;
  display: inline-block;
  height: 14px;
  margin-right: 6px;
  vertical-align: middle;
  width: 24px;
}

.attendance-monthly-block header {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
}

.attendance-period-bar {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d6dee8;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding: 10px;
}

.attendance-period-bar.is-validated {
  border-color: #22c55e;
  background: #f0fdf4;
}

.attendance-period-bar span {
  color: #64748b;
  display: block;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.attendance-period-bar strong {
  color: #0f3d5e;
  display: block;
  font-size: 1rem;
}

.attendance-period-bar form {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  min-width: 0;
}

.attendance-period-bar .legacy-action-button {
  max-width: 100%;
  white-space: normal;
}

.attendance-control-summary {
  margin: 0;
}

.attendance-controls-block .alert {
  margin: 0;
}

.attendance-controls-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.attendance-controls-head > div {
  min-width: 0;
}

.attendance-notify-form {
  margin: 0;
}

.attendance-notify-button.is-notify {
  background: #16a34a;
  border-color: #15803d;
  color: #ffffff;
}

.attendance-notify-button.is-notify:hover,
.attendance-notify-button.is-notify:focus {
  background: #15803d;
  border-color: #166534;
  color: #ffffff;
}

.attendance-notify-button.is-relaunch {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
}

.attendance-notify-button.is-relaunch:hover,
.attendance-notify-button.is-relaunch:focus {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #ffffff;
}

.attendance-controls-head .attendance-notify-form {
  flex: 0 0 auto;
}

.attendance-controls-scroll {
  max-height: 220px;
  overflow: auto;
}

.attendance-journal-scroll {
  max-height: 58vh;
  overflow: auto;
}

.attendance-journal-table td {
  vertical-align: middle;
}

.attendance-journal-table .attendance-inline-form {
  justify-content: center;
}

.attendance-type-pill {
  background: #ffffff;
  background: color-mix(in srgb, var(--attendance-color, #94a3b8) 18%, #ffffff);
  border: 1px solid var(--attendance-color, #94a3b8);
  border-left-width: 6px;
  border-radius: 4px;
  display: inline-flex;
  font-weight: 850;
  min-height: 24px;
  padding: 3px 7px;
}

.attendance-monthly-scroll {
  max-height: 62vh;
  overflow: auto;
}

.attendance-monthly-table {
  min-width: 980px;
}

.attendance-monthly-table th,
.attendance-monthly-table td {
  text-align: center;
  white-space: nowrap;
}

.attendance-monthly-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.attendance-monthly-name {
  background: #ffffff;
  left: 0;
  min-width: 180px;
  position: sticky;
  text-align: left !important;
  z-index: 1;
}

.attendance-monthly-table thead .attendance-monthly-name,
.attendance-monthly-table thead th:first-child {
  left: 0;
  position: sticky;
  z-index: 3;
}

.attendance-monthly-cell {
  font-size: .74rem;
  font-weight: 900;
  min-width: 34px;
}

.attendance-monthly-cell.is-marked {
  background: #ffffff;
  background: color-mix(in srgb, var(--attendance-color, #22c55e) 20%, #ffffff);
  border-left: 4px solid var(--attendance-color, #22c55e);
  box-shadow: inset 0 -2px 0 var(--attendance-color, #22c55e);
  color: #0f172a;
}

@media (max-width: 980px) {
  .payroll-workspace,
  .payroll-action-grid,
  .payroll-dashboard-grid,
  .payroll-dashboard-metrics,
  .payroll-filter,
  .payroll-bulletins-layout,
  .payroll-slip-identity,
  .payroll-settings-form,
  .attendance-quick-details,
  .attendance-period-bar,
  .attendance-calendar {
    grid-template-columns: 1fr;
  }

  .settings-subblock,
  .settings-logo-row {
    grid-template-columns: 1fr;
  }

  .settings-bank-form,
  .haveright-form {
    grid-template-columns: 1fr;
  }

  .admin-tabbed-module .payroll-settings-form label {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .settings-bank-form > .settings-bank-image,
  .haveright-photo-picker {
    grid-row: auto;
  }

  .haveright-form .span-2,
  .haveright-form .diary-form-actions {
    grid-column: auto;
  }

  .attendance-period-bar {
    align-items: stretch;
    display: grid;
  }

  .attendance-request-form .span-2 {
    grid-column: auto;
  }

  .attendance-period-bar form,
  .attendance-period-bar .legacy-action-button {
    width: 100%;
  }

  .attendance-controls-head {
    align-items: stretch;
    display: grid;
  }

  .attendance-controls-head .attendance-notify-form,
  .attendance-controls-head .legacy-action-button {
    width: 100%;
  }

  .payroll-sidebar {
    position: static;
  }
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  body.print-payroll-slip * {
    visibility: hidden !important;
  }

  body.print-payroll-slip #payroll-slip-print-area,
  body.print-payroll-slip #payroll-slip-print-area * {
    visibility: visible !important;
  }

  body.print-payroll-slip #payroll-slip-print-area {
    border: 0 !important;
    box-shadow: none !important;
    left: 0 !important;
    margin: 0 !important;
    min-height: 297mm !important;
    padding: 10mm !important;
    position: absolute !important;
    top: 0 !important;
    width: 210mm !important;
  }

  html,
  body {
    background: #ffffff;
    height: auto;
    margin: 0;
    width: 210mm;
  }

  .app-header,
  .page-heading,
  .module-summary,
  .payroll-command-bar,
  .payroll-sidebar,
  .payroll-slip-list,
  .payroll-filter,
  .payroll-print-button,
  .payroll-slip-modal-toolbar,
  .footer {
    display: none !important;
  }

  .app-shell,
  .payroll-workspace,
  .payroll-panels,
  .payroll-panel,
  .payroll-bulletins-layout,
  .payroll-slip-preview {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    width: 100% !important;
  }

  .payroll-panel {
    border: 0;
  }

  .payroll-panel header {
    display: none;
  }

  .payroll-slip-paper {
    border: 0;
    box-shadow: none;
    gap: 6px;
    margin: 0;
    min-height: 297mm;
    overflow: hidden;
    padding: 10mm;
    width: 210mm;
  }

  .payslip-model {
    max-width: none;
    min-height: 297mm;
    width: 210mm;
  }

  body.page-invoice {
    background: #ffffff !important;
    width: auto;
  }

  body.page-invoice .topbar,
  body.page-invoice .app-header,
  body.page-invoice .footer,
  body.page-invoice .invoice-page-actions,
  body.page-invoice .invoice-preview-actions {
    display: none !important;
  }

  body.page-invoice .shell,
  body.page-invoice .invoice-page-shell,
  body.page-invoice .invoice-page-preview,
  body.page-invoice .invoice-scale-frame {
    background: #ffffff !important;
    display: block !important;
    height: auto !important;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    width: auto !important;
  }

  body.page-invoice .invoice-preview {
    box-shadow: none !important;
    min-height: 294.9mm !important;
    transform: none !important;
    width: 209.6mm !important;
  }
}

@media (max-width: 900px) {
  .invoice-page-shell,
  .invoice-total-row {
    grid-template-columns: 1fr;
  }

  .invoice-page-preview {
    overflow-x: hidden;
    padding: 0;
    width: 100%;
  }

  .invoice-scale-frame {
    margin: 0;
    max-width: 100%;
    width: 100% !important;
  }

  .invoice-page-preview .invoice-preview {
    transform-origin: top left;
  }

  .invoice-title-box h3 {
    font-size: 28px;
    margin: 0 0 4px;
    max-width: 100%;
    overflow-wrap: normal;
  }

  .invoice-page-actions {
    min-height: auto;
    position: static;
  }

  .invoice-form-meta,
  .invoice-form-customer {
    grid-template-columns: 1fr;
  }

  .invoice-customer-info,
  .invoice-customer-info.invoice-customer-wide {
    grid-column: 1 / -1;
  }

  .invoice-draft-line {
    grid-template-columns: 1fr;
  }
}

.data-list tbody tr:nth-child(even) {
  background: #fbfdff;
}

@media (min-width: 1000px) {
  .product-page-heading {
    margin-bottom: 10px;
    padding: 12px 16px;
  }

  .product-page-heading p {
    margin: 4px 0 0;
  }

  .product-kpi {
    gap: 8px;
    margin-bottom: 10px;
  }

  .product-kpi .module-summary-item {
    min-height: 46px;
    padding: 6px 8px;
  }

  .product-kpi .module-summary-item span {
    font-size: .82rem;
  }

  .product-kpi .module-summary-item strong {
    font-size: 1.2rem;
  }

  .product-workspace {
    gap: 8px;
  }

  .product-workspace .table-panel {
    gap: 8px;
    padding: 10px;
  }

  .product-workspace .legacy-tabs a {
    font-size: .88rem;
    padding: 7px 10px;
  }

  .product-workspace .legacy-toolbar,
  .product-workspace .list-filter,
  .product-workspace .pager {
    gap: 6px;
  }

  .product-workspace .legacy-action-button,
  .product-workspace .icon-button {
    font-size: .86rem;
    min-height: 30px;
    padding: 5px 8px;
  }

  .product-workspace .list-filter label {
    font-size: .9rem;
    gap: 4px;
  }

  .product-workspace .list-filter input,
  .product-workspace .list-filter select {
    min-height: 30px;
    padding: 4px 7px;
  }

  .product-workspace .selected-row-panel {
    grid-template-columns: auto 1fr auto;
    padding: 6px 10px;
  }

  .product-workspace .selected-row-panel span,
  .product-workspace .selected-row-panel strong {
    font-size: inherit;
    line-height: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-form-panel {
    padding: 10px;
  }

  .product-form-panel .diary-entry-form {
    gap: 8px;
  }

  .product-form-panel .diary-entry-form label {
    font-size: .9rem;
    gap: 4px;
  }

  .product-form-panel .diary-entry-form input,
  .product-form-panel .diary-entry-form select,
  .product-form-panel .diary-entry-form textarea {
    min-height: 30px;
    padding: 4px 7px;
  }

  .product-form-panel .diary-entry-form textarea {
    min-height: 58px;
  }
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover,
.clickable-row.is-selected {
  background: #edf6ff !important;
  box-shadow: inset 4px 0 0 #1f6fb8;
}

.empty-row {
  color: #64748b;
  font-weight: 800;
  text-align: center !important;
}

.selected-row-panel {
  background: #f7f9fb;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.selected-row-label {
  color: #64748b;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sell-chart-view {
  display: grid;
  gap: 12px;
}

.sell-chart-card {
  background: #f7f9fb;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  padding: 12px;
}

.sell-chart-card h3 {
  color: #223047;
  font-size: 1rem;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.sell-chart-card canvas {
  background: #ffffff;
  border: 1px solid #dde4ec;
  display: block;
  max-width: 100%;
  width: 100%;
}

.diary-form-panel,
.print-report-box {
  background: #f7f9fb;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.diary-display-card {
  max-width: 780px;
}

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

.diary-entry-form label,
.diary-display-grid label,
.diary-print-form label {
  color: #223047;
  display: grid;
  font-size: .9rem;
  font-weight: 850;
  gap: 6px;
}

.diary-entry-form input,
.diary-entry-form select,
.diary-entry-form textarea,
.diary-display-grid input,
.diary-display-grid textarea,
.diary-print-form select,
.diary-print-form input {
  background: #ffffff;
  border: 1px solid #bfcbd9;
  border-radius: 4px;
  color: #18212f;
  font: inherit;
  min-height: 36px;
  padding: 7px 9px;
  width: 100%;
}

.diary-entry-form textarea {
  resize: vertical;
}

.diary-display-grid input,
.diary-display-grid textarea {
  background: #f8fafc;
}

.diary-display-grid textarea {
  resize: none;
}

.employee-view-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-view-grid label {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  color: #64748b;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.employee-view-grid strong {
  color: #1f2a3d;
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.employee-detail-page {
  background: #ffffff;
  border: 1px solid #d8e0eb;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.employee-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.employee-name-band,
.employee-section-title {
  background: #1f2a3d;
  color: #ffffff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 8px 12px;
  text-transform: uppercase;
}

.employee-tabs {
  align-items: center;
  border-bottom: 1px solid #ccd6e4;
  display: flex;
  gap: 4px;
}

.employee-tab {
  background: #e8edf4;
  border: 1px solid #ccd6e4;
  border-bottom: 0;
  color: #223047;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 34px;
  padding: 8px 14px;
}

.employee-tab.active {
  background: #ffffff;
  color: #0f172a;
}

.employee-tab-panel {
  display: none;
  gap: 12px;
}

.employee-tab-panel.active {
  display: grid;
}

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

.employee-primary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 132px;
}

.employee-primary-grid .employee-photo-picker {
  align-self: stretch;
  grid-column: 3;
  grid-row: 1 / span 4;
  justify-self: stretch;
  min-width: 0;
}

.employee-primary-grid .employee-read-field {
  grid-template-columns: 118px minmax(0, 1fr);
}

.employee-read-field {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 150px minmax(0, 1fr);
}

.employee-read-field.wide {
  grid-column: 1 / -1;
}

.employee-read-field span {
  color: #223047;
  font-size: 16px;
}

.employee-read-field input {
  background: #f8fafc;
  border: 1px solid #cfd8e6;
  color: #111827;
  font: inherit;
  font-size: 16px;
  height: 32px;
  min-height: 32px;
  padding: 5px 8px;
  width: 100%;
}

.employee-select-control {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.employee-select-control.has-add-button {
  grid-template-columns: minmax(0, 1fr) 32px;
}

.employee-user-select-control {
  grid-template-columns: minmax(0, 1fr);
}

.employee-select-control select {
  background: #ffffff;
  border: 1px solid #cfd8e6;
  color: #111827;
  font: inherit;
  font-size: 16px;
  height: 32px;
  min-height: 32px;
  min-width: 0;
  padding: 5px 8px;
  width: 100%;
}

.employee-add-button {
  align-items: center;
  background: #cbd5e1;
  border: 1px solid #94a3b8;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  justify-content: center;
  height: 32px;
  min-height: 32px;
  padding: 0;
  width: 32px;
}

.employee-note-box {
  background: #f8fafc;
  border: 1px solid #cfd8e6;
  min-height: 160px;
  padding: 12px;
}

.haveright-form-block header,
.employee-tab-panel > .payroll-settings-block header {
  margin-bottom: 0;
}

.haveright-modal-card {
  max-width: 920px;
}

.haveright-form {
  grid-template-columns: 148px repeat(2, minmax(0, 1fr));
  padding: 12px;
}

.haveright-form .span-2,
.haveright-form .diary-form-actions {
  grid-column: 2 / -1;
}

.haveright-photo-picker {
  align-self: stretch;
  background: #ffffff;
  border: 1px solid #c9d6e3;
  grid-row: span 5;
  min-height: 170px;
  padding: 10px;
}

.haveright-photo-picker img {
  border-radius: 50%;
  height: 112px;
  object-fit: cover;
  width: 112px;
}

.haveright-thumb {
  background: #f8fafc;
  border: 1px solid #d7e0ea;
  border-radius: 50%;
  height: 38px;
  object-fit: cover;
  padding: 2px;
  width: 38px;
}

.employee-photo-picker {
  align-self: start;
  background: #ffffff;
  border: 1px solid #c9d6e3;
  border-radius: 8px;
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 150px;
  padding: 10px;
}

.employee-photo-picker img {
  border-radius: 50%;
  height: 104px;
  object-fit: cover;
  padding: 2px;
  width: 104px;
}

.employee-photo-readonly {
  cursor: default;
}

.employee-thumb {
  background: #f8fafc;
  border: 1px solid #d7e0ea;
  border-radius: 50%;
  height: 38px;
  object-fit: cover;
  padding: 2px;
  width: 38px;
}

.diary-entry-form .employee-photo-picker {
  grid-column: 1 / -1;
  justify-self: start;
}

.haveright-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.haveright-actions form {
  margin: 0;
}

.haveright-list td {
  vertical-align: middle;
}

.diary-entry-form label:nth-of-type(7),
.diary-display-grid .span-2,
.diary-form-meta,
.diary-form-actions {
  grid-column: 1 / -1;
}

.diary-form-meta {
  color: #64748b;
  display: grid;
  font-size: .85rem;
  gap: 4px;
}

.diary-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.diary-form-actions form {
  margin: 0;
}

.danger-button {
  background: #dc2626;
  border-color: #991b1b;
  color: #ffffff;
}

.print-report-box {
  margin-left: auto;
  max-width: 380px;
}

.print-report-header {
  align-items: center;
  background: #111827;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  margin: -16px -16px 0;
  min-height: 35px;
  padding: 6px 10px;
}

.print-report-header button {
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 850;
}

.diary-print-form {
  display: grid;
  gap: 12px;
}

.pager {
  justify-content: flex-end;
}

.pager-current {
  color: #475569;
  font-weight: 800;
}

.status-pill {
  background: #eef3f8;
  border: 1px solid #b8c4d2;
  color: #0f172a;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 850;
  justify-content: center;
  min-width: 74px;
  padding: 4px 8px;
}

.status-pill.warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.status-pill.success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.status-pill.danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.pressing-kpi {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.pressing-sales-total {
  margin: 0 0 12px;
}

.malewa3-titlebar {
  background: #eef2f7;
  border-bottom: 1px solid #c7d2df;
  margin: -18px -5% 0;
  padding: 8px 5% 7px;
}

.malewa3-titlebar h1 {
  color: #11253a;
  font-size: 24px;
  line-height: 1;
  margin: 0;
  text-align: center;
}

.malewa3-kpi-strip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  display: flex;
  gap: 0;
  margin: 8px 0 0;
  overflow-x: auto;
  padding: 0;
}

.malewa3-kpi-strip .module-summary-item {
  background: transparent;
  border: 0;
  border-right: 1px solid #cbd5e1;
  border-radius: 0;
  min-width: 135px;
  padding: 7px 10px;
}

.malewa3-kpi-strip .module-summary-item span {
  font-size: 11px;
  line-height: 1.15;
}

.malewa3-kpi-strip .module-summary-item strong {
  font-size: 15px;
  margin-top: 4px;
}

.malewa3-window {
  background: #edf1f5;
  border: 1px solid #9fb1c5;
  border-radius: 0;
  box-shadow: inset 0 1px 0 #ffffff;
  margin-top: 8px;
  padding: 0 14px 14px;
}

.malewa3-window .legacy-tabs {
  background: #d8e0ea;
  border: 1px solid #9fb1c5;
  border-top: 0;
  margin: 0 -14px 8px;
  padding: 0 14px;
}

.malewa3-window .legacy-tabs a {
  background: #e7ecf2;
  border: 1px solid #9fb1c5;
  border-bottom: 0;
  border-radius: 0;
  color: #18324a;
  font-size: 12px;
  min-height: 28px;
  padding: 7px 12px 6px;
}

.malewa3-window .legacy-tabs a.active {
  background: #ffffff;
  color: #0f6b4f;
}

.malewa3-window .table-panel {
  background: #ffffff;
  border-color: #b7c4d3;
  border-radius: 0;
  gap: 8px;
  padding: 10px;
}

.malewa3-commandbar {
  background: #f0f3f7;
  border: 1px solid #c7d2df;
  padding: 6px;
}

.malewa3-window .legacy-action-button,
.malewa3-window .icon-button {
  border-radius: 2px;
  font-size: 12px;
  min-height: 27px;
  padding: 4px 9px;
}

.malewa3-filterbar {
  background: #f8fafc;
  border-color: #cbd5e1;
  border-radius: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, auto)) auto auto;
  padding: 7px;
}

.malewa3-filterbar label {
  font-size: 12px;
  gap: 5px;
}

.malewa3-filterbar input,
.malewa3-filterbar select {
  border-radius: 0;
  font-size: 12px;
  min-height: 27px;
  padding: 3px 6px;
}

.malewa3-window .responsive-table {
  border: 1px solid #b7c4d3;
  max-height: calc(100vh - 330px);
  min-height: 230px;
  overflow: auto;
}

.malewa3-window .data-list {
  font-size: 12px;
}

.malewa3-window .data-list th {
  background: #1f4e79;
  border-bottom: 1px solid #173a5b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 8px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.malewa3-window .data-list td {
  background: #ffffff;
  color: #172033;
  font-size: 12px;
  padding: 6px 8px;
}

.malewa3-window .data-list tbody tr:nth-child(even) td {
  background: #f7f9fc;
}

.malewa3-window .selected-row-panel {
  border-radius: 0;
  margin-top: 0;
  padding: 7px 10px;
}

.malewa3-window .pager {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  justify-content: flex-end;
  padding: 5px;
}

.carwash-order-screen {
  background: #ffffff;
  border: 1px solid #b7c4d3;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) 350px;
  min-height: calc(100vh - 300px);
}

.carwash-service-choice {
  display: grid;
  grid-template-rows: auto minmax(170px, 1fr) auto;
  min-width: 0;
}

.carwash-type-strip {
  align-items: center;
  background: #f3f6f9;
  border-bottom: 1px solid #c4cfdb;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 120px);
  justify-content: center;
  min-height: 108px;
  padding: 10px;
}

.carwash-type-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #1e344c;
  cursor: pointer;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  justify-items: center;
  padding: 4px;
}

.carwash-type-button img {
  height: 48px;
  object-fit: contain;
  width: 48px;
}

.carwash-type-button.active img {
  filter: drop-shadow(0 0 0 #0f8f67);
}

.carwash-type-button.active span {
  color: #0f8f67;
}

.carwash-service-list {
  align-content: start;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  max-height: calc(100vh - 520px);
  min-height: 180px;
  overflow: auto;
  padding: 10px;
}

.carwash-service-card {
  background: #ffffff;
  border: 1px solid #c3cfdb;
  border-radius: 2px;
  color: #172033;
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 9px;
  text-align: left;
}

.carwash-service-card:hover {
  border-color: #0f8f67;
  box-shadow: inset 0 0 0 1px #0f8f67;
}

.carwash-service-card strong {
  font-size: 13px;
}

.carwash-service-card span {
  color: #5c6c7c;
  font-size: 12px;
  line-height: 1.2;
}

.carwash-service-card em {
  color: #0f6b4f;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.carwash-service-card.is-hidden {
  display: none;
}

.carwash-payment-panel {
  background: #f7f9fc;
  border-top: 1px solid #c4cfdb;
  display: grid;
  gap: 8px 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 10px;
}

.carwash-payment-panel label {
  color: #26384d;
  display: grid;
  font-size: 12px;
  font-weight: 750;
  gap: 4px;
}

.carwash-payment-panel input,
.carwash-payment-panel select {
  border: 1px solid #b9c6d4;
  border-radius: 0;
  font-size: 12px;
  min-height: 28px;
  padding: 4px 7px;
}

.carwash-cartbox {
  background: #f4f7fb;
  border-left: 1px solid #b7c4d3;
  display: grid;
  grid-template-rows: auto minmax(170px, 1fr) auto;
  min-width: 0;
}

.carwash-total-box {
  background: #1f4e79;
  color: #ffffff;
  display: grid;
  gap: 4px 8px;
  grid-template-columns: 1fr auto;
  padding: 10px;
}

.carwash-total-box span {
  font-size: 12px;
}

.carwash-total-box strong {
  font-size: 13px;
  text-align: right;
}

.carwash-cart-detail {
  background: #ffffff;
  overflow: auto;
  padding: 8px;
}

.carwash-empty-cart {
  align-items: center;
  color: #66788a;
  display: flex;
  font-size: 13px;
  height: 100%;
  justify-content: center;
  min-height: 160px;
}

.carwash-cart-line {
  align-items: center;
  border-bottom: 1px solid #d9e1ea;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto 26px;
  padding: 7px 0;
}

.carwash-cart-line strong,
.carwash-cart-line span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carwash-cart-line strong {
  font-size: 12px;
}

.carwash-cart-line span,
.carwash-cart-line em {
  color: #526477;
  font-size: 11px;
  font-style: normal;
}

.carwash-cart-line button {
  background: #fbe2e2;
  border: 1px solid #e5aaaa;
  color: #9b1c1c;
  cursor: pointer;
  height: 24px;
  width: 24px;
}

.carwash-cart-actions {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.carwash-single-grid {
  margin-top: 0;
}

@media (max-width: 900px) {
  .carwash-fullscreen-shell .invoice-page-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
    max-width: none;
    width: 100%;
  }

  .carwash-fullscreen-shell .invoice-page-actions .legacy-action-button {
    white-space: normal;
    width: 100%;
  }

  .carwash-order-screen {
    grid-template-columns: 1fr;
  }

  .carwash-cartbox {
    border-left: 0;
    border-top: 1px solid #b7c4d3;
  }

  .carwash-payment-panel {
    grid-template-columns: 1fr;
  }

  .carwash-type-strip {
    gap: 10px;
    grid-template-columns: repeat(3, minmax(80px, 1fr));
  }
}

.pressing-settings-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 10px;
}

.pressing-setting-block {
  background: #ffffff;
  border: 1px solid #b7c4d3;
  padding: 8px;
}

.pressing-setting-block h2 {
  background: #1f4e79;
  color: #ffffff;
  font-size: 12px;
  margin: -8px -8px 8px;
  padding: 7px 9px;
}

.pressing-setting-head {
  align-items: center;
  background: #1f4e79;
  display: flex;
  justify-content: space-between;
  margin: -8px -8px 8px;
  padding: 5px 8px;
}

.pressing-setting-head h2 {
  background: transparent;
  margin: 0;
  padding: 0;
}

.pressing-detail-page {
  display: grid;
  gap: 14px;
}

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

.pressing-detail-block {
  background: #ffffff;
  border: 1px solid #b7c4d3;
  padding: 10px;
}

.pressing-detail-block h2 {
  background: #1f4e79;
  color: #ffffff;
  font-size: 12px;
  margin: -10px -10px 10px;
  padding: 7px 9px;
}

.pressing-detail-block dl {
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(95px, max-content) 1fr;
  margin: 0;
}

.pressing-detail-block dt {
  color: #64748b;
  font-weight: 800;
}

.pressing-detail-block dd {
  margin: 0;
  min-width: 0;
}

.pressing-service-evolution {
  align-items: start;
  background: #ffffff;
  border: 1px solid #b7c4d3;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px 0 14px;
}

.pressing-service-evolution article {
  align-items: center;
  background: transparent;
  border: 0;
  color: #111827;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 74px;
  padding: 0 4px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.pressing-service-evolution article:not(:last-child)::after {
  background: #c5c5c5;
  content: "";
  height: 6px;
  left: 50%;
  position: absolute;
  top: 25px;
  width: 100%;
  z-index: 0;
}

.pressing-service-evolution article.active:not(:last-child)::after {
  background: #04f000;
}

.pressing-service-evolution article.active {
  background: transparent;
  color: #111827;
}

.pressing-service-evolution img {
  background: #ffffff;
  border-radius: 50%;
  filter: none;
  height: 52px;
  object-fit: contain;
  position: relative;
  width: 52px;
  z-index: 2;
}

.pressing-service-evolution article.active img {
  filter: none;
}

.pressing-service-evolution article.current {
  box-shadow: none;
}

.pressing-service-evolution span {
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.15;
}

.pressing-mini-frame {
  max-height: 210px;
  min-height: 130px;
}

.pressing-limited-frame {
  max-height: 780px;
  overflow: auto;
}

.pressing-mini-frame .data-list {
  min-width: 420px;
}

.pressing-attribute-filter {
  align-items: center;
  color: #223047;
  display: flex;
  font-size: .9rem;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 10px;
}

.pressing-attribute-filter select {
  border: 1px solid #ccd6e2;
  border-radius: 6px;
  font: inherit;
  min-height: 34px;
  padding: 6px 8px;
}

.press-product-row.is-selected td,
.press-storage-row.is-selected td,
.pressing-row.is-selected td {
  background: #dbeafe !important;
}

.pressing-items-frame {
  margin-top: 12px;
  max-height: 260px;
  overflow: auto;
}

.pressing-order-form {
  display: grid;
  gap: 0;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: calc(100vh - 260px);
}

.pressing-order-left,
.pressing-order-right {
  background: #ffffff;
  border: 1px solid #b7c4d3;
}

.pressing-order-left {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 430px;
}

.pressing-left-header {
  background: #d8e0ea;
  border-bottom: 1px solid #b7c4d3;
  color: #172033;
  font-size: 12px;
  font-weight: 850;
  padding: 9px 10px;
  text-transform: uppercase;
}

.pressing-cart-frame {
  border: 0;
  min-height: 260px;
}

.pressing-cart-list {
  min-width: 100%;
}

.pressing-cart-list th,
.pressing-cart-list td {
  font-size: 12px;
  padding: 6px;
}

.pressing-order-total {
  align-items: center;
  background: #f8fafc;
  border-top: 1px solid #cbd5e1;
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
}

.pressing-order-total span,
.pressing-order-total strong {
  font-size: 13px;
  font-weight: 850;
}

.pressing-order-actions {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px;
}

.pressing-order-actions .validate {
  background: #16a34a;
  border-color: #15803d;
}

.pressing-order-actions .validate:hover {
  background: #15803d;
  border-color: #166534;
  box-shadow: 0 8px 16px rgba(21, 128, 61, .22);
  transform: translateY(-1px);
}

.pressing-order-actions .soft-danger {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.pressing-order-actions .soft-danger:hover {
  background: #fecaca;
  border-color: #fca5a5;
  box-shadow: 0 8px 16px rgba(220, 38, 38, .16);
  transform: translateY(-1px);
}

.pressing-order-actions .danger {
  background: #dc2626;
  border-color: #b91c1c;
  color: #ffffff;
}

.pressing-order-actions .danger:hover {
  background: #b91c1c;
  border-color: #991b1b;
  box-shadow: 0 8px 16px rgba(185, 28, 28, .24);
  transform: translateY(-1px);
}

.pressing-order-actions .warning {
  background: #facc15;
  border-color: #eab308;
  color: #422006;
}

.pressing-order-actions .warning:hover {
  background: #eab308;
  border-color: #ca8a04;
  box-shadow: 0 8px 16px rgba(202, 138, 4, .22);
  transform: translateY(-1px);
}

.pressing-cart-row {
  cursor: pointer;
}

.pressing-cart-row.is-selected td {
  background: #dbeafe !important;
}

.pressing-order-right {
  border-left: 0;
  display: grid;
  grid-template-rows: auto auto minmax(260px, 1fr) auto;
}

.pressing-customer-strip {
  align-items: end;
  background: #f8fafc;
  border-bottom: 1px solid #cbd5e1;
  display: grid;
  gap: 7px;
  grid-template-columns: 140px 140px 170px minmax(220px, 1fr) auto;
  padding: 10px;
}

.pressing-customer-strip label,
.pressing-product-nav label {
  color: #172033;
  display: grid;
  font-size: 12px;
  font-weight: 850;
  gap: 4px;
}

.pressing-customer-strip input,
.pressing-customer-strip select,
.pressing-product-nav input,
#pressing-add-cart-modal input,
#pressing-add-cart-modal select,
#pressing-washing-modal input {
  border: 1px solid #aebccd;
  border-radius: 0;
  font: inherit;
  font-size: 12px;
  min-height: 28px;
  padding: 4px 6px;
}

.pressing-category-strip {
  background: #ffffff;
  border-bottom: 1px solid #cbd5e1;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(82px, 1fr));
  padding: 10px;
}

.pressing-category-card {
  background: #ffffff;
  border: 1px solid #9fb1c5;
  color: #172033;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  min-height: 54px;
  padding: 6px;
  text-transform: uppercase;
}

.pressing-category-card.active {
  background: #d8e0ea;
  border-color: #1f4e79;
  color: #0f6b4f;
}

.pressing-product-grid {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  grid-auto-rows: 86px;
  grid-template-rows: repeat(2, minmax(86px, 1fr));
  overflow: auto;
  padding: 2px;
}

.pressing-product-grid > .empty-row {
  align-self: start;
  grid-column: 1 / -1;
  padding: 18px;
  text-align: center;
}

.pressing-product-card {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #b7c4d3;
  color: #172033;
  cursor: pointer;
  display: grid;
  grid-template-rows: 1fr auto;
  box-sizing: border-box;
  height: 86px;
  min-height: 86px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.pressing-product-card span {
  align-items: center;
  display: flex;
  font-size: 11px;
  font-weight: 850;
  justify-content: center;
  padding: 6px;
  text-align: center;
}

.pressing-product-card strong {
  background: #eef2f7;
  border-top: 1px solid #cbd5e1;
  color: #1f4e79;
  font-size: 11px;
  padding: 5px 6px;
  text-align: right;
}

.pressing-product-card:hover {
  border-color: #1f4e79;
  box-shadow: inset 0 0 0 1px #1f4e79;
}

.pressing-product-nav {
  align-items: end;
  background: #f8fafc;
  border-top: 1px solid #cbd5e1;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 8px 10px;
}

.pressing-selected-price {
  color: #1f4e79;
  font-size: 13px;
  font-weight: 850;
  margin: 0;
}

.pressing-add-cart-card {
  max-width: min(94vw, 544px);
  width: min(94vw, 544px);
}

.pressing-add-cart-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.pressing-add-cart-form label {
  color: #223047;
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 6px;
  line-height: 1.15;
}

.pressing-add-cart-form input,
.pressing-add-cart-form select {
  background: #f8fafc;
  border: 1px solid #cbd6e4;
  border-radius: 6px;
  color: #111827;
  font: inherit;
  font-size: 14px;
  height: 38px;
  min-height: 38px;
  min-width: 0;
  padding: 7px 9px;
  width: 100%;
}

.pressing-field-wide,
.pressing-service-field,
.pressing-feature-field,
.pressing-add-cart-form .modal-actions {
  grid-column: 1 / -1;
}

.pressing-add-cart-form.has-attribute-choice .pressing-feature-field,
.pressing-attribute-choice {
  grid-column: auto;
}

.pressing-qty-field {
  grid-column: 1;
}

.pressing-add-cart-form .pressing-selected-price {
  grid-column: 2;
}

.pressing-attribute-line {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.pressing-attribute-line .pressing-feature-field,
.pressing-attribute-line .pressing-attribute-choice {
  grid-column: auto;
}

.pressing-attribute-line .mini-action-button {
  align-self: end;
  font-size: 18px;
  line-height: 1;
  min-height: 38px;
  min-width: 38px;
  padding: 0;
  width: 38px;
}

.pressing-attribute-actions {
  align-self: end;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.pressing-attribute-actions .soft-danger {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.pressing-add-attribute-button {
  justify-self: start;
  min-height: 34px;
}

.pressing-add-cart-form .pressing-selected-price {
  align-items: center;
  background: #eef6ff;
  border: 1px solid #c7d9ee;
  border-radius: 6px;
  color: #0f3d5e;
  display: flex;
  font-size: 15px;
  height: 38px;
  min-height: 38px;
  min-width: 0;
  padding: 7px 10px;
}

.pressing-add-cart-form .modal-actions {
  margin-top: 0;
}

.pressing-heading {
  margin-bottom: 16px;
}

.pressing-heading h1 {
  font-size: 1.15rem;
  line-height: 1.2;
  text-align: left;
}

.pressing-workspace .table-panel {
  align-content: start;
}

.pressing-workspace .responsive-table {
  max-height: calc(100vh - 360px);
  overflow: auto;
}

.pressing-workspace .data-list th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.pressing-config-tabs {
  display: grid;
  gap: 14px;
}

.pressing-config-tabs .employee-tabs {
  margin-bottom: 0;
}

.pressing-config-tabs .employee-tab-panel.active {
  display: grid;
}

.pressing-tab-toolbar {
  justify-content: flex-start;
}

.pressing-config-tabs .pressing-settings-grid {
  margin-top: 0;
}

.pressing-settings-grid {
  gap: 14px;
}

.pressing-setting-block {
  border-color: #d6dee8;
  border-radius: 8px;
  padding: 14px;
}

.pressing-setting-block h2 {
  background: transparent;
  color: #223047;
  font-size: 1rem;
  margin: 0 0 12px;
  padding: 0;
}

.pressing-settings-grid .pressing-setting-block:nth-child(-n+2) {
  border-left: 4px solid #17674f;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.pressing-settings-grid .pressing-setting-block:nth-child(-n+2) h2 {
  background: #eef7f2;
  border-radius: 6px;
  color: #17674f;
  padding: 9px 10px;
}

.pressing-round-options {
  border: 1px solid #d6dee8;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 12px;
}

.pressing-round-options legend {
  color: #223047;
  font-size: .92rem;
  font-weight: 850;
  padding: 0 6px;
}

.pressing-radio-option {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
}

.pressing-radio-option input {
  flex: 0 0 auto;
  min-height: 0;
}

.pressing-radio-option span {
  color: #223047;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.pressing-setting-head {
  background: transparent;
  margin: 0 0 12px;
  padding: 0;
}

.pressing-setting-head h2 {
  color: #223047;
}

.pressing-order-form {
  gap: 14px;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
}

.pressing-order-form.is-cart-empty {
  grid-template-columns: minmax(0, 1fr);
}

.pressing-order-left,
.pressing-order-right {
  border-color: #d6dee8;
  border-radius: 8px;
  overflow: hidden;
}

.pressing-order-right {
  border-left: 1px solid #d6dee8;
}

.pressing-left-header {
  background: #eef2f6;
  border-bottom-color: #d6dee8;
  color: #334155;
}

.pressing-customer-strip {
  background: #f7f9fb;
  border-bottom-color: #dde4ec;
  border-radius: 0;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
}

.pressing-customer-strip input,
.pressing-customer-strip select,
.pressing-product-nav input,
#pressing-add-cart-modal input,
#pressing-add-cart-modal select,
#pressing-washing-modal input {
  border-color: #ccd6e2;
  border-radius: 6px;
  min-height: 34px;
  padding: 6px 8px;
}

.pressing-category-strip {
  background: #ffffff;
  border-bottom-color: #dde4ec;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  overflow: hidden;
  padding: 12px;
}

.pressing-category-card {
  align-items: center;
  background: #ffffff;
  border-color: #d6dee8;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 86px;
  padding: 8px 6px;
  text-align: center;
}

.pressing-category-card img {
  height: 52px;
  object-fit: contain;
  width: 52px;
}

.pressing-category-card span {
  display: block;
  font-size: 12px;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.pressing-category-card.active {
  background: #ecfdf3;
  border-color: #6fcf97;
  color: #166534;
  box-shadow: 0 8px 18px rgba(22, 101, 52, .12);
}

.pressing-product-grid {
  gap: 10px;
  align-items: stretch;
  grid-auto-rows: 86px;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  grid-template-rows: none;
  max-height: calc(100vh - 500px);
  padding: 12px;
}

.pressing-product-card {
  border-color: #d6dee8;
  border-radius: 8px;
  box-sizing: border-box;
  height: 86px;
  min-height: 86px;
  overflow: hidden;
  width: 100%;
}

.pressing-product-card span {
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pressing-product-card strong {
  background: #f7f9fb;
  color: #17674f;
}

.pressing-product-card:hover {
  border-color: #6fcf97;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .10);
}

.pressing-product-nav {
  background: #f7f9fb;
  border-top-color: #dde4ec;
}

.pressing-product-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.pressing-product-form-block {
  background: #ffffff;
  border: 1px solid #cfd8e6;
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.pressing-product-form-block h3 {
  align-items: center;
  background: #1f2a3d;
  color: #ffffff;
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 -12px 0;
  min-height: 36px;
  padding: 7px 12px;
  text-transform: uppercase;
}

.pressing-product-identity-grid,
.pressing-product-price-grid {
  display: grid;
  gap: 10px 12px;
}

.pressing-product-identity-grid {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) 180px;
}

.pressing-product-price-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pressing-product-main-field {
  grid-column: span 1;
}

.pressing-product-form label {
  color: #223047;
  display: grid;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
  line-height: 1.2;
}

.pressing-product-form input,
.pressing-product-form select {
  background: #f8fafc;
  border: 1px solid #cfd8e6;
  border-radius: 0;
  color: #111827;
  font: inherit;
  font-size: 14px;
  height: 34px;
  min-height: 34px;
  min-width: 0;
  padding: 6px 8px;
  width: 100%;
}

.pressing-product-form .modal-actions {
  margin-top: 0;
}

.icon-button.is-disabled {
  opacity: .45;
  pointer-events: none;
}

@media (max-width: 900px) {
  .dashboard-header,
  .workbench,
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-body {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .login-screen {
    align-items: stretch;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding: 14px 18px;
  }

  .login-brand {
    justify-content: start;
    padding: 0 0 14px;
  }

  .app-mark {
    height: 58px;
    margin-bottom: 10px;
    width: 160px;
  }

  .login-brand .eyebrow {
    font-size: .74rem;
    margin-bottom: 4px;
  }

  .login-brand h1 {
    font-size: 1.45rem;
    line-height: 1.1;
    margin: 0;
  }

  .login-brand p {
    font-size: .9rem;
    line-height: 1.35;
    margin: 6px 0 0;
    max-width: none;
  }

  .login-stats {
    gap: 6px;
    margin-top: 10px;
  }

  .login-stats span {
    border-radius: 4px;
    font-size: .78rem;
    line-height: 1;
    padding: 6px 8px;
  }

  .login-card {
    margin-bottom: 10px;
    margin-top: 10px;
  }

  .kpi-grid,
  .module-grid,
  .database-grid,
  .module-summary,
  .finance-summary,
  .financial-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pressing-product-identity-grid,
  .pressing-product-price-grid {
    grid-template-columns: 1fr;
  }

  .pressing-add-cart-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .pressing-add-cart-form label,
  .pressing-add-cart-form .pressing-feature-field,
  .pressing-add-cart-form.has-attribute-choice .pressing-feature-field,
  .pressing-add-cart-form .pressing-attribute-choice,
  .pressing-add-cart-form .modal-actions {
    grid-column: 1 / -1;
  }

  .pressing-add-cart-form .pressing-qty-field {
    grid-column: 1;
  }

  .pressing-add-cart-form .pressing-selected-price {
    grid-column: 2;
  }

  .pressing-attribute-line {
    grid-template-columns: 1fr;
  }

  .pressing-attribute-line .pressing-feature-field,
  .pressing-attribute-line .pressing-attribute-choice,
  .pressing-attribute-actions {
    grid-column: 1 / -1;
  }

  .pressing-attribute-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 620px) {
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    min-height: 46px;
    padding: 6px 5%;
  }

  .brand {
    flex: 0 0 auto;
    font-size: .78rem;
    gap: 6px;
    min-width: 0;
  }

  .brand img {
    height: 22px;
    width: 22px;
  }

  .brand span {
    white-space: nowrap;
  }

  .user-chip {
    align-items: flex-end;
    flex: 1 1 auto;
    margin-left: auto;
    max-width: 36vw;
    min-width: 0;
    order: initial;
  }

  .user-chip span,
  .user-chip small {
    max-width: 100%;
    text-align: right;
  }

  .user-chip span {
    font-size: .68rem;
  }

  .user-chip small {
    font-size: .58rem;
  }

  .header-menu {
    flex: 0 0 auto;
  }

  .header-menu-button {
    height: 38px;
    padding: 0;
    width: 40px;
  }

  .header-menu-list {
    min-width: min(230px, 86vw);
  }

  .dashboard-header,
  .page-heading {
    display: block;
  padding: 20px;
}

.carwash-fullscreen-shell {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: calc(100vh - 64px);
  width: 100%;
}

.carwash-fullscreen-shell .invoice-page-actions {
  align-content: center;
  align-items: center;
  background: transparent;
  border-bottom: 0;
  border-right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: start;
  justify-self: start;
  min-height: 0;
  padding: 8px 0 8px 12px;
  position: static;
  max-width: calc(100% - 24px);
  width: max-content;
}

.carwash-fullscreen-shell .invoice-page-actions .legacy-action-button {
  align-items: center;
  font-size: 12px;
  min-height: 34px;
  min-width: 138px;
  padding-inline: 8px;
  white-space: nowrap;
  width: auto;
}

.carwash-fullscreen-body {
  background: #6b7280;
  display: grid;
  min-height: calc(100vh - 112px);
  overflow: auto;
  padding: 0;
}

.carwash-fullscreen-body .carwash-order-screen {
  align-self: stretch;
  border: 0;
  justify-self: stretch;
  min-height: calc(100vh - 112px);
}

  .page-heading p:not(.eyebrow) {
    grid-column: auto;
    grid-row: auto;
    margin-top: 6px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .kpi-grid,
  .module-grid,
  .database-grid,
  .module-summary,
  .finance-summary,
  .financial-layout {
    grid-template-columns: 1fr;
  }

  .pressing-order-form,
  .pressing-customer-strip {
    grid-template-columns: 1fr;
  }

  .pressing-order-right {
    border-left: 1px solid #b7c4d3;
  }

  .pressing-category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pressing-product-grid {
    grid-auto-rows: 86px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pressing-round-options {
    grid-template-columns: 1fr;
  }

  .list-filter label {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .list-filter input,
  .list-filter select,
  .diary-entry-form,
  .diary-display-grid,
  .legacy-action-button,
  .icon-button {
    width: 100%;
  }

  .diary-entry-form,
  .diary-display-grid {
    grid-template-columns: 1fr;
  }

  .pressing-detail-grid,
  .pressing-service-evolution {
    grid-template-columns: 1fr;
  }

  .pressing-service-evolution article:not(:last-child)::after {
    height: 100%;
    left: 50%;
    top: 52px;
    transform: none;
    width: 5px;
  }

  .employee-tabs {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 4px;
  }

  .employee-tab {
    flex: 1 1 calc(50% - 4px);
    min-width: min(100%, 150px);
    overflow-wrap: anywhere;
    padding: 8px 10px;
    text-align: center;
  }

  .employee-view-grid,
  .employee-form-grid {
    grid-template-columns: 1fr;
  }

  .employee-primary-grid .employee-photo-picker {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
    min-width: 150px;
  }

  .employee-read-field,
  .employee-read-field.wide {
    align-items: stretch;
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .employee-read-field span {
    font-size: 14px;
    line-height: 1.2;
  }

  .employee-read-field input,
  .employee-select-control select,
  .employee-note-box {
    width: 100%;
  }

  .login-screen {
    padding: 12px 14px;
  }

  .app-mark {
    height: 46px;
    margin-bottom: 6px;
    width: 128px;
  }

  .login-brand .eyebrow {
    font-size: .66rem;
  }

  .login-brand h1 {
    font-size: 1.18rem;
  }

  .login-brand p {
    font-size: .8rem;
    line-height: 1.25;
  }

  .login-stats {
    margin-top: 7px;
  }

  .login-stats span {
    font-size: .68rem;
    padding: 5px 7px;
  }

}

@media (max-width: 620px) and (max-height: 680px) {
  .login-brand p {
    display: none;
  }
}

@media (max-width: 900px) and (max-height: 560px) {
  .login-screen {
    grid-template-rows: auto;
  }

  .login-brand {
    display: none;
  }

  .login-card {
    align-self: start;
    margin-bottom: 6px;
    margin-top: 6px;
  }
}

@media (max-width: 900px) and (max-height: 480px) {
  .login-screen {
    padding: 6px 8px;
  }

  .login-brand {
    display: none;
  }

}

@media (max-width: 1100px) {
  .quick-order-screen,
  .quick-payment-detail {
    grid-template-columns: 1fr;
  }

  .quick-order-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-order-toolbar > *,
  .quick-order-toolbar label,
  .quick-order-toolbar input {
    min-width: 0;
    width: 100%;
  }

  .quick-category-strip {
    grid-template-columns: 30px minmax(54px, .8fr) repeat(2, minmax(0, 1fr)) 30px;
  }

  .quick-category {
    min-width: 0;
  }

  .quick-product-catalogue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .payment-malewa-grid {
    grid-template-columns: 1fr;
  }

  .payment-balance-chip {
    justify-self: stretch;
    text-align: left;
  }

  body.page-pressing-new #customer-modal .action-modal-card.wide {
    max-width: 96vw;
    width: 96vw;
  }

  body.page-pressing-new #customer-modal .form-grid {
    grid-template-columns: 1fr;
  }

  body.page-pressing-new #customer-modal .span-2 {
    grid-column: 1;
  }

  body.page-quick-order,
  body.page-quick-order .shell {
    overflow-x: hidden;
  }

  .quick-order-screen {
    gap: 10px;
  }

  .quick-order-main,
  .quick-cart,
  .quick-payment {
    padding: 10px;
  }

  .quick-order-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-category-strip {
    grid-template-columns: 28px minmax(52px, 1fr) minmax(0, 1fr) 28px;
    gap: 4px;
    padding: 4px;
  }

  .quick-product-catalogue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  body.page-personnel {
    background: #ffffff !important;
    color: #111827;
    font-size: 10pt;
    width: auto;
  }

  body.page-personnel .topbar,
  body.page-personnel .footer,
  body.page-personnel .employee-detail-actions,
  body.page-personnel .employee-tabs,
  body.page-personnel .employee-add-button,
  body.page-personnel .alert,
  body.page-personnel .settings-modal,
  body.page-personnel input[type="file"] {
    display: none !important;
  }

  body.page-personnel .shell {
    max-width: none !important;
    padding: 8mm !important;
    width: auto !important;
  }

  body.page-personnel .employee-detail-heading {
    border: 0;
    border-bottom: 2px solid #111827;
    border-radius: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 0 5mm;
    padding: 0 0 4mm;
  }

  body.page-personnel .employee-detail-heading .eyebrow {
    display: none;
  }

  body.page-personnel .employee-detail-heading h1 {
    font-size: 18pt;
    line-height: 1.1;
    margin: 0;
  }

  body.page-personnel .employee-detail-heading p {
    align-self: end;
    color: #111827;
    font-size: 10pt;
    margin: 0;
    text-align: right;
  }

  body.page-personnel .employee-detail-page {
    display: block !important;
  }

  body.page-personnel .employee-tab-panel,
  body.page-personnel .employee-tab-panel.active {
    break-inside: avoid;
    display: block !important;
    margin: 0 0 4mm;
  }

  body.page-personnel .employee-section-title {
    background: #e5e7eb !important;
    border: 1px solid #9ca3af;
    color: #111827;
    font-size: 10pt;
    margin: 4mm 0 2mm;
    padding: 1.5mm 2mm;
  }

  body.page-personnel .employee-form-grid {
    display: grid !important;
    gap: 1.8mm 4mm;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.page-personnel .employee-primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 28mm !important;
  }

  body.page-personnel .employee-primary-grid .employee-photo-picker {
    align-self: start;
    border: 1px solid #9ca3af;
    grid-column: 3;
    grid-row: 1 / span 4;
    justify-self: stretch;
    min-width: 0;
    padding: 1.5mm;
  }

  body.page-personnel .employee-photo-picker img {
    height: 22mm;
    padding: 0;
    width: 22mm;
  }

  body.page-personnel .employee-read-field,
  body.page-personnel .employee-read-field.wide {
    break-inside: avoid;
    display: grid;
    gap: 1.5mm;
    grid-column: auto;
    grid-template-columns: 31mm minmax(0, 1fr) !important;
  }

  body.page-personnel .employee-read-field.wide {
    grid-column: 1 / -1;
  }

  body.page-personnel .employee-read-field span {
    color: #111827;
    font-size: 9pt;
    font-weight: 800;
  }

  body.page-personnel .employee-read-field input,
  body.page-personnel .employee-select-control select,
  body.page-personnel .employee-note-box {
    background: #ffffff !important;
    border: 0;
    border-bottom: 1px solid #9ca3af;
    color: #111827;
    font-size: 9pt;
    height: auto;
    min-height: 0;
    padding: 0 0 1mm;
  }

  body.page-personnel .employee-note-box {
    border: 1px solid #9ca3af;
    min-height: 20mm;
    padding: 2mm;
  }

  body.page-personnel .haveright-summary {
    display: grid;
    gap: 2mm;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 2mm;
  }

  body.page-personnel .haveright-list th,
  body.page-personnel .haveright-list td {
    font-size: 8.5pt;
    padding: 1.5mm;
  }

  body.page-personnel .haveright-actions,
  body.page-personnel .haveright-thumb {
    display: none !important;
  }
}
