@import url("../system_theme.php");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: var(--erp-bg, #eef3f8);
  color: var(--erp-text, #102033);
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.wide-container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.logo-circle {
  width: 90px;
  height: 90px;
  background: #f2b705;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #082f49;
  font-size: 32px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .35);
}

.logo-image {
  overflow: hidden;
  padding: 0;
}

.logo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-fallback {
  padding: 0;
}

.small-title {
  color: #f2b705;
  font-size: 12px;
  letter-spacing: 4px;
  font-weight: bold;
  text-transform: uppercase;
}

h1 {
  font-size: 34px;
  margin: 8px 0 18px;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 22px;
  color: #082f49;
  box-shadow: 0 16px 35px rgba(0, 0, 0, .25);
}

.form-title {
  font-size: 20px;
  margin-bottom: 6px;
  color: #082f49;
}

.form-subtitle {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.field {
  text-align: left;
  margin-bottom: 13px;
}

.field label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 14px;
  color: #082f49;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #d7dee7;
  font-size: 14px;
  outline: none;
}

.main-button {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: #f2b705;
  color: #082f49;
  padding: 11px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.erp-search-icon-button,
.wide-container .erp-search-icon-button,
button.erp-search-icon-button {
  align-items: center;
  align-self: end;
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  height: 35px;
  justify-content: center;
  line-height: 1;
  min-height: 35px;
  min-width: 40px;
  margin: 0;
  padding: 0;
  place-self: end start;
  width: 40px;
}

.erp-search-glyph {
  display: block;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.erp-search-svg {
  display: block;
  fill: none;
  height: 18px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
  width: 18px;
}

.erp-search-icon {
  border: 2px solid currentColor;
  border-radius: 999px;
  box-sizing: border-box;
  display: inline-block;
  height: 15px;
  position: relative;
  width: 15px;
}

.erp-search-icon::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 10px;
  position: absolute;
  top: 11px;
  transform: rotate(45deg);
  transform-origin: left center;
  width: 8px;
}

.secondary-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  color: #082f49;
  background: #e8eef2;
  border-radius: 12px;
  padding: 9px 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
}

.secondary-link.compact {
  margin-top: 0;
}

.alert {
  background: #fde8e8;
  color: #9b1c1c;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  text-align: left;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.import-hero {
  margin-bottom: 16px;
}

.import-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.import-steps span {
  background: #f4f7fb;
  border-radius: 12px;
  color: #082f49;
  font-size: 13px;
  font-weight: bold;
  padding: 10px;
  text-align: center;
}

.import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.import-card {
  display: grid;
  gap: 10px;
}

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

.import-danger-form {
  border-top: 1px dashed #fecaca;
  margin-top: 2px;
  padding-top: 10px;
}

.import-danger-form .danger-button {
  border-radius: 12px;
  min-height: 40px;
  width: 100%;
}

.template-button {
  background: #00369d;
  border-radius: 12px;
  color: white;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: bold;
  padding: 9px 10px;
  text-decoration: none;
}

.rewards-screen .reward-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.reward-summary div,
.reward-receipt div {
  background: #f8fbff;
  border: 1px solid #cfe0f2;
  border-radius: 10px;
  padding: 12px;
}

.reward-summary span,
.reward-receipt span {
  color: #4b6380;
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.reward-product-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.reward-product-card {
  background: #fff;
  border: 1px solid #cfe0f2;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.reward-product-card b {
  color: #00369d;
}

.reward-admin-row {
  grid-template-columns: 90px minmax(240px, 1fr) 120px 90px 52px;
}

.reward-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.reward-query-link {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.reward-check-button {
  align-items: center;
  background: #16a34a;
  border: 1px solid #15803d;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 42px;
}

.reward-check-button:disabled {
  background: #cbd5e1;
  border-color: #94a3b8;
  cursor: not-allowed;
}

.reward-receipt-row {
  cursor: pointer;
}

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

.reward-detail-modal {
  align-items: center;
  background: rgba(15, 23, 42, .45);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 80;
}

.reward-detail-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
  max-width: 420px;
  padding: 18px;
  width: 100%;
}

.reward-admin-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.reward-admin-status div,
.reward-cart-total,
.reward-created-codes .reward-code-list div {
  background: #f8fbff;
  border: 1px solid #cfe0f2;
  border-radius: 12px;
  padding: 12px;
}

.reward-admin-status span,
.reward-cart-total span,
.reward-created-codes span,
.reward-balance-card span {
  color: #00369d;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.reward-admin-status strong,
.reward-cart-total strong {
  color: #0f172a;
  display: block;
  font-size: 22px;
  margin-top: 4px;
}

.reward-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.reward-module-card {
  background: rgba(255, 255, 255, .98);
  border: 2px solid #b8c7d9;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
  color: #102033;
  display: grid;
  gap: 8px;
  min-height: 145px;
  padding: 18px;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.reward-module-card:hover {
  border-color: #00369d;
  box-shadow: 0 18px 36px rgba(0, 54, 157, .12);
  transform: translateY(-2px);
}

.reward-module-card span {
  color: #00369d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.reward-module-card strong {
  color: #0f172a;
  font-size: 20px;
}

.reward-module-card p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.reward-config-layout {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(280px, 1.2fr);
  gap: 18px;
}

.reward-config-hero {
  background: linear-gradient(135deg, #00369d, #0f7a45);
  border-radius: 16px;
  color: #fff;
  display: grid;
  gap: 6px;
  padding: 20px;
}

.reward-config-hero span,
.reward-config-hero small {
  opacity: .9;
}

.reward-config-hero strong {
  font-size: 32px;
}

.reward-config-hero p {
  margin: 0;
}

.reward-product-create {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px 110px 120px;
  align-items: end;
  gap: 10px;
  margin: 0;
}

.reward-products-admin-grid {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.reward-products-admin-row {
  display: grid;
  grid-template-columns: 100px minmax(260px, 1fr) 120px 110px 54px;
  align-items: center;
  gap: 8px;
  min-width: 720px;
  background: #f8fafc;
  border: 1px solid #d2deeb;
  border-radius: 12px;
  padding: 8px;
}

.reward-products-admin-head-row {
  background: #eaf2fb;
  color: #002d75;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reward-balance-card {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.reward-balance-card strong {
  color: #00369d;
  display: block;
  font-size: 44px;
  line-height: 1;
}

.reward-order-card {
  overflow: hidden;
}

.reward-order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.reward-order-item {
  background: #f8fbff;
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding: 10px;
}

.reward-order-photo {
  align-items: center;
  background: #eaf2fb;
  border-radius: 12px;
  color: #00369d;
  display: flex;
  font-size: 24px;
  font-weight: 900;
  height: 70px;
  justify-content: center;
  overflow: hidden;
  width: 70px;
}

.reward-order-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.reward-order-info {
  display: grid;
  gap: 3px;
}

.reward-order-info strong {
  color: #0f172a;
}

.reward-order-info small {
  color: #64748b;
}

.reward-order-info b {
  color: #00369d;
}

.reward-qty-control {
  align-items: center;
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.reward-qty-control button {
  align-items: center;
  background: #00369d;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.reward-qty-control button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

.reward-qty-control strong {
  color: #0f172a;
  min-width: 24px;
  text-align: center;
}

.reward-confirm-button {
  margin-top: 14px;
}

.reward-confirm-button:disabled {
  background: #cbd5e1;
  border-color: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
}

.reward-code-list {
  display: grid;
  gap: 8px;
}

.credit-card-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) 110px 140px;
  align-items: end;
  gap: 10px;
}

.credit-card-grid {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.credit-card-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) 110px 54px;
  align-items: center;
  gap: 8px;
  min-width: 720px;
  background: #f8fafc;
  border: 1px solid #d2deeb;
  border-radius: 12px;
  padding: 8px;
}

.credit-card-head {
  background: #eaf2fb;
  color: #002d75;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.split-payment-box {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.split-payment-head,
.split-payment-total {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.card-payment-rows {
  display: grid;
  gap: 7px;
}

.card-payment-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 100px minmax(120px, 1fr) 38px;
  gap: 6px;
}

.card-payment-row button {
  background: #dc2626;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.split-payment-total {
  background: #eef4ff;
  border: 1px solid #c9d8f2;
  border-radius: 10px;
  color: #00369d;
  padding: 8px 10px;
}

.card-payment-modal {
  align-items: center;
  background: rgba(15, 23, 42, .42);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 80;
}

.card-payment-modal.active {
  display: flex;
}

.card-payment-box {
  background: #eaf4ff;
  border: 1px solid #6f8fb1;
  border-radius: 2px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
  display: grid;
  gap: 0;
  max-height: 96vh;
  max-width: 940px;
  overflow: auto;
  padding: 0;
  width: min(940px, 99vw);
}

.card-payment-titlebar {
  align-items: center;
  background: linear-gradient(#c7dff5, #9fc0df);
  border-bottom: 1px solid #7f9fbd;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  padding: 2px 4px;
}

.card-payment-titlebar span {
  color: #020617;
  font-size: 12px;
  font-weight: 500;
}

.card-payment-titlebar button {
  background: #f97316;
  border: 1px solid #fff;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  height: 18px;
  line-height: 1;
  width: 20px;
}

.card-payment-system-grid {
  display: grid;
  grid-template-columns: 180px 180px 1fr;
  gap: 8px;
  padding: 8px 10px 10px;
}

.card-payment-big-field {
  display: block;
  font-weight: 800;
}

.card-payment-big-field span,
.card-payment-cash-block span,
.card-payment-retention-block span,
.card-payment-number-block span,
.card-payment-holder span {
  color: #020617;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 2px;
}

.card-payment-big-field strong,
.card-payment-big-field input,
.card-payment-cash-block input,
.card-payment-retention-block input,
.card-payment-number-block input,
.card-payment-holder input {
  background: #fff;
  border: 1px solid #9fb4ca;
  color: #001fd1;
  display: block;
  font-size: 24px;
  font-weight: 800;
  min-height: 32px;
  padding: 2px 5px;
  text-align: right;
  width: 100%;
}

.card-payment-big-field {
  max-width: 180px;
}

.card-payment-big-field:first-child strong {
  color: #f00;
}

.card-payment-big-field.yellow input,
.card-payment-retention-block input {
  background: #ffff80;
  color: #000;
}

.card-payment-cash-block {
  align-self: end;
  grid-column: 1 / 2;
  max-width: 180px;
}

.card-payment-retention-block {
  align-items: end;
  display: grid;
  grid-column: span 1;
  grid-template-columns: 1fr;
  gap: 3px;
}

.card-payment-number-block {
  align-items: end;
  display: grid;
  grid-column: span 2;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.card-payment-card-section {
  border: 0;
  grid-column: 1 / -1;
  padding: 2px 0 4px;
}

.card-payment-card-head,
.card-payment-draft-row {
  display: grid;
  grid-template-columns: 125px 105px minmax(260px, 1fr) 105px 150px 42px;
  gap: 5px;
}

.card-payment-card-head span {
  color: #020617;
  font-size: 12px;
  font-weight: 800;
}

.card-payment-draft-row {
  margin-bottom: 3px;
}

.card-payment-draft-row input,
.card-payment-draft-row select {
  border: 1px solid #9fb4ca;
  border-radius: 0;
  font-size: 12px;
  min-height: 23px;
  padding: 2px 4px;
}

.card-payment-draft-row input#cardPaymentDraftAmount {
  background: #0087d7;
  color: #fff;
  font-weight: 800;
  text-align: right;
}

.card-payment-draft-row button,
.card-payment-system-table button,
.card-payment-ok,
.card-payment-return {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #9fb4ca;
  border-radius: 5px;
  color: #00369d;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 24px;
}

.system-card-payment-rows {
  display: none;
}

.card-payment-add-line {
  background: #0b43a8 !important;
  border-color: #0b43a8 !important;
  color: #fff !important;
  font-size: 16px;
  line-height: 1;
}

.card-payment-ok {
  color: #0f7a45;
}

.card-payment-holder {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 4px;
  max-width: 300px;
}

.card-payment-holder input {
  color: #020617;
  font-size: 13px;
  min-height: 28px;
  text-align: left;
}

.card-payment-table-wrap {
  grid-column: 1 / -1;
  overflow-x: auto;
}

.card-payment-system-table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

.card-payment-system-table th,
.card-payment-system-table td {
  background: #d8ffff;
  border: 1px solid #5f7f91;
  color: #020617;
  font-size: 12px;
  height: 21px;
  padding: 2px 4px;
}

.card-payment-system-table th {
  background: #f8fafc;
  font-weight: 700;
}

.card-payment-balance-box {
  grid-column: 1 / 2;
}

.card-payment-balance-box strong {
  background: #fff;
  border: 1px solid #9fb4ca;
  color: #d92300;
  display: block;
  font-size: 12px;
  min-height: 24px;
  padding: 4px;
  text-align: right;
}

.card-payment-actions {
  display: flex;
  gap: 6px;
  grid-column: 2 / -1;
  justify-content: flex-end;
}

.card-payment-ok,
.card-payment-return {
  font-size: 0;
  width: 28px;
}

.card-payment-ok::before {
  content: "\2713";
  font-size: 18px;
}

.card-payment-return::before {
  content: "\21BA";
  font-size: 16px;
}

.empty-state {
  background: #f4f7fb;
  color: #607080;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.notice-box {
  background: #fff7df;
  color: #082f49;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 16px;
  font-weight: bold;
}

.section-space {
  margin-top: 16px;
}

.table-list,
.menu-category,
.orders-grid {
  display: grid;
  gap: 12px;
}

.row-item,
.product-row,
.cart-row,
.order-card {
  background: #f4f7fb;
  border-radius: 14px;
  padding: 12px;
  color: #082f49;
}

.row-item span,
.product-row span {
  display: block;
  color: #607080;
  font-size: 13px;
  margin-top: 4px;
}

.product-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.compact-product {
  align-items: center;
  padding: 9px;
}

.compact-product > div:nth-child(2) {
  flex: 1;
}

.compact-product strong {
  font-size: 14px;
}

.compact-product b {
  display: block;
  font-size: 14px;
  margin-top: 3px;
}

.product-photo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 12px;
  background: #d7dee7;
  color: #607080;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  overflow: hidden;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.category-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.category-filter button {
  border: 0;
  border-radius: 999px;
  background: #e8eef2;
  color: #082f49;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 12px;
}

.category-filter button.active {
  background: #f2b705;
}

.product-row button,
.cart-row button,
.button-row button {
  border: 0;
  border-radius: 10px;
  background: #f2b705;
  color: #082f49;
  cursor: pointer;
  font-weight: bold;
  padding: 8px 10px;
}

.qty-control {
  display: grid;
  grid-template-columns: 34px 28px 34px;
  gap: 4px;
  align-items: center;
  justify-content: end;
}

.qty-control button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.qty-control strong {
  color: #082f49;
  font-size: 16px;
  text-align: center;
}

.button-row .danger-action {
  background: #c0392b;
  color: white;
}

.cart-row {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.cart-product-line {
  align-items: start;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cart-product-line strong {
  font-size: 14px;
  line-height: 1.2;
  min-width: 0;
}

.cart-quantity {
  background: #e8eef2;
  border-radius: 999px;
  color: #082f49 !important;
  display: inline-flex !important;
  font-size: 12px !important;
  font-weight: 900;
  justify-content: center;
  margin-top: 0 !important;
  min-width: 34px;
  padding: 3px 8px;
}

.cart-note-preview {
  color: #607080;
  display: block;
  font-size: 12px;
  grid-column: 1 / -1;
  line-height: 1.25;
  margin-top: 4px;
}

.cart-price {
  display: grid;
  gap: 2px;
  min-width: 62px;
}

.cart-price small {
  color: #607080;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-price span {
  color: #082f49;
  font-size: 13px;
  font-weight: 900;
}

.cart-summary-line {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: space-between;
  min-width: 0;
  white-space: nowrap;
}

.cart-icon-button {
  align-items: center;
  border-radius: 50% !important;
  display: inline-flex;
  font-size: 15px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0 !important;
  width: 32px;
}

.cart-icon-button.has-note {
  background: #0b3f9f;
  color: #fff;
}

.cart-icon-button.danger {
  background: #ffe0df;
  color: #a11919;
}

.cart-panel {
  background: #fff7df;
  border: 2px solid #f2b705;
  border-radius: 16px;
  padding: 14px;
  margin-top: 16px;
  text-align: left;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.cart-header h3 {
  color: #082f49;
  font-size: 19px;
}

.cart-header span {
  color: #607080;
  font-size: 13px;
  font-weight: bold;
}

.cart-row span {
  color: #607080;
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.cart-total {
  color: #082f49;
  font-size: 20px;
  font-weight: 800;
  margin: 12px 0;
  text-align: right;
}

.success-message {
  background: #e6f8ee;
  border: 1px solid #27ae60;
  border-radius: 14px;
  color: #176b3a;
  font-weight: bold;
  margin-bottom: 14px;
  padding: 12px;
}

.promo-slider {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  margin: 0 0 14px;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  position: relative;
}

.promo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
}

.promo-slide.active {
  opacity: 1;
}

.promo-media {
  position: absolute;
  inset: 0;
  background: #001d55;
}

.promo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .64));
}

.promo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: white;
  padding: 52px 16px 18px;
  text-align: left;
  z-index: 2;
}

.promo-caption strong,
.promo-caption span {
  display: block;
}

.promo-caption strong {
  font-size: 22px;
  line-height: 1.05;
}

.promo-caption span {
  font-size: 14px;
  margin-top: 5px;
  max-width: 92%;
}

.promo-dots {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.promo-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  transition: width .25s ease, background .25s ease;
}

.promo-dots span.active {
  width: 20px;
  background: #f2b705;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.image-modal.active {
  display: flex;
}

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

.order-qr-modal.active {
  display: flex;
}

.order-qr-box {
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(15, 23, 42, .28);
  display: grid;
  gap: 12px;
  max-width: 380px;
  padding: 18px;
  text-align: center;
  width: min(380px, 96vw);
}

.order-qr-box h2 {
  color: #0b2341;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.12;
  margin: 2px 0 0;
}

.order-confirm-code {
  align-items: center;
  background: linear-gradient(135deg, #082f6f, #1454b8);
  border: 3px solid #d39b27;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(20, 84, 184, .25);
  color: #ffffff;
  display: flex;
  font-size: clamp(32px, 10vw, 50px);
  font-weight: 950;
  justify-content: center;
  letter-spacing: .08em;
  line-height: 1;
  margin: 4px auto 2px;
  min-height: 72px;
  padding: 10px 14px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .28);
  user-select: all;
  max-width: 100%;
  width: min(260px, 100%);
}

.order-confirm-code::selection {
  background: #d39b27;
  color: #082f6f;
}

.order-qr-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.order-qr-head span {
  color: #00369d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.order-qr-head button {
  background: #fff;
  border: 1px solid #c9d7ea;
  border-radius: 10px;
  color: #00369d;
  cursor: pointer;
  font-weight: 800;
  padding: 7px 10px;
}

.order-qr-box p,
.order-qr-box small {
  color: #486176;
  margin: 0;
}

.order-qr-box img {
  background: #fff;
  border: 1px solid #d5e3f4;
  border-radius: 12px;
  justify-self: center;
  padding: 10px;
  width: 260px;
}

.order-qr-fallback {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  color: #9a3412;
  display: none;
  font-size: 12px;
  font-weight: 800;
  padding: 8px;
}

.qr-confirm-card {
  display: grid;
  gap: 14px;
}

.qr-confirm-head,
.qr-order-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}

.qr-order-summary {
  background: #eef6ff;
  border: 1px solid #c9dff8;
  border-radius: 12px;
  justify-content: flex-start;
  padding: 12px;
}

.qr-order-summary strong {
  color: #00369d;
}

.qr-order-summary span {
  color: #334155;
  font-weight: 700;
}

.qr-confirm-actions {
  display: flex;
  justify-content: flex-end;
}

.qr-scan-panel {
  background: #f8fbff;
  border: 1px solid #d5e3f4;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.qr-token-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.qr-token-form input {
  border: 1px solid #c9d7ea;
  border-radius: 10px;
  color: #334155;
  font-size: 14px;
  padding: 10px;
}

.qr-scanner-video {
  background: #0f172a;
  border-radius: 12px;
  max-height: 340px;
  object-fit: cover;
  width: 100%;
}

.image-modal img {
  max-width: min(92vw, 720px);
  max-height: 82vh;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
}

.image-modal button {
  position: fixed;
  top: 16px;
  right: 16px;
  border: 0;
  border-radius: 12px;
  background: #f2b705;
  color: #082f49;
  cursor: pointer;
  font-weight: bold;
  padding: 10px 14px;
}

.cart-row input {
  width: 100%;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  padding: 9px;
}

.cart-note-modal {
  align-items: center;
  background: rgba(8, 47, 73, .62);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 120;
}

.cart-note-modal.active {
  display: flex;
}

.cart-note-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .32);
  color: #082f49;
  display: grid;
  gap: 12px;
  max-width: 460px;
  padding: 16px;
  width: min(100%, 460px);
}

.cart-note-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.cart-note-head strong {
  font-size: 17px;
}

.cart-note-head button,
.cart-note-actions button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
  padding: 9px 12px;
}

.cart-note-head button,
.cart-note-actions .secondary-button {
  background: #e8eef2;
  color: #082f49;
}

.cart-note-box textarea {
  border: 1px solid #d7dee7;
  border-radius: 12px;
  font: inherit;
  min-height: 110px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.cart-note-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .cart-summary-line {
    gap: 4px;
  }

  .cart-icon-button {
    height: 30px;
    width: 30px;
  }

  .cart-price {
    min-width: 56px;
  }
}

.kitchen-screen {
  background:
    linear-gradient(180deg, rgba(0, 54, 157, .08), rgba(255, 255, 255, 0) 260px),
    #eef3f8;
  padding-top: 2px;
}

.kitchen-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 18px;
}

.kitchen-topbar {
  border: 1px solid rgba(7, 45, 92, .12);
  box-shadow: 0 18px 42px rgba(0, 34, 85, .10);
}

.kitchen-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.kitchen-only-screen .kitchen-shell {
  height: 100vh;
  padding: 6px;
}

.kitchen-only-screen .kitchen-card {
  border-radius: 8px;
}

.kitchen-panel-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.kitchen-title-tabs {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 14px;
  min-width: 0;
}

.kitchen-title-tabs .form-title {
  flex: 0 0 auto;
  margin: 0;
}

.kitchen-summary-pill {
  align-items: center;
  background: #fff8df;
  border: 1px solid #f1d985;
  border-radius: 12px;
  color: #0a2240;
  display: flex;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
}

.kitchen-summary-pill span {
  color: #00369d;
  font-size: 20px;
  font-weight: 900;
}

.kitchen-summary-pill strong {
  font-size: 12px;
  text-transform: uppercase;
}

.kitchen-panel-tools {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  justify-content: flex-end;
}

.kitchen-panel-links {
  align-items: center;
  display: flex;
  gap: 8px;
}

.orders-grid {
  align-content: start;
  display: grid;
  flex: 1;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  min-height: 320px;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 3px 6px 6px 0;
}

.kitchen-only-screen .orders-grid {
  max-height: calc(100vh - 72px);
}

.kitchen-finished-filter {
  align-items: end;
  background: #f8fbff;
  border: 1px solid #dce8f5;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  margin-bottom: 8px;
  padding: 8px;
  position: sticky;
  top: 0;
  z-index: 3;
}

.kitchen-finished-filter button {
  background: #e8eef2;
  border: 0;
  border-radius: 8px;
  color: #082f49;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 10px;
}

.kitchen-finished-filter button.active {
  background: #f2b705;
}

.kitchen-finished-filter label {
  display: grid;
  font-size: 11px;
  font-weight: 900;
  gap: 3px;
}

.kitchen-finished-filter input {
  min-height: 34px;
}

.orders-grid > .empty-state {
  grid-column: 1 / -1;
}

.order-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid #d7e3f3;
  border-left: 5px solid #f2b705;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(13, 50, 93, .09);
  color: #0a2240;
  display: block;
  font-size: 11px;
  margin: 0 0 7px;
  min-height: 0;
  padding: 7px;
  text-align: left;
  width: 100%;
}

.order-card h3 {
  font-size: 15px;
  margin-bottom: 5px;
}

.order-card p {
  margin-bottom: 4px;
}

.order-card-head {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: space-between;
}

.order-card-head strong {
  color: #001a3d;
  display: block;
  font-size: 14px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-number {
  background: #e8f0ff;
  border: 1px solid #c8d9f5;
  border-radius: 999px;
  color: #00369d;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  padding: 4px 7px;
  white-space: nowrap;
}

.order-status-badge {
  background: #e8f0ff;
  border: 1px solid #c8d9f5;
  border-radius: 999px;
  color: #00369d;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.order-time-box {
  align-items: center;
  background: #0b2345;
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  margin: 5px 0;
  padding: 5px 7px;
  white-space: nowrap;
}

.order-time-box span {
  color: #f2b705;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.order-time-box strong {
  font-size: 9px;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.order-meta-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr 1fr;
}

.order-meta-grid p {
  background: #eef5fc;
  border: 1px solid #d8e6f4;
  border-radius: 10px;
  margin: 0;
  padding: 7px 8px;
}

.order-meta-grid strong,
.order-meta-grid span {
  display: block;
}

.order-meta-grid strong {
  color: #5b6b80;
  font-size: 10px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.order-meta-grid span {
  color: #061b38;
  font-weight: 800;
  margin-top: 2px;
}

.order-items-title {
  color: #00369d;
  font-size: 12px;
  font-weight: 900;
  margin: 10px 0 6px;
  text-transform: uppercase;
}

.order-items-list {
  background: #f8fbff;
  border: 1px solid #dce8f5;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  margin: 0;
  min-height: 0;
  overflow: visible;
  padding: 3px;
}

.order-items-list li {
  border-bottom: 1px solid #e6eef8;
  font-weight: 800;
  line-height: 1.15;
  padding: 3px 3px;
}

.order-items-list li:last-child {
  border-bottom: 0;
}

.order-items-list small {
  color: #697b91;
  font-size: 9px;
  font-weight: 700;
}

.status-listo {
  border-left-color: #27ae60;
}

.status-listo .order-status-badge {
  background: #dff7e8;
  border-color: #b8e8c9;
  color: #087238;
}

.status-finalizado {
  border-left-color: #607080;
}

.status-finalizado .order-status-badge {
  background: #edf1f5;
  border-color: #d6dee7;
  color: #475569;
}

.status-baja {
  border-left-color: #c0392b;
}

.status-baja .order-status-badge {
  background: #ffe6e6;
  border-color: #ffc4c4;
  color: #a91818;
}

.order-card.order-time-ok {
  background: #edfdf3;
  border-color: #bfe8cd;
  border-left-color: #27ae60;
}

.order-card.order-time-retrasado {
  background: #fff8db;
  border-color: #f3df8b;
  border-left-color: #f2b705;
}

.order-card.order-time-atrasado {
  background: #ffecec;
  border-color: #ffc4c4;
  border-left-color: #c0392b;
}

.order-card.order-time-ok .order-status-badge {
  background: #dff7e8;
  border-color: #b8e8c9;
  color: #087238;
}

.order-card.order-time-retrasado .order-status-badge {
  background: #fff0b8;
  border-color: #efd06a;
  color: #745000;
}

.order-card.order-time-atrasado .order-status-badge {
  background: #ffd9d9;
  border-color: #ffb2b2;
  color: #a91818;
}

@keyframes blinkLate {
  0%, 100% {
    box-shadow: 0 0 0 rgba(242, 183, 5, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(242, 183, 5, .9);
  }
}

@keyframes blinkVeryLate {
  0%, 100% {
    box-shadow: 0 0 0 rgba(192, 57, 43, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(192, 57, 43, .95);
  }
}

.order-late {
  animation: blinkLate 1.1s infinite;
}

.order-very-late {
  animation: blinkVeryLate .85s infinite;
}

.order-time-frozen {
  animation: none !important;
}

.order-time-alert {
  animation: blinkVeryLate .85s infinite;
  background: #ffe1e1;
  border: 2px solid #c0392b;
  border-radius: 10px;
  color: #b01414;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 8px 0;
  padding: 8px 10px;
  text-align: center;
}

.order-card ul {
  margin: 8px 0 0 16px;
}

.order-card .order-items-list {
  margin: 0;
  padding: 6px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.button-row button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 8px;
}

.button-row .icon-action {
  align-items: center;
  display: inline-flex;
  flex: 0 0 34px;
  height: 32px;
  justify-content: center;
  min-width: 34px;
  padding: 0;
}

.order-head-ready {
  flex: 0 0 34px;
  height: 32px;
  justify-content: center;
  min-width: 34px;
  padding: 0;
}

.kitchen-action {
  background: #e8f0ff;
  color: #00369d;
}

.kitchen-action.prep {
  background: #fff2bf;
  color: #745000;
}

.kitchen-action.ready,
.kitchen-action.done {
  background: #dff7e8;
  color: #087238;
}

.kitchen-action.neutral {
  background: #eef2f6;
  color: #27384f;
}

@media (max-width: 720px) {
  .kitchen-shell {
    padding: 8px;
  }

  .kitchen-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .kitchen-title-tabs {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .kitchen-title-tabs .kitchen-tabs {
    width: 100%;
  }

  .kitchen-summary-pill {
    justify-content: center;
  }

  .orders-grid {
    grid-template-columns: 1fr;
    min-height: 420px;
    padding-right: 0;
  }

  .order-card-head strong {
    font-size: 13px;
  }

  .order-meta-grid {
    grid-template-columns: 1fr;
  }

  .button-row button {
    flex: 1 1 130px;
  }
}

.split-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-form input {
  border: 1px solid #d7dee7;
  border-radius: 10px;
  padding: 8px;
  max-width: 150px;
}

.inline-form button,
.danger-small {
  border: 0;
  border-radius: 10px;
  background: #f2b705;
  color: #082f49;
  cursor: pointer;
  font-weight: bold;
  padding: 8px 10px;
}

.danger-small {
  background: #c0392b;
  color: white;
}

.delete-form {
  margin-top: -4px;
}

.delete-form .danger-small {
  width: 100%;
}

.edit-box {
  background: #f4f7fb;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #082f49;
  font-size: 14px;
  font-weight: bold;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-nav a {
  background: rgba(255, 255, 255, .16);
  color: white;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.admin-nav a.active {
  background: #f2b705;
  color: #082f49;
  border-color: #f2b705;
}

.admin-window {
  display: block;
}

.window-head {
  background: white;
  color: #082f49;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, .18);
}

.window-head h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.window-head p {
  color: #607080;
  font-size: 14px;
}

.compact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: end;
}

.admin-create-card {
  padding: 16px;
}

.compact-form .main-button {
  min-height: 40px;
}

.full-field {
  grid-column: 1 / -1;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.record-title {
  font-weight: 800;
  color: #082f49;
  border-bottom: 1px solid #d7dee7;
  padding-bottom: 8px;
  margin-bottom: 2px;
}

.admin-product-photo {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  background: #d7dee7;
}

.kitchen-tabs,
.pagination-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.kitchen-title-tabs .kitchen-tabs {
  flex: 1;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 0;
  min-width: 0;
  overflow-x: auto;
}

.kitchen-tabs button,
.kitchen-tabs a,
.pagination-row button {
  border: 0;
  border-radius: 10px;
  background: #e8eef2;
  color: #082f49;
  cursor: pointer;
  display: inline-flex;
  font-weight: bold;
  padding: 9px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.kitchen-title-tabs .kitchen-tabs button {
  border-radius: 8px;
  font-size: 12px;
  padding: 7px 10px;
}

.kitchen-tabs button.active {
  background: #f2b705;
}

.kitchen-tabs a {
  background: #00369d;
  color: #fff;
}

.pagination-row {
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  margin-bottom: 0;
  color: #607080;
  font-size: 14px;
}

.pagination-row button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.billing-pending-orders-filter {
  align-items: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.billing-pending-orders-filter button {
  min-height: 34px;
  width: 100%;
}

.billing-pending-orders-filter label {
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 3px;
  grid-column: span 3;
}

.billing-pending-orders-filter input {
  min-height: 34px;
}

.billing-pending-orders-filter .main-button {
  grid-column: span 3;
}

.billing-pending-orders-filter .active {
  background: #f2b705;
  color: #082f49;
}

.report-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.report-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.report-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}

.report-filter input,
.report-filter select,
.invoice-search-bar input,
.invoice-search-bar select,
.compact-doc-filter input,
.compact-doc-filter select {
  box-sizing: border-box;
  height: 35px;
}

.report-filter .erp-search-icon-button,
.invoice-search-bar .erp-search-icon-button,
.customer-filter-actions .erp-search-icon-button {
  height: 35px;
  justify-self: start;
  min-height: 35px;
  margin: 0;
  width: 40px;
}

.inline-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.report-summary div {
  background: #f4f7fb;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.report-summary strong,
.report-summary span {
  display: block;
}

.report-summary strong {
  color: #082f49;
}

.report-summary span {
  color: #00369d;
  font-size: 20px;
  font-weight: 800;
  margin-top: 4px;
}

.pos-receipt {
  display: none;
}

.pos-receipt-screen {
  background: white;
  color: #000;
  display: block;
  margin: 0 auto;
  max-width: 80mm;
  padding: 16px;
}

.receipt-line,
.receipt-invoice {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.receipt-line.total {
  font-size: 15px;
  font-weight: 800;
}

.receipt-item {
  border-bottom: 1px dotted #999;
  padding: 3px 0;
}

.receipt-item > span {
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
}

.electronic-row {
  grid-template-columns: 28px minmax(130px, .9fr) minmax(170px, 1.2fr) 135px 85px 115px minmax(180px, 1fr) 120px;
}

.electronic-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.electronic-toolbar form {
  margin: 0;
}

.electronic-status-section {
  padding: 14px;
}

.electronic-desktop {
  background: #dfeaf5;
  border: 1px solid #a8bacb;
  color: #000;
  min-height: calc(100vh - 120px);
  padding: 6px;
}

.electronic-top-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 8px;
  min-height: 136px;
}

.electronic-filter-form {
  display: grid;
  gap: 6px;
}

.electronic-select-row select {
  border: 1px solid #99aabc;
  height: 24px;
  width: 185px;
}

.electronic-point-row {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding-right: 10px;
}

.electronic-point-row label {
  color: #000;
  font-size: 12px;
  text-align: center;
}

.electronic-point-row input {
  border: 1px solid #99aabc;
  display: block;
  height: 28px;
  width: 54px;
}

.electronic-period-box {
  align-self: end;
  border: 1px solid #c0c8d0;
  box-shadow: inset 0 0 0 3px #edf3f8;
  margin-left: 70px;
  padding: 9px 7px 7px;
  width: 205px;
}

.electronic-period-buttons {
  display: flex;
  gap: 3px;
  margin-bottom: 5px;
}

.electronic-period-buttons button,
.electronic-date-row button,
.electronic-bottom-actions button {
  border: 1px solid #a0a0a0;
  border-radius: 3px;
  color: #000;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 24px;
}

.electronic-period-buttons button:nth-child(1) {
  background: #70ff8a;
}

.electronic-period-buttons button:nth-child(2) {
  background: #ffb0b0;
}

.electronic-period-buttons button:nth-child(3) {
  background: #ffc4d6;
}

.electronic-date-row {
  display: grid;
  grid-template-columns: 76px 1fr 1fr 30px;
  gap: 4px;
  align-items: center;
}

.electronic-date-row span {
  background: #70ff8a;
  border: 1px solid #7dbf84;
  border-radius: 3px;
  font-size: 11px;
  padding: 4px 6px;
}

.electronic-date-row input {
  border: 1px solid #a0a0a0;
  color: #000;
  font-size: 12px;
  font-weight: 800;
  height: 22px;
  min-width: 0;
}

.electronic-side-panel {
  display: grid;
  grid-template-rows: 102px 28px;
  gap: 8px;
  justify-items: end;
}

.electronic-blank-box {
  background: #fff;
  width: 280px;
}

.electronic-user-row {
  display: flex;
  gap: 3px;
  margin-right: 2px;
}

.electronic-user-row select {
  background: #e4ffff;
  border: 1px solid #888;
  height: 24px;
  width: 185px;
}

.electronic-user-row span {
  background: #1c5ba5;
  border-radius: 3px;
  display: block;
  height: 18px;
  margin-top: 3px;
  width: 18px;
}

.electronic-table-wrap {
  background: #cfffff;
  border: 1px solid #000;
  height: calc(100vh - 345px);
  min-height: 260px;
  overflow: auto;
}

.electronic-table {
  border-collapse: collapse;
  color: #000;
  font-size: 12px;
  width: 100%;
}

.electronic-table th {
  background: #fff;
  border: 1px solid #000;
  font-weight: 800;
  height: 18px;
  padding: 2px 4px;
  white-space: nowrap;
}

.electronic-table td {
  background: #cfffff;
  border: 1px solid #000;
  height: 18px;
  padding: 1px 4px;
  white-space: nowrap;
}

.electronic-table td:nth-child(7) {
  min-width: 210px;
}

.electronic-table button {
  border: 1px solid #888;
  border-radius: 3px;
  font-size: 11px;
  height: 18px;
}

.electronic-status-counters {
  display: grid;
  grid-template-columns: repeat(6, minmax(105px, 1fr));
  gap: 12px;
  margin: 8px 2px 12px;
}

.electronic-status-counters div {
  display: grid;
  gap: 2px;
}

.electronic-status-counters label {
  color: #000;
  font-size: 12px;
  font-weight: 800;
}

.electronic-status-counters strong {
  border: 2px solid #a8b8d0;
  color: #000;
  display: block;
  font-size: 16px;
  height: 26px;
  line-height: 22px;
  padding-right: 5px;
  text-align: right;
}

.electronic-status-counters div:nth-child(1) strong {
  background: #fff;
}

.electronic-status-counters div:nth-child(2) strong {
  background: #70ff70;
}

.electronic-status-counters div:nth-child(3) strong {
  background: #ff0078;
}

.electronic-status-counters div:nth-child(4) strong {
  background: #ec64ef;
}

.electronic-status-counters div:nth-child(5) strong {
  background: #fff86e;
}

.electronic-status-counters div:nth-child(6) strong {
  background: #6ee7ec;
}

.electronic-bottom-actions {
  display: flex;
  gap: 4px;
  align-items: stretch;
}

.electronic-bottom-actions form {
  margin: 0;
}

.electronic-bottom-actions button {
  background: #fff9bc;
  min-width: 84px;
  padding: 6px 8px;
}

.electronic-bottom-actions form button {
  background: #8dffff;
  font-size: 16px;
  min-height: 54px;
}

.electronic-mode-note {
  color: #000;
  font-size: 12px;
  margin-top: 6px;
}

.electronic-modern {
  background: #f5f7fb;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  color: #102033;
  padding: 12px;
}

.electronic-modern .electronic-top-panel {
  grid-template-columns: 1fr;
  gap: 0;
  min-height: auto;
  margin-bottom: 8px;
}

.electronic-modern .electronic-filter-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  padding: 0;
  white-space: nowrap;
}

.electronic-period-panel,
.electronic-filter-card,
.electronic-preview-spacer {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.electronic-period-panel {
  align-items: end;
  display: flex;
  gap: 6px;
  flex: 1 0 auto;
  min-height: 58px;
  padding: 7px 8px;
}

.electronic-filter-card {
  align-items: end;
  display: flex;
  gap: 6px;
  flex: 1 0 auto;
  min-height: 58px;
  padding: 7px 8px;
}

.electronic-filter-card label {
  color: #334155;
  display: grid;
  flex: 1 0 165px;
  font-size: 11px;
  font-weight: 800;
  gap: 2px;
}

.electronic-filter-card label:last-child {
  flex-basis: 230px;
}

.electronic-filter-card select {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font-size: 12px;
  height: 32px;
  padding: 0 8px;
  width: 100%;
}

.electronic-filter-card .electronic-query-button {
  align-self: end;
  background: #00369d;
  color: #fff;
  flex: 0 0 30px;
  height: 30px;
  min-width: 30px;
  width: 30px;
}

.electronic-filter-card .electronic-query-button svg {
  height: 15px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 15px;
}

.electronic-total-inline {
  align-self: center;
  color: #102033;
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 0;
  white-space: nowrap;
  width: 70px;
}

.electronic-total-inline strong {
  font-size: 18px;
  margin-right: 4px;
}

.electronic-preview-spacer {
  display: none;
}

.electronic-total-chip {
  align-items: center;
  background: #eef4ff;
  border: 1px solid #c9d8f2;
  border-radius: 8px;
  color: #00369d;
  display: grid;
  height: 54px;
  justify-items: center;
  padding: 4px;
}

.electronic-total-chip strong {
  font-size: 22px;
  line-height: 1;
}

.electronic-total-chip span {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.electronic-filter-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: 110px 150px;
}

.electronic-filter-grid label {
  color: #475569;
  font-size: 10px;
  font-weight: 800;
}

.electronic-modern .electronic-select-row select,
.electronic-modern .electronic-user-row select,
.electronic-modern .electronic-date-row input,
.electronic-modern .electronic-point-row input {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  height: 32px;
  font-size: 11px;
  padding: 0 8px;
}

.electronic-modern .electronic-select-row select {
  width: 100%;
}

.electronic-modern .electronic-point-row {
  justify-content: flex-end;
  gap: 8px;
  padding-right: 0;
  order: 3;
}

.electronic-modern .electronic-point-row label {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.electronic-modern .electronic-point-row input {
  margin-top: 2px;
  width: 76px;
}

.electronic-modern .electronic-period-box {
  align-self: auto;
  border: 0;
  box-shadow: none;
  margin-left: 0;
  padding: 0;
  width: 100%;
}

.electronic-modern .electronic-period-buttons {
  gap: 5px;
  justify-content: flex-start;
  margin-bottom: 0;
  order: 1;
}

.electronic-modern .electronic-period-buttons button,
.electronic-modern .electronic-date-row button,
.electronic-modern .electronic-bottom-actions button {
  background: #eef4ff;
  border: 1px solid #c9d8f2;
  border-radius: 8px;
  color: #00369d;
  font-size: 11px;
  min-height: 32px;
  padding: 0 8px;
}

.electronic-modern .electronic-period-buttons button:nth-child(1),
.electronic-modern .electronic-period-buttons button:nth-child(2),
.electronic-modern .electronic-period-buttons button:nth-child(3) {
  background: #eef4ff;
}

.electronic-modern .electronic-period-buttons button:hover,
.electronic-modern .electronic-date-row button:hover,
.electronic-modern .electronic-bottom-actions button:hover {
  background: #00369d;
  color: #fff;
}

.electronic-modern .electronic-date-row {
  grid-template-columns: 58px minmax(118px, 1fr) minmax(118px, 1fr);
  gap: 6px;
  order: 2;
  width: 330px;
}

.electronic-modern .electronic-date-row span {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  padding: 8px;
}

.electronic-modern .electronic-side-panel {
  grid-template-rows: 1fr;
  gap: 0;
}

.electronic-modern .electronic-blank-box {
  align-content: center;
  background: linear-gradient(135deg, #ffffff, #eef6ff);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
  color: #0f172a;
  display: grid;
  justify-items: center;
  min-height: 70px;
  padding: 10px;
  text-align: center;
  width: 100%;
}

.electronic-modern .electronic-blank-box strong {
  font-size: 28px;
  line-height: .95;
}

.electronic-modern .electronic-blank-box span,
.electronic-modern .electronic-blank-box em {
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  margin-top: 4px;
}

.electronic-modern .electronic-user-row {
  display: none;
}

.electronic-modern .electronic-user-row span {
  background: #16a34a;
  border-radius: 999px;
  height: 12px;
  margin-top: 13px;
  width: 12px;
}

.electronic-modern .electronic-table-wrap {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
  height: calc(100vh - 198px);
  overflow: auto;
}

.electronic-modern .electronic-table {
  border-collapse: separate;
  border-spacing: 0;
  color: #102033;
  font-size: 10.5px;
  min-width: 1430px;
}

.electronic-modern .electronic-table th {
  background: #f8fafc;
  border: 0;
  border-bottom: 1px solid #dbe4ef;
  color: #475569;
  height: 28px;
  padding: 5px 7px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.electronic-modern .electronic-table td {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  height: 27px;
  padding: 4px 7px;
}

.electronic-modern .electronic-table td:nth-child(6),
.electronic-modern .electronic-table td:nth-child(7) {
  min-width: 42px;
  width: 42px;
}

.electronic-modern .electronic-table tr:hover td {
  background: #f1f7ff;
}

.electronic-modern .electronic-table button {
  background: #eef4ff;
  border: 1px solid #c9d8f2;
  border-radius: 8px;
  color: #00369d;
  height: 26px;
  padding: 0 10px;
}

.electronic-modern .electronic-table td:nth-child(9),
.electronic-modern .electronic-table td:nth-child(10) {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.electronic-modern .electronic-table td:nth-child(13) {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.electronic-modern .electronic-status-counters {
  grid-template-columns: repeat(5, minmax(105px, 1fr));
  gap: 6px;
  margin: 6px 0;
}

.electronic-modern .electronic-status-counters div {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
  padding: 4px 7px;
}

.electronic-modern .electronic-status-counters label {
  color: #64748b;
  font-size: 10px;
}

.electronic-modern .electronic-status-counters strong {
  background: transparent !important;
  border: 0;
  color: #0f172a;
  font-size: 16px;
  height: auto;
  line-height: 1.1;
  padding: 0;
  text-align: left;
}

.electronic-modern .electronic-bottom-actions {
  gap: 6px;
}

.electronic-modern .electronic-bottom-actions button {
  background: #fff;
  border-color: #dbe4ef;
  color: #0f172a;
  font-size: 11px;
  min-height: 28px;
}

.electronic-modern .electronic-bottom-actions form button {
  background: #00369d;
  color: #fff;
  min-height: 28px;
}

.electronic-modern .electronic-mode-note {
  color: #64748b;
  font-size: 11px;
}

.mini-link {
  color: #00369d;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.invoice-view-icon {
  align-items: center;
  background: #eef4ff;
  border: 1px solid #c9d8f2;
  border-radius: 8px;
  color: #00369d;
  display: inline-flex;
  font-size: 0;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  min-width: 34px;
  text-decoration: none;
}

.invoice-view-icon::before {
  content: "Ver";
  font-size: 10px;
}

.invoice-view-pdf::before {
  content: "PDF";
}

.invoice-view-xml::before {
  content: "XML";
}

.invoice-view-mail::before {
  content: "Mail";
}

.invoice-view-icon.disabled {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.invoice-view-icon.disabled::before {
  content: attr(title);
}

.invoice-format-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 380px) 1fr;
}

.designer-settings {
  display: grid;
  grid-template-columns: 170px minmax(180px, 1fr) 120px minmax(260px, 1.4fr) 150px;
  gap: 10px;
  align-items: end;
}

.designer-settings-v2 {
  align-items: stretch;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 160px !important;
  gap: 16px;
  padding: 16px 18px;
}

.designer-settings-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.designer-settings-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.45fr) 96px minmax(330px, 1.8fr) minmax(190px, 1fr);
  gap: 12px;
  align-items: end;
}

.designer-backup-row {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr) minmax(170px, .75fr) minmax(170px, .75fr) minmax(190px, .85fr);
}

.designer-import-select select {
  min-height: 34px;
}

.designer-import-general {
  align-self: end;
  background: #f8fbff;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  min-height: 34px;
  padding: 8px 10px;
}

.designer-settings-v2 .field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.designer-settings-v2 .field label {
  color: #003b85;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.designer-settings-v2 input,
.designer-settings-v2 select,
.designer-settings-v2 textarea {
  min-height: 36px;
  width: 100%;
}

.designer-settings-v2 input[type="file"] {
  background: #ffffff;
  font-size: 12px;
  padding: 6px;
}

.designer-settings-v2 small {
  color: #365176;
  display: block;
  font-size: 11px;
  line-height: 1.25;
  margin-top: 2px;
}

.designer-logo-field small {
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}

.designer-color-field input[type="color"] {
  padding: 4px;
  width: 100%;
}

.designer-info-box {
  align-content: center;
  background: #f4f8ff;
  border: 1px solid #c8daf4;
  border-radius: 10px;
  color: #12325c;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.designer-info-box strong {
  color: #003b85;
  font-size: 12px;
  font-weight: 900;
}

.designer-info-box span {
  font-size: 11px;
  line-height: 1.3;
}

.designer-actions-stack {
  align-content: start;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.designer-actions-stack .main-button,
.designer-actions-stack .secondary-link {
  min-height: 38px;
  padding: 8px 10px;
  text-align: center;
  width: 100%;
}

.designer-actions-stack .secondary-link {
  background: #f8fbff;
}

@media (max-width: 1120px) {
  .designer-settings-v2,
  .designer-settings-row,
  .designer-backup-row {
    grid-template-columns: 1fr !important;
  }
}

.designer-modern-button {
  align-items: center;
  background: #fff7ed;
  border-color: #e7c9a6;
  color: #4b2e1f;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
}

.designer-modern-button:hover {
  background: #fbe8d3;
  color: #4b2e1f;
}
.report-designer {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 260px minmax(0, max-content) 280px;
  margin-top: 12px;
  overflow-x: auto;
}

.designer-palette {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 12px;
}

.designer-tabs {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.designer-tabs button,
.field-palette button {
  background: #eef4ff;
  border: 1px solid #c9d8f2;
  border-radius: 8px;
  color: #00369d;
  cursor: pointer;
  font-weight: 800;
  min-height: 30px;
}

.designer-tabs button.active {
  background: #00369d;
  color: #fff;
}

.field-palette {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr;
  margin: 10px 0;
}

.designer-canvas {
  background: #fff;
  border: 1px solid #94a3b8;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
  height: 900px;
  overflow: hidden;
  position: relative;
  width: 800px;
}

.designer-canvas.pos {
  height: 650px;
  width: 260px;
}

.designer-canvas.designer-canvas-pos {
  height: 920px;
}

.designer-field {
  background: rgba(239, 246, 255, .92);
  border: 1px solid #60a5fa;
  border-radius: 4px;
  cursor: move;
  overflow: hidden;
  padding: 12px 5px 5px;
  position: absolute;
  resize: both;
}

.designer-field.auto-text {
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.designer-field.auto-text .designer-content {
  line-height: 1.15;
}

.designer-field.selected {
  background: rgba(255, 247, 214, .96);
  border-color: #d99b00;
  box-shadow: 0 0 0 2px rgba(242, 183, 5, .28);
}

.designer-selection-box {
  background: rgba(37, 99, 235, .12);
  border: 1px dashed #2563eb;
  box-sizing: border-box;
  pointer-events: none;
  position: absolute;
  z-index: 30;
}

.designer-field.selected::before {
  background: rgba(37, 99, 235, .12);
  border: 1px solid rgba(37, 99, 235, .5);
  bottom: 0;
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.designer-field::after {
  border-bottom: 8px solid #00369d;
  border-left: 8px solid transparent;
  bottom: 0;
  content: "";
  height: 0;
  position: absolute;
  right: 3px;
  width: 0;
}

.designer-label {
  background: #00369d;
  color: #fff;
  font-size: 8px;
  left: 0;
  padding: 1px 4px;
  position: absolute;
  top: 0;
}

.designer-field .logo-content {
  align-items: center;
  bottom: 4px;
  display: flex;
  justify-content: center;
  left: 4px;
  overflow: hidden;
  position: absolute;
  right: 4px;
  top: 4px;
}

.designer-field .logo-content img {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.designer-content table,
.report-field table {
  border-collapse: collapse;
  font-size: inherit;
  table-layout: fixed;
  width: 100%;
}

.designer-content th,
.designer-content td,
.report-field th,
.report-field td {
  border-bottom: 1px solid #dbe4ef;
  padding: 3px 5px;
  text-align: left;
  vertical-align: middle;
}

.designer-content .layout-items td,
.report-field .layout-items td {
  background: var(--items-row-bg, #fffaf4);
  border-color: var(--items-border-color, #e7c9a6);
  color: #4b2e1f;
}

.designer-content .layout-items th,
.report-field .layout-items th {
  background: var(--items-head-bg, #4b2e1f);
  border-color: var(--items-border-color, #d97706);
  color: var(--items-head-color, #fff7ed);
  font-weight: 900;
  text-align: center;
}

.designer-content .layout-items .item-code,
.report-field .layout-items .item-code {
  width: 12%;
}

.designer-content .layout-items .item-desc,
.report-field .layout-items .item-desc {
  width: 52%;
}

.designer-content .layout-items .item-qty,
.report-field .layout-items .item-qty {
  width: 6%;
}

.designer-content .layout-items .item-money,
.report-field .layout-items .item-money {
  width: 10%;
}


.designer-content .layout-items th:nth-child(1),
.designer-content .layout-items td:nth-child(1),
.report-field .layout-items th:nth-child(1),
.report-field .layout-items td:nth-child(1) {
  width: 12%;
}

.designer-content .layout-items th:nth-child(2),
.designer-content .layout-items td:nth-child(2),
.report-field .layout-items th:nth-child(2),
.report-field .layout-items td:nth-child(2) {
  width: 52%;
}

.designer-content .layout-items th:nth-child(3),
.designer-content .layout-items td:nth-child(3),
.report-field .layout-items th:nth-child(3),
.report-field .layout-items td:nth-child(3) {
  width: 6%;
}

.designer-content .layout-items th:nth-child(4),
.designer-content .layout-items td:nth-child(4),
.designer-content .layout-items th:nth-child(5),
.designer-content .layout-items td:nth-child(5),
.designer-content .layout-items th:nth-child(6),
.designer-content .layout-items td:nth-child(6),
.report-field .layout-items th:nth-child(4),
.report-field .layout-items td:nth-child(4),
.report-field .layout-items th:nth-child(5),
.report-field .layout-items td:nth-child(5),
.report-field .layout-items th:nth-child(6),
.report-field .layout-items td:nth-child(6) {
  width: 10%;
}
.designer-content .layout-items .num,
.report-field .layout-items .num {
  text-align: center;
  white-space: nowrap;
}

.designer-content .layout-items .center,
.designer-content .layout-items .item-code-cell,
.report-field .layout-items .center,
.report-field .layout-items .item-code-cell {
  text-align: center;
  white-space: nowrap;
}

.designer-content .layout-items tbody td,
.report-field .layout-items tbody td {
  text-align: center;
}

.designer-content .layout-items .item-description,
.report-field .layout-items .item-description {
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
  word-break: normal;
}

.designer-content img,
.report-field img {
  max-height: 100%;
  max-width: 100%;
}

.designer-delete {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  color: #991b1b;
  cursor: pointer;
  font-size: 10px;
  height: 16px;
  position: absolute;
  right: 2px;
  top: 2px;
  width: 16px;
}

.designer-inspector {
  align-self: start;
  position: sticky;
  top: 10px;
}

.designer-copy-tools {
  background: #f8fbff;
  border: 1px solid #d7e4f4;
  border-radius: 10px;
  display: grid;
  gap: 6px;
  padding: 7px;
}

.designer-copy-tools .secondary-link {
  min-height: 32px;
  padding: 6px 8px;
}

.designer-copy-tools .secondary-link:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.designer-copy-tools small {
  color: #52657f;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}
.designer-font-panel {
  background: #f8fbff;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 10px;
}

.designer-font-panel strong {
  color: #082f49;
  font-size: 12px;
}

.designer-font-panel small {
  color: #52657a;
  font-size: 11px;
}

.muted-line {
  color: #52657a;
  font-size: 12px;
  font-weight: 800;
}

.designer-font-controls {
  display: grid;
  gap: 6px;
  grid-template-columns: 42px 1fr 42px;
}

.designer-family-control,
.designer-font-style-controls,
.designer-align-controls {
  display: grid;
  gap: 6px;
}

.designer-family-control label {
  color: #52657a;
  display: grid;
  font-size: 10px;
  font-weight: 900;
  gap: 3px;
  text-transform: uppercase;
}

.designer-family-control select {
  background: #fff;
  border: 1px solid #c9d8f2;
  border-radius: 8px;
  color: #082f49;
  font-weight: 900;
  min-height: 30px;
  padding: 4px 6px;
  width: 100%;
}

.designer-font-style-controls,
.designer-align-controls {
  grid-template-columns: repeat(3, 1fr);
}

.designer-font-style-controls button.active,
.designer-align-controls button.active {
  background: #00369d;
  border-color: #00369d;
  color: #fff;
}

.designer-font-controls button,
.designer-font-style-controls button,
.designer-apply-font,
.designer-apply-style {
  background: #00369d;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  min-height: 30px;
}

.designer-font-controls input {
  border: 1px solid #c9d8f2;
  border-radius: 8px;
  color: #082f49;
  font-weight: 900;
  min-height: 30px;
  text-align: center;
}

.designer-apply-font {
  background: #f2b705;
  color: #082f49;
}

.designer-apply-style {
  background: #0f766e;
  color: #fff;
}

.designer-color-controls,

.designer-items-table-controls {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 8px;
}

.designer-items-table-controls strong {
  color: #003b85;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}.designer-shape-controls {
  display: grid;
  gap: 6px;
}

.designer-color-controls {
  grid-template-columns: repeat(3, 1fr);
}

.designer-shape-controls {
  grid-template-columns: repeat(2, 1fr);
}

.designer-color-controls label,
.designer-shape-controls label {
  color: #52657a;
  display: grid;
  font-size: 10px;
  font-weight: 900;
  gap: 3px;
  text-transform: uppercase;
}

.designer-color-controls input[type="color"],
.designer-shape-controls input {
  background: #fff;
  border: 1px solid #c9d8f2;
  border-radius: 8px;
  color: #082f49;
  font-weight: 900;
  height: 30px;
  min-width: 0;
  text-align: center;
  width: 100%;
}

.designer-color-controls input[type="color"] {
  cursor: pointer;
  padding: 3px;
}

.designer-field .designer-content:empty {
  min-height: 0;
}

.report-render-page {
  background: #fff;
  border: 1px solid #dbe4ef;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  height: 900px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  width: 800px;
}

.report-render-page.pos {
  height: 650px;
  width: 260px;
}

.report-field {
  overflow: hidden;
  position: absolute;
  word-break: break-word;
}

.invoice-format-preview {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  color: #102033;
  padding: 18px;
}

.invoice-brand-head {
  align-items: center;
  border-bottom: 3px solid var(--invoice-accent, #00369d);
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.invoice-brand-head img {
  max-height: 72px;
  max-width: 160px;
  object-fit: contain;
}

.invoice-brand-head h1 {
  color: var(--invoice-accent, #00369d);
  margin: 0;
}

.invoice-footer-note {
  color: #475569;
  margin-top: 18px;
  text-align: center;
}

.bank-ledger {
  background: #f5f7fb;
  border: 2px solid #b8c7d9;
  border-radius: 18px;
  color: #102033;
  padding: 16px;
}

.bank-filter-panel {
  background: #fff;
  border: 2px solid #d2deeb;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
  margin-bottom: 14px;
  padding: 14px;
}

.bank-filter-header {
  margin-bottom: 8px;
}

.bank-radio {
  color: #102033;
  font-size: 13px;
  font-weight: 800;
}

.bank-radio input {
  width: auto;
}

.bank-filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(160px, .8fr) 150px 150px 130px;
  gap: 10px;
  align-items: end;
}

.bank-filter-grid .field {
  margin-bottom: 0;
}

.bank-table-wrap {
  background: #fff;
  border: 2px solid #102033;
  border-radius: 14px;
  height: calc(100vh - 390px);
  min-height: 300px;
  overflow: auto;
}

.bank-table {
  border-collapse: collapse;
  color: #102033;
  font-size: 12px;
  width: 100%;
}

.bank-table th {
  background: #f8fafc;
  border: 1px solid #102033;
  color: #0f172a;
  height: 28px;
  padding: 4px 6px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.bank-table td {
  background: #d8ffff;
  border: 1px solid #102033;
  height: 24px;
  padding: 3px 6px;
  white-space: nowrap;
}

.bank-table tr:hover td {
  background: #ecfeff;
}

.bank-table td:nth-child(7),
.bank-table td:nth-child(8),
.bank-table td:nth-child(9) {
  text-align: right;
}

.bank-table a {
  color: #00369d;
  font-weight: 800;
  text-decoration: none;
}

.bank-bottom-panel {
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(520px, 1fr);
  gap: 14px;
  margin-top: 12px;
  align-items: end;
}

.bank-create-account {
  background: #fff;
  border: 2px solid #d2deeb;
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(96px, 1fr)) 90px;
  gap: 8px;
  padding: 12px;
}

.bank-create-catalog {
  grid-template-columns: 1fr 90px;
}

.bank-create-account select {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  min-height: 34px;
  padding: 7px;
}

.bank-accounts-panel {
  background: #fff;
  border: 2px solid #d2deeb;
  border-radius: 16px;
  margin-top: 12px;
  padding: 12px;
}

.bank-accounts-panel h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.bank-accounts-list {
  display: grid;
  gap: 8px;
}

.bank-account-edit-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(130px, 1fr) minmax(120px, .8fr) minmax(130px, 1fr) 110px 80px 80px;
  gap: 8px;
  align-items: center;
  background: #f8fafc;
  border: 2px solid #d2deeb;
  border-radius: 12px;
  padding: 8px;
}

.bank-account-edit-row input,
.bank-account-edit-row select {
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  min-width: 0;
  padding: 7px;
}

.bank-account-edit-row label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
}

.bank-account-edit-row label input {
  width: auto;
}

.bank-account-edit-row button {
  background: #00369d;
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 8px;
}

.bank-create-account strong {
  grid-column: 1 / -1;
}

.bank-create-account input,
.bank-create-account button {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  min-height: 34px;
  padding: 7px;
}

.bank-create-account button {
  background: #00369d;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.bank-shortcuts {
  background: #fff;
  border: 2px solid #d2deeb;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.bank-shortcuts strong {
  flex: 1 0 100%;
}

.bank-totals {
  display: grid;
  grid-template-columns: 120px repeat(4, minmax(100px, 1fr));
  gap: 3px;
  color: #102033;
  font-size: 12px;
  font-weight: 800;
}

.bank-totals strong {
  text-align: center;
}

.bank-totals span {
  align-self: center;
  text-align: right;
}

.bank-totals b {
  background: #c7fff2;
  border: 1px solid #94a3b8;
  color: #001f3f;
  padding: 5px;
  text-align: right;
}

.bank-totals b:nth-child(7),
.bank-totals b:nth-child(10) {
  background: #ffd1d1;
}

.receivable-ledger {
  background: #f5f7fb;
  border: 2px solid #b8c7d9;
  border-radius: 18px;
  color: #102033;
  padding: 16px;
}

.receivable-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 130px;
  gap: 10px;
  align-items: end;
}

.receivable-filter-grid .field {
  margin-bottom: 0;
}

.receivable-table td:nth-child(7),
.receivable-table td:nth-child(8),
.receivable-table td:nth-child(9) {
  text-align: right;
}

.receivable-table form {
  margin: 0;
}

.receivable-table button {
  background: #00369d;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
}

.receivable-card-sales {
  background: #fff;
  border: 2px solid #d2deeb;
  border-radius: 16px;
  display: grid;
  gap: 8px;
  max-height: 170px;
  overflow-y: auto;
  padding: 12px;
}

.receivable-card-sales strong {
  color: #0f172a;
}

.receivable-card-list {
  display: grid;
  gap: 6px;
}

.receivable-card-list a,
.receivable-card-list span {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #102033;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 7px 9px;
  text-decoration: none;
}

.receivable-card-list b {
  color: #00369d;
}

.inline-payment-form {
  display: grid;
  grid-template-columns: 78px 106px 100px 86px 34px;
  gap: 4px;
  align-items: center;
}

.compact-payment-form {
  grid-template-columns: 86px 118px minmax(120px, 1fr) 120px 34px;
  margin-top: 6px;
}

.inline-payment-form input,
.inline-payment-form select {
  min-height: 28px;
  border: 1px solid #b7c7d9;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 12px;
}

.payment-history-row td {
  background: #f7f9fc;
  border-top: 0;
}

.payment-history {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
}

.payment-history strong {
  color: #26384d;
  font-size: 12px;
}

.payment-history-item {
  display: grid;
  grid-template-columns: 58px 130px 90px 130px minmax(120px, 1fr) 34px;
  gap: 8px;
  align-items: center;
  color: #45566b;
  font-size: 12px;
}

div.payment-history-item {
  grid-template-columns: 58px 130px 90px 130px minmax(120px, 1fr);
}

.advance-grid {
  grid-template-columns: minmax(260px, 2fr) 120px 150px minmax(140px, 1fr) minmax(160px, 1fr) 120px;
}

.compact-ledger-table th,
.compact-ledger-table td {
  padding: 7px 8px;
}

.ledger-details summary {
  color: #00369d;
  cursor: pointer;
  font-weight: 800;
  list-style-position: inside;
  white-space: nowrap;
}

.ledger-detail-panel {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  min-width: 760px;
}

.ledger-account-card {
  background: #f7f9fc;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  padding: 8px;
}

.ledger-account-head,
.ledger-account-meta {
  display: grid;
  gap: 8px;
  align-items: center;
}

.ledger-account-head {
  grid-template-columns: minmax(120px, 1fr) 90px 100px 70px;
  font-size: 13px;
}

.ledger-account-meta {
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  color: #53657a;
  font-size: 12px;
  margin-top: 4px;
}

.compact-payment-history {
  border-top: 1px solid #e1e8f0;
  margin-top: 6px;
  padding: 6px 0 0;
}

.cash-close {
  background: #f5f7fb;
  border: 2px solid #b8c7d9;
  border-radius: 18px;
  color: #102033;
  padding: 16px;
}

.cash-filter-panel {
  background: #fff;
  border: 2px solid #d2deeb;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
  margin-bottom: 12px;
  padding: 14px;
}

.cash-radio-group {
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
}

.cash-radio-group label {
  color: #102033;
  font-size: 13px;
  font-weight: 800;
}

.cash-radio-group input {
  width: auto;
}

.cash-filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 150px 150px 120px minmax(180px, .8fr);
  gap: 10px;
  align-items: end;
}

.cash-filter-grid .field {
  margin-bottom: 0;
}

.cash-blank-box {
  background: linear-gradient(135deg, #fff, #eef6ff);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  min-height: 56px;
}

.cash-tabs {
  display: flex;
  gap: 4px;
}

.cash-tabs span {
  background: #fff;
  border: 2px solid #d2deeb;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  color: #102033;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.cash-table-wrap {
  background: #fff;
  border: 2px solid #102033;
  border-radius: 0 14px 14px 14px;
  height: calc(100vh - 395px);
  min-height: 330px;
  overflow: auto;
}

.cash-table {
  border-collapse: collapse;
  color: #102033;
  font-size: 12px;
  width: 100%;
}

.cash-table th {
  background: #f8fafc;
  border: 1px solid #102033;
  color: #0f172a;
  height: 28px;
  padding: 4px 6px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.cash-table td {
  background: #d8ffff;
  border: 1px solid #102033;
  height: 25px;
  padding: 3px 6px;
}

.cash-table tr:nth-child(odd) td {
  background: #d7ffd7;
}

.cash-table tr.selected td {
  background: #a7d4ff;
  color: #00369d;
  font-weight: 800;
}

.cash-table td:nth-child(2) {
  font-weight: 800;
  text-transform: uppercase;
}

.cash-table td:nth-child(3) {
  text-align: right;
  font-weight: 800;
}

.cash-table input {
  height: 14px;
  width: 14px;
}

.cash-bottom-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.cash-total-box {
  background: #fff;
  border: 2px solid #d2deeb;
  border-radius: 14px;
  padding: 10px;
}

.cash-total-box label {
  color: #0f172a;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.cash-total-box strong {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  display: block;
  font-size: 14px;
  padding: 6px;
  text-align: right;
}

.danger-text {
  color: #dc2626 !important;
}

.blue-text {
  color: #00369d !important;
}

.report-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  max-height: calc(100vh - 360px);
  overflow-y: auto;
  padding-right: 6px;
}

.report-card {
  background: #edfdf3;
  border: 1px solid #bfe8cd;
  border-left: 8px solid #27ae60;
  border-radius: 14px;
  color: #082f49;
  padding: 12px;
  text-align: left;
}

.finance-grid {
  display: grid;
  gap: 8px;
}

.finance-row {
  display: grid;
  grid-template-columns: minmax(130px, .9fr) minmax(180px, 1.3fr) minmax(120px, 1fr) minmax(110px, .9fr) 90px minmax(42px, auto) minmax(42px, auto);
  gap: 8px;
  align-items: center;
  background: #f4f7fb;
  border-radius: 12px;
  color: #082f49;
  padding: 8px 10px;
  font-size: 12px;
}

.finance-row form {
  margin: 0;
}

.finance-row b {
  text-align: right;
}

.status-pill {
  background: #e8eef2;
  border-radius: 999px;
  color: #00369d;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
  text-align: center;
}

.internal-id-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #9aaec2;
  border-radius: 4px;
  background: #f2f6fb;
  color: #12355b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.report-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.report-card p {
  font-size: 13px;
  margin-bottom: 4px;
}

.report-card ul {
  margin: 8px 0 0 16px;
  font-size: 13px;
}

.report-retrasado {
  background: #fff8db;
  border-color: #f3df8b;
  border-left-color: #f2b705;
}

.report-atrasado {
  background: #ffecec;
  border-color: #ffc4c4;
  border-left-color: #c0392b;
}

.report-atiempo {
  background: #edfdf3;
  border-color: #bfe8cd;
  border-left-color: #27ae60;
}

.billing-grid {
  display: grid;
  grid-template-columns: minmax(680px, 1.45fr) minmax(320px, .55fr);
  gap: 16px;
  align-items: start;
}

.billing-grid.billing-no-pending {
  grid-template-columns: 1fr;
}

.billing-grid.billing-no-pending > .card:first-child {
  width: 100%;
}

.billing-grid.billing-no-pending .billing-designer-form {
  width: 100%;
}

.billing-grid.billing-no-pending .billing-items-head,
.billing-grid.billing-no-pending .manual-item-row {
  grid-template-columns: minmax(460px, 1fr) 72px 90px 90px 110px 95px 110px 78px;
  min-width: 1160px;
}

.billing-grid.billing-no-pending .billing-summary-row {
  justify-content: end;
}

.billing-mobile-mode {
  grid-template-columns: 1fr;
}

.billing-mobile-mode > .card {
  padding: 12px;
}

.billing-mobile-mode .selected-customer-card,
.billing-mobile-mode .payment-extra {
  font-size: 12px;
}

.manual-items {
  display: grid;
  gap: 0;
  margin: 0;
}

.billing-designer-form {
  display: flex;
  flex-direction: column;
}

.billing-design-block {
  width: 100%;
}

.billing-design-hidden {
  display: none !important;
}

.billing-date-chip {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  display: grid;
  gap: 2px;
  min-width: 128px;
  padding: 5px 8px;
}

.billing-date-chip span {
  color: #425773;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.billing-date-chip input {
  background: transparent;
  border: 0;
  color: #082145;
  font-size: 13px;
  font-weight: 900;
  min-height: 24px;
  padding: 0;
  width: 100%;
}

.billing-credit-date-chip {
  display: none;
}

.billing-price-change-bar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.billing-toolbar-field {
  min-width: 120px;
}

.billing-toolbar-price {
  flex: 0 0 112px;
  max-width: 112px;
  min-width: 112px;
}

.billing-toolbar-price select {
  min-width: 0;
  width: 100%;
}

.billing-items-table {
  border: 1px solid #96b4bd;
  margin-top: 12px;
  overflow-x: auto;
  width: 100%;
}

.billing-items-head {
  background: #eef5f8;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.billing-items-head,
.manual-item-row {
  display: grid;
  grid-template-columns: minmax(310px, 1fr) 62px 76px 76px 90px 80px 90px 68px;
  gap: 0;
  align-items: center;
  min-width: 830px;
}

.billing-price-line-enabled .billing-items-head,
.billing-price-line-enabled .manual-item-row {
  grid-template-columns: minmax(280px, 1fr) 62px 58px 76px 76px 90px 80px 90px 68px;
  min-width: 900px;
}

.pos-billing-body .billing-items-head,
.pos-billing-body .manual-item-row {
  grid-template-columns: 34px 86px minmax(135px, .75fr) 54px 68px 76px 60px 76px 48px;
  min-width: 637px;
}

.pos-billing-body .billing-price-line-enabled .billing-items-head,
.pos-billing-body .billing-price-line-enabled .manual-item-row {
  grid-template-columns: 34px 78px minmax(125px, .7fr) 52px 48px 64px 72px 58px 72px 48px;
  min-width: 651px;
}

.billing-items-head span,
.manual-item-row > * {
  border-bottom: 1px solid #96b4bd;
  border-right: 1px solid #96b4bd;
  font-size: var(--billing-table-font-size, 11px);
  min-height: 30px;
  min-width: 0;
}

.billing-items-head span:last-child,
.manual-item-row > *:last-child {
  border-right: 0;
}

.manual-item-row input {
  border: 0;
  border-radius: 0;
  font-size: var(--billing-table-font-size, 11px);
  padding: 5px 6px;
  width: 100%;
}

.manual-item-row select {
  border: 0;
  border-radius: 0;
  font-size: var(--billing-table-font-size, 11px);
  min-height: 30px;
}

.manual-item-row .line-sale-price-select {
  background: #fef3c7;
  color: #082145;
  font-weight: 900;
  padding: 0 4px;
  text-align: center;
  width: 100%;
}

.manual-item-row input[type="hidden"] {
  display: none;
}

.manual-item-row .item-quantity-input {
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
}

.manual-item-row button {
  border: 0;
  border-radius: 0;
  background: #c0392b;
  color: white;
  cursor: pointer;
  font-size: calc(var(--billing-table-font-size, 11px) - 1px);
  font-weight: 800;
  height: 30px;
  padding: 0 4px;
  text-transform: uppercase;
  white-space: nowrap;
  width: 100%;
}

.pos-billing-body .pos-name-cell,
.pos-billing-body .pos-code-cell,
.pos-billing-body .billing-items-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-billing-body .manual-item-row button {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 44px;
  padding: 0;
}

.billing-summary-row {
  align-items: flex-start;
  display: grid;
  gap: 28px;
  grid-template-columns: 190px 276px;
  justify-content: end;
  margin-top: 10px;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

.line-unit-price,
.line-subtotal,
.line-iva,
.line-total {
  align-items: center;
  background: #e2fbfb;
  display: flex;
  font-size: var(--billing-table-font-size, 11px);
  font-weight: 800;
  justify-content: flex-end;
  padding: 0 6px;
}

.billing-total-panel {
  display: grid;
  gap: 0;
  justify-content: end;
  margin-top: 0;
}

.billing-total-panel div {
  align-items: stretch;
  display: grid;
  grid-template-columns: 150px 126px;
  min-height: 32px;
}

.billing-total-panel span,
.billing-total-panel strong {
  align-items: center;
  border: 1px solid #cbd5e1;
  display: flex;
  font-size: min(var(--billing-total-font-size, 15px), 13px);
  min-height: 32px;
  padding: 3px 7px;
}

.billing-total-panel span {
  background: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  justify-content: flex-start;
  line-height: 1;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
}

.billing-total-panel strong {
  background: #e2fbfb;
  color: #00369d;
  font-size: min(var(--billing-total-font-size, 15px), 13px);
  justify-content: flex-start;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}

.billing-total-panel input {
  border: 1px solid #cbd5e1;
  border-radius: 0;
  font-size: min(var(--billing-total-font-size, 15px), 13px);
  font-weight: 900;
  min-height: 32px;
  padding: 3px 7px;
}

.billing-total-panel div:nth-child(2) strong {
  background: #70ff8a;
}

.billing-total-panel div:nth-child(4) strong {
  background: #fff989;
}

.billing-total-panel .billing-grand-total strong {
  background: white;
  color: #ef0000;
  font-size: min(var(--billing-total-font-size, 15px), 13px);
}

.pos-billing-body .billing-total-panel {
  min-width: 0;
}

.pos-billing-body .billing-total-panel div {
  grid-template-columns: 150px 126px;
  min-height: 30px;
}

.pos-billing-body .billing-total-panel span,
.pos-billing-body .billing-total-panel strong,
.pos-billing-body .billing-total-panel input {
  font-size: 10px;
  min-height: 30px;
  padding: 2px 6px;
}

.pos-billing-body .billing-total-panel span {
  letter-spacing: 0;
}

.payment-panel {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 10px;
  align-items: end;
  background: #f4f7fb;
  border: 1px solid #d7dee7;
  border-radius: 14px;
  padding: 10px;
  margin: 12px 0;
}

.payment-panel.billing-payment-panel {
  margin-top: 28px;
}

.billing-summary-row .payment-panel {
  justify-self: start;
  border-radius: 10px;
  gap: 5px;
  grid-template-columns: minmax(146px, 174px);
  margin-bottom: 0;
  margin-left: 0;
  padding: 7px;
  width: 188px;
}

.pos-billing-body .billing-summary-row .payment-panel {
  margin-left: 0;
  width: 182px;
}

.billing-summary-row .payment-panel .field {
  margin: 0;
}

.billing-summary-row .payment-panel label {
  font-size: 11px;
  line-height: 1.05;
  margin-bottom: 3px;
}

.billing-summary-row .payment-panel select,
.billing-summary-row .payment-panel input {
  font-size: 12px;
  min-height: 28px;
  padding: 4px 7px;
}

.billing-summary-row .payment-panel small {
  display: block;
  font-size: 10px;
  line-height: 1.15;
  margin-top: 3px;
}

.billing-summary-row .payment-extra {
  grid-template-columns: 1fr;
}

@media (max-width: 760px) {
  .billing-summary-row {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 0;
  }

  .billing-summary-row .payment-panel {
    margin-left: 0;
    order: 1;
  }

  .billing-total-panel {
    order: 2;
  }
}

.billing-design-form {
  display: grid;
  gap: 14px;
}

.design-panel {
  background: #f8fafc;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  padding: 14px;
}

.design-order-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.design-order-grid label {
  color: #082f49;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
}

.design-order-grid input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px;
}

.payment-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
}

.invoice-order-list {
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
}

.invoice-order-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 62px 34px;
  gap: 6px;
  align-items: center;
  background: #f4f7fb;
  border-radius: 12px;
  color: #082f49;
  font-size: 12px;
  padding: 7px;
}

.invoice-order-row span,
.invoice-order-row small {
  display: block;
}

.invoice-order-row small {
  color: #607080;
  font-size: 10px;
  margin-top: 2px;
}

.invoice-order-row b {
  font-size: 12px;
  text-align: right;
}

.view-order-button {
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  background: #00369d;
  color: white;
  cursor: pointer;
  font-size: 0;
  font-weight: bold;
  position: relative;
}

.view-order-button::before {
  content: "Ver";
  font-size: 10px;
}

.view-order-button::after {
  content: attr(title);
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  background: #082f49;
  color: white;
  border-radius: 8px;
  padding: 5px 7px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 5;
}

.view-order-button:hover::after {
  opacity: 1;
}

.order-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 99999;
}

.order-detail-modal.active {
  display: flex;
}

.order-detail-box {
  width: min(760px, 96vw);
  max-height: 86vh;
  overflow-y: auto;
  background: white;
  color: #082f49;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38);
}

.order-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.order-detail-head span {
  color: #607080;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.order-detail-head h2 {
  font-size: 22px;
  margin: 2px 0 0;
}

.order-detail-head button {
  border: 0;
  border-radius: 10px;
  background: #e8eef2;
  color: #082f49;
  cursor: pointer;
  font-weight: bold;
  padding: 9px 12px;
}

.order-detail-meta {
  color: #607080;
  font-size: 13px;
  line-height: 1.45;
}

.compact-table th,
.compact-table td {
  font-size: 12px;
  padding: 7px;
}

.invoice-list-row {
  grid-template-columns: 50px minmax(145px, 1fr) minmax(150px, 1fr) 110px 145px 90px 112px 110px;
}

.invoice-search-bar {
  align-items: end;
  column-gap: 6px;
  display: grid;
  grid-template-columns: 98px 120px 158px 62px minmax(190px, 1fr) 160px 120px 170px;
  row-gap: 10px;
}

.invoice-search-bar .field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.invoice-search-bar label {
  display: block;
  line-height: 11px;
  margin: 0;
  min-height: 11px;
}

.invoice-search-bar .filter-spacer {
  visibility: hidden;
}

.invoice-search-bar input,
.invoice-search-bar select {
  display: block;
  line-height: normal;
  width: 100%;
}

.invoice-search-bar select {
  font-size: 12px;
  min-height: 36px;
  padding-bottom: 6px;
  padding-top: 6px;
}

.invoice-search-bar .erp-search-icon-button {
  height: 35px;
  justify-self: start;
  margin-left: 20px;
  width: 35px;
}

.sales-range-filter {
  justify-content: start;
}

.sales-range-filter .sales-to-field {
  margin-left: 32px;
}

.sales-period-buttons {
  align-items: center;
  display: flex;
  gap: 4px;
  height: 35px;
}

.sales-period-buttons button {
  align-items: center;
  background: #fff;
  border: 1px solid #004aad;
  border-radius: 10px;
  color: #004aad;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  width: 28px;
}

.sales-period-buttons button:hover {
  background: #eaf3ff;
}

.invoice-list-summary {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  padding: 10px 12px;
}

.invoice-list-summary strong {
  color: #00369d;
}

.invoice-list-summary-bottom {
  background: linear-gradient(135deg, #eef6ff, #ffffff);
  border: 1px solid #a9c7e8;
  border-top: 4px solid #0f4aa2;
  box-shadow: 0 10px 22px rgba(15, 42, 82, .08);
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.invoice-list-summary-bottom span {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8e6f5;
  border-radius: 8px;
  color: #17385f;
  display: inline-flex;
  font-weight: 900;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
}

.invoice-list-summary-bottom strong {
  color: #004aad;
  font-size: 14px;
}

.invoice-list-summary-bottom .grand-total {
  background: #fff3cd;
  border-color: #f2b705;
  color: #10233f;
}

.invoice-list-summary-bottom .grand-total strong {
  color: #b45309;
  font-size: 16px;
}

.invoice-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 10px;
}

.invoice-card,
.invoice-group-card {
  background: #f8fafc;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  padding: 10px;
}

.invoice-card {
  display: grid;
  gap: 7px;
}

.invoice-card div:first-child,
.invoice-group-card header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.invoice-card p {
  font-weight: 800;
  margin: 0;
}

.invoice-card small,
.invoice-card span {
  color: #607080;
}

.invoice-card > b,
.invoice-group-card header span {
  color: #00369d;
  font-size: 18px;
}

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

.invoice-group-card header {
  border-bottom: 1px solid #d7dee7;
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.invoice-datagrid-wrap {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow-x: auto;
  background: white;
}

.invoice-datagrid {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.invoice-datagrid th,
.invoice-datagrid td {
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  padding: 9px 10px;
  text-align: left;
  white-space: nowrap;
}

.invoice-datagrid th {
  background: #eef5f8;
  border-bottom: 1px solid #96b4bd;
  color: #082f49;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 1;
}

.invoice-datagrid tbody tr:nth-child(even) {
  background: #f8fafc;
}

.invoice-datagrid tbody tr:hover {
  background: #eaf4ff;
}

.invoice-datagrid .right {
  text-align: right;
}

.invoice-datagrid-groups {
  display: grid;
  gap: 14px;
}

.invoice-datagrid-group {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.invoice-datagrid-group > header {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #cbd5e1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  padding: 10px 12px;
}

.invoice-datagrid-group > header strong {
  color: #082f49;
  font-size: 14px;
}

.invoice-datagrid-group > header span {
  color: #607080;
  font-size: 12px;
}

.invoice-datagrid-group > header b {
  color: #00369d;
  font-size: 18px;
}

.billed-order-row {
  grid-template-columns: 60px minmax(145px, 1fr) minmax(150px, 1.1fr) 115px 150px 80px 95px 70px;
}

.muted-label {
  color: #607080;
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-icon-link {
  width: 32px;
  height: 30px;
  border-radius: 10px;
  background: #00369d;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  text-decoration: none;
  position: relative;
}

.preview-icon-link::before {
  content: "Ver";
  font-size: 10px;
  font-weight: 800;
}

.preview-icon-link::after {
  content: attr(title);
  position: absolute;
  right: 38px;
  top: 50%;
  transform: translateY(-50%);
  background: #082f49;
  color: white;
  border-radius: 8px;
  padding: 5px 7px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 5;
}

.preview-icon-link:hover::after {
  opacity: 1;
}

.invoice-preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .68);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 99999;
}

.invoice-preview-modal.active {
  display: flex;
}

.invoice-preview-box {
  width: min(980px, 96vw);
  height: min(820px, 90vh);
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38);
  display: grid;
  grid-template-rows: auto 1fr;
}

.invoice-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #082f49;
  padding: 12px 14px;
  border-bottom: 1px solid #d7dee7;
}

.invoice-preview-head button {
  border: 0;
  border-radius: 10px;
  background: #e8eef2;
  color: #082f49;
  cursor: pointer;
  font-weight: bold;
  padding: 9px 12px;
}

.invoice-preview-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.invoice-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 14px;
}

.invoice-table th,
.invoice-table td {
  border-bottom: 1px solid #d7dee7;
  padding: 8px;
  text-align: left;
}

.invoice-totals {
  margin-top: 18px;
  text-align: right;
}

.invoice-totals p {
  margin-bottom: 6px;
}

.invoice-sequence-preview {
  background: white;
  border-radius: 14px;
  color: #082f49;
  min-width: 210px;
  padding: 10px 14px;
  text-align: right;
}

.transaction-number-chip {
  background: #ffffff;
  border: 1px solid #d8e6f5;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(8, 31, 58, .06);
  color: #082f49;
  min-width: 170px;
  padding: 7px 10px;
  text-align: right;
}

.transaction-number-chip span,
.transaction-number-chip strong {
  display: block;
}

.transaction-number-chip span {
  color: #607080;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.transaction-number-chip strong {
  font-size: 14px;
  margin-top: 2px;
}

.transaction-number-chip.dark {
  background: #0f1724;
  border-color: #263a56;
  box-shadow: none;
  color: #eaf2ff;
}

.transaction-number-chip.dark span {
  color: #8ca3c0;
}

.transaction-number-stack {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.invoice-sequence-preview span,
.invoice-sequence-preview strong {
  display: block;
}

.invoice-sequence-preview span {
  color: #607080;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.invoice-sequence-preview strong {
  font-size: 18px;
  margin-top: 2px;
}

.customer-create-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) 150px;
  gap: 10px;
  align-items: end;
}

.customer-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 190px;
  overflow-y: auto;
}

.customer-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) 110px 110px minmax(160px, 1fr);
  gap: 8px;
  align-items: center;
  background: #f4f7fb;
  border-radius: 12px;
  color: #082f49;
  font-size: 12px;
  padding: 9px;
}

.customer-row span {
  color: #607080;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-alert {
  background: #fff7df;
  border: 1px solid #f2b705;
  border-radius: 10px;
  color: #082f49;
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
  padding: 8px;
}

.inline-alert a {
  color: #00369d;
}

.billing-customer-tools {
  padding: 16px;
}

.billing-customer-tools .toolbar-button {
  width: 180px;
}

.selected-customer-card {
  margin-top: 10px;
}

.selected-customer-card:empty {
  display: none;
}

.selected-customer-card {
  background: #f4f7fb;
  border: 1px solid #d7dee7;
  border-radius: 14px;
  padding: 12px;
}

.customer-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.customer-card-head strong {
  cursor: pointer;
}

.edit-icon-link {
  width: 34px;
  height: 30px;
  border-radius: 10px;
  background: #00369d;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  text-decoration: none;
  position: relative;
}

.edit-icon-link::before {
  content: "\270E";
  font-size: 16px;
  font-weight: 800;
}

.customer-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.customer-card-grid span {
  color: #607080;
  display: block;
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-card-grid b {
  color: #082f49;
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
}

.customer-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) 140px;
  gap: 10px;
  align-items: end;
  background: #f4f7fb;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.customer-filter-actions {
  align-items: end;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.customer-filter-actions .main-button,
.customer-filter-actions .secondary-link {
  min-height: 42px;
  width: 100%;
}

.customer-filter-actions .erp-search-icon-button {
  min-height: 42px;
  width: 42px;
}

.directory-list-row {
  grid-template-columns: 70px 44px 130px 180px 180px 160px 130px 130px 75px 42px;
  min-width: 1220px;
}

.directory-catalog-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.directory-catalog-card {
  align-self: start;
  border-radius: 10px;
  padding: 10px !important;
}

.directory-catalog-card .form-title {
  font-size: 15px;
  line-height: 1.15;
  margin: 0 0 8px;
}

.directory-catalog-form {
  background: #f4f7fb;
  border: 1px solid #d7e6f5;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: 72px minmax(120px, 1fr) 78px 82px;
  margin-bottom: 8px;
  padding: 7px;
}

.directory-catalog-form .mini-check {
  align-items: center;
  display: inline-flex;
  font-size: 11px;
  gap: 4px;
  min-height: 30px;
  white-space: nowrap;
}

.directory-catalog-form .directory-catalog-save {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  height: 30px;
  justify-content: center;
  min-height: 30px;
  padding: 0 9px;
  width: auto;
}

.directory-catalog-form .directory-catalog-save span {
  font-size: 11px;
  line-height: 1;
}

.erp-save-svg {
  display: block;
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 14px;
}

.directory-catalog-form input,
.directory-catalog-row input {
  border: 1px solid #d7dee7;
  border-radius: 8px;
  font-size: 12px;
  height: 30px;
  min-width: 0;
  padding: 5px 7px;
}

.directory-catalog-row {
  grid-template-columns: 72px minmax(120px, 1fr) 64px 32px 32px;
}

.directory-catalog-row .mini-check {
  font-size: 11px;
  min-height: 28px;
}

.directory-catalog-row .icon-action {
  border-radius: 8px;
  height: 26px;
  width: 26px;
}

.directory-catalog-list {
  max-height: 360px;
  overflow: auto;
}

.sequence-create-form {
  display: grid;
  grid-template-columns: 140px 140px 180px 170px;
  gap: 10px;
  align-items: end;
}

.sequence-list-row {
  grid-template-columns: 48px 110px 160px minmax(220px, 1fr) minmax(140px, .7fr) 44px;
}

.sequence-user-row {
  grid-template-columns: minmax(160px, 1fr) minmax(160px, .8fr) minmax(120px, .6fr);
}

.customer-form-screen {
  max-width: 860px;
  margin: 0 auto;
}

.customer-screen-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.customer-screen-form .full-field {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .billing-grid,
  .purchase-workspace,
  .purchase-item-row,
  .purchase-total-strip,
  .imported-purchase-row,
  .purchase-entered-row,
  .supplier-list-link,
  .supplier-form-grid,
  .purchase-param-row,
  .invoice-list-row,
  .invoice-search-bar,
  .billed-order-row,
  .customer-create-form,
  .customer-row,
  .customer-filter-bar,
  .directory-list-row,
  .directory-catalog-grid,
  .directory-catalog-row,
  .customer-screen-form,
  .customer-card-grid {
    grid-template-columns: 1fr;
  }

  .invoice-search-bar .erp-search-icon-button {
    margin-left: 0;
  }

  .sales-range-filter .sales-to-field {
    margin-left: 0;
  }

  .sales-range-filter .sales-search-field,
  .sales-range-filter .sales-status-field,
  .sales-range-filter .sales-group-field {
    grid-column: auto;
    grid-row: auto;
  }

  .directory-catalog-form {
    grid-template-columns: 1fr 1fr;
  }

  .directory-catalog-form .directory-catalog-save {
    width: 100%;
  }

  .directory-list-row {
    min-width: 0;
  }
}

.area-shortcuts,
.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.top-actions {
  margin-bottom: 0;
  align-items: center;
  justify-content: flex-end;
}

.area-shortcuts a {
  background: #00369d;
  color: white;
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.kitchen-tabs .kitchen-area-tab {
  background: #00369d;
  color: #ffffff;
}

.printer-create-form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr minmax(140px, 180px);
  gap: 10px;
  align-items: end;
}

.printer-list {
  display: grid;
  gap: 8px;
}

.printer-row {
  display: grid;
  grid-template-columns: 54px minmax(140px, 1fr) minmax(180px, 1.4fr) 90px 160px;
  gap: 8px;
  align-items: center;
  background: #f4f7fb;
  border-radius: 12px;
  padding: 10px;
}

.printer-id {
  color: #607080;
  font-size: 13px;
  font-weight: bold;
}

.printer-row input[type="text"],
.printer-row input:not([type]),
.printer-name-input {
  width: 100%;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  padding: 9px;
  font-size: 13px;
}

.printer-active {
  color: #082f49;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  gap: 6px;
  align-items: center;
}

.printer-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.small-save,
.small-delete {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  padding: 9px 8px;
}

.small-save {
  background: #f2b705;
  color: #082f49;
}

.small-delete {
  background: #c0392b;
  color: white;
}

.admin-row-list {
  display: grid;
  gap: 8px;
}

.admin-list-row {
  display: grid;
  gap: 6px;
  align-items: center;
  background: #f4f7fb;
  border-radius: 14px;
  color: #082f49;
  padding: 8px;
  font-size: 12px;
}

.category-list-row {
  grid-template-columns: 48px minmax(140px, 1.2fr) minmax(160px, 1.5fr) 105px 105px 78px 112px 86px 34px;
}

.admin-window .category-list-row {
  grid-template-columns: 38px minmax(130px, 1fr) minmax(130px, 1.1fr) 82px 82px 64px 96px 70px 30px;
  gap: 5px;
  padding: 5px 6px;
  font-size: 11px;
}

.admin-window .category-list-row input,
.admin-window .category-list-row select {
  border-radius: 8px;
  font-size: 11px;
  min-height: 28px;
  padding: 4px 6px;
}

.admin-window .category-list-row .mini-check {
  font-size: 10px;
  gap: 3px;
}

.admin-window .category-list-row .icon-action {
  height: 24px;
  width: 24px;
  font-size: 10px;
}

.category-screen {
  display: grid;
  gap: 6px;
}

.wide-container.view-categorias,
.wide-container.view-promociones {
  max-width: 1160px;
  width: calc(100% - 28px);
}

.wide-container .category-screen .window-head {
  align-items: center;
  border: 1px solid #c9d8eb;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .1);
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 12px 14px;
}

.category-screen .window-head > div:first-child {
  align-items: baseline;
  display: flex;
  gap: 14px;
}

.category-screen .window-head h2 {
  font-size: 20px;
  margin: 0;
}

.category-screen .window-head p {
  font-size: 11px;
  font-weight: 700;
  margin: 0;
}

.category-screen .top-actions {
  align-items: center;
  gap: 6px;
  margin: 0;
}

.category-screen .top-actions .secondary-link {
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  min-height: 30px;
  padding: 7px 12px;
}

.category-screen .product-module-icon {
  border-radius: 8px;
  font-size: 18px;
  height: 30px;
  width: 32px;
}

.wide-container .category-screen .card {
  border: 1px solid #c9d8eb;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .1);
  padding: 12px 14px 14px;
}

.category-screen .form-title {
  font-size: 15px;
  margin: 0 0 7px;
}

.category-screen .admin-row-list {
  background: #ffffff;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  display: block;
  max-height: calc(100vh - 220px);
  overflow: auto;
}

.category-grid-head,
.category-screen .category-list-row {
  align-items: center;
  display: grid;
  grid-template-columns: 44px minmax(150px, 1.15fr) minmax(150px, 1fr) 70px 70px 58px 76px minmax(120px, .9fr) minmax(130px, .95fr) 78px 68px 126px;
  min-width: 1240px;
}

.category-grid-head {
  background: #edf4fa;
  border-bottom: 1px solid #c9d8eb;
  color: #001d38;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}

.category-grid-head span {
  border-right: 1px solid #c9d8eb;
  min-height: 28px;
  padding: 8px 7px;
}

.category-screen .category-list-row {
  background: #f8fbff;
  border-bottom: 1px solid #c9d8eb;
  border-radius: 0;
  gap: 0;
  margin: 0;
  padding: 0;
}

.category-screen .category-list-row:nth-child(even) {
  background: #f4f8fc;
}

.category-screen .category-list-row:hover {
  background: #eef8ff;
}

.category-screen .category-list-row > * {
  border-right: 1px solid #d7e2ee;
  min-height: 34px;
}

.category-screen .category-list-row .row-id {
  align-items: center;
  color: #001d38;
  display: flex;
  font-size: 10px;
  font-weight: 900;
  padding: 6px 8px;
}

.category-screen .category-list-row input,
.category-screen .category-list-row select {
  border: 0;
  border-radius: 0;
  color: #001d38;
  font-size: 10px;
  font-weight: 800;
  height: 34px;
  padding: 6px 8px;
}

.category-screen .category-list-row select {
  background: #fff;
}

.category-screen .category-list-row .mini-check {
  align-items: center;
  color: #001d38;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  justify-content: center;
  padding: 5px;
}

.category-screen .category-list-row .icon-action {
  align-self: center;
  justify-self: center;
}

.category-screen .category-action-stack {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 4px;
}

.category-screen .category-action-stack .secondary-link {
  font-size: 9px;
  min-height: 26px;
  padding: 4px 6px;
  white-space: nowrap;
}

.promo-screen,
.contact-screen {
  display: grid;
  gap: 6px;
}

.clientes-screen .product-module-icon {
  border-radius: 8px;
  font-size: 18px;
  height: 30px;
  width: 32px;
}

.wide-container .promo-screen .window-head,
.wide-container .contact-screen .window-head {
  align-items: center;
  border: 1px solid #c9d8eb;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .1);
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 12px 14px;
}

.wide-container.view-promociones .topbar {
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 12px 14px;
}

.wide-container.view-promociones .topbar h1 {
  font-size: 22px;
  margin: 2px 0 0;
}

.wide-container.view-promociones .small-title {
  font-size: 10px;
  letter-spacing: 2px;
}

.promo-screen .window-head > div:first-child,
.contact-screen .window-head > div:first-child {
  align-items: baseline;
  display: flex;
  gap: 14px;
}

.promo-screen .window-head h2,
.contact-screen .window-head h2 {
  font-size: 20px;
  margin: 0;
}

.promo-screen .window-head p,
.contact-screen .window-head p {
  font-size: 11px;
  font-weight: 700;
  margin: 0;
}

.promo-screen .top-actions,
.contact-screen .top-actions {
  align-items: center;
  gap: 6px;
  margin: 0;
}

.promo-screen .top-actions .secondary-link,
.contact-screen .top-actions .secondary-link {
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  min-height: 30px;
  padding: 7px 12px;
}

.promo-screen .product-module-icon,
.contact-screen .product-module-icon {
  border-radius: 8px;
  font-size: 18px;
  height: 30px;
  width: 32px;
}

.wide-container .promo-screen .card,
.wide-container .contact-screen .card {
  border: 1px solid #c9d8eb;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .1);
  padding: 12px 14px 14px;
}

.wide-container .promo-screen .card {
  padding: 14px 16px;
}

.promo-screen .form-title,
.contact-screen .form-title {
  font-size: 15px;
  margin: 0 0 7px;
}

.promo-screen .admin-row-list {
  background: #ffffff;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  display: block;
  max-height: calc(100vh - 220px);
  overflow: auto;
}

.promo-filter-bar {
  align-items: center;
  background: #f7fbff;
  border: 1px solid #d8e6f5;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 8px;
  padding: 7px;
}

.promo-filter-bar input {
  background: #ffffff;
  border: 1px solid #bfd3ea;
  border-radius: 8px;
  color: #001d38;
  font-size: 11px;
  font-weight: 800;
  flex: 0 1 420px;
  min-height: 32px;
  padding: 6px 10px;
  width: min(420px, 100%);
}

.promo-filter-bar .main-button,
.promo-filter-bar .secondary-link {
  border-radius: 8px;
  font-size: 11px;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 14px;
  width: auto;
}

.promo-grid-head,
.promo-screen .promo-list-row {
  align-items: center;
  display: grid;
  grid-template-columns: 40px 64px minmax(170px, 1.2fr) minmax(128px, .9fr) 62px 62px minmax(210px, 1.35fr) 80px 58px 58px;
  min-width: 1035px;
}

.promo-grid-head {
  background: #edf4fa;
  border-bottom: 1px solid #c9d8eb;
  color: #001d38;
  font-size: 9px;
  font-weight: 900;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}

.promo-grid-head span {
  border-right: 1px solid #c9d8eb;
  min-height: 28px;
  padding: 8px 7px;
}

.promo-screen .promo-list-row {
  background: #ffffff;
  border-bottom: 1px solid #dbe5ee;
  border-radius: 0;
  gap: 0;
  margin: 0;
  padding: 0;
}

.promo-screen .promo-list-row:nth-child(even) {
  background: #f4f8fc;
}

.promo-screen .promo-list-row:hover {
  background: #eef8ff;
  border-color: #c9d8eb;
}

.promo-screen .promo-list-row > * {
  min-height: 36px;
}

.promo-screen .promo-list-row .row-id {
  align-items: center;
  color: #001d38;
  display: flex;
  font-size: 10px;
  font-weight: 900;
  padding: 6px 9px;
}

.promo-screen .promo-list-row input:not([type="file"]) {
  border: 1px solid #c9d8eb;
  border-radius: 8px;
  color: #001d38;
  font-size: 10px;
  font-weight: 700;
  height: 24px;
  margin: 6px 3px;
  min-height: 24px;
  padding: 4px 7px;
}

.promo-screen .promo-list-row input[type="file"] {
  align-self: center;
  border: 1px solid #c9d8eb;
  border-radius: 8px;
  color: #001d38;
  font-size: 8px;
  margin: 6px 3px;
  max-width: calc(100% - 6px);
  min-height: 24px;
  padding: 2px 4px;
  width: calc(100% - 6px);
}

.promo-screen .promo-list-row .product-row-photo.compact-photo {
  height: 26px;
  justify-self: center;
  margin: 5px;
  min-height: 26px;
  width: 30px;
}

.promo-screen .promo-list-row .photo-icon-button {
  border-radius: 8px;
  font-size: 10px;
  height: 26px;
  width: 28px;
}

.promo-screen .promo-list-row .mini-check {
  align-items: center;
  color: #001d38;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  justify-content: center;
  padding: 5px;
}

.promo-screen .promo-list-row .inline-icon-actions {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 5px;
}

.promo-screen .promo-list-row .icon-action {
  border-radius: 8px;
  font-size: 12px;
  height: 24px;
  width: 24px;
}

.contact-screen .directory-settings-card {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #c9d8eb;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  margin: 0 0 10px;
  padding: 10px;
}

.contact-screen .directory-settings-card strong {
  color: #001d38;
  display: block;
  font-size: 13px;
  font-weight: 950;
}

.contact-screen .directory-settings-card span {
  color: #52677f;
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.contact-screen .directory-settings-card .main-button.compact {
  min-height: 32px;
  padding: 7px 14px;
  width: auto;
}

.contact-screen .directory-hub {
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-screen .module-card-link {
  border: 1px solid #c9d8eb;
  border-radius: 8px;
  box-shadow: none;
  min-height: 82px;
  padding: 12px;
}

.contact-screen .module-card-link strong {
  color: #001d38;
  font-size: 14px;
}

.contact-screen .module-card-link span {
  font-size: 11px;
}

.user-list-row {
  grid-template-columns: 48px minmax(150px, 1.1fr) minmax(130px, .8fr) 90px 90px minmax(130px, .8fr) minmax(110px, .7fr) minmax(160px, 1fr) 42px;
}

.users-admin-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.users-admin-screen .section-kicker {
  color: #0b4aa2;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.users-admin-screen .window-head {
  align-items: center;
}

.users-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.users-summary-card {
  background: #ffffff;
  border: 1px solid #cfe0f2;
  border-radius: 12px;
  border-top: 4px solid #0b4aa2;
  box-shadow: 0 10px 26px rgba(15, 42, 82, .07);
  padding: 12px 14px;
}

.users-summary-card span {
  color: #5a6a80;
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.users-summary-card strong {
  color: #061a35;
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-top: 7px;
}

.users-panel-title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.users-panel-title p {
  color: #5f6f85;
  font-size: 11px;
  margin: 2px 0 0;
}

.users-grid-panel {
  padding: 12px;
}

.users-grid-panel .form-title {
  font-size: 18px;
  margin: 0;
}

.users-open-create {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  line-height: 1;
  min-height: 40px;
  min-width: 40px;
  padding: 0;
  width: 40px;
}

.user-create-modal {
  max-width: 720px;
  padding: 14px;
  width: min(720px, calc(100vw - 28px));
}

.user-create-modal .soft-modal-head {
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 14px;
}

.user-create-modal .soft-modal-head h2 {
  font-size: 22px;
  line-height: 1.1;
}

.user-create-modal .users-create-form {
  gap: 10px;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
}

.user-create-modal .users-permission-strip,
.user-create-modal .users-save-button {
  grid-column: 1 / -1;
}

.user-create-modal .users-permission-strip {
  min-height: 0;
  padding: 8px;
}

.users-create-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1.1fr) minmax(140px, .9fr) minmax(150px, .9fr) minmax(130px, 1fr) 82px minmax(130px, 1fr) minmax(130px, .8fr) minmax(120px, .8fr);
}

.users-create-form .field {
  margin: 0;
}

.users-create-form label,
.users-search-box span {
  color: #52627a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.users-create-form input,
.users-create-form select,
.users-grid-row input,
.users-grid-row select,
.users-search-box input {
  background: #f8fbff;
  border: 1px solid #c9d9ed;
  border-radius: 7px;
  color: #071d38;
  font-size: 11px;
  font-weight: 800;
  min-height: 28px;
  padding: 4px 7px;
  width: 100%;
}

.users-create-form input:focus,
.users-create-form select:focus,
.users-grid-row input:focus,
.users-grid-row select:focus,
.users-search-box input:focus {
  background: #ffffff;
  border-color: #0b61d8;
  box-shadow: 0 0 0 3px rgba(11, 97, 216, .12);
  outline: none;
}

.users-permission-strip {
  align-items: center;
  background: #f2f6fb;
  border: 1px solid #d4e1f1;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / 8;
  min-height: 42px;
  padding: 8px;
}

.users-save-button {
  min-height: 42px;
}

.users-search-box {
  align-items: center;
  display: grid;
  gap: 2px;
  min-width: 250px;
}

.users-grid-scroll {
  border: 1px solid #cfe0f2;
  border-radius: 8px;
  max-height: calc(100vh - 440px);
  min-height: 330px;
  overflow: auto;
}

.users-grid-head,
.users-grid-row {
  display: grid;
  grid-template-columns: 48px minmax(118px, .68fr) 124px 70px 62px 94px 108px 94px minmax(210px, 1fr) minmax(280px, 1.25fr) 150px 54px;
  min-width: 1316px;
}

.users-grid-head {
  background: #e8f1fb;
  color: #06254b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}

.users-grid-head span,
.users-grid-row > * {
  align-items: center;
  border-bottom: 1px solid #d9e6f4;
  border-right: 1px solid #d9e6f4;
  display: flex;
  min-height: 34px;
  padding: 4px 6px;
}

.users-grid-row > input[type="hidden"] {
  display: none;
}

.users-grid-row {
  background: #ffffff;
}

.users-grid-row:nth-child(odd) {
  background: #f8fbff;
}

.users-grid-row:hover {
  background: #eef7ff;
}

.users-grid-row[hidden] {
  display: none;
}

.users-salon-stack {
  display: grid;
  gap: 5px;
  width: 100%;
}

.users-salon-stack select {
  min-width: 0;
  width: 100%;
}

.users-row-permissions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
}

.users-password-stack {
  display: grid;
  gap: 5px;
  width: 100%;
}

.users-row-permissions .mini-check,
.users-permission-strip .mini-check {
  background: #ffffff;
  border: 1px solid #d2dfef;
  border-radius: 999px;
  color: #123253;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 7px;
  white-space: nowrap;
}

.users-row-permissions input,
.users-permission-strip input {
  min-height: auto;
  width: auto;
}

.users-grid-save {
  height: 28px;
  margin: auto;
  min-width: 38px;
  padding: 4px 8px;
}

.promo-list-row {
  grid-template-columns: 42px 38px minmax(130px, 1.2fr) minmax(110px, .9fr) 82px 82px minmax(150px, 1.4fr) minmax(110px, 1fr) 74px 72px;
  font-size: 12px;
}

.finance-list-row {
  grid-template-columns: 42px minmax(180px, 1.2fr) minmax(160px, 1fr) 90px 42px;
}

.bank-list-row {
  grid-template-columns: 42px minmax(150px, 1fr) minmax(150px, 1fr) minmax(160px, 1fr) 90px 42px;
}

.admin-list-row input,
.admin-list-row select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  padding: 7px;
  font-size: 11px;
}

.row-id {
  color: #607080;
  font-size: 12px;
  font-weight: 800;
}

.mini-check {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #082f49;
  font-size: 11px;
  font-weight: 800;
}

.inline-icon-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.small-delete:disabled {
  background: #9aa8b5;
  cursor: not-allowed;
}

.product-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) minmax(120px, 160px);
  gap: 10px;
  align-items: end;
  background: #f4f7fb;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.product-filter-inline {
  align-items: center;
  background: transparent;
  border-radius: 0;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(150px, 190px) minmax(120px, 150px) 82px;
  margin: 0;
  padding: 0;
}

.product-filter-inline select {
  background: #ffffff;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  color: #082f49;
  font-size: 12px;
  min-height: 36px;
  padding: 6px 8px;
}

.product-filter-inline .main-button {
  min-height: 36px;
  padding: 6px 10px;
}

.product-iva-button-card {
  padding: 8px 10px;
}

.product-iva-single-form {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 260px) minmax(120px, 180px) 96px;
  margin: 0;
}

.product-iva-single-form label {
  display: grid;
  gap: 3px;
  margin: 0;
}

.product-iva-single-form label span {
  color: #52657f;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-iva-single-form select,
.product-iva-single-form input {
  border: 1px solid #c9d8eb;
  border-radius: 8px;
  min-height: 34px;
  padding: 6px 8px;
}

.product-iva-single-form .main-button.compact {
  font-size: 12px;
  min-height: 30px;
  padding: 6px 10px;
  white-space: nowrap;
}

.product-screen {
  display: grid;
  gap: 6px;
}

.wide-container .product-screen .window-head {
  align-items: center;
  border: 1px solid #c9d8eb;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .1);
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 12px 14px;
}

.product-screen .window-head > div:first-child {
  align-items: baseline;
  display: flex;
  gap: 14px;
}

.product-screen .window-head h2 {
  font-size: 20px;
  margin: 0;
}

.product-screen .window-head p {
  font-size: 11px;
  font-weight: 700;
  margin: 0;
}

.product-screen .top-actions {
  align-items: center;
  gap: 6px;
  margin: 0;
}

.product-screen .top-actions .secondary-link,
.product-screen .top-actions .main-button {
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  min-height: 30px;
  padding: 7px 12px;
}

.product-screen .top-actions .main-button {
  width: auto;
}

.product-screen .product-module-icon {
  border-radius: 8px;
  font-size: 18px;
  height: 30px;
  width: 32px;
}

.product-screen .product-module-icon.secondary {
  font-size: 19px;
}

.product-screen .product-filter-inline {
  grid-template-columns: minmax(260px, 1fr) 140px 112px 64px;
}

.product-screen .product-filter-inline input,
.product-screen .product-filter-inline select {
  border-radius: 8px;
  font-size: 11px;
  min-height: 30px;
  padding: 5px 8px;
}

.product-screen .product-filter-inline .main-button {
  min-height: 30px;
}

.wide-container .product-screen .admin-create-card {
  border: 1px solid #c9d8eb;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .1);
  padding: 12px 14px 14px;
}

.product-screen .form-title {
  font-size: 15px;
  margin: 0 0 7px;
}

.module-compact-screen {
  display: grid;
  gap: 6px;
}

.wide-container.module-compact-screen .topbar {
  align-items: center;
  border: 1px solid #c9d8eb;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .1);
  margin-bottom: 6px;
  padding: 12px 14px;
}

.wide-container.module-compact-screen .topbar h1 {
  font-size: 22px;
  margin: 2px 0 0;
}

.wide-container.module-compact-screen .small-title {
  font-size: 10px;
  letter-spacing: 2px;
}

.module-compact-screen .top-actions {
  align-items: center;
  gap: 6px;
  margin: 0;
}

.module-compact-screen .top-actions .secondary-link,
.module-compact-screen .main-button.compact,
.module-compact-screen .secondary-link.compact {
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  min-height: 30px;
  padding: 7px 12px;
  width: auto;
}

.wide-container.module-compact-screen .card,
.wide-container.module-compact-screen .tool-card {
  border: 1px solid #c9d8eb;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .1);
  padding: 12px 14px 14px;
}

.module-compact-screen .form-title {
  font-size: 15px;
  margin: 0 0 7px;
}

.module-compact-screen .report-filter {
  align-items: end;
  gap: 8px;
}

.module-compact-screen .field {
  margin-bottom: 0;
}

.module-compact-screen .field label {
  font-size: 11px;
  margin-bottom: 4px;
}

.module-compact-screen input,
.module-compact-screen select {
  border-radius: 8px;
  font-size: 11px;
  min-height: 30px;
  padding: 5px 8px;
}

.module-compact-screen .main-button {
  border-radius: 8px;
  font-size: 11px;
  min-height: 30px;
  padding: 7px 10px;
}

.module-compact-screen .bank-table-wrap {
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  overflow: auto;
}

.module-compact-screen .bank-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 10px;
}

.module-compact-screen .bank-table th {
  background: #edf4fa;
  border-bottom: 1px solid #c9d8eb;
  color: #001d38;
  font-size: 9px;
  padding: 10px 8px;
  text-transform: uppercase;
}

.module-compact-screen .bank-table td {
  background: #f8fbff;
  border-bottom: 1px solid #c9d8eb;
  color: #001d38;
  padding: 8px;
}

.module-compact-screen .bank-table tr:nth-child(even) td {
  background: #f4f8fc;
}

.module-compact-screen .bank-table tr:hover td {
  background: #eef8ff;
}

.inventory-compact-screen .inventory-main-options {
  gap: 8px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.inventory-compact-screen .inventory-option-card {
  min-height: 128px;
}

.inventory-compact-screen .inventory-option-card span {
  color: #001d38;
  font-size: 15px;
}

.inventory-compact-screen .inventory-option-card p {
  font-size: 11px;
}

.inventory-compact-screen .inventory-option-actions {
  gap: 6px;
}

.ats-compact-screen .ats-summary {
  gap: 8px;
}

.ats-compact-screen .ats-summary article {
  min-height: 68px;
}

.ats-compact-screen .ats-summary span {
  font-size: 10px;
}

.ats-compact-screen .ats-summary strong {
  font-size: 17px;
  margin-top: 5px;
}

.product-toolbar {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.product-module-actions {
  align-items: center;
  padding: 10px;
}

.product-module-icon {
  align-items: center;
  background: #00369d;
  border: 0;
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 42px;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(0, 54, 157, .22);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.product-module-icon:hover {
  background: #0a4fd0;
  box-shadow: 0 14px 26px rgba(0, 54, 157, .3);
  transform: translateY(-1px);
}

.product-module-icon.secondary {
  background: #082f49;
}

.toolbar-button {
  max-width: 220px;
  text-align: center;
  text-decoration: none;
}

.product-form-screen {
  max-width: 860px;
  margin: 0 auto;
}

.product-create-screen-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.product-create-screen-form .main-button,
.product-create-screen-form .full-field {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .product-create-screen-form {
    grid-template-columns: 1fr;
  }
}

.product-list {
  display: grid;
  gap: 8px;
}

.product-report-grid {
  background: #ffffff;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  box-shadow: none;
  display: block;
  max-height: 68vh;
  overflow: auto;
}

.product-screen .form-title small {
  color: #52657f;
  font-size: 11px;
  font-weight: 800;
  margin-left: 6px;
}

.product-grid-head,
.product-report-grid .product-admin-row {
  display: grid;
  grid-template-columns: 48px 104px minmax(230px, 1.45fr) minmax(130px, .75fr) repeat(7, 78px) 92px;
  min-width: 1120px;
  align-items: center;
}

.product-grid-head {
  background: #edf4fa;
  border-bottom: 1px solid #c9d8eb;
  color: #001d38;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}

.product-grid-head span {
  border-right: 1px solid #c9d8eb;
  min-height: 28px;
  padding: 7px 8px;
}

.product-admin-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  background: #f4f7fb;
  border-radius: 14px;
  color: #082f49;
  padding: 8px;
  font-size: 12px;
}

.product-report-grid .product-admin-row {
  background: #f8fbff;
  border-bottom: 1px solid #c9d8eb;
  border-radius: 8px;
  box-shadow: none;
  gap: 0;
  margin: 0 0 1px;
  padding: 0;
}

.product-report-grid .product-admin-row:nth-child(even) {
  background: #f4f8fc;
}

.product-report-grid .product-admin-row:hover {
  background: #eef8ff;
}

.product-display-row {
  cursor: pointer;
}

.product-display-row > input,
.product-display-row > select,
.product-display-row > label,
.product-display-row > div:not(.product-list-cell) {
  display: none;
}

.product-list-cell {
  align-items: center;
  border-right: 1px solid #d7e2ee;
  color: #001d38;
  display: flex;
  font-size: 11px;
  min-height: 32px;
  overflow: hidden;
  padding: 6px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-photo-cell {
  justify-content: center;
  padding: 5px;
}

.photo-mini-button {
  align-items: center;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  border-radius: 9px;
  color: #075985;
  cursor: pointer;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  line-height: 1;
  position: relative;
  width: 30px;
}

.photo-mini-button:hover {
  background: #bae6fd;
}

.photo-mini-button::before {
  background: #075985;
  border-radius: 3px;
  content: "";
  height: 10px;
  width: 14px;
}

.photo-mini-button::after {
  background: #e0f2fe;
  border: 2px solid #075985;
  border-radius: 50%;
  content: "";
  height: 4px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
}

.photo-mini-empty {
  color: #94a3b8;
  font-weight: 900;
}

.product-stock-summary {
  align-items: center;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  color: #075985;
  display: inline-flex;
  gap: 10px;
  margin: 0 0 12px;
  padding: 9px 12px;
}

.product-stock-summary strong,
.product-stock-summary span {
  font-size: 13px;
  font-weight: 900;
}

strong.product-list-cell {
  color: #001d38;
  font-size: 11px;
  font-weight: 900;
}

.product-report-grid .product-admin-row > input,
.product-report-grid .product-admin-row > select,
.product-report-grid .product-admin-row > label,
.product-report-grid .product-admin-row > div {
  border-right: 1px solid #e5edf5;
  min-height: 36px;
}

.product-report-grid input,
.product-report-grid select {
  background: #ffffff;
  border: 1px solid #c9d6e4;
  border-radius: 8px;
  color: #0f2f4d;
  font-size: 12px;
  min-height: 34px;
  padding: 6px 8px;
  width: calc(100% - 14px);
}

.product-report-grid .product-admin-row > input,
.product-report-grid .product-admin-row > select {
  margin: 9px 7px;
}

.product-report-grid .product-name-cell input {
  width: 100%;
}

.product-name-cell {
  display: grid;
  gap: 5px;
  padding: 7px;
}

.product-stock-cell {
  color: #334155;
  display: grid;
  font-size: 12px;
  gap: 2px;
  padding: 8px;
}

.product-stock-cell strong {
  color: #082f49;
}

.product-stock-cell span {
  color: #64748b;
  font-weight: 700;
}

.product-row-photo {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
  background: #d7dee7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #607080;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

.product-row-photo.compact-photo {
  width: 42px;
  height: 42px;
  align-self: center;
}

.product-report-grid .product-row-photo.compact-photo {
  height: 38px;
  margin: 8px;
  width: 38px;
}

.photo-icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #00369d;
  color: white;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
}

.product-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-row-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.product-row-title strong,
.product-row-title span {
  display: block;
}

.product-row-title strong {
  font-size: 13px;
}

.product-row-title span {
  color: #607080;
  font-size: 11px;
  margin-top: 2px;
}

.product-row-fields {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr .8fr 1.2fr .65fr 1.3fr 1fr;
  gap: 6px;
}

.product-row-fields input,
.product-row-fields select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  padding: 6px;
  font-size: 11px;
}

.product-row-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  font-weight: bold;
  align-items: center;
}

.product-row-actions {
  display: inline-flex;
  grid-column: auto;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.product-report-grid .mini-check {
  justify-content: center;
  padding: 8px;
}

.product-report-grid .product-row-actions {
  justify-content: flex-start;
  margin-left: 0;
  padding: 12px 8px;
}

.soft-modal {
  align-items: center;
  background: rgba(8, 47, 73, .52);
  backdrop-filter: blur(7px);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 80;
}

.soft-modal.active {
  display: flex;
}

.soft-modal-box {
  background: #f8fbff;
  border: 1px solid rgba(148, 163, 184, .45);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(8, 47, 73, .32);
  max-height: 92vh;
  max-width: 760px;
  overflow: auto;
  padding: 18px;
  width: min(760px, 100%);
}

.soft-modal-head {
  align-items: flex-start;
  background: linear-gradient(135deg, #00369d 0%, #0ea5e9 100%);
  border-radius: 14px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 16px;
}

.soft-modal-head span,
.soft-modal-head small {
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 800;
}

.soft-modal-head h2 {
  color: #ffffff;
  font-size: 24px;
  margin: 4px 0 0;
}

.soft-close {
  align-items: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  line-height: 1;
  text-transform: uppercase;
  width: 32px;
}

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

.soft-modal-form .field {
  margin: 0;
}

.soft-modal-form input,
.soft-modal-form select {
  background: #ffffff;
  border: 1px solid #c9d6e4;
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}

.soft-modal-form .full-field,
.soft-modal-form .soft-save {
  grid-column: 1 / -1;
}

.product-modal-actions {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, auto);
}

.danger-link {
  align-items: center;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  display: inline-flex;
  justify-content: center;
}

.soft-check {
  background: #eaf7ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  min-height: 40px;
  padding: 9px 12px;
}

.icon-action {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  position: relative;
  text-decoration: none;
}

.icon-action::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  background: #082f49;
  color: white;
  border-radius: 8px;
  padding: 5px 7px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 5;
}

.icon-action:hover::after {
  opacity: 1;
}

.icon-action.save {
  background: #f2b705;
  color: #082f49;
}

.icon-action.down,
.icon-action.danger,
.icon-action.delete,
.icon-action.blocked {
  background: #c0392b;
  color: white;
}

.icon-action.blocked {
  background: #9aa8b5;
}

@media (max-width: 950px) {
  .product-admin-row,
  .product-filter-bar {
    grid-template-columns: 1fr;
  }

  .product-filter-inline {
    grid-template-columns: minmax(180px, 1fr) minmax(140px, .8fr) minmax(120px, 150px) 82px;
  }

  .product-report-grid .product-admin-row,
  .product-grid-head {
    grid-template-columns: 48px 104px minmax(230px, 1.45fr) minmax(130px, .75fr) repeat(7, 78px) 92px;
  }

  .product-row-photo {
    width: 42px;
    height: 42px;
  }

  .product-row-fields {
    grid-template-columns: 1fr;
  }

  .product-row-actions {
    margin-left: 0;
  }

  .soft-modal-form {
    grid-template-columns: 1fr;
  }

  .soft-modal-head {
    display: grid;
    gap: 8px;
  }

  .product-modal-actions {
    grid-template-columns: 1fr;
  }
}

.product-price-cell {
  color: #00369d;
  font-weight: 900;
  justify-content: flex-end;
  text-align: right;
}

.product-modal-prices {
  background: #f8fbff;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  padding: 10px;
}

.product-modal-price-title {
  align-items: flex-end;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.product-modal-price-title label {
  color: #0b3f91;
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-modal-price-title small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.product-modal-price-head,
.product-modal-price-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(92px, .8fr) 82px minmax(100px, 1fr) minmax(100px, 1fr);
}

.product-modal-prices.price-levels-disabled .product-modal-price-head,
.product-modal-prices.price-levels-disabled .product-modal-price-row,
.price-rules-field.price-levels-disabled .price-rules-head,
.price-rules-field.price-levels-disabled .price-rule-row {
  grid-template-columns: minmax(92px, .8fr) minmax(100px, 1fr) minmax(100px, 1fr);
}

.product-modal-price-head {
  color: #334155;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.product-modal-price-grid {
  display: grid;
  gap: 6px;
}

.product-modal-price-row span {
  color: #0f2f57;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-modal-price-grid input {
  min-height: 34px;
}

.product-modal-checks {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.product-iva-price-tool {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(100px, 1fr) auto;
}

.product-iva-price-tool .secondary-link {
  align-items: center;
  display: inline-flex;
  font-size: 10px;
  justify-content: center;
  min-height: 40px;
  padding: 7px 10px;
  white-space: nowrap;
}

.product-modal-price-grid .product-rule-final-price,
.soft-modal-form .product-final-price {
  background: #fff7d6;
  color: #0f2f57;
  font-weight: 900;
  text-align: right;
}

@media (max-width: 700px) {
  .product-modal-prices {
    overflow-x: auto;
  }
  .product-modal-price-head,
  .product-modal-price-row {
    grid-template-columns: 110px 78px 105px 105px;
    min-width: 430px;
  }
  .product-modal-prices.price-levels-disabled .product-modal-price-head,
  .product-modal-prices.price-levels-disabled .product-modal-price-row,
  .price-rules-field.price-levels-disabled .price-rules-head,
  .price-rules-field.price-levels-disabled .price-rule-row {
    grid-template-columns: 110px 105px 105px;
    min-width: 330px;
  }
  .product-modal-price-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .product-modal-checks {
    grid-template-columns: 1fr;
  }
  .product-iva-price-tool {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .users-summary-grid,
  .users-create-form {
    grid-template-columns: 1fr;
  }

  .users-permission-strip,
  .users-save-button {
    grid-column: 1 / -1;
  }

  .users-panel-title {
    align-items: stretch;
    flex-direction: column;
  }

  .users-search-box {
    min-width: 0;
  }

  .printer-create-form,
  .printer-row {
    grid-template-columns: 1fr;
  }

  .printer-actions {
    grid-template-columns: 1fr 1fr;
  }

  .category-list-row,
  .user-list-row,
  .promo-list-row,
  .invoice-list-row,
  .electronic-row,
  .finance-list-row,
  .bank-list-row,
  .sequence-create-form,
  .sequence-list-row,
  .payment-panel,
  .payment-extra,
  .finance-row,
  .report-filter {
    grid-template-columns: 1fr;
  }

  .inline-icon-actions,
  .printer-actions {
    justify-content: flex-start;
  }

  .electronic-modern .electronic-top-panel,
  .electronic-modern .electronic-date-row,
  .electronic-modern .electronic-status-counters {
    grid-template-columns: 1fr;
  }

  .electronic-modern .electronic-filter-form {
    grid-template-columns: 1fr;
  }

  .electronic-preview-spacer {
    display: none;
  }

  .electronic-period-panel,
  .electronic-filter-card {
    min-height: auto;
  }

  .electronic-total-chip {
    height: 44px;
  }

  .electronic-modern .electronic-table-wrap {
    height: 420px;
  }

  .bank-filter-grid,
  .receivable-filter-grid,
  .cash-filter-grid,
  .bank-bottom-panel,
  .cash-bottom-panel,
  .bank-create-account,
  .bank-account-edit-row,
  .bank-totals {
    grid-template-columns: 1fr;
  }

  .signature-tool-card {
    grid-column: span 1;
  }

  .signature-tool-actions {
    grid-template-columns: 1fr;
  }

  .bank-table-wrap {
    height: 420px;
  }
}

@media (max-width: 650px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

.wide-container {
  color: #102033;
}

.wide-container .topbar {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(219, 228, 239, .95);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
  color: #0f172a;
  padding: 16px 18px;
}

.wide-container .topbar h1 {
  color: #0f172a;
  font-size: 28px;
  letter-spacing: 0;
  margin: 2px 0 0;
}

.wide-container .small-title {
  color: #00369d;
  letter-spacing: 2px;
}

.wide-container .card,
.wide-container .window-head,
.wide-container .admin-create-card,
.tools-grid,
.tool-card {
  background: rgba(255, 255, 255, .98);
  border: 2px solid #b8c7d9;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
  color: #102033;
}

.wide-container .form-title,
.wide-container .window-head h2,
.wide-container h2,
.wide-container h3 {
  color: #0f172a;
  letter-spacing: 0;
}

.wide-container .form-subtitle,
.wide-container .window-head p {
  color: #64748b;
}

.wide-container .field label,
.wide-container label {
  color: #334155;
}

.wide-container input,
.wide-container select,
.wide-container textarea {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
}

.wide-container input:focus,
.wide-container select:focus,
.wide-container textarea:focus {
  border-color: #00369d;
  box-shadow: 0 0 0 3px rgba(0, 54, 157, .12);
}

.wide-container .main-button,
.wide-container .template-button {
  background: #00369d;
  border: 1px solid #00369d;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 54, 157, .18);
}

.wide-container .secondary-link,
.wide-container .toolbar-button {
  background: #f8fafc;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  color: #00369d;
  box-shadow: none;
}

.wide-container .secondary-link:hover,
.wide-container .toolbar-button:hover,
.wide-container .main-button:hover,
.wide-container .template-button:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

.admin-nav {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(219, 228, 239, .95);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
  gap: 6px;
  padding: 8px;
}

.admin-nav a {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #475569;
  padding: 9px 12px;
}

.admin-nav a.active,
.admin-nav a:hover {
  background: #eef4ff;
  border-color: #c9d8f2;
  color: #00369d;
}

.wide-container .admin-list-row,
.wide-container .finance-row,
.wide-container .product-admin-row,
.wide-container .printer-row,
.wide-container .invoice-order-row,
.wide-container .row-item,
.wide-container .report-card,
.wide-container .empty-state {
  background: #f8fafc;
  border: 2px solid #d2deeb;
  border-radius: 14px;
  color: #102033;
}

.wide-container .report-card.report-atiempo {
  background: #edfdf3;
  border-color: #bfe8cd;
  border-left: 8px solid #27ae60;
}

.wide-container .report-card.report-retrasado {
  background: #fff8db;
  border-color: #f3df8b;
  border-left: 8px solid #f2b705;
}

.wide-container .report-card.report-atrasado {
  background: #ffecec;
  border-color: #ffc4c4;
  border-left: 8px solid #c0392b;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 16px;
}

.tool-card {
  background: #fff;
  border: 1px solid #d7e3f0;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 18px;
  text-align: left;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.tool-card:hover {
  border-color: #00369d;
  box-shadow: 0 18px 36px rgba(0, 54, 157, .12);
  transform: translateY(-2px);
}

.tool-card span {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
}

.tool-card p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.signature-tool-card {
  align-content: start;
  grid-column: span 2;
}

.signature-tool-form {
  display: grid;
  gap: 8px;
}

.signature-tool-form label {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.signature-tool-form input[type="text"],
.signature-tool-form input[type="file"] {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.signature-tool-form small {
  color: #64748b;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.signature-tool-actions {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  margin-top: 4px;
}

.signature-tool-actions .main-button,
.signature-tool-actions .secondary-link {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 40px;
  width: 100%;
}

.company-grid {
  display: grid;
  gap: 16px;
}

.company-editor {
  display: grid;
  gap: 12px;
}

.company-card {
  display: grid;
  gap: 12px;
}

.company-edit-form {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr !important;
}

.company-edit-form .field {
  margin: 0;
}

.company-edit-form .field label {
  font-size: 11px;
}

.company-edit-form input,
.company-edit-form select {
  min-height: 34px;
}

.company-edit-form .inline-check {
  min-height: 34px;
}

.company-form-section {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  min-width: 0;
  padding: 12px;
}

.company-form-section h4 {
  color: #0f376f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
}

.company-section-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  min-width: 0;
}

.company-section-grid .field,
.company-tax-grid > *,
.company-form-section input,
.company-form-section select {
  min-width: 0;
}

.company-section-grid .field.wide {
  grid-column: span 2;
}

.company-tax-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  min-width: 0;
}

.company-check,
.company-edit-form .inline-check {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
  color: #08265a;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  min-height: 36px;
  padding: 7px 9px;
}

.company-check input,
.company-edit-form .inline-check input {
  flex: 0 0 auto;
  height: 18px;
  min-height: 18px;
  width: 18px;
}

.company-check span {
  line-height: 1.2;
}

.company-check-field {
  background: #eef5ff;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  padding: 8px;
}

.company-check-field .company-check {
  border: 0;
  min-height: 28px;
  padding: 0;
}

.company-check-field input:not([type="checkbox"]) {
  background: #fff;
  width: 100%;
}

.company-legends-block {
  overflow-x: auto;
}

.company-legends-block .mini-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.company-legends-block .mini-table th:nth-child(1),
.company-legends-block .mini-table td:nth-child(1) {
  width: 22%;
}

.company-legends-block .mini-table th:nth-child(2),
.company-legends-block .mini-table td:nth-child(2) {
  width: 44%;
}

.company-legends-block .mini-table th:nth-child(3),
.company-legends-block .mini-table td:nth-child(3) {
  width: 24%;
}

.company-legends-block .mini-table th:nth-child(4),
.company-legends-block .mini-table td:nth-child(4) {
  text-align: center;
  width: 10%;
}

.company-legends-block .mini-table th {
  background: #e6eef9;
  color: #0f376f;
  font-size: 11px;
  padding: 6px;
  text-align: left;
}

.company-legends-block .mini-table td {
  border-bottom: 1px solid #dbe4f0;
  padding: 5px;
}

.company-legends-block .mini-table input,
.company-legends-block .mini-table select {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.company-legends-block .mini-table input[type="checkbox"] {
  display: block;
  height: 20px;
  margin: 0 auto;
  min-height: 20px;
  width: 20px;
}

.company-form-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.company-edit-form .main-button {
  max-width: 180px;
}

.company-card-head {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 10px;
}

.company-card-head h3 {
  font-size: 18px;
  margin: 0;
}

.company-card-head span {
  color: #00369d;
  font-size: 12px;
  font-weight: 800;
}

.company-active-form {
  display: flex;
  justify-content: flex-end;
}

.company-active-form .secondary-link {
  cursor: pointer;
  min-height: 38px;
}

@media (max-width: 980px) {
  .company-section-grid,
  .company-tax-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .company-section-grid .field.wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .company-section-grid,
  .company-tax-grid {
    grid-template-columns: 1fr;
  }

  .company-section-grid .field.wide {
    grid-column: span 1;
  }

  .company-form-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.permission-card {
  align-items: center;
  background: #f8fafc;
  border: 2px solid #d2deeb;
  border-radius: 14px;
  color: #102033;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.permission-card:hover {
  background: #f1f7ff;
  border-color: #00369d;
}

.permission-card input {
  width: auto;
}

.permission-card span {
  font-size: 13px;
  font-weight: 800;
}

.bank-catalog-row {
  grid-template-columns: 54px minmax(220px, 1fr) 110px 72px;
}

.xml-file-row {
  grid-template-columns: 54px 150px 110px minmax(260px, 1fr) 140px 110px 72px;
}

.xml-file-row form {
  margin: 0;
}

.supplier-row {
  grid-template-columns: 105px minmax(160px, 1fr) minmax(140px, 1fr) 95px minmax(130px, 1fr) 130px 100px 100px 80px 64px;
}

.purchase-row {
  grid-template-columns: 140px 100px minmax(240px, 1fr) 110px 90px 100px 100px 90px;
}

.imported-purchase-row {
  grid-template-columns: 58px 150px 100px minmax(280px, 1fr) 110px 360px 120px;
}

.purchase-entered-row {
  grid-template-columns: 58px 140px 95px minmax(240px, 1fr) 110px 110px minmax(180px, 1fr) 90px;
}

.directory-hub,
.admin-home-grid,
.purchase-workspace {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.module-card-link {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #f8fbfd;
  color: #082f49;
  text-decoration: none;
}

.module-card-link.module-card-with-icon {
  --module-accent: #174ea6;
  align-items: flex-start;
  background: #fff;
  border-color: #d4e0ec;
  box-shadow: 0 10px 24px rgba(15, 35, 65, .08);
  display: grid;
  gap: 13px;
  grid-template-columns: 48px minmax(0, 1fr);
  overflow: hidden;
  position: relative;
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}

.module-card-link.module-card-with-icon::before {
  background: var(--module-accent);
  border-radius: 2px;
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 4px;
}

.module-card-link.module-card-with-icon:hover {
  border-color: #bdd0e3;
  border-color: color-mix(in srgb, var(--module-accent) 35%, #d4e0ec);
  box-shadow: 0 14px 28px rgba(15, 35, 65, .12);
  transform: translateY(-1px);
}

.module-card-link.is-locked {
  opacity: .72;
}

.module-card-link.is-locked .module-card-icon {
  filter: grayscale(1);
}

.module-card-icon {
  align-items: center;
  background: #f3f7fb;
  background: color-mix(in srgb, var(--module-accent) 12%, #fff);
  border-radius: 12px;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.module-card-icon svg {
  fill: none;
  height: 26px;
  stroke: var(--module-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 26px;
}

.module-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.module-card-link strong {
  font-size: 18px;
}

.module-card-link span,
.module-card-link em {
  color: #5d6b78;
  font-size: 13px;
}

.module-card-link em {
  font-style: normal;
  line-height: 1.35;
}

.module-card-link .module-card-copy strong {
  color: #082145;
  line-height: 1.15;
}

.purchase-workspace {
  grid-template-columns: 1fr;
  align-items: start;
}

.purchase-screen {
  grid-template-columns: minmax(1100px, 1fr);
  max-width: 1500px;
  margin-inline: auto;
}

.purchase-screen .purchase-entry-card {
  background: #eef6ff;
  border-color: #8fb3d1;
  padding: 16px;
}

.purchase-screen .form-title {
  margin-bottom: 6px;
}

.purchase-title-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(520px, auto);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.purchase-sri-loader {
  display: grid;
  grid-template-columns: minmax(380px, 560px) auto;
  gap: 8px;
  align-items: center;
}

.purchase-sri-loader input {
  min-height: 32px;
}

.purchase-compact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.purchase-block {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid #bed1e5;
  background: rgba(255,255,255,.62);
  padding: 10px;
  border-radius: 6px;
}

.purchase-block-title {
  font-weight: 800;
  color: #0f172a;
  font-size: 12px;
  line-height: 1;
}

.purchase-block-supplier {
  grid-template-columns: minmax(360px, 1fr) minmax(500px, 1.2fr);
  grid-column: span 8;
}

.purchase-block-supplier .purchase-block-title {
  grid-column: 1 / -1;
}

.purchase-block-document {
  grid-template-columns: 86px 86px minmax(150px, 1fr);
  grid-column: span 4;
}

.purchase-block-document .purchase-block-title,
.purchase-block-dates .purchase-block-title,
.purchase-block-sri .purchase-block-title,
.purchase-block-retention .purchase-block-title {
  grid-column: 1 / -1;
}

.purchase-block-dates {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  grid-column: span 4;
}

.purchase-block-sri {
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) minmax(220px, .8fr);
  grid-column: span 8;
}

.purchase-block-warehouse {
  grid-template-columns: minmax(260px, 1fr);
  grid-column: span 4;
}

.purchase-retention-inline {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: 170px minmax(260px, 360px) auto minmax(220px, 1fr);
}

.purchase-retention-warehouse {
  min-width: 260px;
}

.purchase-retention-warehouse label {
  margin-bottom: 2px;
}

.billing-toolbar-warehouse {
  min-width: 190px;
}

.billing-toolbar-warehouse select {
  min-height: 32px;
}

.billing-warehouse-standalone {
  margin: 8px 0;
  max-width: 360px;
}

.billing-action-warehouse {
  align-items: center;
  display: inline-grid;
  gap: 4px;
  grid-template-columns: auto minmax(190px, 280px);
}

.billing-action-warehouse label {
  color: #5a6f8a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.billing-action-warehouse select {
  min-height: 34px;
}

.billing-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.purchase-block-retention {
  grid-template-columns: 170px 44px minmax(260px, 1fr);
  grid-column: 1 / -1;
}

.purchase-retention-edit {
  display: none;
  min-height: 34px;
  width: 38px;
  padding: 0;
  justify-content: center;
  font-size: 0;
}

.purchase-retention-edit.active {
  display: inline-flex;
}

.purchase-retention-edit::before {
  content: "\270E";
  font-size: 16px;
}

.purchase-retention-summary {
  align-self: center;
  color: #7a135c;
  font-size: 12px;
  font-weight: 800;
}

.purchase-import-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.purchase-imports-page {
  background: #eef4f8;
  min-height: 100vh;
}

.purchase-imports-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100vh;
  padding: 10px;
  width: 100%;
}

.purchase-imports-shell .topbar {
  margin-bottom: 0;
}

.purchase-imports-controls {
  flex: 0 0 auto;
  margin: 0;
}

.purchase-import-upload {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.purchase-import-upload input {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px;
}

.purchase-import-upload button,
.purchase-grid-action {
  background: #004aad;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 8px 12px;
  text-decoration: none;
}

.purchase-grid-action.secondary {
  background: #eef6ff;
  border: 1px solid #b8d7f2;
  color: #004aad;
}

.purchase-erp-card {
  border: 1px solid #c7d7ea;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.purchase-erp-fullscreen {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0;
  min-height: 0;
  padding: 10px;
}

.purchase-erp-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.purchase-erp-head span {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 10px;
}

.purchase-erp-scroll {
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow: auto;
}

.purchase-erp-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1540px;
  width: 100%;
}

.purchase-erp-table th,
.purchase-erp-table td {
  border-bottom: 1px solid #e5edf6;
  color: #172033;
  font-size: 12px;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}

.purchase-erp-table th {
  background: #f8fbff;
  color: #334155;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 1;
}

.purchase-erp-table th:first-child,
.purchase-erp-table td:first-child {
  left: 0;
  position: sticky;
  z-index: 2;
}

.purchase-erp-table td:first-child {
  background: #ffffff;
}

.purchase-erp-table th:first-child {
  background: #eef6ff;
  z-index: 3;
}

.purchase-erp-table tbody tr:hover td {
  background: #f4fbff;
}

.purchase-erp-table .right {
  text-align: right;
}

.purchase-erp-table .mono {
  font-family: Consolas, monospace;
}

.purchase-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 9px;
}

.purchase-status.imported {
  background: #dbeafe;
  color: #1d4ed8;
}

.purchase-status.posted {
  background: #dcfce7;
  color: #166534;
}

.purchase-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.purchase-status.error {
  background: #fee2e2;
  color: #991b1b;
}

.purchase-action-menu {
  display: flex;
  gap: 6px;
}

.purchase-action-menu a,
.purchase-action-menu button,
.purchase-action-menu span {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  color: #0f172a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 7px;
  text-decoration: none;
}

.purchase-action-menu a:first-child {
  background: #004aad;
  border-color: #004aad;
  color: #fff;
}

.purchase-action-menu span {
  color: #94a3b8;
  cursor: default;
}

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

.purchase-xml-modal {
  align-items: center;
  background: rgba(15, 23, 42, .45);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 90;
}

.purchase-xml-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .32);
  max-height: 90vh;
  overflow: auto;
  padding: 12px;
  width: min(980px, 96vw);
}

.purchase-xml-head {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.purchase-xml-box pre {
  background: #0f172a;
  border-radius: 6px;
  color: #e2e8f0;
  max-height: 70vh;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.sri-import-process[hidden] {
  display: none;
}

.sri-import-process {
  align-items: center;
  background: rgba(15, 23, 42, .62);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 120;
}

.sri-import-process-box {
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .32);
  color: #0f172a;
  display: grid;
  gap: 14px;
  max-width: 560px;
  padding: 18px;
  width: min(560px, 94vw);
}

.sri-import-process-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.sri-import-process-head span {
  color: #004aad;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sri-import-process-head h3 {
  color: #0f172a;
  font-size: 22px;
  line-height: 1.1;
  margin: 2px 0 0;
}

.sri-import-process-head p {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0 0;
}

.sri-import-spinner {
  animation: sriSpin .9s linear infinite;
  border: 4px solid #dbeafe;
  border-radius: 999px;
  border-top-color: #004aad;
  flex: 0 0 auto;
  height: 34px;
  width: 34px;
}

.sri-import-progress {
  background: #eaf3ff;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.sri-import-progress i {
  background: linear-gradient(90deg, #004aad, #0f7a45, #d69d2f);
  display: block;
  height: 100%;
  transition: width .35s ease;
  width: 8%;
}

.sri-import-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
}

.sri-import-step {
  align-items: center;
  border: 1px solid #d9e5f1;
  border-radius: 9px;
  color: #475569;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 9px;
  grid-template-columns: 22px 1fr;
  padding: 8px 10px;
}

.sri-import-step b {
  align-items: center;
  background: #eaf3ff;
  border-radius: 999px;
  color: #004aad;
  display: inline-flex;
  font-size: 11px;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.sri-import-step.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #0f2b52;
}

.sri-import-step.done {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

.sri-import-step.done b {
  background: #16a34a;
  color: #fff;
}

.sri-import-log {
  background: #0f172a;
  border-radius: 9px;
  color: #dbeafe;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  max-height: 120px;
  overflow: auto;
  padding: 10px;
}

.sri-import-note {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

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

.purchase-screen .field {
  margin-bottom: 0;
}

.purchase-screen .field label {
  font-size: 12px;
  margin-bottom: 2px;
  color: #0f172a;
}

.purchase-screen input,
.purchase-screen select {
  min-height: 30px;
  border-radius: 0;
  border: 1px solid #9db1c6;
  padding: 5px 7px;
  font-size: 13px;
}

.purchase-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #f8fbfd;
  font-weight: 700;
  color: #082f49;
}

.purchase-check-small {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 12px;
  align-self: stretch;
}

.purchase-retention-box {
  display: none;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #f0b3df;
  background: #fff1fb;
  color: #7a135c;
  font-size: 12px;
}

.purchase-retention-box.active {
  display: grid;
  gap: 2px;
}

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

.purchase-retention-modal.active {
  display: flex;
}

.purchase-retention-dialog {
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid #f0b3df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
  padding: 12px;
}

.sri-retention-dialog {
  width: min(1280px, 100%);
  max-height: calc(100vh - 20px);
  border-color: #9fb4ca;
  border-radius: 0;
  background: #e8f1fa;
  color: #000;
  padding: 8px;
}

.purchase-retention-head,
.purchase-retention-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.purchase-retention-head strong {
  color: #001bd1;
  font-size: 15px;
  background: #b8d8ff;
  border: 1px solid #8aa8c7;
  padding: 3px 8px;
}

.sri-retention-top {
  display: grid;
  grid-template-columns: minmax(460px, 1fr) 80px 170px 190px 110px 130px;
  gap: 4px;
  align-items: end;
}

.sri-retention-top .field {
  margin: 0;
}

.sri-retention-top label {
  font-size: 12px;
  font-weight: 800;
  color: #000;
}

.sri-retention-top input {
  min-height: 24px;
  border: 1px solid #9aaec2;
  border-radius: 0;
  background: #fff;
  color: #0010b0;
  font-weight: 800;
}

.sri-period-field label {
  color: #8a3200;
}

.sri-period-field input {
  background: #fff989;
}

.sri-retention-provider,
.sri-retention-access {
  grid-column: span 2;
}

.sri-retention-mid {
  display: grid;
  grid-template-columns: 260px 260px minmax(430px, 1fr);
  gap: 12px;
  margin-top: 8px;
  align-items: start;
}

.sri-retention-box {
  display: grid;
  gap: 2px;
}

.sri-retention-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  min-height: 24px;
}

.sri-retention-row span {
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  padding-right: 4px;
}

.sri-retention-row b {
  display: block;
  min-height: 24px;
  border: 1px solid #9aaec2;
  background: #ffff78;
  color: #0010b0;
  text-align: right;
  padding: 3px 6px;
}

.sri-retention-row.total b {
  background: #8ce6e8;
  color: #0010b0;
}

.sri-retention-subtitle {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
}

.sri-iva-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 4px;
}

.sri-iva-toolbar .secondary-link {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 0;
}

.sri-iva-grid {
  display: grid;
  gap: 2px;
}

.sri-iva-line {
  display: grid;
  grid-template-columns: 28px minmax(210px, 1fr) 70px 120px 100px;
  gap: 2px;
  align-items: center;
  margin-bottom: 2px;
  font-size: 12px;
}

.sri-iva-line span,
.sri-iva-line b,
.sri-iva-line strong {
  min-height: 24px;
  border: 1px solid #9aaec2;
  background: #fff;
  padding: 3px 5px;
}

.sri-iva-line input[type="number"] {
  min-height: 24px;
  border-radius: 0;
  border: 1px solid #9aaec2;
  background: #ffff78;
  text-align: right;
}

.sri-iva-line select {
  min-height: 24px;
  border-radius: 0;
  border: 1px solid #174ea6;
  background: #fff;
  color: #0010b0;
  font-weight: 700;
}

.purchase-retention-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.purchase-retention-fields select {
  min-height: 92px;
}

.retention-base-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.retention-base-summary span {
  border: 1px solid #d9e2ec;
  background: #f8fbfd;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}

.purchase-retention-grid {
  display: grid;
  gap: 4px;
  margin: 10px 0;
}

.purchase-retention-grid-head,
.purchase-retention-line {
  display: grid;
  grid-template-columns: 54px minmax(520px, 1fr) 105px 120px 105px 76px 110px;
  align-items: center;
  gap: 0;
}

.purchase-retention-grid-head {
  background: #edf2f7;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.purchase-retention-grid-head span,
.purchase-retention-line > span,
.purchase-retention-line > strong,
.purchase-retention-line > b {
  min-height: 32px;
  padding: 7px 8px;
  border: 1px solid #c9d6e4;
  display: flex;
  align-items: center;
}

.purchase-retention-line {
  background: #d6fbfb;
  font-size: 12px;
}

.purchase-retention-line input[type="number"] {
  min-height: 32px;
  border-radius: 0;
  border: 1px solid #c9d6e4;
  background: #ffff78;
  text-align: right;
}

.purchase-retention-line .air-percentage-input {
  width: 100%;
  padding: 7px 8px;
  font-weight: 800;
}

.sri-iva-line.purchase-retention-line {
  display: grid;
  grid-template-columns: 28px minmax(210px, 1fr) 70px 120px 100px;
  gap: 2px;
  background: transparent;
}

.sri-iva-line.purchase-retention-line input[type="number"] {
  min-height: 24px;
}

.sri-air-grid {
  margin-top: 10px;
  border-top: 1px solid #9aaec2;
  padding-top: 4px;
}

.sri-air-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin: 6px 14px 0 0;
}

.sri-air-toolbar .secondary-link {
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 0;
}

.air-retention-row select {
  min-height: 32px;
  border-radius: 0;
  border: 1px solid #174ea6;
  background: #fff;
  color: #0010b0;
  font-weight: 700;
}

.air-retention-row:focus-within {
  outline: 2px solid #0010b0;
  outline-offset: -2px;
}

.sri-retention-footer {
  display: grid;
  grid-template-columns: 170px 190px 210px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.sri-retention-footer span,
.sri-retention-footer strong {
  font-size: 12px;
  font-weight: 800;
}

.sri-retention-footer b {
  display: inline-block;
  min-width: 110px;
  border: 1px solid #9aaec2;
  background: #8ce6e8;
  padding: 5px 8px;
  text-align: right;
  color: #0010b0;
}

.sri-retention-footer strong b {
  background: #000;
  color: #ffff00;
  font-size: 20px;
}

.retention-save-icon {
  width: 36px;
  min-height: 32px;
  font-size: 0;
}

.retention-save-icon::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 15px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(40deg);
}

.invoice-number-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.tiny-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  background: #f2b705;
  color: #082f49;
  text-decoration: none;
  font-weight: 800;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f2b705;
  color: #082f49;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.purchase-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 4px;
}

.purchase-items-table {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.purchase-item-row {
  display: grid;
  grid-template-columns: 82px minmax(170px, .75fr) 70px 86px 92px minmax(170px, 190px) 104px 104px 38px;
  gap: 0;
  align-items: center;
  background: #d6f7f3;
}

.purchase-item-labels {
  color: #111;
  font-size: 12px;
  font-weight: 700;
  background: #f3f3f3;
}

.purchase-item-row input,
.purchase-item-row select {
  width: 100%;
  border-radius: 0;
  border: 1px solid #222;
  min-height: 28px;
  background: transparent;
}

.purchase-item-row input[name="item_description[]"] {
  font-size: 11px;
}

.purchase-item-row select[name="item_iva_rate[]"] {
  font-size: 11px;
}

.purchase-product-picker {
  position: relative;
  min-width: 0;
}

.purchase-product-picker input {
  width: 100%;
}

.purchase-product-results {
  display: none;
  position: absolute;
  z-index: 25;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #174ea6;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .18);
}

.purchase-product-results.active {
  display: grid;
}

.purchase-product-results button {
  border: 0;
  border-bottom: 1px solid #e5edf6;
  background: #fff;
  padding: 7px 9px;
  color: #0f172a;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.purchase-product-results button:hover {
  background: #eaf4ff;
}

.purchase-item-row:nth-child(even):not(.purchase-item-labels) input,
.purchase-item-row:nth-child(even):not(.purchase-item-labels) select {
  background: #fff989;
}

.purchase-item-row:nth-child(odd):not(.purchase-item-labels) input,
.purchase-item-row:nth-child(odd):not(.purchase-item-labels) select {
  background: #b9dcfb;
}

.purchase-item-row .line-total,
.purchase-item-row .line-subtotal {
  text-align: right;
  color: #082f49;
  border: 1px solid #222;
  min-height: 28px;
  padding: 5px;
  background: #fff989;
}

.purchase-total-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(145px, 1fr));
  gap: 6px;
  margin: 10px 0;
}

.purchase-ledger-totals {
  width: min(620px, 100%);
  margin-left: auto;
}

.purchase-save-icon {
  width: 42px;
  height: 34px;
  padding: 0;
  justify-content: center;
}

.purchase-save-icon::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 16px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(40deg);
}

.purchase-total-strip div {
  display: grid;
  grid-template-columns: 1fr 140px;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.compact-status-field {
  max-width: 220px;
}

.compact-status-field select {
  min-height: 32px;
}

.import-icon-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.imports-scroll-card {
  overflow: hidden;
}

.imports-scroll-top {
  overflow-x: auto;
  height: 12px;
}

.imports-grid-scroll {
  overflow-x: auto;
  padding-bottom: 12px;
}

.imports-grid-scroll .imported-purchase-row {
  min-width: 1180px;
}

.electronic-modern .electronic-table tr.electronic-status-autorizado td {
  background: #dcfce7;
}

.electronic-modern .electronic-table tr.electronic-status-sin_firmar td {
  background: #f1f5f9;
}

.electronic-modern .electronic-table tr.electronic-status-devuelto td {
  background: #fef9c3;
}

.electronic-modern .electronic-table tr.electronic-status-firmado td {
  background: #f3e8ff;
}

.electronic-modern .electronic-table tr.electronic-status-no_autorizado td {
  background: #fee2e2;
}

.electronic-table td small {
  display: block;
  color: #64748b;
  font-size: 10px;
  margin-top: 2px;
}

.sri-process-panel {
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  color: #102033;
  margin: 0 0 14px;
  padding: 12px;
}

.sri-process-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sri-process-head strong {
  font-size: 16px;
}

.sri-process-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.sri-process-list {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
}

.sri-process-doc {
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 10px;
}

.sri-process-doc h3 {
  font-size: 13px;
  margin: 0 0 8px;
}

.sri-process-step {
  align-items: flex-start;
  display: grid;
  gap: 8px;
  grid-template-columns: 12px 1fr;
  padding: 5px 0;
}

.sri-process-step > span {
  border-radius: 999px;
  height: 10px;
  margin-top: 3px;
  width: 10px;
}

.sri-process-step strong,
.sri-process-step small {
  display: block;
}

.sri-process-step strong {
  font-size: 12px;
}

.sri-process-step small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.sri-process-ok > span {
  background: #22c55e;
}

.sri-process-error > span {
  background: #ef4444;
}

.sri-process-pending > span {
  background: #f59e0b;
}

.import-icon-form input[type="file"] {
  max-width: 260px;
}

.purchase-param-row {
  grid-template-columns: 100px minmax(260px, 1fr) 90px 60px;
}

.purchase-iva-product-row {
  grid-template-columns: 82px minmax(240px, .9fr) minmax(260px, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 6px 8px;
}

.purchase-iva-map-card {
  padding: 12px;
}

.compact-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.compact-section-head .form-title {
  margin-bottom: 2px;
}

.purchase-iva-map-list {
  gap: 6px;
}

.iva-map-rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 6px;
  background: #eaf4ff;
  color: #00369d;
  font-size: 13px;
}

.iva-map-selected {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid #d5e2ef;
  border-radius: 6px;
  background: #f8fbff;
  padding: 4px 8px;
}

.iva-map-selected span {
  color: #00369d;
  font-size: 12px;
  font-weight: 800;
}

.iva-map-selected strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iva-map-selected.empty {
  background: #fff7ed;
  border-color: #fed7aa;
}

.iva-map-selected.empty strong,
.iva-map-selected.empty span {
  color: #9a3412;
}

.product-search-picker {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 30px;
  gap: 6px;
  align-items: center;
}

.product-search-picker .product-map-search {
  min-height: 30px;
  font-size: 12px;
  padding: 4px 8px;
}

.product-map-results {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 36px;
  max-height: 210px;
  overflow: auto;
  border: 1px solid #b7c7d9;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
}

.product-map-results.active {
  display: grid;
}

.product-map-results button {
  border: 0;
  border-bottom: 1px solid #e6edf5;
  background: #fff;
  color: #0f172a;
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.product-map-results button:hover {
  background: #eaf4ff;
}

@media (max-width: 900px) {
  .purchase-iva-product-row {
    grid-template-columns: 76px 1fr;
  }

  .product-search-picker {
    grid-column: 1 / -1;
  }
}

.purchase-total-strip span {
  display: block;
  color: #607080;
  font-size: 12px;
}

.purchase-total-strip strong {
  display: block;
  margin-top: 0;
  color: #082f49;
  font-size: 14px;
  text-align: right;
  border: 1px solid #9db1c6;
  background: #fff;
  padding: 4px 8px;
}

.purchase-ledger-totals div:last-child strong {
  color: #e00000;
  font-size: 26px;
  font-weight: 800;
}

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

@media (max-width: 1000px) {
  .purchase-title-row,
  .purchase-compact-grid,
  .purchase-block-supplier,
  .purchase-block-sri,
  .purchase-block-warehouse,
  .purchase-block-retention,
  .purchase-retention-inline {
    grid-template-columns: 1fr;
  }

  .purchase-title-row {
    display: grid;
  }

  .purchase-sri-loader {
    grid-template-columns: 1fr;
  }

  .purchase-block-sri,
  .purchase-block-warehouse,
  .purchase-block-retention {
    grid-column: auto;
  }

  .purchase-retention-fields {
    grid-template-columns: 1fr;
  }
}

.supplier-list-link {
  grid-template-columns: 110px minmax(220px, 1fr) 110px minmax(160px, 1fr) 160px 100px 110px 70px;
  color: #082f49;
  text-decoration: none;
}

.supplier-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
  align-items: end;
}

.payable-retention-line {
  grid-column: 1 / -1;
  color: #9b2f1f;
  font-weight: 700;
}

.payable-row {
  grid-template-columns: 140px minmax(280px, 1fr) 140px 110px 120px 100px;
}

.taxpayer-row {
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr) 100px 72px;
}

.tax-code-row {
  grid-template-columns: 110px 100px minmax(240px, 1fr) 120px 100px 72px;
}

.retention-row {
  grid-template-columns: 38px 58px 150px 105px 90px minmax(260px, 1fr) 110px 130px 70px 48px;
}

.retention-row form {
  margin: 0;
}

.wide-container .admin-list-row:hover,
.wide-container .finance-row:hover,
.wide-container .product-admin-row:hover,
.wide-container .printer-row:hover,
.wide-container .invoice-order-row:hover {
  background: #f1f7ff;
  border-color: #c9d8f2;
}

.wide-container .admin-row-list,
.wide-container .finance-grid,
.wide-container .product-list,
.wide-container .printer-list {
  gap: 10px;
}

.wide-container .report-summary div {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.wide-container .report-summary span {
  color: #64748b;
  font-size: 12px;
  margin: 0 0 5px;
}

.wide-container .report-summary strong {
  color: #0f172a;
  font-size: 24px;
}

.wide-container .icon-action {
  border-radius: 9px;
  box-shadow: none;
}

.wide-container .icon-action.save {
  background: #00369d;
  color: #fff;
}

.wide-container .icon-action.delete,
.wide-container .danger-button {
  background: #dc2626;
  color: #fff;
}

.wide-container .status-pill {
  background: #eef4ff;
  color: #00369d;
}

.wide-container .notice-box {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.iva-create-card {
  padding: 14px;
}

.iva-source-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
}

.iva-source-card div {
  display: grid;
  gap: 3px;
}

.iva-source-card strong {
  color: #0f172a;
  font-size: 14px;
}

.iva-source-card span {
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.iva-apply-form {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr) auto 130px;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.iva-apply-form label {
  display: grid;
  gap: 4px;
  margin: 0;
}

.iva-apply-form span {
  background: #eef4ff;
  border: 1px solid #c9d8f2;
  border-radius: 999px;
  color: #00369d;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

.iva-apply-form select {
  width: 100%;
  min-height: 36px;
}

.iva-apply-form .main-button.compact {
  max-width: 130px;
  min-height: 36px;
}

.iva-create-card .form-title,
.iva-grid-card .form-title {
  font-size: 18px;
  margin: 0;
}

.iva-create-form {
  display: grid;
  grid-template-columns: minmax(100px, .75fr) minmax(180px, 1.4fr) minmax(90px, .55fr) minmax(110px, .65fr) 82px 120px 130px;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}

.iva-create-form .field {
  margin: 0;
}

.iva-create-form .field label {
  font-size: 11px;
}

.iva-create-form input,
.iva-create-form button {
  min-height: 36px;
}

.section-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-head-inline span {
  background: #eef4ff;
  border: 1px solid #c9d8f2;
  border-radius: 999px;
  color: #00369d;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.section-head-inline .top-actions {
  align-items: center;
}

.section-head-inline .main-button.compact {
  max-width: 140px;
  min-height: 34px;
  padding: 8px 10px;
}

.iva-list {
  display: grid;
  gap: 8px;
}

.iva-admin-row {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(0, 1fr) 78px;
  gap: 8px;
  align-items: center;
  background: #f8fafc;
  border: 2px solid #d2deeb;
  border-radius: 14px;
  color: #102033;
  padding: 8px;
}

.reward-admin-points {
  overflow: hidden;
}

.reward-admin-points .section-head-inline {
  align-items: flex-start;
}

.reward-admin-points .form-subtitle {
  margin: 4px 0 0;
}

.reward-admin-actions {
  margin: 0;
}

.reward-search-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 140px auto;
  align-items: end;
  gap: 10px;
  margin: 12px 0;
}

.reward-search-form .main-button.compact,
.reward-admin-actions .main-button.compact {
  min-height: 40px;
  width: auto;
}

.reward-points-grid {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.reward-points-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) 130px 110px 110px 100px minmax(300px, 1.4fr) 110px;
  align-items: center;
  gap: 8px;
  min-width: 1120px;
  background: #f8fafc;
  border: 1px solid #d2deeb;
  border-radius: 14px;
  color: #102033;
  padding: 9px 10px;
}

.reward-points-head {
  background: #eaf2fb;
  border-color: #bfd0e4;
  color: #002d75;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reward-row-warning {
  background: #fff7d6;
  border-color: #f6c85f;
}

.reward-points-row div {
  display: grid;
  gap: 2px;
}

.reward-points-row small {
  color: #64748b;
  font-size: 11px;
}

.reward-adjust-form {
  display: grid;
  grid-template-columns: 90px minmax(150px, 1fr) 44px;
  gap: 6px;
  margin: 0;
}

.reward-adjust-form input {
  min-height: 34px;
  padding: 7px 9px;
}

.reward-points-row form {
  margin: 0;
}

@media (max-width: 760px) {
  .reward-config-layout,
  .reward-product-create,
  .credit-card-create-form {
    grid-template-columns: 1fr;
  }

  .reward-balance-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-payment-modal {
    align-items: center;
    padding: 8px;
  }

  .card-payment-box {
    max-height: calc(100vh - 16px);
    overflow: auto;
  }

  .card-payment-system-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-payment-card-section,
  .card-payment-table-wrap,
  .card-payment-number-block,
  .card-payment-actions {
    grid-column: 1 / -1;
  }

  .split-payment-head,
  .split-payment-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-payment-row {
    grid-template-columns: 1fr 1fr;
  }

  .reward-admin-points .section-head-inline,
  .reward-search-form {
    grid-template-columns: 1fr;
  }

  .reward-admin-points .section-head-inline {
    display: grid;
  }

  .reward-search-form .main-button.compact,
  .reward-admin-actions .main-button.compact,
  .reward-search-form .secondary-link.compact,
  .reward-admin-actions .secondary-link.compact {
    width: 100%;
  }
}

.iva-row-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.iva-row-title strong {
  color: #0f172a;
  font-size: 13px;
}

.iva-row-title span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.iva-row-fields {
  display: grid;
  grid-template-columns: .75fr minmax(180px, 1.3fr) .55fr .65fr 72px 70px;
  gap: 6px;
  align-items: end;
}

.iva-row-fields label {
  display: grid;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
}

.iva-row-fields .mini-check {
  display: flex;
  justify-content: center;
  min-height: 30px;
  padding-top: 12px;
}

.iva-row-fields input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  font-size: 11px;
  min-height: 31px;
  padding: 6px;
}

.iva-row-fields input[type="checkbox"] {
  min-height: 14px;
  width: 14px;
}

.tax-param-card {
  padding: 12px;
}

.tax-param-create {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(240px, 1fr) 90px 120px;
  gap: 8px;
  align-items: center;
}

.tax-param-create.retention-create {
  grid-template-columns: 100px 110px minmax(220px, 1fr) 110px 90px 120px;
}

.tax-param-create input,
.tax-param-create select {
  min-height: 34px;
}

.tax-param-list {
  display: grid;
  gap: 8px;
}

.tax-param-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 8px;
  align-items: center;
  background: #f8fafc;
  border: 2px solid #d2deeb;
  border-radius: 14px;
  padding: 8px;
}

.tax-param-fields {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(220px, 1.1fr) 82px;
  gap: 6px;
  align-items: end;
}

.tax-param-fields.retention-fields {
  grid-template-columns: 96px 100px minmax(240px, 1fr) 100px 82px;
}

.tax-param-fields.support-fields {
  grid-template-columns: 120px minmax(260px, 1fr) 82px;
}

.tax-param-fields label {
  display: grid;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
}

.tax-param-fields .mini-check {
  display: flex;
  justify-content: center;
  min-height: 30px;
  padding-top: 12px;
}

.tax-param-fields input,
.tax-param-fields select {
  border: 1px solid #d7dee7;
  border-radius: 10px;
  font-size: 11px;
  min-height: 31px;
  padding: 6px;
  width: 100%;
}

.tax-param-fields input[type="checkbox"] {
  min-height: 14px;
  width: 14px;
}

.iva-form-screen {
  max-width: 820px;
}

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

.iva-screen-form .main-button {
  max-width: 180px;
}

@media (max-width: 1050px) {
  .iva-admin-row {
    grid-template-columns: 1fr;
  }

  .iva-rate-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .iva-source-card {
    align-items: stretch;
    flex-direction: column;
  }

  .iva-apply-form {
    grid-template-columns: 1fr;
  }

  .iva-apply-form span {
    white-space: normal;
  }

  .iva-row-fields,
  .tax-param-create,
  .tax-param-create.retention-create,
  .tax-param-row,
  .tax-param-fields,
  .tax-param-fields.retention-fields,
  .tax-param-fields.support-fields,
  .iva-screen-form {
    grid-template-columns: 1fr;
  }
}

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

.iva-rate-grid {
  display: grid;
  grid-template-columns: 110px minmax(210px, 1fr) 90px 115px 64px 64px 84px;
  min-width: 760px;
  align-items: center;
}

.iva-rate-head {
  background: #eaf1fb;
  border: 1px solid #cbd5e1;
  border-radius: 10px 10px 0 0;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  padding: 8px;
  text-transform: uppercase;
}

.iva-rate-row {
  border-color: #d2deeb;
  border-style: solid;
  border-width: 0 1px 1px;
  background: #fbfdff;
  padding: 6px 8px;
}

.iva-rate-row:nth-child(odd) {
  background: #f7fbff;
}

.iva-rate-row:last-child {
  border-radius: 0 0 10px 10px;
}

.iva-rate-edit-form {
  display: contents;
}

.iva-rate-row input {
  border: 1px solid #d7dee7;
  border-radius: 7px;
  font-size: 12px;
  min-height: 30px;
  padding: 5px 7px;
  width: calc(100% - 6px);
}

.iva-rate-row input[type="checkbox"] {
  min-height: 14px;
  width: 14px;
}

.iva-check {
  justify-content: center;
}

.iva-rate-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.iva-rate-actions form {
  margin: 0;
}

.iva-rate-actions .icon-action {
  height: 30px;
  min-height: 30px;
  width: 34px;
}

.iva-rate-actions .icon-action:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  opacity: .7;
}

@media (max-width: 980px) {
  .iva-create-form {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

.wide-container .alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.wide-container .modal,
.wide-container .order-detail-box,
.wide-container .invoice-preview-box {
  border-radius: 18px;
}

@media print {
  * {
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
    transform: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: white !important;
    color: #000 !important;
    margin: 0;
    padding: 0;
  }

  .no-print {
    display: none !important;
  }

  .wide-container {
    max-width: none;
    margin: 0;
  }

  .pos-receipt {
    color: #000;
    display: block;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.25;
    padding: 4mm;
    width: 80mm;
  }

  .pos-receipt h2 {
    font-size: 15px;
    margin: 0 0 3px;
    text-align: center;
  }

  .pos-receipt p {
    margin: 0 0 3px;
    text-align: center;
  }

  .pos-receipt hr {
    border: 0;
    border-top: 1px dashed #000;
    margin: 6px 0;
  }

  .receipt-line,
  .receipt-invoice {
    color: #000;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
  }

  .receipt-line small {
    color: #000;
  }

  .receipt-invoice {
    align-items: flex-start;
    border-bottom: 1px dotted #999;
    padding: 2px 0;
  }

  .receipt-invoice span:first-child {
    max-width: 34mm;
  }
}

.inventory-document-screen .inventory-document-card,
.inventory-list-screen .inventory-erp-panel {
  border: 1px solid #d6e3f1;
  box-shadow: 0 12px 30px rgba(15, 35, 60, .08);
}

.inventory-document-screen .inventory-document-head {
  align-items: end;
  background: #f7fafd;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 180px minmax(260px, 1fr) 170px;
  padding: 12px;
}

.inventory-document-grid th,
.inventory-document-grid td {
  padding: 8px;
}

.inventory-document-grid input,
.inventory-list-screen select {
  min-height: 34px;
}

.inventory-document-row {
  cursor: pointer;
}

.inventory-document-row:hover td {
  background: #f4f9ff;
}

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

.inventory-movement-modal {
  align-items: center;
  background: rgba(6, 20, 38, .62);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.inventory-movement-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 22px 60px rgba(5, 20, 40, .28);
  max-height: 88vh;
  overflow: auto;
  padding: 16px;
  width: min(920px, 96vw);
}

.inventory-account-auth-panel {
  max-width: 460px;
}

.inventory-account-auth-panel .field {
  display: grid;
  gap: 6px;
}

.inventory-account-auth-panel input[type="password"] {
  border: 1px solid #cbd9ea;
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 10px;
}

.inventory-movement-head {
  align-items: center;
  border-bottom: 1px solid #dbe7f3;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.inventory-movement-head span,
.inventory-modal-summary span {
  color: #51657e;
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-movement-head strong {
  color: #08254a;
  font-size: 18px;
}

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

.inventory-modal-summary div {
  background: #f7fafd;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  padding: 10px;
}

.proforma-list-row {
  cursor: pointer;
}

.proforma-list-row:hover td {
  background: #f4f9ff;
}

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

.proforma-preview-modal {
  align-items: center;
  background: rgba(6, 20, 38, .62);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.proforma-preview-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 22px 60px rgba(5, 20, 40, .28);
  display: flex;
  flex-direction: column;
  height: min(88vh, 900px);
  overflow: hidden;
  width: min(960px, 96vw);
}

.proforma-preview-head {
  align-items: center;
  border-bottom: 1px solid #dbe7f3;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.proforma-preview-frame,
.proforma-preview-panel iframe {
  border: 0;
  flex: 1 1 auto;
  width: 100%;
}

.proforma-save-preview-body {
  background: #eef3f8;
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px;
}

.proforma-save-preview-body .ride-page {
  margin: 0 auto;
  max-width: 820px;
}

.inventory-movement-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1.5fr) 140px 120px 140px minmax(220px, 1fr) auto;
}

.inventory-action-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.inventory-module-options {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.inventory-main-options {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.inventory-option-card {
  display: grid;
  gap: 10px;
}

.inventory-option-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory-stock-table tbody tr {
  cursor: pointer;
}

.inventory-stock-table tbody tr:hover {
  background: #eef6ff;
}

.inventory-stock-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  margin-bottom: 12px;
}

.inventory-stock-summary article {
  background: #f8fbff;
  border: 1px solid #d7e1ed;
  border-radius: 8px;
  padding: 12px;
}

.inventory-stock-summary span {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-stock-summary strong {
  color: #004aad;
  font-size: 22px;
}

.inventory-stock-filters {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: 170px minmax(220px, 1fr) 170px auto auto;
  margin-bottom: 10px;
}

.inventory-recalculate-form {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 12px;
}

.quick-customer-modal {
  align-items: flex-start;
  background: rgba(0, 38, 112, .62);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 132px 18px 18px;
  position: fixed;
  z-index: 90;
}

.quick-customer-modal.active {
  display: flex;
}

.quick-customer-box {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .25);
  max-width: 440px;
  padding: 10px 12px 12px;
  width: min(440px, 94vw);
}

.quick-customer-box .order-detail-head {
  align-items: center;
  margin-bottom: 6px;
}

.quick-customer-box .order-detail-head h2 {
  font-size: 16px;
  margin: 1px 0 0;
}

.quick-customer-box .order-detail-head span {
  color: #64748b;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.quick-customer-box .order-detail-head button {
  min-height: 30px;
  padding: 6px 10px;
}

.quick-customer-form {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr;
}

.quick-customer-form .field {
  margin: 0;
}

.quick-customer-form label {
  font-size: 10px;
  line-height: 1.1;
}

.quick-customer-form input,
.quick-customer-form select {
  font-size: 12px;
  min-height: 30px;
  padding: 5px 8px;
}

.quick-customer-form .full-field,
.quick-customer-actions {
  grid-column: 1 / -1;
}

.quick-customer-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

.inventory-document-card form {
  margin: 0;
}

.inventory-document-head {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 170px minmax(260px, 1fr) auto;
}

.inventory-document-grid input {
  border: 1px solid #d7dee7;
  border-radius: 7px;
  font-size: 12px;
  min-height: 32px;
  padding: 6px 8px;
  width: calc(100% - 8px);
}

.inventory-document-grid tfoot th {
  background: #eef6ff;
  border-top: 2px solid #9fb3c8;
  color: #004aad;
  font-size: 13px;
  font-weight: 900;
}

.ats-filter {
  align-items: end;
}

.ats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.ats-summary article {
  min-height: 84px;
}

.ats-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ats-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.ats-manual-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}

.ats-manual-form .ats-notes {
  grid-column: span 2;
}

.ats-table th,
.ats-table td {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .ats-manual-form .ats-notes {
    grid-column: auto;
  }
}

.inventory-grid-toolbar .invoice-filter-form {
  align-items: end;
}

.inventory-summary-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  margin: 14px 0;
}

.inventory-summary-row article {
  background: #f8fbff;
  border: 1px solid #d7e1ed;
  border-radius: 8px;
  padding: 12px;
}

.inventory-summary-row span {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.inventory-summary-row strong {
  color: #004aad;
  font-size: 22px;
}

.inventory-detail summary {
  color: #004aad;
  cursor: pointer;
  font-weight: 800;
}

.inventory-detail-lines {
  display: grid;
  gap: 4px;
  margin: 8px 0;
  min-width: 260px;
}

.inventory-detail-lines div {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 4px 0;
}

.inventory-detail-lines span {
  color: #334155;
  font-size: 12px;
}

.inventory-detail-lines b {
  color: #0f172a;
  font-size: 12px;
}

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

.inventory-kardex-modal.open {
  display: flex;
}

.inventory-kardex-box {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
  max-height: 98vh;
  max-width: 1760px;
  overflow: auto;
  padding: 12px;
  width: min(1760px, 99.6vw);
}

.inventory-kardex-box .compact-table {
  min-width: 720px;
}

.inventory-product-summary {
  min-width: 1180px;
}

.inventory-product-summary th,
.inventory-product-summary td {
  background: #fff;
  color: #020617;
  font-size: 12px;
  padding: 8px 10px;
}

.inventory-kardex-filter {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.inventory-kardex-filter label {
  color: #334155;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 3px;
}

.inventory-kardex-filter input {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  min-height: 30px;
  padding: 4px 8px;
}

.inventory-kardex-filter .period-buttons button {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.inventory-kardex-filter .period-buttons button.active {
  background: #004aad;
  color: #fff;
}

.inventory-product-summary thead th {
  border-bottom: 1px solid #d4d4d8;
  font-weight: 800;
}

.inventory-product-summary tbody td {
  border-bottom: 1px solid #eeeeee;
}

.inventory-kardex-tabs {
  border-bottom: 1px solid #d9e2ee;
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.inventory-kardex-tabs button {
  background: #f3f6fb;
  border: 1px solid #d9e2ee;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: #334155;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 14px;
}

.inventory-kardex-tabs button.active {
  background: #fff;
  color: #004aad;
}

.inventory-tab-panel {
  display: none;
}

.inventory-tab-panel.active {
  display: block;
}

.inventory-kardex-data-table {
  min-width: 1420px;
}

.inventory-kardex-data-table th,
.inventory-kardex-data-table td {
  background: #fff;
  color: #111827;
  font-size: 11px;
  padding: 7px 9px;
}

.inventory-kardex-data-table tfoot th {
  background: #f8fbff;
  border-top: 1px solid #cbd5e1;
  color: #004aad;
  font-weight: 900;
}

.inventory-kardex-data-table tbody tr.inventory-row-entry td {
  background: #ecfdf3;
}

.inventory-kardex-data-table tbody tr.inventory-row-exit td {
  background: #fff1f2;
}

.inventory-kardex-data-table tbody tr.inventory-row-entry:hover td {
  background: #dcfce7;
}

.inventory-kardex-data-table tbody tr.inventory-row-exit:hover td {
  background: #ffe4e6;
}

.inventory-stock-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.inventory-stock-card {
  background: #f8fbff;
  border: 1px solid #d7e1ed;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.inventory-stock-card strong {
  color: #0f172a;
  font-size: 13px;
}

.inventory-stock-card span,
.inventory-stock-card small {
  color: #64748b;
  font-size: 11px;
}

.inventory-stock-card b {
  color: #004aad;
  font-size: 20px;
}

.inventory-stock-card.service b {
  color: #64748b;
  font-size: 14px;
}

.inventory-erp-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100vh;
}

.inventory-erp-screen .topbar {
  border-top: 4px solid #004aad;
  margin-bottom: 8px;
}

.inventory-options-shell,
.inventory-erp-panel {
  background: #f8fbff;
  border: 1px solid #cbdcf0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(13, 34, 70, .08);
}

.inventory-section-title {
  align-items: center;
  border-bottom: 1px solid #d8e6f5;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.inventory-section-title span {
  color: #004aad;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.inventory-section-title h2 {
  color: #071d3a;
  font-size: 22px;
  line-height: 1.1;
  margin: 2px 0 0;
}

.inventory-section-title small {
  color: #5c708c;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.inventory-compact-screen .inventory-main-options {
  align-items: stretch;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
}

.inventory-compact-screen .inventory-option-card {
  background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
  border: 1px solid #cbdcf0;
  border-radius: 12px;
  box-shadow: inset 0 4px 0 #004aad;
  min-height: 150px;
  padding: 14px;
}

.inventory-compact-screen .inventory-option-card span {
  color: #071d3a;
  font-size: 17px;
}

.inventory-compact-screen .inventory-option-card p {
  color: #53677f;
  min-height: 42px;
}

.inventory-erp-scroll {
  border: 1px solid #cbdcf0;
  border-radius: 12px;
  max-height: calc(100vh - 360px);
  min-height: 260px;
  overflow: auto;
  scrollbar-color: #8aa6c8 #edf4fb;
  scrollbar-width: thin;
}

.inventory-stock-screen .inventory-erp-scroll {
  max-height: calc(100vh - 330px);
}

.inventory-list-screen .inventory-erp-scroll,
.inventory-transfer-screen .inventory-erp-scroll {
  max-height: calc(100vh - 365px);
}

.inventory-document-screen .inventory-erp-scroll {
  max-height: calc(100vh - 315px);
}

.inventory-erp-scroll .invoice-datagrid,
.inventory-erp-scroll .branch-table {
  margin: 0;
}

.inventory-erp-scroll .invoice-datagrid th,
.inventory-erp-scroll .branch-table th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.inventory-erp-screen .invoice-datagrid th,
.inventory-erp-screen .invoice-datagrid td,
.inventory-erp-screen .branch-table th,
.inventory-erp-screen .branch-table td {
  font-size: 12px;
  padding: 8px 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.inventory-erp-screen .invoice-datagrid td:nth-child(3),
.inventory-erp-screen .branch-table td:nth-child(3),
.inventory-erp-screen .branch-table td:nth-child(4) {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-stock-table {
  min-width: 1120px;
}

.inventory-stock-table tfoot th,
.inventory-stock-table tfoot td,
.inventory-document-grid tfoot th {
  background: #fff4cf !important;
  border-top: 2px solid #d89c18 !important;
  color: #071d3a !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.inventory-stock-summary,
.inventory-summary-row {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.inventory-stock-summary article,
.inventory-summary-row article {
  background: #fff;
  border-left: 4px solid #004aad;
  min-height: 72px;
  padding: 10px 12px;
}

.inventory-stock-summary article:nth-child(3),
.inventory-stock-summary article:nth-child(4),
.inventory-summary-row article:nth-child(3) {
  border-left-color: #d89c18;
}

.inventory-summary-row .inventory-summary-action {
  align-items: stretch;
  display: grid;
  gap: 8px;
}

.inventory-summary-row .inventory-summary-action .main-button {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 38px;
  width: 100%;
}

.inventory-stock-filters {
  background: #fff;
  border: 1px solid #d8e6f5;
  border-radius: 12px;
  grid-template-columns: 150px minmax(220px, 1fr) 130px minmax(170px, 1fr) 130px auto auto;
  padding: 10px;
}

.inventory-recalculate-form {
  margin: 0 0 10px;
}

.inventory-document-head {
  background: #fff;
  border: 1px solid #d8e6f5;
  border-radius: 12px;
  padding: 10px;
}

.inventory-document-grid {
  min-width: 980px;
}

.inventory-document-grid th,
.inventory-document-grid td {
  height: 42px;
}

.inventory-document-grid td:first-child {
  min-width: 360px;
}

.inventory-document-grid input {
  min-height: 29px;
}

.inventory-grid-toolbar {
  margin-bottom: 10px;
}

.inventory-grid-toolbar .invoice-filter-form,
.inventory-grid-toolbar .inventory-list-filter {
  background: #fff;
  border: 1px solid #d8e6f5;
  border-radius: 12px;
  gap: 8px;
  padding: 10px;
}

.inventory-grid-toolbar {
  padding: 10px;
}

.inventory-list-filter {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(150px, 180px) minmax(150px, 180px) minmax(150px, 190px) 112px;
}

.inventory-filter-periods {
  align-items: center;
  background: #eef5fc;
  border: 1px solid #d8e6f5;
  border-radius: 10px;
  display: inline-flex;
  gap: 4px;
  height: 38px;
  padding: 4px;
}

.inventory-filter-periods a {
  border-radius: 8px;
  color: #315273;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  text-decoration: none;
}

.inventory-filter-periods a.active,
.inventory-filter-periods a:hover {
  background: #0f4aa2;
  color: #fff;
}

.inventory-list-filter label {
  color: #3e5872;
  display: grid;
  font-size: 11px;
  font-weight: 900;
  gap: 4px;
  text-transform: uppercase;
}

.inventory-list-filter input,
.inventory-list-filter select {
  background: #fff;
  border: 1px solid #cbd9ea;
  border-radius: 8px;
  color: #071c36;
  font-size: 13px;
  height: 38px;
  padding: 7px 10px;
}

.inventory-list-filter .main-button {
  height: 38px;
  min-height: 38px;
  padding: 0 18px;
}

.inventory-detail-lines {
  background: #fff;
  border: 1px solid #d8e6f5;
  border-radius: 8px;
  padding: 8px;
}

.inventory-transfer-screen .branch-form {
  background: #fff;
  border: 1px solid #d8e6f5;
  border-radius: 12px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  padding: 10px;
}

.inventory-transfer-screen .branch-form .full-field {
  grid-column: span 2;
}

.inventory-transfer-screen .branch-table-wrap {
  max-height: calc(100vh - 365px);
}

.inline-auth-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inline-auth-form input,
.inline-auth-form select {
  border: 1px solid #d7dee7;
  border-radius: 7px;
  font-size: 11px;
  min-height: 30px;
  padding: 5px 7px;
}

.order-customer-line {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
}

.order-search-customer {
  align-items: center;
  background: #004aad;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  padding: 0 14px;
  min-width: 82px;
}

.order-customer-summary {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
  padding: 8px;
}

.order-customer-results {
  background: #ffffff;
  border: 1px solid #cfe0f3;
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .14);
  display: grid;
  gap: 6px;
  margin: 8px 0 12px;
  max-height: 310px;
  overflow: auto;
  padding: 8px;
}

.order-customer-result {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: #172033;
  cursor: pointer;
  display: grid;
  gap: 4px 8px;
  grid-template-columns: 1.4fr .9fr .8fr .8fr;
  padding: 9px;
  text-align: left;
}

.order-customer-result:hover {
  background: #eaf4ff;
  border-color: #93c5fd;
}

.order-customer-result strong {
  color: #004aad;
  grid-column: span 2;
}

.order-customer-result span {
  font-size: 12px;
  font-weight: 800;
}

.order-customer-empty {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  padding: 9px;
}

.order-customer-summary strong,
.order-customer-summary span {
  background: #fff;
  border: 1px solid #d7e6f5;
  border-radius: 999px;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.order-customer-modal {
  align-items: center;
  background: rgba(15, 23, 42, .55);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 14px;
  position: fixed;
  z-index: 100;
}

.order-customer-modal.active {
  display: flex;
}

.order-customer-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .32);
  max-height: 92vh;
  overflow: auto;
  padding: 14px;
  width: min(760px, 96vw);
}

.order-customer-head {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.order-customer-head span {
  color: #004aad;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.order-customer-head h2 {
  color: #0f172a;
  font-size: 20px;
  margin: 2px 0 0;
}

.order-customer-head button,
.order-customer-actions button {
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
  min-height: 36px;
  padding: 7px 12px;
}

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

.order-customer-grid label {
  color: #0f172a;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 4px;
}

.order-customer-grid input,
.order-customer-grid select {
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  min-height: 38px;
  padding: 7px 9px;
}

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

.order-customer-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

@media (max-width: 620px) {
  .order-customer-modal {
    align-items: stretch;
    padding: 8px;
  }

  .order-customer-box {
    border-radius: 8px;
    max-height: calc(100vh - 16px);
    width: 100%;
  }

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

  .order-customer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .order-customer-line {
    grid-template-columns: 1fr;
  }

  .order-search-customer {
    width: 100%;
  }

  .order-customer-result {
    grid-template-columns: 1fr;
  }

  .order-customer-result strong {
    grid-column: auto;
  }
}

.inventory-edit-line {
  margin-bottom: 6px;
}

.inventory-edit-line input[name="quantity"],
.inventory-edit-line input[name="unit_cost"] {
  width: 82px;
}

.inventory-edit-line input[name="reason"] {
  width: 145px;
}

@media (max-width: 980px) {
  .inventory-movement-form,
  .inventory-document-head,
  .inventory-module-options,
  .inventory-main-options,
  .inventory-stock-summary,
  .inventory-stock-filters,
  .inventory-transfer-screen .branch-form {
    grid-template-columns: 1fr 1fr;
  }

  .inventory-list-filter {
    grid-template-columns: 1fr 1fr;
  }

  .inventory-filter-periods,
  .inventory-list-filter .main-button {
    grid-column: span 2;
    width: 100%;
  }

  .inventory-filter-periods {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .inventory-movement-form,
  .inventory-document-head,
  .inventory-summary-row,
  .inventory-module-options,
  .inventory-main-options,
  .inventory-stock-summary,
  .inventory-stock-filters,
  .inventory-transfer-screen .branch-form,
  .quick-customer-form {
    grid-template-columns: 1fr;
  }

  .inventory-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .inventory-section-title small {
    text-align: left;
  }

  .inventory-erp-scroll {
    max-height: 58vh;
  }

  .inventory-list-filter {
    grid-template-columns: 1fr;
  }

  .inventory-filter-periods,
  .inventory-list-filter .main-button {
    grid-column: auto;
  }
}

.purchase-imports-page {
  background: #f1f1f1;
  min-height: 100vh;
}

.purchase-imports-shell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 100vh;
  padding: 4px;
  width: 100%;
}

.purchase-classic-topbar {
  margin-bottom: 0;
  padding: 8px 12px;
}

.purchase-classic-controls {
  background: #f5f5f5;
  border: 0;
  box-shadow: none;
  padding: 0 8px 4px;
}

.purchase-classic-title {
  border: 1px dotted #333;
  color: #000;
  font-size: 14px;
  font-weight: 900;
  line-height: 20px;
  margin: 0 0 14px 0;
  max-width: 365px;
  text-align: center;
}

.purchase-classic-toolbar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 220px 1fr 160px 170px minmax(250px, 1fr);
}

.purchase-classic-filter {
  align-items: center;
  border: 1px solid #c0c0c0;
  display: flex;
  gap: 8px;
  padding: 4px 6px;
  width: fit-content;
}

.purchase-classic-filter.center {
  justify-self: center;
}

.purchase-classic-filter.provider {
  justify-self: end;
}

.purchase-classic-filter a,
.purchase-classic-filter button,
.purchase-provider-edit {
  border: 1px solid #b8b8b8;
  border-radius: 3px;
  color: #000;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-height: 22px;
  padding: 2px 10px;
  text-decoration: none;
}

.purchase-classic-filter .green,
.purchase-classic-filter button {
  background: #8dffb3;
}

.purchase-classic-filter .red {
  background: #ffb6b6;
}

.purchase-classic-filter .active {
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12);
}

.purchase-provider-edit {
  align-items: center;
  background: #bff8ff;
  display: flex;
  gap: 10px;
  justify-self: end;
  white-space: nowrap;
}

.purchase-classic-upload {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.purchase-classic-upload input {
  max-width: 210px;
}

.purchase-classic-upload button {
  background: #0b5bd3;
  border: 1px solid #06439c;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 5px 10px;
}

.purchase-classic-grid-card {
  background: #f5f5f5;
  border: 0;
  box-shadow: none;
  flex: 1 1 auto;
  min-height: 360px;
  padding: 0;
}

.purchase-classic-grid-card .purchase-erp-scroll {
  background: #fff;
  border: 1px solid #9f9f9f;
  height: calc(100vh - 230px);
  min-height: 350px;
  overflow: auto;
}

.purchase-classic-table {
  border-collapse: collapse;
  min-width: 1120px;
}

.purchase-classic-table th,
.purchase-classic-table td {
  border-bottom: 1px solid #c9c9c9;
  border-right: 1px solid #c9c9c9;
  color: #000;
  font-size: 14px;
  line-height: 18px;
  padding: 1px 5px;
  white-space: nowrap;
}

.purchase-classic-table th {
  background: #f4f4f4;
  color: #000;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 3;
}

.purchase-classic-table td:first-child,
.purchase-classic-table th:first-child {
  left: 0;
  min-width: 16px;
  padding: 0;
  position: sticky;
  text-align: center;
  width: 16px;
}

.purchase-classic-table td:first-child {
  background: inherit;
  z-index: 2;
}

.purchase-classic-table th:first-child {
  background: #f4f4f4;
  z-index: 4;
}

.purchase-classic-table tbody tr:hover td {
  background: #d7ecff;
}

.purchase-classic-table tbody tr.selected td {
  background: #9bd0ff;
}

.purchase-classic-table tbody tr.new-provider-row td {
  background: #ffff6e;
}

.purchase-classic-table tbody tr.new-provider-row.selected td {
  background: #ffd966;
}

.purchase-classic-table .mono {
  font-family: Consolas, "Courier New", monospace;
  max-width: 410px;
  overflow: hidden;
  text-overflow: clip;
}

.purchase-classic-table .right {
  text-align: right;
}

.purchase-classic-table .classic-ok {
  text-align: center;
}

.purchase-classic-table .classic-ok input {
  height: 14px;
  margin: 0;
  width: 14px;
}

.purchase-classic-footer {
  align-items: center;
  background: #f5f5f5;
  display: grid;
  gap: 24px;
  grid-template-columns: 230px 130px 150px 150px 150px 130px 1fr;
  padding: 8px 12px 10px;
}

.purchase-classic-counts {
  display: grid;
  gap: 3px;
}

.purchase-classic-counts div {
  display: grid;
  grid-template-columns: 112px 98px;
}

.purchase-classic-counts span,
.purchase-classic-counts strong {
  border: 1px solid #aaa;
  color: #000;
  font-size: 12px;
  line-height: 18px;
  padding: 1px 4px;
}

.purchase-classic-counts span {
  background: #65fff1;
  font-weight: 900;
}

.purchase-classic-counts div:nth-child(2) span {
  background: #ff70c2;
}

.purchase-classic-counts strong {
  background: #fff;
  text-align: right;
}

.classic-process,
.classic-light,
.classic-register {
  align-items: center;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 5px;
  color: #555;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 6px 14px;
  text-decoration: none;
}

.classic-process {
  flex-direction: column;
}

.classic-process span {
  background: #f9a825;
  border: 1px solid #a86600;
  border-radius: 2px;
  color: #111;
  font-size: 11px;
  line-height: 16px;
  padding: 0 4px;
}

.classic-register {
  color: #f00;
}

@media (max-width: 900px) {
  .purchase-classic-toolbar,
  .purchase-classic-footer {
    display: flex;
    flex-wrap: wrap;
  }

  .purchase-provider-edit,
  .purchase-classic-filter.center,
  .purchase-classic-filter.provider {
    justify-self: start;
  }
}

.purchase-imports-page {
  background: #edf3f8;
}

.purchase-imports-shell {
  gap: 12px;
  padding: 12px;
}

.purchase-imports-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f5fbff 100%);
  border: 1px solid #d7e6f5;
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .07);
  padding: 16px 18px;
}

.purchase-imports-hero h1 {
  margin-bottom: 4px;
}

.purchase-imports-hero p {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.purchase-imports-controls {
  background: #fff;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
  padding: 14px;
}

.purchase-imports-command {
  display: grid;
  gap: 12px;
}

.purchase-import-upload-panel {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #cfe0f3;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1fr) auto;
  padding: 14px;
}

.purchase-import-upload-panel strong {
  color: #0f172a;
  display: block;
  font-size: 16px;
}

.purchase-import-upload-panel span {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}

.purchase-import-toolbar {
  justify-content: flex-start;
}

.purchase-import-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  margin-top: 12px;
}

.purchase-import-summary div {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.purchase-import-summary span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.purchase-import-summary strong {
  color: #0f172a;
  font-size: 18px;
}

.purchase-import-result {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #14532d;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
}

.purchase-import-result strong {
  margin-right: 4px;
}

.purchase-import-result span {
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
}

.purchase-erp-card {
  background: #fff;
  border: 1px solid #c7d7ea;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.purchase-erp-fullscreen {
  padding: 10px;
}

.purchase-erp-scroll {
  background: #fff;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
}

.purchase-erp-table tbody tr.purchase-new-provider-row td {
  background: #fff9db;
}

.purchase-erp-table tbody tr.purchase-new-provider-row:hover td {
  background: #fff3bf;
}

.purchase-provider-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 9px;
}

.purchase-provider-badge.new {
  background: #fef3c7;
  color: #92400e;
}

.purchase-provider-badge.known {
  background: #dcfce7;
  color: #166534;
}

.purchase-imports-simple-table {
  border-collapse: collapse;
  min-width: 1260px;
}

.purchase-imports-simple-table th:nth-child(1),
.purchase-imports-simple-table td:nth-child(1) {
  min-width: 140px;
}

.purchase-imports-simple-table th:nth-child(2),
.purchase-imports-simple-table td:nth-child(2) {
  min-width: 320px;
}

.purchase-imports-simple-table th:nth-child(3),
.purchase-imports-simple-table td:nth-child(3) {
  min-width: 120px;
}

.purchase-imports-simple-table th:nth-child(4),
.purchase-imports-simple-table td:nth-child(4) {
  min-width: 110px;
}

.purchase-imports-simple-table th:nth-child(5),
.purchase-imports-simple-table td:nth-child(5) {
  min-width: 390px;
}

.purchase-imports-simple-table th:nth-child(6),
.purchase-imports-simple-table td:nth-child(6) {
  min-width: 120px;
}

.purchase-imports-simple-table th:nth-child(7),
.purchase-imports-simple-table td:nth-child(7) {
  min-width: 190px;
}

.purchase-imports-simple-table th,
.purchase-imports-simple-table td {
  border: 1px solid #c7d7ea;
  font-size: 13px;
  padding: 10px 12px;
}

.purchase-imports-simple-table th {
  background: #eaf3ff;
  color: #0f172a;
  text-transform: uppercase;
}

.purchase-imports-simple-table tbody td {
  background: #ffffff;
}

.purchase-imports-simple-table tbody tr:nth-child(even) td {
  background: #f8fbff;
}

.purchase-imports-simple-table tbody tr:hover td {
  background: #eef7ff;
}

@media (max-width: 900px) {
  .purchase-import-upload-panel {
    grid-template-columns: 1fr;
  }
}

/* DataGrid aislado para compras importadas SRI */
.sri-grid-page {
  background: #eef3f8;
  color: #172033;
  margin: 0;
  min-height: 100vh;
}

.sri-grid-shell {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.sri-grid-header {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9e5f1;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 1fr) auto;
  padding: 18px;
}

.sri-grid-eyebrow {
  color: #004aad;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sri-grid-header h1 {
  color: #0f172a;
  font-size: 26px;
  line-height: 1.15;
  margin: 2px 0 4px;
}

.sri-grid-header p {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.sri-grid-nav,
.sri-grid-actions,
.sri-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sri-grid-nav a,
.sri-grid-actions a,
.sri-grid-actions button,
.sri-row-actions a,
.sri-row-actions button {
  background: #ffffff;
  border: 1px solid #c9d8e8;
  border-radius: 6px;
  color: #0f172a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 8px 11px;
  text-decoration: none;
}

.sri-grid-nav a:hover,
.sri-grid-actions a:hover,
.sri-grid-actions button:hover,
.sri-row-actions a:hover,
.sri-row-actions button:hover {
  background: #eef6ff;
  border-color: #9fc5ef;
}

.sri-grid-actions .active,
.sri-row-actions a:first-child {
  background: #004aad;
  border-color: #004aad;
  color: #ffffff;
}

.sri-grid-command {
  background: #ffffff;
  border: 1px solid #d9e5f1;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.sri-grid-upload {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #cfe0f3;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, auto);
  padding: 14px;
}

.sri-grid-upload strong {
  color: #0f172a;
  display: block;
  font-size: 16px;
}

.sri-grid-upload span {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}

.sri-grid-upload-form {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.sri-grid-upload-form input {
  background: #ffffff;
  border: 1px solid #b9cbe0;
  border-radius: 6px;
  color: #172033;
  min-height: 36px;
  padding: 7px;
}

.sri-grid-upload-form button {
  background: #0f7a45;
  border: 1px solid #0f7a45;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-height: 36px;
  padding: 8px 13px;
}

.sri-grid-result {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #14532d;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
}

.sri-grid-result strong,
.sri-grid-result span {
  font-size: 12px;
  font-weight: 900;
}

.sri-grid-result span {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 5px 9px;
}

.sri-grid-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.sri-grid-kpis div {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.sri-grid-kpis span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sri-grid-kpis strong {
  color: #0f172a;
  font-size: 18px;
}

.sri-grid-card {
  background: #ffffff;
  border: 1px solid #c7d7ea;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  min-height: 420px;
  padding: 12px;
}

.sri-grid-card-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sri-grid-card-head h2 {
  color: #0f172a;
  font-size: 18px;
  margin: 0;
}

.sri-grid-card-head p {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin: 3px 0 0;
}

.sri-grid-card-head > span {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 10px;
}

.sri-grid-scroll {
  border: 1px solid #b9cbe0;
  border-radius: 8px;
  max-height: calc(100vh - 340px);
  min-height: 330px;
  overflow: auto;
}

.sri-data-grid {
  border-collapse: collapse;
  min-width: 1260px;
  width: 100%;
}

.sri-data-grid th,
.sri-data-grid td {
  border: 1px solid #c7d7ea;
  color: #172033;
  font-size: 13px;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.sri-data-grid th {
  background: #eaf3ff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 3;
}

.sri-data-grid tbody tr:nth-child(even) td {
  background: #f8fbff;
}

.sri-data-grid tbody tr:hover td {
  background: #eef7ff;
}

.sri-data-grid .money {
  font-weight: 900;
  text-align: right;
}

.sri-data-grid .mono {
  font-family: Consolas, "Courier New", monospace;
  min-width: 390px;
}

.sri-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 9px;
}

.sri-status.imported {
  background: #dbeafe;
  color: #1d4ed8;
}

.sri-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.sri-status.error {
  background: #fee2e2;
  color: #991b1b;
}

.sri-status.posted {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 900px) {
  .sri-grid-header,
  .sri-grid-upload {
    grid-template-columns: 1fr;
  }

  .sri-grid-upload-form {
    justify-content: flex-start;
  }

  .sri-grid-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .purchase-import-summary {
    grid-template-columns: 1fr 1fr;
  }
}

.proveedores-screen .product-module-icon {
  border-radius: 8px;
  font-size: 18px;
  height: 30px;
  width: 32px;
}

.contacts-list-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.contacts-list-screen .fixed-grid-filter-card {
  flex: 0 0 auto;
}

.contacts-list-screen .fixed-grid-card {
  display: grid;
  flex: 1 1 auto;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.customer-admin-grid,
.supplier-admin-grid {
  background: #fff;
  border: 1px solid #cbdff4;
  border-radius: 9px;
  display: block;
  height: 100%;
  max-width: 100%;
  min-height: 0;
  overflow: auto;
  padding: 0;
}

.customer-grid-head,
.customer-grid-row {
  align-items: center;
  display: grid;
  grid-template-columns: 142px 70px minmax(280px, 1.5fr) 126px minmax(210px, 1fr) 130px minmax(160px, .8fr) minmax(260px, 1.1fr) 82px;
  min-width: 1460px;
}

.supplier-grid-head,
.supplier-grid-row {
  align-items: center;
  display: grid;
  grid-template-columns: 140px 72px minmax(280px, 1.4fr) 128px minmax(200px, 1fr) minmax(170px, 1fr) 112px 130px 82px;
  min-width: 1320px;
}

.customer-grid-head,
.supplier-grid-head {
  background: #edf5ff;
  border-bottom: 1px solid #cbdff4;
  color: #001f49;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  position: sticky;
  top: 0;
  text-transform: uppercase;
  z-index: 3;
}

.customer-grid-head span,
.supplier-grid-head span {
  align-items: center;
  border-right: 1px solid #d7e7f7;
  display: flex;
  min-height: 31px;
  padding: 7px 10px;
}

.customer-admin-grid .customer-grid-row,
.supplier-admin-grid .supplier-grid-row {
  background: #f8fbff;
  border: 1px solid #c9d8eb;
  border-radius: 9px;
  box-shadow: none;
  color: #001d38;
  gap: 0;
  margin: 8px;
  padding: 0;
  text-decoration: none;
}

.customer-admin-grid .customer-grid-row:hover,
.supplier-admin-grid .supplier-grid-row:hover {
  background: #eef7ff;
  border-color: #9ec7ef;
}

.customer-list-link,
.supplier-list-link {
  cursor: pointer;
}

.customer-grid-row > input,
.customer-grid-row > select {
  border: 1px solid #c9d8eb;
  border-radius: 8px;
  color: #001d38;
  font-size: 10px;
  height: 26px;
  margin: 8px 4px;
  min-width: 0;
  padding: 4px 7px;
  width: calc(100% - 8px);
}

.customer-grid-row strong,
.customer-grid-row span,
.customer-grid-row b,
.supplier-grid-row strong,
.supplier-grid-row span,
.supplier-grid-row b {
  align-items: center;
  border-right: 1px solid #d7e2ee;
  display: flex;
  font-size: 10px;
  min-height: 42px;
  overflow: hidden;
  padding: 8px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-grid-row strong,
.customer-grid-row b,
.supplier-grid-row strong,
.supplier-grid-row b {
  color: #001f49;
  font-weight: 900;
}

.customer-grid-row .mini-check {
  gap: 5px;
  justify-content: center;
  padding: 8px 6px;
}

.customer-grid-row .mini-check input {
  width: auto;
}

.customer-grid-row .icon-action {
  align-self: center;
  font-size: 10px;
  height: 24px;
  justify-self: center;
  min-height: 24px;
  padding: 0;
  width: 28px;
}

.customer-admin-grid .empty-state,
.supplier-admin-grid .empty-state {
  margin: 8px;
}

@media (max-width: 900px) {
  .customer-admin-grid,
  .supplier-admin-grid {
    border-radius: 8px;
  }
}

.credit-note-list-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.credit-note-list-screen .report-filter {
  grid-template-columns: 150px 150px minmax(280px, 1fr) 44px auto;
}

.purchase-nc-list-shell .report-filter {
  grid-template-columns: 130px 130px 110px 140px minmax(280px, 1fr) 44px auto;
}

.credit-note-list-screen .report-filter .erp-search-icon-button,
.purchase-nc-list-shell .report-filter .erp-search-icon-button {
  height: 35px;
  min-height: 35px;
  width: 40px;
}

@media (max-width: 900px) {
  .credit-note-list-screen .report-filter,
  .purchase-nc-list-shell .report-filter {
    grid-template-columns: 1fr;
  }

  .credit-note-list-screen .report-filter .erp-search-icon-button,
  .purchase-nc-list-shell .report-filter .erp-search-icon-button {
    justify-self: stretch;
    width: 100%;
  }
}

.credit-note-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.credit-note-kpis article {
  background: #fff;
  border: 1px solid #cbdff4;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(15, 35, 70, .07);
  padding: 12px 14px;
}

.credit-note-kpis span {
  color: #53677f;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.credit-note-kpis strong {
  color: #001f49;
  display: block;
  font-size: 22px;
  margin-top: 5px;
}

.credit-note-kpis .ok {
  color: #087a38;
}

.credit-note-kpis .warn {
  color: #b77900;
}

.credit-note-grid-wrap {
  height: 100%;
  max-height: calc(100vh - 285px);
  overflow: auto;
}

.sales-invoice-grid-wrap {
  height: min(500px, calc(100vh - 235px));
  max-height: 500px;
  min-height: 420px;
  overflow: auto;
}

.sales-list-screen .sales-invoice-grid-wrap .invoice-datagrid th,
.sales-list-screen .sales-invoice-grid-wrap .invoice-datagrid td {
  line-height: 1.15;
  padding: 5px 8px;
}

.sales-invoice-grid-wrap .invoice-datagrid th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.sales-list-screen .invoice-row.has-entry {
  cursor: pointer;
}

.sales-list-screen .invoice-row.has-entry:hover td {
  background: #f3f8ff;
}

.sales-list-screen .invoice-row.no-entry {
  cursor: default;
}

.credit-note-list-screen .credit-note-row.has-entry {
  cursor: pointer;
}

.credit-note-list-screen .credit-note-row.has-entry:hover td {
  background: #f3f8ff;
}

.credit-note-list-screen .credit-note-row.no-entry {
  cursor: default;
}

.credit-note-grid th,
.credit-note-grid td {
  white-space: nowrap;
}

.credit-note-grid td:nth-child(5) {
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.credit-note-grid .inline-icon-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-start;
  min-width: 150px;
}

.sales-list-screen .inline-icon-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.sales-list-screen .inline-icon-actions .icon-action {
  align-items: center;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  min-height: 28px;
  padding: 0;
  width: 34px;
}

.sales-list-screen .inline-icon-actions .icon-action:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.sales-entry-modal[hidden] {
  display: none !important;
}

.sales-entry-modal {
  align-items: center;
  background: rgba(15, 23, 42, .72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 10000;
}

.sales-entry-panel {
  background: #f8fbff;
  border: 1px solid #b8d7f2;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .32);
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  max-width: 1180px;
  min-height: 420px;
  overflow: hidden;
  width: min(1180px, 96vw);
}

.sales-entry-panel .purchase-detail-head {
  align-items: center;
  background: linear-gradient(135deg, #10233f, #004aad);
  color: #ffffff;
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  padding: 14px 16px;
}

.sales-entry-panel .purchase-detail-head span {
  color: #98d7c2;
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-entry-panel .purchase-detail-head strong {
  display: block;
  font-size: 18px;
}

.sales-entry-panel .purchase-detail-head button,
.sales-entry-panel .purchase-detail-actions button,
.sales-entry-panel .purchase-detail-actions-inline button {
  background: #f2b705;
  border: 0;
  border-radius: 8px;
  color: #10233f;
  cursor: pointer;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 12px;
}

.sales-entry-panel .purchase-detail-body {
  display: grid;
  flex: 1;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.sales-entry-panel .purchase-detail-body h3 {
  color: #10233f;
  margin: 0 0 8px;
}

.sales-entry-panel .purchase-detail-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.sales-entry-panel .purchase-detail-summary div {
  background: #ffffff;
  border: 1px solid #d7e4f1;
  border-radius: 8px;
  padding: 9px;
}

.sales-entry-panel .purchase-detail-summary span {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-entry-panel .purchase-detail-summary b {
  color: #10233f;
  display: block;
  font-size: 13px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.sales-entry-panel .reports-table {
  border-collapse: collapse;
  min-width: 880px;
  width: 100%;
}

.sales-entry-panel .reports-table th,
.sales-entry-panel .reports-table td {
  border: 1px solid #d7e4f1;
  color: #10233f;
  font-size: 12px;
  padding: 8px;
  text-align: left;
}

.sales-entry-panel .reports-table th {
  background: #eef6ff;
  color: #003a78;
  font-weight: 900;
}

.sales-entry-panel .reports-table .num,
.sales-entry-panel .reports-table tfoot th {
  text-align: right;
}

.sales-entry-panel .purchase-detail-actions {
  background: #ffffff;
  border-top: 1px solid #d7e4f1;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  justify-content: flex-end;
  padding: 10px 14px;
}

.sales-list-screen .accounting-modal[hidden] {
  display: none !important;
}

.sales-list-screen .accounting-modal {
  align-items: center;
  background: rgba(7, 20, 44, .72);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
}

.sales-list-screen .accounting-modal-panel {
  background: #edf6ff;
  border: 1px solid #8db6dd;
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0, 16, 45, .36);
  color: #06172f;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  max-width: 1180px;
  overflow: hidden;
  width: min(1180px, 96vw);
}

.sales-list-screen .accounting-modal-head {
  align-items: center;
  background: linear-gradient(135deg, #0b2d57, #123f76);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.sales-list-screen .accounting-modal-head strong {
  font-size: 15px;
  letter-spacing: .02em;
}

.sales-list-screen .accounting-modal-head button,
.sales-list-screen .diary-entry-actions button {
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 900;
}

.sales-list-screen .accounting-modal-head button {
  background: #ffffff;
  color: #0b2d57;
  height: 30px;
  width: 34px;
}

.sales-list-screen .accounting-entry-detail {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.sales-list-screen .entry-ticket-head {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  margin-bottom: 10px;
}

.sales-list-screen .entry-ticket-head label {
  color: #17385f;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-list-screen .entry-ticket-head input {
  background: #fff;
  border: 1px solid #b9d1e8;
  border-radius: 7px;
  color: #07172f;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 4px;
  padding: 8px;
  width: 100%;
}

.sales-list-screen .entry-ticket-table {
  border-collapse: collapse;
  min-width: 1050px;
  width: 100%;
}

.sales-list-screen .entry-ticket-table th,
.sales-list-screen .entry-ticket-table td {
  border: 1px solid #8cb2d5;
  color: #07172f;
  font-size: 12px;
  padding: 7px 8px;
  white-space: nowrap;
}

.sales-list-screen .entry-ticket-table th {
  background: #dbeaf8;
  color: #082f5f;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 1;
}

.sales-list-screen .entry-ticket-table tbody tr:nth-child(odd) td {
  background: #ecfbff;
}

.sales-list-screen .entry-ticket-table .num {
  font-weight: 900;
  text-align: right;
}

.sales-list-screen .entry-ticket-totals {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 10px 0;
}

.sales-list-screen .entry-ticket-totals b {
  background: #fff;
  border: 1px solid #b9d1e8;
  border-radius: 8px;
  color: #063b77;
  min-width: 150px;
  padding: 8px 10px;
  text-align: right;
}

.sales-list-screen .entry-ticket-totals b:last-child {
  color: #c2410c;
}

.sales-list-screen .accounting-entry-detail textarea {
  background: #fff;
  border: 1px solid #b9d1e8;
  border-radius: 8px;
  color: #07172f;
  font-weight: 700;
  min-height: 72px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.sales-list-screen .diary-entry-actions {
  align-items: center;
  background: #dbeaf8;
  border-top: 1px solid #b9d1e8;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 10px 12px;
}

.sales-list-screen .diary-entry-actions button {
  background: #0f4aa2;
  color: #fff;
  padding: 9px 14px;
}

.sales-list-screen .diary-entry-actions button:last-child {
  background: #fff;
  color: #0f2d52;
}

.credit-note-grid .icon-action {
  align-items: center;
  display: inline-flex;
  flex: 0 0 34px;
  height: 28px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  min-height: 28px;
  padding: 0;
  width: 34px;
}

.credit-note-grid .inline-form {
  align-items: center;
  display: inline-flex;
  height: 28px;
  margin: 0;
}

.compact-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.credit-note-document-head {
  background: linear-gradient(135deg, #071d3a 0%, #103d78 100%);
  border: 1px solid #1f4f8b;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(12, 32, 66, .16);
  color: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 320px) 1fr;
  margin-bottom: 12px;
  padding: 14px;
}

.credit-note-title-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.credit-note-title-card span,
.credit-note-info-grid span,
.credit-note-total-panel span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.credit-note-title-card strong {
  color: #f5c04f;
  font-size: 24px;
  letter-spacing: .02em;
}

.credit-note-title-card small {
  color: #d6e6ff;
  font-size: 12px;
  font-weight: 800;
}

.credit-note-info-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.credit-note-info-grid article {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 8px;
  color: #0b2346;
  min-width: 0;
  padding: 9px 10px;
}

.credit-note-info-grid article span {
  color: #58708f;
  display: block;
}

.credit-note-info-grid article strong {
  display: block;
  font-size: 13px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-note-info-grid article.highlight {
  background: #fff4cf;
  border-color: #e2ad28;
}

.credit-note-info-grid article.highlight strong {
  color: #9a6100;
  font-size: 16px;
}

.credit-note-total-panel {
  align-items: stretch;
  background: #f7fbff;
  border: 1px solid #bfd2e7;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  margin: 12px 0;
  padding: 10px;
}

.credit-note-total-panel div {
  background: #fff;
  border: 1px solid #d5e4f3;
  border-radius: 8px;
  padding: 8px 10px;
}

.credit-note-total-panel span {
  color: #53677f;
  display: block;
}

.credit-note-total-panel strong {
  color: #003b82;
  display: block;
  font-size: 18px;
  margin-top: 4px;
  text-align: right;
}

.credit-note-total-panel .total {
  background: #fff4cf;
  border-color: #dfad31;
}

.credit-note-total-panel .total strong {
  color: #a66a00;
  font-size: 22px;
}

#manualDiscountBlock input {
  border: 1px solid #bfd2e7;
  border-radius: 7px;
  font-size: 12px;
  height: 30px;
  padding: 5px 8px;
  width: 100%;
}

#manualDiscountBlock td:nth-child(2) input,
#manualDiscountBlock td:nth-child(3) input {
  text-align: right;
}

.credit-note-applied td {
  background: #ecfdf3;
}

.credit-note-ready td {
  background: #eff6ff;
}

.credit-note-pending td {
  background: #fff8db;
}

.status-pill.success {
  background: #dcfce7;
  color: #166534;
}

.status-pill.warning {
  background: #fef3c7;
  color: #92400e;
}

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

.inline-icon-actions .icon-action[disabled] {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: .45;
}

@media (max-width: 900px) {
  .credit-note-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .credit-note-document-head,
  .credit-note-info-grid,
  .credit-note-total-panel {
    grid-template-columns: 1fr;
  }
}
.check-payment-rows{grid-column:1/-1;display:grid;gap:6px}
.check-payment-row{display:grid;grid-template-columns:1fr 120px 90px 34px;align-items:center;gap:6px;padding:6px;border:1px solid #d7e2ee;background:#f8fbff;font-size:12px}

.cash-expense-top {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
}

.cash-expense-single {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(320px, .9fr) minmax(260px, .55fr);
}

.cash-expense-card {
  padding: 14px;
}

.compact-head {
  align-items: center;
  margin-bottom: 10px;
}

.compact-head h2,
.compact-head h3 {
  font-size: 18px;
  margin: 0;
}

.compact-head p {
  color: #50627a;
  font-size: 12px;
  margin: 2px 0 0;
}

.cash-expense-form,
.cash-expense-type-form,
.cash-expense-filters {
  align-items: end;
  display: grid;
  gap: 8px;
}

.cash-expense-form {
  grid-template-columns: 128px minmax(180px, 1fr) 110px;
}

.cash-expense-type-form {
  grid-template-columns: minmax(140px, .8fr) minmax(210px, 1.2fr) auto auto;
}

.cash-expense-filters {
  grid-template-columns: repeat(5, minmax(120px, 1fr)) 120px;
}

.cash-expense-form .span-2,
.cash-expense-type-form .span-2 {
  grid-column: span 2;
}

.cash-expense-types-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  max-height: 210px;
  overflow: auto;
}

.cash-expense-types-list.standalone {
  max-height: calc(100vh - 330px);
}

.cash-expense-type-row {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #d9e6f5;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.4fr) 76px 42px;
  padding: 6px;
}

.cash-expense-type-row input,
.cash-expense-type-row select {
  min-height: 30px;
}

.cash-expense-type-screen {
  padding: 16px;
}

.expense-type-grid {
  gap: 0;
  max-height: calc(100vh - 240px);
  overflow: auto;
}

.expense-type-grid .product-grid-head,
.expense-type-grid .expense-type-display-row {
  grid-template-columns: minmax(220px, .9fr) minmax(360px, 1.3fr) 96px 70px;
}

.expense-type-grid .expense-type-display-row {
  align-items: center;
  cursor: pointer;
  min-height: 46px;
  padding: 8px 10px;
}

.expense-type-grid .expense-type-display-row .product-list-cell {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-type-grid .expense-type-display-row .product-row-actions {
  justify-content: flex-end;
  margin-left: 0;
  padding: 0;
}

.expense-type-status {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  justify-self: start;
  padding: 5px 8px;
}

.expense-type-status.on {
  background: #dcfce7;
  color: #166534;
}

.expense-type-status.off {
  background: #e5e7eb;
  color: #4b5563;
}

.expense-type-modal {
  max-width: 620px;
}

.expense-type-modal .soft-modal-head h2 {
  color: #fff !important;
}

.check-pill {
  align-items: center;
  border: 1px solid #d4e3f3;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  min-height: 34px;
  padding: 6px 10px;
}

.cash-expense-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cash-expense-summary span {
  background: #eef5ff;
  border: 1px solid #d7e6f7;
  border-radius: 8px;
  color: #0a2240;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
}

.cash-expense-option-grid {
  display: grid;
  gap: 8px;
}

.cash-expense-option-grid a {
  background: #f8fbff;
  border: 1px solid #d9e6f5;
  border-radius: 8px;
  color: #082b55;
  display: grid;
  gap: 2px;
  padding: 10px;
  text-decoration: none;
}

.cash-expense-option-grid b {
  font-size: 13px;
}

.cash-expense-option-grid span {
  color: #50627a;
  font-size: 12px;
}

.cash-expense-table-wrap {
  max-height: calc(100vh - 410px);
  overflow: auto;
}

.cash-expense-table th,
.cash-expense-table td {
  font-size: 12px;
  padding: 7px 8px;
}

.muted-row td {
  color: #7a8797;
  text-decoration: line-through;
}

.danger-mini {
  background: #ffe2e2;
  border: 0;
  border-radius: 7px;
  color: #a91818;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 8px;
}

.soft-modal.show {
  display: flex;
}

.soft-modal-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(8, 29, 58, .24);
  max-height: 88vh;
  max-width: 760px;
  overflow: auto;
  padding: 16px;
  width: min(94vw, 760px);
}

.soft-modal-card textarea {
  min-height: 82px;
}

.cash-expense-close-detail {
  max-width: 860px;
}

@media (max-width: 900px) {
  .cash-expense-top,
  .cash-expense-single,
  .cash-expense-form,
  .cash-expense-type-form,
  .cash-expense-filters {
    grid-template-columns: 1fr;
  }

  .cash-expense-form .span-2,
  .cash-expense-type-form .span-2 {
    grid-column: auto;
  }

  .expense-type-grid .product-grid-head {
    display: none;
  }

  .expense-type-display-row {
    grid-template-columns: 1fr;
  }

  .expense-type-display-row .product-row-actions {
    justify-content: flex-start;
  }
}
.check-payment-row button{height:28px;border:0;background:#dc2626;color:#fff;font-weight:800;cursor:pointer}

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

.guide-section {
  border: 1px solid #d7e4f2;
  border-radius: 10px;
  padding: 12px;
}

.compact-doc-screen {
  max-width: 1520px;
}

.compact-doc-screen .topbar {
  margin-bottom: 10px;
  min-height: auto;
}

.compact-doc-screen .topbar h1 {
  font-size: 24px;
  line-height: 1.1;
}

.compact-doc-screen .section-space {
  margin-top: 10px;
}

.compact-doc-screen > .card,
.compact-doc-screen .card {
  border-radius: 10px;
}

.delivery-guide-form-card,
.proforma-form-card {
  padding: 12px !important;
}

.delivery-guide-form-card > .product-toolbar,
.proforma-form-card > .product-toolbar {
  margin-bottom: 8px;
}

.delivery-guide-form-card .muted-text,
.proforma-form-card .muted-text {
  display: none;
}

.compact-doc-section {
  border-radius: 8px;
  padding: 9px;
}

.guide-section h3 {
  color: #082f63;
  font-size: 13px;
  line-height: 1;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.guide-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
}

.guide-wide {
  grid-column: span 2;
}

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

.delivery-guide-form > input[type="hidden"] {
  display: none;
}

.delivery-guide-form .guide-products-section,
.delivery-guide-form .guide-recipient-section,
.delivery-guide-form > .main-button {
  grid-column: 1 / -1;
}

.delivery-guide-form > .main-button {
  justify-self: end;
}

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

.delivery-guide-form .guide-wide {
  grid-column: 1 / -1;
}

.guide-recipient-section .guide-grid {
  grid-template-columns: minmax(105px, .55fr) minmax(130px, .65fr) minmax(220px, 1.2fr) minmax(220px, 1.2fr);
}

.guide-recipient-section .guide-wide {
  grid-column: span 2;
}

.compact-doc-screen .field {
  gap: 2px;
}

.compact-doc-screen .field label,
.compact-doc-screen label {
  font-size: 10px;
  line-height: 1.1;
}

.compact-doc-screen input,
.compact-doc-screen select,
.compact-doc-screen textarea {
  border-radius: 7px;
  font-size: 12px;
  min-height: 30px;
  padding: 5px 8px;
}

.compact-doc-screen .main-button,
.compact-doc-screen .secondary-link.compact,
.compact-doc-screen button.secondary-link.compact {
  min-height: 30px;
  padding: 6px 10px;
}

.delivery-guide-form input,
.delivery-guide-form select,
.guide-items-table input {
  min-width: 0;
  width: 100%;
}

.guide-items-table {
  table-layout: fixed;
  min-width: 760px;
}

.guide-items-table th:nth-child(1),
.guide-items-table th:nth-child(2) {
  width: 18%;
}

.guide-items-table th:nth-child(4) {
  width: 110px;
}

.guide-items-table th:nth-child(5) {
  width: 48px;
}

.proforma-form {
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.6fr);
}

.proforma-sale-card .proforma-form {
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr;
}

.proforma-billing-form {
  --billing-table-font-size: 11px;
  --billing-total-font-size: 15px;
  --billing-total-label-width: 118px;
  --billing-total-value-width: 126px;
}

.proforma-general-strip {
  background: #f7faff;
  border: 1px solid #d7e4f2;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(150px, .8fr) minmax(240px, 1.4fr) 125px 125px 112px minmax(120px, .7fr) minmax(180px, 1fr);
  padding: 8px;
}

.proforma-general-strip .field {
  min-width: 0;
}

.proforma-general-strip .proforma-client-select select,
.proforma-general-strip .proforma-observation input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.proforma-items-section {
  background: #fff;
}

.proforma-items-section.billing-items-table {
  margin-top: 0;
}

.proforma-items-head,
.proforma-manual-row {
  grid-template-columns: minmax(310px, 1fr) 72px 90px 90px 110px 95px 110px 34px;
  min-width: 910px;
}

.proforma-product-cell {
  display: block;
}

.proforma-product-cell input[type="hidden"] {
  display: none;
}

.proforma-manual-row .line-subtotal,
.proforma-manual-row .line-iva,
.proforma-manual-row .line-total {
  min-height: 30px;
}

.proforma-manual-row .line-remove-button {
  align-self: center;
  border-radius: 999px !important;
  height: 24px !important;
  justify-self: center;
  min-height: 24px !important;
  min-width: 24px !important;
  width: 24px !important;
}

.proforma-summary-row {
  gap: 16px;
  justify-content: flex-end;
}

.proforma-billing-total-panel {
  margin-top: 0;
}

.proforma-form-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.proforma-form > input[type="hidden"] {
  display: none;
}

.proforma-detail-section,
.proforma-form > .main-button {
  grid-column: 1 / -1;
}

.proforma-form > .main-button {
  justify-self: end;
}

.proforma-head-section .guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proforma-items-table {
  table-layout: fixed;
  min-width: 860px;
}

.proforma-items-table input,
.proforma-items-table select {
  min-width: 0;
  width: 100%;
}

.proforma-items-table th:nth-child(1) {
  width: 160px;
}

.proforma-items-table th:nth-child(2) {
  width: auto;
}

.proforma-items-table th:nth-child(3),
.proforma-items-table th:nth-child(4),
.proforma-items-table th:nth-child(5),
.proforma-items-table th:nth-child(6),
.proforma-items-table th:nth-child(7) {
  width: 86px;
}

.proforma-items-table th:nth-child(8) {
  width: 48px;
}

.proforma-total-panel {
  gap: 6px;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  margin: 8px 0 0;
  padding: 7px;
}

.proforma-total-panel div {
  padding: 6px 8px;
}

.proforma-total-panel strong {
  font-size: 15px;
}

.proforma-total-panel .total strong {
  font-size: 18px;
}

.proforma-list-card {
  padding: 12px !important;
}

.proforma-print-totals {
  display: grid;
  gap: 4px;
  justify-content: end;
  text-align: right;
}

.sri-steps-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.compact-list-wrap {
  max-height: 360px;
  overflow: auto;
}

.compact-doc-filter {
  align-items: end;
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) 44px;
  margin: 0;
}

.compact-doc-filter .field {
  min-width: 0;
}

.compact-doc-filter button {
  white-space: nowrap;
}

.compact-doc-filter .erp-search-icon-button {
  height: 35px;
  justify-self: start;
  min-height: 35px;
  width: 40px;
}

.compact-doc-screen .invoice-datagrid {
  font-size: 12px;
}

.compact-doc-screen .invoice-datagrid th,
.compact-doc-screen .invoice-datagrid td {
  padding: 5px 7px;
  vertical-align: middle;
}

.compact-doc-screen .invoice-datagrid small {
  display: block;
  font-size: 10px;
  line-height: 1.1;
  margin-top: 2px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-doc-screen .product-toolbar {
  min-height: auto;
}

.compact-doc-screen .product-toolbar.compact-toolbar {
  gap: 8px;
  padding: 0;
}

.compact-doc-screen .form-title {
  font-size: 15px;
  line-height: 1.1;
}

.compact-doc-screen .inline-icon-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.compact-doc-screen .inline-form {
  align-items: center;
  display: inline-flex;
  gap: 4px;
  margin: 0;
}

.compact-doc-screen .inline-form select {
  max-width: 92px;
  min-height: 26px;
  padding: 3px 6px;
}

.compact-doc-screen .mini-link {
  display: inline-flex;
  line-height: 1.1;
  white-space: nowrap;
}

.compact-proformas-list,
.compact-guides-list {
  min-width: 980px;
  table-layout: fixed;
}

.compact-proformas-list th:nth-child(1) {
  width: 150px;
}

.compact-proformas-list th:nth-child(2),
.compact-proformas-list th:nth-child(3) {
  width: 86px;
}

.compact-proformas-list th:nth-child(5) {
  width: 90px;
}

.compact-proformas-list th:nth-child(6) {
  width: 100px;
}

.compact-proformas-list th:nth-child(7) {
  width: 110px;
}

.compact-proformas-list th:nth-child(8) {
  width: 250px;
}

.compact-guides-list th:nth-child(1) {
  width: 150px;
}

.compact-guides-list th:nth-child(2),
.compact-guides-list th:nth-child(4),
.compact-guides-list th:nth-child(7),
.compact-guides-list th:nth-child(8) {
  width: 82px;
}

.compact-guides-list th:nth-child(5) {
  width: 140px;
}

.compact-guides-list th:nth-child(6) {
  width: 180px;
}

.compact-guides-list th:nth-child(9) {
  width: 130px;
}

.compact-proformas-list td,
.compact-guides-list td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-guides-list td:nth-child(6),
.compact-guides-list td:nth-child(5) small {
  font-family: Consolas, Monaco, monospace;
  font-size: 10px;
  white-space: nowrap;
}

.compact-doc-screen .status-pill {
  border-radius: 999px;
  font-size: 10px;
  padding: 3px 7px;
  white-space: nowrap;
}

.compact-doc-screen .notice-box,
.compact-doc-screen .alert {
  margin: 8px 0;
  padding: 8px 10px;
}

.compact-doc-screen .icon-action {
  height: 26px;
  min-width: 26px;
  width: 26px;
}

.guide-products-section .invoice-datagrid-wrap,
.proforma-detail-section .invoice-datagrid-wrap {
  max-height: 230px;
  overflow: auto;
}

.guide-products-section .invoice-datagrid th,
.proforma-detail-section .invoice-datagrid th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.sri-step {
  border: 1px solid #d7e4f2;
  border-radius: 8px;
  padding: 9px 10px;
}

.sri-step strong,
.sri-step span {
  display: block;
}

.sri-step span {
  color: #53677f;
  font-size: 12px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.sri-step-ok {
  background: #ecfdf3;
  border-color: #9edbb2;
}

.sri-step-error {
  background: #fff1f2;
  border-color: #fecdd3;
}

.sri-step-pending {
  background: #fff8db;
  border-color: #f2d77a;
}

.ride-body {
  background: #e9eef5;
  color: #0b1930;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 18px;
}

.ride-page {
  background: #fff;
  border: 1px solid #cfd9e6;
  margin: 0 auto;
  max-width: 920px;
  padding: 24px;
}

.ride-head {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr .8fr;
}

.ride-head h1 {
  font-size: 24px;
  margin: 0 0 4px;
}

.ride-head p {
  margin: 4px 0;
}

.ride-doc-box,
.ride-access,
.ride-section,
.ride-grid article {
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  padding: 12px;
}

.ride-doc-box h2 {
  font-size: 16px;
  margin: 0 0 10px;
}

.ride-doc-box strong,
.ride-doc-box span {
  display: block;
  margin-top: 8px;
}

.ride-access {
  margin-top: 14px;
  overflow-wrap: anywhere;
}

.ride-barcode {
  display: block;
  margin-top: 8px;
  max-width: 100%;
}

.ride-barcode svg {
  height: 54px;
  width: 100%;
}

.print-barcode-table {
  border: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  line-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100% !important;
}

.print-barcode-table td {
  border: 0 !important;
  line-height: 0 !important;
  padding: 0 !important;
}

.sri-validation-qr,
.print-qr {
  display: block;
  margin: 10px auto 0;
  text-align: center;
}

.sri-validation-qr img,
.print-qr img {
  height: 120px;
  max-width: 100%;
  object-fit: contain;
  width: 120px;
}

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

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

.ride-grid h3,
.ride-section h3 {
  color: #082f63;
  margin: 0 0 8px;
}

.ride-grid p,
.ride-section p {
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.ride-section {
  margin-top: 12px;
}

.ride-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.ride-table th,
.ride-table td {
  border: 1px solid #d8e2ee;
  padding: 7px;
  overflow-wrap: anywhere;
  text-align: left;
}

.ride-table th {
  background: #f2f6fb;
}

.ride-table .right {
  text-align: right;
}

.ride-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .guide-grid,
  .delivery-guide-form,
  .proforma-form,
  .proforma-general-strip,
  .compact-doc-filter,
  .proforma-head-section .guide-grid,
  .ride-head,
  .ride-grid,
  .ride-grid.compact {
    grid-template-columns: 1fr;
  }

  .guide-wide,
  .guide-recipient-section .guide-wide,
  .proforma-detail-section,
  .proforma-form > .main-button {
    grid-column: auto;
  }

  .compact-list-wrap {
    max-height: none;
  }

  .delivery-guide-form > .main-button,
  .proforma-form > .main-button,
  .compact-doc-filter button {
    justify-self: stretch;
  }
}

@media print {
  .ride-body {
    background: #fff;
    padding: 0;
  }

  .ride-page {
    border: 0;
    max-width: none;
    padding: 0;
  }

  .no-print {
    display: none !important;
  }
}

.purchase-detail-head,
.sales-entry-panel .purchase-detail-head,
.sales-list-screen .accounting-modal-head,
.card-payment-titlebar,
.soft-modal-head {
  color: #fff !important;
}

.purchase-detail-head h1,
.purchase-detail-head h2,
.purchase-detail-head h3,
.purchase-detail-head strong,
.purchase-detail-head p,
.sales-entry-panel .purchase-detail-head h1,
.sales-entry-panel .purchase-detail-head h2,
.sales-entry-panel .purchase-detail-head h3,
.sales-entry-panel .purchase-detail-head strong,
.sales-entry-panel .purchase-detail-head p,
.sales-list-screen .accounting-modal-head h1,
.sales-list-screen .accounting-modal-head h2,
.sales-list-screen .accounting-modal-head h3,
.sales-list-screen .accounting-modal-head strong,
.sales-list-screen .accounting-modal-head p,
.card-payment-titlebar h1,
.card-payment-titlebar h2,
.card-payment-titlebar h3,
.card-payment-titlebar strong,
.card-payment-titlebar span,
.soft-modal-head h1,
.soft-modal-head h2,
.soft-modal-head h3,
.soft-modal-head strong {
  color: #fff !important;
}

/* Tema global configurable desde Diseno de facturacion */
body,
.erp-screen,
.reports-body,
.mobile-dashboard-body {
  background: var(--erp-bg, #eef4fb) !important;
  color: var(--erp-text, #001b44);
}
.topbar,
.reports-topbar,
.window-head,
.top,
.rva-top,
.cxc-report-head,
.rxp-top,
.purchase-report-topbar,
.soft-modal-head,
.box-head,
.cc-top,
.bank-recon-card header,
.card,
.design-panel,
.module-card-link,
.reports-shortcuts a,
.admin-window,
.invoice-panel,
.dashboard-card,
.summary-card {
  border-color: var(--erp-line, #cbdcf0) !important;
}
.topbar,
.reports-topbar,
.window-head,
.top,
.rva-top,
.cxc-report-head,
.rxp-top,
.purchase-report-topbar,
.soft-modal-head,
.box-head,
.cc-top,
.bank-recon-card header {
  background: var(--erp-surface, #ffffff) !important;
  color: var(--erp-text, #001b44) !important;
  border: 1px solid var(--erp-line, #cbdcf0) !important;
  box-shadow: 0 8px 22px rgba(9, 34, 73, .06) !important;
}
.topbar h1,
.topbar h2,
.topbar h3,
.reports-topbar h1,
.reports-topbar h2,
.reports-topbar h3,
.window-head h1,
.window-head h2,
.window-head h3,
.top h1,
.top h2,
.top h3,
.rva-top h1,
.cxc-report-head h1,
.rxp-top h1,
.soft-modal-head h1,
.soft-modal-head h2,
.soft-modal-head h3,
.box-head h1,
.box-head h2,
.box-head h3,
.cc-top h1,
.cc-top h2,
.cc-top h3,
.bank-recon-card header h1,
.bank-recon-card header h2,
.bank-recon-card header h3 {
  color: var(--erp-text, #001b44) !important;
  -webkit-text-fill-color: var(--erp-text, #001b44) !important;
  text-shadow: none !important;
}
.small-title,
.reports-topbar span,
.module-card-copy em,
.form-subtitle,
.muted-text {
  color: #5f7088 !important;
}
.logo-circle,
.main-button,
button.main-button,
.report-icon-action,
.cxc-btn,
.cxp-btn,
.rva-btn,
.cc-btn,
.bank-primary-button {
  background: var(--erp-accent, #f2b705) !important;
  color: var(--erp-primary, #082f49) !important;
  border-color: var(--erp-accent, #f2b705) !important;
}
.secondary-link,
.reports-actions a,
.top-actions a,
.rva-actions a,
.rva-chip,
.cxc-btn.secondary,
.cxp-btn.secondary,
.cc-btn.secondary {
  color: var(--erp-primary, #082f49) !important;
  border-color: var(--erp-line, #cbdcf0) !important;
}
.topbar h1,
.form-title,
.card h1,
.card h2,
.reports-topbar h1,
.window-head h2,
.invoice-brand-head h1 {
  color: var(--erp-primary, #082f49) !important;
}
.invoice-datagrid th,
.rva-table th,
.cxc-table th,
.cxp-table th,
.cc-table th,
.bank-table th,
.report-table th {
  background: var(--erp-soft, #eaf2ff) !important;
  color: var(--erp-primary, #0a336d) !important;
  border-color: var(--erp-line, #cbdcf0) !important;
}
.module-card-icon,
.invoice-ticket-pos h2 {
  color: var(--module-accent, var(--erp-primary, #174ea6)) !important;
}
.notice-box {
  border-color: #bfe8d0 !important;
  background: #ecfdf3 !important;
  color: #166534 !important;
}
.alert {
  border-color: #fecaca !important;
  background: #fff1f2 !important;
  color: var(--erp-danger, #9b1c1c) !important;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--erp-primary, #0b3b82) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--erp-primary, #0b3b82) 14%, transparent) !important;
}

/* Mesero: seleccion visual de mesas antes de tomar pedido */
.waiter-order-container {
  max-width: 980px;
  text-align: left;
}

.waiter-order-container > .logo-circle,
.waiter-order-container > .small-title,
.waiter-order-container > h1 {
  text-align: center;
}

.waiter-table-map {
  background: rgba(255, 255, 255, .92);
  border: 1px solid #c9daf2;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 38, 80, .16);
  margin: 0 auto 16px;
  padding: 18px;
}

.waiter-map-head {
  align-items: center;
  border-bottom: 1px solid #dce8f7;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.waiter-map-head span {
  color: #b27b00;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.waiter-map-head h2 {
  color: #082f49;
  font-size: 24px;
  line-height: 1.1;
  margin: 4px 0;
}

.waiter-map-head p {
  color: #536a86;
  font-size: 13px;
  margin: 0;
}

.waiter-map-logout,
.waiter-selected-table button {
  background: #fff;
  border: 1px solid #b9cef0;
  border-radius: 10px;
  color: #082f49;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

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

.waiter-table-card {
  align-items: center;
  background: #fff;
  border: 1px solid #c8d9f0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(18, 45, 82, .08);
  color: #082f49;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 46px 1fr auto;
  min-height: 86px;
  padding: 13px;
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  width: 100%;
}

.waiter-table-card:hover,
.waiter-table-card.active {
  border-color: #2f6bff;
  box-shadow: 0 14px 30px rgba(47, 107, 255, .14);
  transform: translateY(-1px);
}

.waiter-table-icon {
  align-items: center;
  background: #eaf2ff;
  border-radius: 12px;
  color: #0b5fe8;
  display: flex;
  font-size: 14px;
  font-weight: 950;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.waiter-table-info strong {
  color: #082f49;
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.waiter-table-info small {
  color: #5d718d;
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.waiter-table-action {
  background: #fff6db;
  border-radius: 999px;
  color: #946300;
  font-size: 11px;
  font-weight: 950;
  padding: 7px 9px;
  white-space: nowrap;
}

.waiter-empty-tables {
  background: #f8fbff;
  border: 1px dashed #a9c4e8;
  border-radius: 12px;
  color: #536a86;
  font-weight: 800;
  padding: 18px;
  text-align: center;
}

.waiter-order-card {
  margin: 0 auto;
  max-width: 520px;
  transition: opacity .15s ease, transform .15s ease;
}

.waiter-order-card.is-waiter-hidden {
  display: none;
}

.waiter-hidden-select {
  display: none;
}

.waiter-selected-table {
  align-items: center;
  background: #f7fbff;
  border: 1px solid #c8d9f0;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  margin: 6px 0 14px;
  padding: 10px 12px;
}

.waiter-selected-table span {
  color: #5d718d;
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.waiter-selected-table strong {
  color: #082f49;
  display: block;
  font-size: 15px;
  margin-top: 2px;
}

.waiter-table-map.is-compact .waiter-table-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.waiter-table-map.is-compact .waiter-table-card {
  grid-template-columns: 38px 1fr;
  min-height: 68px;
  padding: 10px;
}

.waiter-table-map.is-compact .waiter-table-icon {
  height: 38px;
  width: 38px;
}

.waiter-table-map.is-compact .waiter-table-action {
  display: none;
}

@media (max-width: 820px) {
  .waiter-order-container {
    max-width: 100%;
  }

  .waiter-table-grid,
  .waiter-table-map.is-compact .waiter-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .waiter-map-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .waiter-table-grid,
  .waiter-table-map.is-compact .waiter-table-grid {
    grid-template-columns: 1fr;
  }

  .waiter-table-card {
    grid-template-columns: 42px 1fr;
  }

  .waiter-table-action {
    grid-column: 1 / -1;
    text-align: center;
  }

  .waiter-selected-table {
    grid-template-columns: 1fr;
  }
}

.waiter-map-message {
  background: #ecfdf3;
  border: 1px solid #95e3b4;
  border-radius: 12px;
  color: #166534;
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 14px;
  padding: 10px 12px;
  text-align: left;
}


.waiter-map-message.is-visible {
  box-shadow: 0 10px 22px rgba(22, 101, 52, .16);
  outline: 2px solid rgba(39, 174, 96, .18);
}
.order-search-customer.reward-query-link[type="button"] {
  cursor: pointer;
}

/* Pedido: selector de categorias y busqueda compacta */
html,
body,
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

.order-menu-tools {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(120px, 170px) 1fr;
  margin: 8px 0 12px;
}

.order-menu-tools select,
.order-menu-tools input {
  background: #fff;
  border: 1px solid #b9cbe3;
  border-radius: 10px;
  color: #082f49;
  font-size: 16px;
  font-weight: 800;
  height: 38px;
  outline: none;
  padding: 8px 10px;
  width: 100%;
}

.order-menu-tools input {
  font-weight: 700;
}

.order-menu-tools select:focus,
.order-menu-tools input:focus {
  border-color: #0b5fe8;
  box-shadow: 0 0 0 3px rgba(11, 95, 232, .12);
}

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

.waiter-order-card .order-customer-line {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.waiter-order-card .order-search-customer {
  min-height: 38px;
}

@media (max-width: 520px) {
  .order-menu-tools {
    grid-template-columns: 1fr;
  }

  .waiter-order-card .order-customer-line {
    grid-template-columns: 1fr;
  }
}

/* Pedido: categorias y busqueda siempre horizontales */
.order-menu-tools {
  grid-template-columns: minmax(126px, 42%) minmax(0, 1fr);
  gap: 7px;
}

@media (max-width: 520px) {
  .order-menu-tools {
    grid-template-columns: minmax(122px, 42%) minmax(0, 1fr);
  }

  .order-menu-tools select,
  .order-menu-tools input {
    font-size: 16px;
    padding-left: 9px;
    padding-right: 9px;
  }
}
/* Mesero: mesas cuadradas con estado disponible/ocupada */
.waiter-table-grid {
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
}

.waiter-table-card {
  align-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  gap: 8px;
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 128px;
  padding: 14px 10px;
  text-align: center;
}

.waiter-table-card.is-available {
  background: #ecfdf3;
  border-color: #9ad8b5;
  box-shadow: 0 10px 24px rgba(22, 101, 52, .10);
}

.waiter-table-card.is-occupied {
  background: #fff1f2;
  border-color: #f2b8c1;
  box-shadow: 0 10px 24px rgba(185, 28, 28, .10);
}

.waiter-table-card:hover,
.waiter-table-card.active {
  box-shadow: 0 14px 30px rgba(15, 40, 80, .16);
  transform: translateY(-2px);
}

.waiter-table-card.is-available:hover,
.waiter-table-card.is-available.active {
  border-color: #22a967;
}

.waiter-table-card.is-occupied:hover,
.waiter-table-card.is-occupied.active {
  border-color: #e45d6b;
}

.waiter-table-card .waiter-table-icon {
  height: 48px;
  width: 48px;
}

.waiter-table-card.is-available .waiter-table-icon {
  background: #d9fbe8;
  color: #15803d;
}

.waiter-table-card.is-occupied .waiter-table-icon {
  background: #ffe1e6;
  color: #b91c1c;
}

.waiter-table-info strong {
  font-size: 16px;
  margin-bottom: 3px;
}

.waiter-table-status {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  padding: 5px 9px;
}

.waiter-table-card.is-available .waiter-table-status {
  background: #d9fbe8;
  color: #15803d;
}

.waiter-table-card.is-occupied .waiter-table-status {
  background: #ffe1e6;
  color: #b91c1c;
}

.waiter-table-action {
  display: none;
}

@media (max-width: 520px) {
  .waiter-table-grid,
  .waiter-table-map.is-compact .waiter-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .waiter-table-card,
  .waiter-table-map.is-compact .waiter-table-card {
    grid-template-columns: 1fr;
    min-height: 126px;
  }
}

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

@media (max-width: 520px) {
  .waiter-map-actions {
    justify-content: flex-start;
  }
}
/* Mesero: tarjetas limpias sin iniciales ni codigo */
.waiter-table-card .waiter-table-icon,
.waiter-table-info small {
  display: none !important;
}

.waiter-table-card {
  gap: 12px;
}

.waiter-table-info strong {
  font-size: 18px;
  line-height: 1.15;
  margin: 0;
}
/* Mesero: tarjetas con resumen de mesa */
.waiter-table-card {
  min-height: 154px;
  padding: 14px 10px 12px;
}

.waiter-table-pill {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  min-height: 24px;
  min-width: 78px;
  padding: 6px 11px;
  text-transform: uppercase;
}

.waiter-table-name {
  background: rgba(255, 255, 255, .68);
  color: #002b58;
}

.waiter-table-metrics {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  width: 100%;
}

.waiter-table-metrics span {
  align-items: center;
  color: #385274;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
}

.waiter-table-metrics b,
.waiter-table-metrics em {
  color: #001f42;
  font-style: normal;
  font-weight: 950;
  margin-right: 3px;
}

.waiter-table-card.is-available .waiter-table-name {
  background: #d9fbe8;
  color: #15803d;
}

.waiter-table-card.is-occupied .waiter-table-name {
  background: #ffe1e6;
  color: #b91c1c;
}
/* Pedidos listos agrupados por mesa */
.ready-table-group {
  background: #fff7f7;
  border: 1px solid #ffc9c9;
  border-left: 5px solid #d94135;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(13, 50, 93, .08);
  color: #0a2240;
  display: grid;
  gap: 8px;
  padding: 8px;
}

.ready-table-head {
  align-items: start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.ready-table-head h3 {
  color: #001a3d;
  font-size: 14px;
  line-height: 1.1;
  margin: 0 0 4px;
}

.ready-table-subtotal {
  color: #385274;
  display: block;
  font-size: 11px;
  font-weight: 900;
}

.ready-table-badges {
  align-items: flex-end;
  display: grid;
  gap: 4px;
  justify-items: end;
}

.ready-table-badges span {
  background: #fff1bf;
  border: 1px solid #f1d56c;
  border-radius: 999px;
  color: #674800;
  font-size: 9px;
  font-weight: 950;
  padding: 4px 7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ready-table-orders {
  display: grid;
  gap: 7px;
}

.ready-table-order {
  background: #ffffff;
  border: 1px solid #dce8f5;
  border-radius: 8px;
  padding: 6px;
}

.ready-table-order-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.ready-table-order-head strong {
  color: #001a3d;
  font-size: 11px;
  font-weight: 950;
}

.ready-table-order-head span {
  background: #0b2345;
  border-radius: 999px;
  color: #f2b705;
  font-size: 10px;
  font-weight: 950;
  padding: 4px 7px;
}

.ready-table-deliver {
  align-items: center;
  display: inline-flex;
  flex: 1 1 auto;
  font-size: 11px;
  font-weight: 950;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
}

@media (max-width: 560px) {
  .ready-table-head {
    display: grid;
  }

  .ready-table-badges {
    align-items: start;
    display: flex;
    flex-wrap: wrap;
    justify-items: start;
  }
}
/* Pedidos listos selector de mesas */
.ready-table-list {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.ready-table-card-only {
  background: #fff7f7;
  border: 1px solid #ffc9c9;
  border-left: 5px solid #d94135;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(13, 50, 93, .08);
  color: #0a2240;
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 10px;
  text-align: left;
}

.ready-table-card-only:hover {
  border-color: #e45d6b;
  box-shadow: 0 12px 24px rgba(13, 50, 93, .14);
  transform: translateY(-1px);
}

.ready-table-card-only strong {
  color: #001a3d;
  font-size: 16px;
  line-height: 1.1;
}

.ready-table-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ready-table-card-badges em {
  background: #fff1bf;
  border: 1px solid #f1d56c;
  border-radius: 999px;
  color: #674800;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  padding: 4px 7px;
  text-transform: uppercase;
}

.ready-table-detail-actions {
  display: flex;
  justify-content: flex-start;
}

.ready-table-detail {
  grid-column: 1 / -1;
}
/* Pedidos listos pendientes en detalle */
.ready-table-order.status-nuevo {
  background: #effcf4;
  border-color: #bce8cc;
}

.ready-table-order.status-preparando {
  background: #f8fbff;
  border-color: #cfe0f5;
}

.ready-table-order.status-listo {
  background: #ffffff;
  border-color: #dce8f5;
}

.ready-table-order-meta {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.ready-order-status {
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  padding: 4px 7px;
  text-transform: uppercase;
}

.ready-order-status.is-ready {
  background: #dff7e8;
  color: #087238;
}

.ready-order-status.is-pending {
  background: #e8f0ff;
  color: #00369d;
}
.ready-order-status.is-new {
  background: #dff7e8;
  color: #087238;
}

.ready-order-status.is-preparing {
  background: #e8f0ff;
  color: #00369d;
}
/* Pedidos listos encabezado optimizado */
.ready-table-detail {
  gap: 10px;
  padding: 12px;
}

.ready-table-detail-top {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr auto;
}

.ready-back-button {
  align-items: center;
  background: #f7fbff;
  border: 1px solid #d7e3f3;
  border-radius: 9px;
  color: #0a2240;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  gap: 5px;
  min-height: 36px;
  padding: 0 11px;
}

.ready-table-detail-top h3 {
  color: #001a3d;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-align: center;
}

.ready-total-pill {
  background: #fff0f2;
  border: 1px solid #ffd0d8;
  border-radius: 999px;
  color: #d12f5b;
  display: inline-flex;
  font-size: 13px;
  font-weight: 950;
  justify-content: center;
  min-width: 62px;
  padding: 8px 10px;
}

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

.ready-table-metrics span {
  align-items: center;
  border-radius: 9px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  gap: 6px;
  justify-content: center;
  min-height: 36px;
  padding: 0 8px;
  white-space: nowrap;
}

.ready-table-metrics b {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  height: 17px;
  justify-content: center;
  line-height: 1;
  width: 17px;
}

.metric-ready {
  background: #f1f8df;
  border: 1px solid #d9e9ad;
  color: #1f3d1e;
}

.metric-pending,
.metric-time {
  background: #fff6d8;
  border: 1px solid #efd67d;
  color: #47370a;
}

.ready-orders-title {
  color: #0a2240;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  margin: 3px 0 0;
}

@media (max-width: 420px) {
  .ready-table-detail-top {
    grid-template-columns: auto 1fr auto;
  }

  .ready-table-detail-top h3 {
    font-size: 19px;
  }

  .ready-table-metrics {
    gap: 6px;
  }

  .ready-table-metrics span {
    font-size: 10px;
    min-height: 32px;
    padding: 0 5px;
  }
}
/* Pedidos listos vista compacta 20260625 */
.kitchen-listos-screen .kitchen-shell {
  max-width: 390px;
  padding: 8px;
}

.kitchen-listos-screen .kitchen-topbar {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #c7d8f1;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(13, 50, 93, .10);
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  padding: 14px;
}

.kitchen-listos-screen .kitchen-topbar h1 {
  color: #001a3d;
  font-size: 24px;
  line-height: 1;
  margin: 0 0 6px;
}

.kitchen-listos-screen .kitchen-topbar .form-subtitle {
  color: #4a6280;
  font-size: 12px;
  margin: 0;
}

.kitchen-listos-screen .top-actions {
  justify-content: flex-start;
}

.kitchen-listos-screen .top-actions .secondary-link {
  min-height: 34px;
  padding: 0 14px;
}

.kitchen-listos-screen .kitchen-card {
  border: 0;
  box-shadow: none;
  padding: 0;
}

.kitchen-listos-screen .kitchen-title-tabs {
  display: none;
}

.kitchen-listos-screen .kitchen-panel-head {
  justify-content: flex-start;
  margin-bottom: 8px;
}

.kitchen-listos-screen .kitchen-summary-pill {
  background: #fff7d7;
  border: 1px solid #f4cf61;
  border-radius: 10px;
  box-shadow: none;
  color: #071f3d;
  font-size: 10px;
  min-height: 34px;
  width: 100%;
}

.ready-table-list {
  gap: 8px;
  grid-template-columns: 1fr;
}

.ready-table-card-only {
  background: linear-gradient(180deg, #fffafb 0%, #fff6f7 100%);
  border: 1px solid #ffc9d0;
  border-left: 4px solid #de3f35;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(13, 50, 93, .08);
  min-height: 96px;
  padding: 12px;
}

.ready-table-card-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ready-table-card-head strong {
  color: #001a3d;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1;
}

.ready-table-card-head b {
  background: #fff0f3;
  border: 1px solid #ffc7d3;
  border-radius: 999px;
  color: #cf3150;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  padding: 8px 12px;
}

.ready-table-card-badges {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ready-table-card-badges em {
  align-items: center;
  background: #fff4c8;
  border: 1px solid #edcc63;
  border-radius: 9px;
  color: #4e3a00;
  display: inline-flex;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  gap: 5px;
  justify-content: center;
  min-height: 32px;
  padding: 0 6px;
  text-transform: none;
  white-space: nowrap;
}

.ready-table-card-badges i {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-style: normal;
  height: 16px;
  justify-content: center;
  line-height: 1;
  width: 16px;
}

@media (max-width: 420px) {
  .kitchen-listos-screen .kitchen-shell {
    padding: 6px;
  }

  .ready-table-card-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ready-table-card-badges em {
    font-size: 9px;
    gap: 4px;
    padding: 0 4px;
  }
}
/* Pedidos listos cantidad y boton 20260625 */
.ready-table-order .button-row {
  align-items: center;
}

.ready-table-order .ready-table-deliver {
  flex: 0 1 170px;
  margin-left: auto;
  max-width: 170px;
  min-width: 130px;
  width: 70%;
}

@media (max-width: 360px) {
  .ready-table-order .ready-table-deliver {
    flex-basis: 150px;
    max-width: 150px;
    min-width: 120px;
  }
}
/* Mesero botones cabecera iguales 20260625 */
.waiter-map-actions .waiter-map-logout {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 32px;
  min-width: 118px;
  padding: 0 12px;
  text-align: center;
}

@media (max-width: 420px) {
  .waiter-map-actions .waiter-map-logout {
    min-width: 108px;
  }
}
/* Carrito pedido compacto premium 20260625 */
.cart-panel {
  background: linear-gradient(180deg, #fffdf5 0%, #fff7d8 100%);
  border: 2px solid #f2b705;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(8, 47, 73, .10);
  margin-top: 14px;
  padding: 10px;
}

.cart-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}

.cart-header h3 {
  color: #082f49;
  font-size: 18px;
  line-height: 1;
  margin: 0;
}

.cart-header span {
  background: #ffffff;
  border: 1px solid #e5d48d;
  border-radius: 999px;
  color: #43566f;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 9px;
}

.cart-row {
  background: #f8fbff;
  border: 1px solid #dce8f7;
  border-radius: 11px;
  box-shadow: 0 6px 14px rgba(8, 47, 73, .05);
  display: grid;
  gap: 7px;
  margin-bottom: 8px;
  padding: 8px;
}

.cart-product-line {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cart-product-line strong {
  color: #002b58;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  min-width: 0;
}

.cart-quantity {
  align-items: center;
  background: #e7f1fb;
  border: 1px solid #d3e3f5;
  border-radius: 999px;
  color: #082f49 !important;
  display: inline-flex !important;
  font-size: 10.5px !important;
  font-weight: 950;
  justify-content: center;
  line-height: 1;
  margin: 0 !important;
  min-height: 22px;
  min-width: 34px;
  padding: 0 8px;
}

.cart-note-preview {
  background: #fff9e8;
  border: 1px solid #f2df9b;
  border-radius: 8px;
  color: #6b5500;
  font-size: 11px;
  grid-column: 1 / -1;
  line-height: 1.25;
  margin-top: 2px;
  padding: 5px 7px;
}

.cart-summary-line {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(4, 24px) minmax(44px, 1fr) minmax(50px, 1fr);
  white-space: nowrap;
}

.cart-icon-button {
  align-items: center;
  border: 0 !important;
  border-radius: 999px !important;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 24px;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  width: 24px;
}

.cart-icon-button.danger {
  background: #ffe0df !important;
  color: #a11919 !important;
}

.cart-icon-button.has-note {
  background: #0b3f9f !important;
  color: #ffffff !important;
}

.cart-price {
  display: grid;
  gap: 2px;
  justify-items: center;
  min-width: 0;
}

.cart-price small {
  color: #51647b;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .4px;
  line-height: 1;
}

.cart-price span {
  color: #082f49;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
}

.cart-total {
  align-items: center;
  background: #ffffff;
  border: 1px solid #f0db87;
  border-radius: 11px;
  color: #082f49;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: space-between;
  margin: 10px 0 8px;
  padding: 9px 10px;
  text-align: left;
}

.cart-total strong {
  color: #001f42;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.cart-confirm-button {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  justify-content: center;
  min-height: 34px;
  width: 100%;
}

@media (max-width: 380px) {
  .cart-panel {
    padding: 9px;
  }

  .cart-summary-line {
    gap: 4px;
    grid-template-columns: repeat(4, 23px) minmax(42px, 1fr) minmax(48px, 1fr);
  }

  .cart-icon-button {
    height: 23px;
    width: 23px;
  }

  .cart-price span {
    font-size: 9px;
  }
}
/* Carrito nota en nombre y acciones comodas 20260625 */
.cart-name-button {
  background: transparent !important;
  border: 0 !important;
  color: #002b58 !important;
  cursor: pointer;
  display: inline-grid;
  gap: 3px;
  justify-items: start;
  line-height: 1.15;
  margin: 0;
  min-height: 30px;
  min-width: 0;
  padding: 0 !important;
  text-align: left;
}

.cart-name-button span {
  color: #002b58 !important;
  display: block;
  font-size: 12px !important;
  font-weight: 950;
  margin: 0 !important;
}

.cart-name-button em {
  background: #eaf2ff;
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  color: #0b5fe8;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  padding: 3px 6px;
}

.cart-name-button:focus-visible {
  border-radius: 8px;
  outline: 2px solid #2f6bff;
  outline-offset: 2px;
}

.cart-summary-line {
  gap: 7px;
  grid-template-columns: 30px 30px minmax(8px, 1fr) 30px minmax(46px, 1fr) minmax(54px, 1fr);
}

.cart-icon-button {
  font-size: 14px;
  height: 30px;
  width: 30px;
}

.cart-icon-button.danger {
  grid-column: 4;
}

.cart-price {
  align-self: center;
}

@media (max-width: 380px) {
  .cart-summary-line {
    gap: 6px;
    grid-template-columns: 29px 29px minmax(6px, 1fr) 29px minmax(42px, 1fr) minmax(50px, 1fr);
  }

  .cart-icon-button {
    height: 29px;
    width: 29px;
  }
}
/* Carrito separacion boton menos 20260625 */
.cart-summary-line {
  grid-template-columns: 30px 41px minmax(8px, 1fr) 30px minmax(46px, 1fr) minmax(54px, 1fr);
}

.cart-summary-line .cart-icon-button:nth-of-type(2) {
  justify-self: end;
}

@media (max-width: 380px) {
  .cart-summary-line {
    grid-template-columns: 29px 40px minmax(6px, 1fr) 29px minmax(42px, 1fr) minmax(50px, 1fr);
  }
}
/* Pedidos listos mostrar pendientes 20260625 */
.ready-table-card-only.is-pending-only {
  background: linear-gradient(180deg, #f8fbff 0%, #fff9e8 100%);
  border-color: #efd67d;
  border-left-color: #f2b705;
}

.ready-table-card-only.is-pending-only .ready-table-card-head b {
  background: #fff8de;
  border-color: #efd67d;
  color: #7a5700;
}

.ready-table-card-only.is-pending-only .ready-table-card-badges em:first-child {
  background: #eef4fb;
  border-color: #d6e3f2;
  color: #51647b;
}

.product-info {
  cursor: pointer;
  touch-action: manipulation;
}

/* Pedidos por despachos 20260701 */
.order-items-list li.dispatch-item-ready {
  align-items: center;
  background: #fff1f1;
  border: 1px solid #f7caca;
  border-radius: 8px;
  color: #8b1d1d;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 5px;
  padding: 7px 8px;
}
.order-items-list li.dispatch-item-pending {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.dispatch-item-ready .dispatch-item-text {
  opacity: .78;
  text-decoration: line-through;
}
.dispatch-item-button {
  align-items: center;
  background: #0f66e8;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 16px;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  min-width: 34px;
}
.dispatch-item-button:hover {
  background: #064db5;
}
.dispatch-item-done {
  background: #ffe1e1;
  border: 1px solid #f4b8b8;
  border-radius: 999px;
  color: #9a1f1f;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 950;
  padding: 4px 7px;
  text-transform: uppercase;
}
/* Boton enviar comanda a preparando 20260701 */
.order-table-title {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  min-width: 0;
}
.dispatch-prepare-button {
  align-items: center;
  background: #f2b705;
  border: 1px solid #d99a00;
  border-radius: 999px;
  color: #08224a;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 13px;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  min-width: 30px;
  padding: 0;
}
.dispatch-prepare-button:hover {
  background: #ffd24a;
}
/* Cantidad primero en comandas 20260701 */
.item-qty-first {
  color: #00369d;
  display: inline-block;
  font-size: 1.08em;
  font-weight: 950;
  min-width: 1.6em;
}
/* Pedido por despachos: boton inferior para revisar carrito */
.dispatch-confirm-bar {
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
  position: fixed;
  right: 0;
  z-index: 1200;
}

.dispatch-confirm-bar[hidden] {
  display: none;
}

.dispatch-confirm-button {
  align-items: center;
  background: linear-gradient(135deg, #0b5fe8 0%, #00369d 100%);
  border: 1px solid rgba(0, 54, 157, .4);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 42, 120, .28);
  color: #fff;
  cursor: pointer;
  display: grid;
  font-family: inherit;
  gap: 2px;
  max-width: 460px;
  min-height: 58px;
  padding: 9px 18px;
  pointer-events: auto;
  text-align: center;
  width: min(460px, calc(100vw - 24px));
}

.dispatch-confirm-button span {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
}

.dispatch-confirm-button strong {
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.dispatch-confirm-button:disabled,
.dispatch-confirm-bar.is-empty .dispatch-confirm-button {
  background: #dbe5f2;
  border-color: #c8d7ea;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
  color: #53657d;
  cursor: not-allowed;
}

.dispatch-confirm-button:disabled span,
.dispatch-confirm-button:disabled strong,
.dispatch-confirm-bar.is-empty .dispatch-confirm-button span,
.dispatch-confirm-bar.is-empty .dispatch-confirm-button strong {
  color: #53657d;
}

body.dispatch-orders-enabled:has(.dispatch-confirm-bar:not([hidden])) .container {
  padding-bottom: 88px;
}

@supports not selector(:has(*)) {
  body.dispatch-orders-enabled .container {
    padding-bottom: 88px;
  }
}
.dispatch-order-menu-tools {
  grid-template-columns: 1fr !important;
}

.dispatch-order-menu-tools input {
  width: 100%;
}
.dispatch-product-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-left: 12px;
}

.dispatch-product-row .product-info {
  min-width: 0;
}


.designer-modern-submit {
  background: #d97706;
  color: #fff;
}

.designer-modern-submit:hover {
  background: #b95f05;
  color: #fff;
}
.receipt-total-line,
.invoice-layout-payments {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.receipt-total-line td,
.invoice-layout-payments td {
  border: 0;
  padding: 2px 0;
  vertical-align: top;
}

.receipt-total-line .line-label,
.invoice-layout-payments .payment-label {
  overflow-wrap: anywhere;
  text-align: left;
  word-break: break-word;
}

.receipt-total-line .line-amount,
.invoice-layout-payments .payment-amount {
  text-align: right;
  white-space: nowrap;
  width: 28%;
}
.designer-field .barcode-content {
  align-items: stretch;
  bottom: 0;
  display: block;
  left: 0;
  line-height: 1;
  overflow: hidden;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.designer-field .barcode-content .ride-barcode,
.designer-field .barcode-content .print-barcode,
.designer-field .barcode-content svg {
  display: block;
  fill: #000;
  height: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
}

.designer-field .barcode-content .print-barcode-table {
  border: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  height: 100% !important;
  line-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100% !important;
}

.designer-field .barcode-content .print-barcode-table td {
  border: 0 !important;
  line-height: 0 !important;
  padding: 0 !important;
}
/* category liquidation layout 20260706 */
.category-screen .admin-row-list {
  border: 1px solid #cbdcf0 !important;
  border-radius: 10px !important;
  gap: 0 !important;
  overflow: auto !important;
}

.category-screen .category-grid-head,
.category-screen .category-list-row {
  align-items: center !important;
  display: grid !important;
  gap: 0 !important;
  grid-template-columns: 42px 160px 120px 62px 62px 58px 108px 72px 128px 128px 78px 72px 118px !important;
  min-width: 1308px !important;
  width: 100% !important;
}

.category-screen .category-grid-head.has-liquidation,
.category-screen .category-list-row.has-liquidation {
  grid-template-columns: 42px 160px 120px 62px 62px 58px 108px 72px 128px 128px 78px 118px 72px 118px !important;
  min-width: 1388px !important;
}

.category-screen .category-grid-head {
  background: #edf4fa !important;
  border-bottom: 1px solid #cbdcf0 !important;
  min-height: 38px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
}

.category-screen .category-grid-head span,
.category-screen .category-list-row > * {
  border-right: 1px solid #d7e4f3 !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  padding: 6px 6px !important;
}

.category-screen .category-grid-head span {
  line-height: 1.1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.category-screen .category-list-row {
  background: #fff !important;
  border-bottom: 1px solid #d9e6f5 !important;
  border-radius: 0 !important;
  min-height: 54px !important;
}

.category-screen .category-list-row:nth-child(even) {
  background: #f8fbff !important;
}

.category-screen .category-list-row input,
.category-screen .category-list-row select {
  background: #fff !important;
  border: 1px solid #c9d9ec !important;
  border-radius: 7px !important;
  color: #001d38 !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  min-height: 30px !important;
  padding: 4px 6px !important;
  width: 100% !important;
}

.category-screen .category-list-row input[type="time"] {
  font-size: 10.5px !important;
  padding: 3px 4px !important;
}

.category-screen .category-list-row .mini-check {
  align-items: center !important;
  display: inline-flex !important;
  gap: 4px !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.category-screen .category-list-row .mini-check input {
  flex: 0 0 auto !important;
  height: 15px !important;
  min-height: 15px !important;
  width: 15px !important;
}

.category-screen .row-id {
  align-items: center !important;
  color: #063873 !important;
  display: flex !important;
  font-weight: 900 !important;
  justify-content: center !important;
  text-align: center !important;
}

.category-screen .category-action-stack {
  align-items: stretch !important;
  display: grid !important;
  gap: 4px !important;
  grid-template-columns: 1fr !important;
  padding: 6px 8px !important;
}

.category-screen .category-save-button,
.category-screen .category-apply-button {
  border-radius: 7px !important;
  cursor: pointer !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  min-height: 24px !important;
  padding: 4px 6px !important;
  text-align: center !important;
  white-space: nowrap !important;
  width: 100% !important;
}

.category-screen .category-save-button {
  background: #f2b600 !important;
  border: 1px solid #d99b00 !important;
  color: #071b38 !important;
}

.category-screen .category-apply-button {
  background: #ffffff !important;
  border: 1px solid #cbdcf0 !important;
  color: #0b3978 !important;
}

@media (max-width: 1220px) {
  .report-designer {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .designer-inspector {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 900px) {
  .report-designer {
    grid-template-columns: 1fr;
  }

  .designer-canvas {
    max-width: 100%;
  }
}
.kitchen-area-mini{display:inline-flex;align-items:center;margin-left:6px;padding:2px 6px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:10px;font-weight:900;text-transform:uppercase;line-height:1.2;vertical-align:middle;white-space:nowrap}

.product-gallery-admin{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.product-gallery-admin-item{width:92px;border:1px solid #c8dbf4;border-radius:6px;background:#fff;padding:6px;display:grid;gap:5px;font-size:10px;color:#0b2b55}
.product-gallery-admin-item img{width:78px;height:62px;object-fit:cover;border-radius:4px;border:1px solid #dbe7f7;background:#f8fbff}
.product-gallery-admin-item span{display:flex;align-items:center;gap:4px;line-height:1.1}
/* category store visibility layout 20260709 */
.category-screen .category-store-cell {
  align-items: center !important;
  display: grid !important;
  gap: 4px !important;
  grid-template-columns: minmax(0, 1fr) 42px !important;
  padding: 5px !important;
}

.category-screen .category-store-cell .mini-check {
  border-right: 0 !important;
  min-height: 24px !important;
  padding: 0 !important;
}

.category-screen .category-store-cell .category-store-order {
  height: 26px !important;
  min-height: 26px !important;
  padding: 2px 3px !important;
  text-align: center !important;
  width: 42px !important;
}
/* category checkbox cleanup 20260709 */
.category-screen .category-list-row .mini-check {
  font-size: 0 !important;
  justify-content: center !important;
  padding: 0 !important;
}

.category-screen .category-list-row .mini-check input[type="checkbox"] {
  cursor: pointer !important;
  height: 16px !important;
  margin: 0 !important;
  min-height: 16px !important;
  width: 16px !important;
}

.category-screen .category-store-cell {
  grid-template-columns: 22px 46px !important;
  justify-content: center !important;
  justify-items: center !important;
}

.category-screen .category-store-cell .category-store-order {
  font-size: 10px !important;
  font-weight: 900 !important;
  height: 24px !important;
  min-height: 24px !important;
  width: 40px !important;
}

.category-screen .category-list-row > label.mini-check {
  display: flex !important;
  justify-content: center !important;
}
/* category visual polish 20260710 */
.category-screen .admin-row-list {
  background: #ffffff !important;
  border-radius: 9px !important;
  max-height: calc(100vh - 270px) !important;
}

.category-screen .category-grid-head,
.category-screen .category-list-row {
  grid-template-columns: 40px minmax(140px, 1.25fr) 104px 54px 54px 42px 76px 52px minmax(112px, .95fr) minmax(112px, .95fr) 54px 104px 52px 104px !important;
  min-width: 1200px !important;
}

.category-screen .category-grid-head:not(.has-liquidation),
.category-screen .category-list-row:not(.has-liquidation) {
  grid-template-columns: 40px minmax(140px, 1.25fr) 104px 54px 54px 42px 76px 52px minmax(112px, .95fr) minmax(112px, .95fr) 54px 52px 104px !important;
  min-width: 1090px !important;
}

.category-screen .category-grid-head {
  min-height: 32px !important;
}

.category-screen .category-grid-head span {
  font-size: 9px !important;
  padding: 5px 6px !important;
  text-align: center !important;
}

.category-screen .category-list-row {
  min-height: 44px !important;
}

.category-screen .category-list-row > * {
  padding: 4px 5px !important;
}

.category-screen .category-list-row input,
.category-screen .category-list-row select {
  font-size: 10px !important;
  min-height: 26px !important;
  padding: 3px 6px !important;
}

.category-screen .category-list-row input[type="time"] {
  font-size: 10px !important;
  padding: 2px 3px !important;
}

.category-screen .category-list-row input[name="name"] {
  font-size: 10.5px !important;
  letter-spacing: 0 !important;
}

.category-screen .category-list-row input[name="available_days"] {
  text-align: center !important;
}

.category-screen .category-list-row .mini-check input[type="checkbox"] {
  height: 15px !important;
  width: 15px !important;
}

.category-screen .category-store-cell {
  gap: 3px !important;
  grid-template-columns: 18px 38px !important;
  padding: 4px !important;
}

.category-screen .category-store-cell .category-store-order {
  border-radius: 6px !important;
  font-size: 10px !important;
  height: 23px !important;
  min-height: 23px !important;
  padding: 1px 2px !important;
  width: 36px !important;
}

.category-screen .category-action-stack {
  gap: 3px !important;
  padding: 4px 6px !important;
}

.category-screen .category-save-button,
.category-screen .category-apply-button {
  font-size: 10px !important;
  min-height: 22px !important;
  padding: 3px 5px !important;
}

.category-screen .row-id {
  font-size: 10px !important;
}
/* category page alignment 20260710 */
.wide-container.view-categorias {
  box-sizing: border-box !important;
  margin-left: 8px !important;
  margin-right: 8px !important;
  max-width: none !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  width: calc(100vw - 16px) !important;
}

.wide-container.view-categorias > .topbar,
.wide-container.view-categorias > .notice-box,
.wide-container.view-categorias > .alert,
.wide-container.view-categorias .category-screen {
  box-sizing: border-box !important;
  max-width: none !important;
  width: 100% !important;
}

.wide-container.view-categorias .category-screen .card,
.wide-container.view-categorias .category-screen .window-head {
  max-width: none !important;
  width: 100% !important;
}
/* ERP global: alineacion profesional y semantica segura de acciones. */
:where(button, input[type="button"], input[type="submit"], input[type="reset"]) {
  font-family: inherit;
  text-align: center;
  vertical-align: middle;
}

:where(
  .main-button,
  .secondary-link,
  .template-button,
  .toolbar-button,
  .danger-button,
  .users-save-button,
  .report-icon-action,
  .reports-actions a,
  .reports-filter a,
  .reports-filter button,
  .accounting-modal-actions button,
  .top-actions a,
  .top-actions button,
  .button-row button,
  .format-btn,
  .ac-btn,
  .cxc-btn,
  .cxp-btn,
  .rva-btn,
  .cc-btn,
  .bank-primary-button
) {
  align-items: center;
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  line-height: 1.15;
  text-align: center;
  vertical-align: middle;
}

:where(
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  a.main-button,
  a.secondary-link,
  a.template-button,
  a.toolbar-button,
  a.report-icon-action,
  .reports-actions a,
  .reports-filter a
):not(:disabled) {
  cursor: pointer;
}

:where(
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  a.main-button,
  a.secondary-link,
  a.template-button,
  a.toolbar-button,
  a.report-icon-action,
  .reports-actions a,
  .reports-filter a
):focus-visible {
  outline: 3px solid rgba(20, 112, 220, .28);
  outline-offset: 2px;
}

/* Colores semanticos solo para controles sin un estilo especifico mas fuerte. */
:where(button[type="submit"], input[type="submit"]) {
  background-color: #0b5eb7;
  border-color: #084d98;
  color: #fff;
}

:where(a[href*="export=excel"], button[value="excel"], button[name="excel"]) {
  background-color: #087344;
  border-color: #08613a;
  color: #fff;
}

:where(a[href*="export=pdf"], button[value="pdf"], button[name="pdf"]) {
  background-color: #b33636;
  border-color: #982b2b;
  color: #fff;
}

:where(button[onclick*="print"], button[data-print], a[data-print]) {
  background-color: #284b6c;
  border-color: #1d3b58;
  color: #fff;
}

:where(button, input[type="button"], input[type="submit"], input[type="reset"]):disabled {
  cursor: not-allowed;
  opacity: .58;
}

@media (prefers-reduced-motion: no-preference) {
  :where(
    .main-button,
    .secondary-link,
    .template-button,
    .toolbar-button,
    .reports-actions a,
    .reports-filter a,
    .reports-filter button,
    .ac-btn,
    .cxc-btn,
    .cxp-btn,
    .rva-btn,
    .cc-btn
  ) {
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
  }

  :where(
    .main-button,
    .secondary-link,
    .template-button,
    .toolbar-button,
    .reports-actions a,
    .reports-filter a,
    .reports-filter button,
    .ac-btn,
    .cxc-btn,
    .cxp-btn,
    .rva-btn,
    .cc-btn
  ):hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
  }
}