@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700");

:root {
  --sidebar: #1f232b;
  --sidebar-2: #171b22;
  --topbar: #0d4a28;
  --topbar-2: #126638;
  --green: #0d4a28;
  --green-soft: #eff7f1;
  --gold: #f2c84b;
  --head: #3d4453;
  --paper: #f3f4f5;
  --panel: #ffffff;
  --line: #d9dde2;
  --muted: #7c858c;
  --ink: #121820;
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

dialog::backdrop {
  background: rgba(7, 24, 13, 0.64);
}

#priceImportDialog {
  width: min(96vw, 1120px);
  max-width: none;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.price-import-card {
  width: 100%;
  max-width: none;
  max-height: calc(100dvh - 36px);
  display: grid;
  gap: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.price-import-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 72px 22px 26px;
  color: white;
  background: var(--green);
}

.price-import-head h2,
.price-import-head p {
  margin: 0;
}

.price-import-head h2 {
  font-size: 1.35rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.price-import-head p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
}

.close-dialog {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  color: white;
  background: rgba(7, 24, 13, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  font-weight: 900;
}

.price-import-file,
.price-import-status,
.price-import-preview {
  margin: 0 26px;
  min-width: 0;
}

.price-import-file {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-import-file input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.price-import-status {
  padding: 12px 14px;
  color: var(--green);
  background: rgba(13, 74, 40, 0.08);
  border: 1px solid rgba(13, 74, 40, 0.18);
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.price-import-status.is-error {
  color: #8a1d16;
  background: rgba(186, 35, 22, 0.09);
  border-color: rgba(186, 35, 22, 0.28);
}

.price-import-preview {
  display: grid;
  gap: 12px;
}

.price-import-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.price-import-stats div {
  min-width: 0;
  padding: 11px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.price-import-stats strong,
.price-import-stats span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.price-import-stats strong {
  color: var(--green);
  font-size: 1.18rem;
}

.price-import-stats span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-import-list {
  max-height: 180px;
  overflow: auto;
  padding: 10px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.92rem;
}

.price-import-list h3 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.95rem;
}

.price-import-list ul {
  margin: 0;
  padding-left: 18px;
}

.price-import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 26px 22px;
  min-width: 0;
}

.price-import-actions button {
  min-height: 44px;
  padding: 0 18px;
  max-width: 100%;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green);
  border-radius: 6px;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
}

.price-import-actions button[type="submit"],
#priceImportApply {
  color: white;
  background: var(--green);
}

.system-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #07170d, #0d4a28);
}

.login-panel {
  width: min(100%, 430px);
  display: grid;
  gap: 12px;
  padding: 28px 30px;
  color: white;
  background: #17231b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.login-panel img {
  width: min(100%, 280px);
  justify-self: center;
  object-fit: contain;
}

.login-panel p,
.login-panel h1 {
  margin: 0;
  text-align: center;
}

.login-panel p {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-panel h1 {
  font-size: 2rem;
}

.login-panel label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-panel input {
  min-height: 42px;
  padding: 0 12px;
  color: white;
  background: #222938;
  border: 1px solid #536074;
  border-radius: 6px;
  outline: none;
}

.login-panel button {
  min-height: 44px;
  color: #06170d;
  background: var(--gold);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.login-status {
  min-height: 18px;
  color: #ffd9c7;
  font-size: 0.9rem;
  text-align: center;
}

.system-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.system-shell.sidebar-collapsed {
  grid-template-columns: 74px minmax(0, 1fr);
}

.system-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  color: white;
  background: var(--sidebar);
  border-right: 1px solid #2d333d;
}

.system-brand {
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 10px 22px;
  background: #292e37;
  text-decoration: none;
}

.system-brand img {
  width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.sidebar-search {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  color: #8f98a6;
  background: var(--sidebar-2);
  border-bottom: 1px solid #242933;
  font-size: 0.84rem;
}

.sidebar-search::before {
  content: "\f002";
  font-family: FontAwesome;
  color: #8f98a6;
}

.system-sidebar nav {
  display: grid;
  align-content: start;
  padding: 6px 0;
  overflow-y: auto;
}

.sidebar-group {
  display: grid;
}

.sidebar-parent,
.sidebar-exit {
  min-height: 36px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: white;
  background: transparent;
  border: 0;
  border-left: 4px solid transparent;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 0.86rem;
}

.sidebar-parent:hover,
.sidebar-parent[aria-expanded="true"],
.sidebar-exit:hover {
  background: #287d95;
  border-left-color: #4aa6c4;
}

.sidebar-icon {
  width: 18px;
  color: #e9edf2;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1;
}

.sidebar-icon .fa {
  width: 18px;
  text-align: center;
}

.sidebar-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-caret {
  color: #d9e1e8;
  text-align: center;
  transition: transform 140ms ease;
}

.sidebar-group.is-open .sidebar-caret {
  transform: rotate(-90deg);
}

.sidebar-submenu {
  display: grid;
  padding: 4px 0 6px;
  background: #252a33;
}

.system-sidebar .sidebar-submenu a {
  min-height: 32px;
  padding: 0 14px 0 43px;
  color: #dde5ec;
  font-size: 0.8rem;
  border-left: 4px solid transparent;
}

.system-sidebar .sidebar-submenu a:hover {
  color: white;
  background: #1d222b;
  border-left-color: #4aa6c4;
}

.system-shell.sidebar-collapsed .system-brand {
  min-height: 64px;
  padding: 10px;
}

.system-shell.sidebar-collapsed .system-brand img {
  max-height: 42px;
}

.system-shell.sidebar-collapsed .sidebar-search,
.system-shell.sidebar-collapsed .system-sidebar footer,
.system-shell.sidebar-collapsed .sidebar-label,
.system-shell.sidebar-collapsed .sidebar-caret,
.system-shell.sidebar-collapsed .sidebar-submenu {
  display: none !important;
}

.system-shell.sidebar-collapsed .sidebar-parent,
.system-shell.sidebar-collapsed .sidebar-exit {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}

.system-sidebar nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-left: 4px solid transparent;
}

.system-sidebar nav a span {
  width: 18px;
  color: #dfe5ea;
  text-align: center;
}

.system-sidebar nav a:hover,
.system-sidebar nav a.active {
  background: #151922;
  border-left-color: var(--gold);
}

.system-sidebar .sidebar-exit {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 12px;
  padding: 0 12px;
}

.system-sidebar .sidebar-exit .sidebar-label {
  width: auto;
  text-align: left;
}

.system-sidebar footer {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding: 22px;
  color: #c5cbd4;
  text-align: center;
  border-top: 1px solid #343a45;
}

.system-sidebar footer strong {
  color: white;
}

.system-main {
  min-width: 0;
  background: #f7f7f7;
}

.system-topbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: white;
  background: var(--topbar-2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.menu-button {
  width: 54px;
  height: 44px;
  color: white;
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.topbar-spacer {
  flex: 1;
}

.exchange-chip,
.location-chip,
#systemUserName {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

.exchange-chip-link {
  color: white;
  text-decoration: none;
}

.exchange-chip-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.exchange-chip strong {
  margin-left: 0;
}

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 36px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--topbar-2);
}

.page-title h1,
.page-title p {
  margin: 0;
}

.page-title h1 {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
}

.page-title p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}

.page-title-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-title-actions button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--green);
  background: white;
  border: 1px solid #b8c8bd;
  border-radius: 5px;
  font-weight: 700;
}

.system-status {
  margin: 12px 36px 0;
  padding: 9px 12px;
  color: #4a5660;
  background: #eef1f2;
  border: 1px solid #d8dee2;
  font-size: 20px;
  font-weight: 400;
}

.system-status.error {
  color: #8b2f21;
  background: #fff1ec;
  border-color: rgba(139, 47, 33, 0.24);
}

.dashboard-frame {
  margin: 14px 36px 36px;
  display: grid;
  grid-template-columns: 346px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  background: white;
  border: 10px solid #2b3039;
}

.dashboard-left,
.dashboard-right {
  display: grid;
  align-content: start;
  gap: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid #d4d8dd;
  border-radius: 6px;
  overflow: hidden;
}

.panel h2 {
  margin: 18px 20px 12px;
  padding: 12px 14px;
  color: white;
  background: var(--head);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.quick-links {
  display: grid;
  padding: 6px 20px 14px;
}

.quick-links a {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #202833;
  border-bottom: 1px solid #dbe1e4;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}

.quick-links a::before {
  content: "\f14c";
  width: 24px;
  color: #3d424b;
  font-family: FontAwesome;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.quick-links a.quick-divider {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 2px solid #48a4dd;
}

.exchange-panel {
  padding-bottom: 20px;
}

.exchange-line {
  display: grid;
  grid-template-columns: 1fr 90px 90px;
  gap: 12px;
  align-items: center;
  padding: 0 32px 14px;
  color: #17202a;
  font-size: 16px;
  text-decoration: none;
}

.exchange-line strong {
  color: #0082bf;
}

.exchange-panel small {
  display: block;
  margin: 0 20px;
  padding: 14px;
  background: #f1f3f4;
  font-size: 13px;
  text-align: center;
}

.compact-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 8px;
}

.compact-metrics div,
.quote-total-row > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f6f8f9;
  border: 1px solid #e0e4e7;
}

.compact-metrics span,
.quote-total-row span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.compact-metrics strong,
.quote-total-row strong {
  color: var(--green);
  font-size: 1.45rem;
}

.metric-hint {
  margin: 0 20px 18px;
  color: var(--muted);
  font-weight: 700;
}

.recent-list {
  display: grid;
  padding: 0 20px 20px;
}

.recent-row {
  display: grid;
  grid-template-columns: 104px 1fr 120px 132px;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 6px 12px;
  border-bottom: 1px solid #e3e8eb;
  font-size: 13px;
}

.recent-row:nth-child(even) {
  background: #f3f5f6;
}

.recent-row a {
  color: #0082bf;
  font-weight: 700;
}

.recent-row strong {
  display: block;
  color: #111820;
  font-size: 15px;
  line-height: 1.08;
  font-weight: 700;
}

.recent-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.recent-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 400;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}

.quote-total-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 20px;
}

.quote-total-row small {
  color: #111820;
  font-weight: 800;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 20px 20px;
}

.status-pill {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #dce1e4;
  font-size: 0.86rem;
  font-weight: 800;
}

.status-r { background: #d9dcdf; }
.status-z { background: #fff5b8; }
.status-c { background: #9fe6d6; }
.status-p { background: #dac0ee; }
.status-o { background: #aaf35e; }
.status-e { background: #92cb4f; }
.status-x { background: #eda0a0; }
.status-a { background: #f5bb74; }

.inventory-mode .page-title,
.inventory-mode .system-status,
.inventory-transfer-mode .page-title,
.inventory-transfer-mode .system-status,
.inventory-reception-mode .page-title,
.inventory-reception-mode .system-status,
.inventory-adjustment-mode .page-title,
.inventory-adjustment-mode .system-status,
.cash-mode .page-title,
.cash-mode .system-status,
.billing-mode .page-title,
.billing-mode .system-status,
.sales-mode .page-title,
.sales-mode .system-status,
.customers-mode .page-title,
.customers-mode .system-status,
.documents-mode .page-title,
.documents-mode .system-status,
.receipts-mode .page-title,
.receipts-mode .system-status,
.accounts-mode .page-title,
.accounts-mode .system-status,
.debt-mode .page-title,
.debt-mode .system-status,
.exchange-mode .page-title,
.exchange-mode .system-status,
.cash-closures-mode .page-title,
.cash-closures-mode .system-status,
.cash-movements-mode .page-title,
.cash-movements-mode .system-status,
.product-inventory-mode .page-title,
.product-inventory-mode .system-status,
.admin-products-mode .page-title,
.admin-products-mode .system-status,
.admin-registry-mode .page-title,
.admin-registry-mode .system-status,
.inventory-movements-mode .page-title,
.inventory-movements-mode .system-status,
.module-mode .page-title,
.module-mode .system-status {
  display: none;
}

.inventory-view,
.exchange-view,
.inventory-transfer-view,
.inventory-reception-view,
.inventory-adjustment-view,
.cash-view,
.billing-view,
.sales-view,
.customers-view,
.documents-view,
.receipts-view,
.accounts-view,
.debt-view,
.cash-closures-view,
.cash-movements-view,
.product-inventory-view,
.admin-registry-view,
.expenses-view,
.provider-documents-view,
.inventory-movements-view {
  margin: 36px 32px 34px;
  color: #1c232b;
  font-size: 12px;
}

.exchange-form {
  margin-bottom: 18px;
}

.exchange-footer {
  justify-content: space-between;
}

.exchange-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.exchange-history {
  margin-top: 18px;
}

.pg-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid #2c9ccc;
}

.pg-page-head h1,
.pg-page-head p {
  margin: 0;
}

.pg-page-head h1 {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.pg-page-head p {
  margin-top: 7px;
  color: #6b7480;
  font-weight: 700;
}

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

.cash-badge {
  padding: 9px 12px;
  color: white;
  background: #3a4353;
  font-weight: 800;
}

.cash-badge.is-open {
  background: #24733b;
}

.cash-badge.is-closed {
  background: #8d2d20;
}

.cash-balance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.cash-balance-grid article {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: white;
  border: 1px solid #d4d8dd;
}

.cash-balance-grid span,
.billing-total-box span {
  color: #6b7480;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cash-balance-grid strong {
  color: #0d4a28;
  font-size: 18px;
}

.cash-form {
  margin-bottom: 16px;
}

.cash-form-grid,
.billing-basic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.cash-form-grid label,
.billing-basic-grid label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.cash-form-grid input,
.cash-form-grid select,
.billing-basic-grid input,
.billing-basic-grid select,
.billing-product-row input,
.billing-product-row select {
  width: 100%;
  min-height: 31px;
  padding: 6px 8px;
  color: #1f252d;
  background: white;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

.cash-wide,
.billing-wide,
.billing-client-field {
  grid-column: span 2;
}

.cash-movements-table small {
  display: block;
  margin-top: 2px;
  color: #69737f;
}

.billing-form {
  margin-bottom: 16px;
}

.billing-product-row {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(240px, 1fr) 82px 74px 96px 96px;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.billing-results {
  position: absolute;
  z-index: 6;
  top: calc(100% + 4px);
  left: 0;
  width: min(640px, 100%);
  display: grid;
  max-height: 260px;
  overflow: auto;
  background: white;
  border: 1px solid #cfd5da;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.billing-client-field {
  position: relative;
}

.billing-client-field .billing-results {
  top: 54px;
}

.billing-results button {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  color: #1f252d;
  background: white;
  border: 0;
  border-bottom: 1px solid #e3e7ea;
  text-align: left;
}

.billing-results button:hover {
  background: #eef8f1;
}

.product-results button {
  grid-template-columns: 120px minmax(0, 1fr) 132px;
  gap: 8px;
  align-items: center;
}

.billing-items-table td {
  background: #f5f6f7;
  border-color: #e4e7ea;
}

.billing-items-table input {
  width: 100%;
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid #d5d9dc;
}

.billing-items-table [data-billing-remove] {
  float: right;
  color: #1d232c;
  background: transparent;
  border: 0;
  font-size: 17px;
}

.billing-total-box {
  width: min(390px, 100%);
  display: grid;
  gap: 8px;
  margin: 14px 0 0 auto;
  padding: 14px;
  background: #f7f8f9;
  border: 1px solid #d4d8dd;
}

.billing-total-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.billing-total-box strong {
  color: #17202a;
}

.billing-grand-total {
  padding-top: 9px;
  border-top: 2px solid #0d4a28;
}

.billing-grand-total strong {
  color: #0d4a28;
  font-size: 20px;
}

.account-table small {
  display: block;
  margin-top: 2px;
  color: #69737f;
}

.account-table tr.is-credit td {
  background: #eef8f1;
}

.account-table tr.is-debit td {
  background: #f8f9fa;
}

.account-summary strong {
  overflow-wrap: anywhere;
}

.customers-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 105px 125px 150px 150px;
  gap: 8px;
  margin-bottom: 10px;
}

.customers-filter-grid label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.customers-filter-grid input,
.customers-filter-grid select {
  width: 100%;
  min-height: 31px;
  padding: 6px 8px;
  color: #1f252d;
  background: white;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

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

.customers-table small {
  display: block;
  margin-top: 2px;
  color: #69737f;
  overflow-wrap: anywhere;
}

.customers-table tr.is-inactive td {
  background: #f2f3f4;
  color: #6a727c;
}

.customers-table tbody tr[data-customer-detail] {
  cursor: pointer;
}

.customers-table tbody tr[data-customer-detail]:hover td {
  background: #eef8f1;
}

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

.customer-list-head h2 {
  margin: 0;
}

.customer-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-pagination span {
  color: #606a76;
  font-size: 11px;
  font-weight: 800;
}

.customer-pagination .pg-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.customer-actions {
  display: grid;
  grid-template-columns: repeat(4, 28px);
  gap: 5px;
  align-items: center;
}

.customer-actions button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: #26313d;
  background: #f7f8f9;
  border: 1px solid #cfd4d8;
  border-radius: 3px;
  cursor: pointer;
}

.customer-actions a {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: #26313d;
  background: #f7f8f9;
  border: 1px solid #cfd4d8;
  border-radius: 3px;
  text-decoration: none;
}

.customer-actions button:hover,
.customer-actions a:hover {
  color: white;
  background: #0d6532;
  border-color: #0d6532;
}

.customer-detail-head {
  margin-bottom: 0;
}

.customer-detail-card {
  margin-top: 8px;
  background: white;
}

.customer-detail-card h2 {
  margin: 0;
  padding: 11px 12px;
  color: #17202a;
  background: #e6e9ef;
  font-size: 12px;
  font-weight: 800;
  border-top: 1px solid #d5dbe2;
}

.customer-detail-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.customer-detail-table th,
.customer-detail-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e2e5e8;
  vertical-align: middle;
}

.customer-detail-table th {
  width: 30%;
  color: #1e2630;
  font-weight: 800;
  text-align: left;
}

.customer-detail-table td {
  color: #000;
  overflow-wrap: anywhere;
}

.customer-detail-table input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.customer-detail-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  background: #eef1f5;
}

.customer-detail-actions > div {
  display: flex;
  gap: 8px;
}

.product-inventory-filter-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) 126px 112px 130px 130px 130px;
  gap: 7px;
  margin-bottom: 7px;
}

.product-inventory-filter-grid label {
  display: grid;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
}

.product-inventory-filter-grid input,
.product-inventory-filter-grid select {
  width: 100%;
  min-height: 28px;
  padding: 5px 7px;
  color: #1f252d;
  background: white;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

.admin-product-filter-grid {
  display: grid;
  grid-template-columns: 110px minmax(220px, 1.4fr) 112px minmax(155px, 0.9fr) minmax(145px, 0.9fr) minmax(135px, 0.8fr) minmax(135px, 0.8fr) minmax(155px, 0.9fr) 96px;
  gap: 7px;
  margin-bottom: 7px;
}

.admin-product-filter-grid label,
.admin-product-more-options label {
  display: grid;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
}

.admin-product-filter-grid input,
.admin-product-filter-grid select,
.admin-product-more-options input {
  width: 100%;
  min-height: 28px;
  padding: 5px 7px;
  color: #1f252d;
  background: #fff;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

.admin-product-more-options {
  margin: 0 0 7px;
  padding: 0;
  border: 0;
}

.admin-product-more-options summary {
  width: max-content;
  cursor: pointer;
  color: #0b87bd;
  font-size: 11px;
  font-weight: 800;
}

.admin-product-more-options label {
  max-width: 420px;
  margin-top: 6px;
}

.admin-product-result-actions {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e2e6eb;
  font-size: 11px;
  font-weight: 800;
}

.product-inventory-summary {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.product-inventory-table small {
  display: block;
  margin-top: 2px;
  color: #69737f;
  overflow-wrap: anywhere;
}

.product-inventory-table tbody tr[data-product-detail-id] {
  cursor: pointer;
}

.product-inventory-table tbody tr[data-product-detail-id]:hover td {
  background: #eef8f1;
}

.product-stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 4px 7px;
  color: #1d2630;
  background: #e6e9ed;
  border: 1px solid #cfd4d9;
  border-radius: 3px;
  font-weight: 800;
  white-space: nowrap;
}

.product-stock-badge.is-ok {
  color: #0d4a28;
  background: #e9f7ed;
  border-color: #b7d9c0;
}

.product-stock-badge.is-low {
  color: #765600;
  background: #fff4c6;
  border-color: #e2c76a;
}

.product-stock-badge.is-missing {
  color: #8d2d20;
  background: #fff0ed;
  border-color: #e0b8af;
}

.product-actions {
  grid-template-columns: repeat(2, 28px);
}

.product-detail-card .customer-detail-table th {
  width: 24%;
}

.product-inventory-mode .system-main,
.admin-products-mode .system-main,
.admin-registry-mode .system-main {
  background: #ffffff;
}

.product-inventory-view {
  margin: 10px 40px 22px;
  color: #000;
  background: #ffffff;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 11px;
}

.pg-product-filters {
  margin: 0 0 8px;
  padding-bottom: 8px;
}

.pg-product-filters h2 {
  margin-bottom: 8px;
  padding: 7px 9px;
  font-size: 11px;
}

.pg-product-filter-actions {
  padding-top: 0;
}

.pg-product-filter-actions .pg-button {
  min-height: 29px;
  padding: 0 10px;
  font-size: 11px;
}

.pg-product-list {
  width: 100%;
  background: #ffffff;
}

.pg-product-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #000;
  background: #ffffff;
  font-size: 11.2px;
}

.pg-product-table .col-sku { width: 6.5%; }
.pg-product-table .col-description { width: 23%; }
.pg-product-table .col-category { width: 18%; }
.pg-product-table .col-brand { width: 10%; }
.pg-product-table .col-stock { width: 5.2%; }
.pg-product-table .col-price,
.pg-product-table .col-price2,
.pg-product-table .col-price3 { width: 8.4%; }
.pg-product-table .col-pin { width: 2.9%; }
.pg-product-table .col-camera { width: 3%; }
.pg-product-table .col-active { width: 3.6%; }

.pg-product-table thead th {
  height: 32px;
  padding: 0 8px;
  color: #fff;
  background: #3d4554;
  border-right: 1px solid #667080;
  font-size: 10px;
  line-height: 1.05;
  font-weight: 800;
  text-align: left;
  white-space: normal;
  overflow-wrap: normal;
}

.pg-product-table thead th:nth-last-child(-n+3) {
  padding: 0;
  text-align: center;
}

.pg-product-table tbody td {
  height: 30px;
  padding: 4px 8px;
  color: #000;
  border-top: 1px solid #e5e7ea;
  font-size: 11.2px;
  line-height: 1.12;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.pg-product-table tbody tr:nth-child(even) td {
  background: #f1f2f4;
}

.pg-product-table tbody tr:hover td {
  background: #b9dbef;
}

.pg-product-table a {
  color: #0096cf;
  font-weight: 800;
  text-decoration: underline;
}

.pg-product-table .number,
.pg-product-table .price {
  text-align: right;
  white-space: nowrap;
}

.pg-product-table .icon-cell,
.pg-product-table .active-cell {
  position: relative;
  padding: 0;
  text-align: center;
  overflow: visible;
}

.pg-product-table .icon-cell > .fa,
.pg-product-table .icon-cell button {
  color: #000;
  font-size: 14px;
}

.pg-product-table .icon-cell button {
  width: 100%;
  height: 30px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 0;
}

.pg-product-table .active-cell .fa {
  color: #10bd48;
  font-size: 13px;
}

.product-image-preview {
  position: absolute;
  z-index: 20;
  right: 52px;
  top: 50%;
  width: 346px;
  height: 212px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 5px;
  box-shadow: 0 2px 13px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%);
}

.product-image-preview::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-top: 1px solid #d4d4d4;
  border-right: 1px solid #d4d4d4;
  transform: translateY(-50%) rotate(45deg);
}

.product-image-cell:hover .product-image-preview {
  display: flex;
}

.product-image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pg-product-table .empty-row {
  height: 58px;
  text-align: center;
}

.pg-product-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 10px 0 0;
  color: #5d6672;
  font-size: 12px;
  font-weight: 800;
}

.pg-product-pagination > span {
  margin-right: auto;
}

.pg-product-page-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pg-product-pagination button {
  min-height: 29px;
  min-width: 29px;
  padding: 0 8px;
  color: #1d2630;
  background: #f6f7f8;
  border: 1px solid #cfd5dd;
  border-radius: 3px;
  font: inherit;
}

.pg-product-pagination button.active {
  color: #fff;
  background: #3d4554;
  border-color: #3d4554;
}

.pg-product-pagination button.active:disabled {
  opacity: 1;
}

.pg-product-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pg-product-detail {
  color: #071422;
}

.pg-product-back {
  display: inline-block;
  margin-bottom: 7px;
  color: #9aa3b7;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.pg-product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.pg-product-title-row h1 {
  margin: 0;
  color: #071422;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
}

.pg-product-title-row h1 span {
  font-size: 20px;
}

.pg-product-active {
  min-width: 72px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: #17210b;
  background: #d7f49c;
  border: 1px solid #94c66a;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.pg-product-tabs {
  display: flex;
  gap: 34px;
  margin-top: 23px;
  border-bottom: 1px solid #a2aec1;
}

.pg-product-tabs button {
  height: 33px;
  padding: 0;
  color: #6f6f6f;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 800;
}

.pg-product-tabs button.active {
  color: #000;
  border-bottom-color: #2c9ccc;
}

.pg-product-form {
  margin-top: 10px;
  padding-bottom: 28px;
  background: #ffffff;
  font-size: 12px;
}

.pg-product-form h2 {
  margin: 0 0 16px;
  padding: 10px 10px;
  color: #111927;
  background: #e6e9ef;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.pg-product-data-grid,
.pg-product-price-grid,
.pg-product-category-grid,
.pg-product-other-grid {
  display: grid;
  gap: 12px 14px;
  padding: 0 12px 18px;
}

.pg-product-data-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) 286px;
  align-items: start;
}

.pg-product-price-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pg-product-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pg-product-other-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.pg-product-field,
.pg-product-check {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #101927;
  font-size: 12px;
  font-weight: 800;
}

.pg-product-field span,
.pg-product-check span {
  min-height: 15px;
}

.pg-product-field em {
  margin-left: 8px;
  color: #000;
  font-size: 9px;
  font-style: italic;
  font-weight: 700;
}

.pg-product-field input,
.pg-product-field textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  color: #000;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.pg-product-field textarea {
  min-height: 62px;
  resize: none;
}

.pg-product-check {
  align-content: end;
}

.pg-product-check input {
  width: 13px;
  height: 13px;
  margin: 0;
}

.pg-product-data-grid .sku { grid-column: 1 / 2; }
.pg-product-data-grid .alt-codes { grid-column: 2 / 5; }
.pg-product-data-grid .description { grid-column: 1 / 4; }
.pg-product-data-grid .unit { grid-column: 4 / 5; }
.pg-product-data-grid .currency { grid-column: 1 / 2; }
.pg-product-data-grid .tax { grid-column: 2 / 3; }
.pg-product-data-grid .undefined-price { grid-column: 3 / 5; }

.pg-product-image-slot {
  grid-column: 5 / 6;
  grid-row: 1 / 4;
  width: 286px;
  height: 152px;
  align-self: center;
  background: #e6e8ee;
}

.pg-product-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.admin-product-image-slot {
  height: 220px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 7px;
  padding: 0;
  background: transparent;
}

.admin-product-image-preview {
  min-height: 148px;
  background: #e6e8ee;
}

.admin-product-image-preview img,
.admin-product-image-preview .product-no-image {
  width: 100%;
  height: 100%;
}

.admin-product-image-actions {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 6px;
}

.admin-product-image-actions .pg-button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 11px;
  cursor: pointer;
}

.admin-product-image-actions .pg-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.admin-product-photo-status {
  min-height: 14px;
  color: #5e6872;
  font-size: 10px;
  font-weight: 700;
}

.admin-product-photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.admin-product-photo-strip button {
  position: relative;
  height: 34px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfd5dd;
  border-radius: 2px;
}

.admin-product-photo-strip button.active {
  border-color: #2c9ccc;
  box-shadow: 0 0 0 1px #2c9ccc inset;
}

.admin-product-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-photo-strip .fa {
  position: absolute;
  top: 1px;
  right: 2px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  font-size: 10px;
}

.product-no-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  color: #c1c4cc;
  text-align: center;
}

.product-no-image .fa {
  font-size: 62px;
}

.product-no-image strong {
  display: block;
  margin-top: 8px;
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
}

.pg-product-category-grid .category { grid-column: 1 / 3; }
.pg-product-category-grid .model { grid-column: 3 / 5; }
.pg-product-category-grid .brand { grid-column: 1 / 3; }
.pg-product-category-grid .provider { grid-column: 3 / 4; }
.pg-product-category-grid .provider-code { grid-column: 4 / 5; }

.pg-product-other-grid .billing-info {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}

.pg-product-other-grid .internal-notes {
  grid-column: 3 / 5;
  grid-row: 2 / 4;
}

.pg-product-other-grid .internal-notes textarea {
  min-height: 94px;
}

.pg-product-other-grid .detailed-description {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
}

.pg-product-other-grid .active-check { grid-column: 1 / 2; }

.pg-product-location-line {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 4px 12px 0;
  padding: 10px;
  color: #3e4650;
  background: #f2f3f5;
  border-top: 1px solid #e1e4e8;
  font-size: 12px;
  font-weight: 800;
}

.pg-product-detail-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 14px;
  background: #eef1f5;
}

.admin-product-footer {
  justify-content: space-between;
}

.admin-product-footer > div {
  display: flex;
  gap: 8px;
}

.pg-button.danger {
  color: #7c1616;
  background: #fff5f5;
  border-color: #e6b8b8;
}

.pg-product-tab-panel {
  margin-top: 0;
}

.pg-product-subtable {
  width: calc(100% - 24px);
  margin: 0 12px 16px;
  border-collapse: collapse;
  color: #000;
  font-size: 12px;
}

.pg-product-subtable th {
  height: 34px;
  padding: 0 10px;
  color: #111927;
  background: #e6e9ef;
  border-bottom: 1px solid #d3d8df;
  font-weight: 800;
  text-align: left;
}

.pg-product-subtable td {
  min-height: 34px;
  padding: 7px 10px;
  border-bottom: 1px solid #e5e7ea;
  vertical-align: middle;
}

.pg-product-subtable .number {
  text-align: right;
}

.pg-product-location-add input,
.pg-product-location-add select,
.pg-product-price-list-add input {
  width: 100%;
  min-height: 28px;
  border: 1px solid #cfd5dd;
  border-radius: 2px;
  background: #fff;
}

.pg-text-action.danger {
  color: #9f1d1d;
}

.pg-product-history-panel {
  margin-top: 8px;
}

.admin-products-view .pg-product-tabs {
  margin-top: 24px;
}

.admin-products-view .pg-product-form {
  margin-top: 0;
}

.admin-products-view .pg-product-form h2,
.admin-products-view .pg-product-tab-panel h2,
.admin-products-view .pg-product-history-panel h2 {
  margin-bottom: 10px;
  padding: 9px 10px;
}

.admin-products-view .pg-product-subtable {
  margin-top: 0;
}

.admin-products-view .pg-product-subtable th {
  color: #111927;
  background: #e2e6ec;
}

.admin-products-view .pg-product-subtable td {
  height: 36px;
}

.admin-products-view .pg-product-location-add td,
.admin-products-view .pg-product-price-list-add td {
  background: #fbfbfc;
}

.admin-products-view .pg-product-location-add .pg-text-action,
.admin-products-view .pg-product-price-list-add .pg-text-action {
  white-space: nowrap;
}

.admin-product-edit-form .pg-product-field input:not([readonly]),
.admin-product-edit-form .pg-product-field textarea:not([readonly]) {
  background: #fff;
}

.admin-product-edit-form .pg-product-field input:focus,
.admin-product-edit-form .pg-product-field textarea:focus {
  border-color: #2c9ccc;
  box-shadow: 0 0 0 2px rgba(44, 156, 204, 0.12);
  outline: none;
}

.documents-filter-grid {
  display: grid;
  grid-template-columns: 132px 130px 130px 110px minmax(145px, 1fr) minmax(210px, 1.2fr) minmax(150px, 0.9fr);
  gap: 8px;
  margin-bottom: 10px;
}

.documents-filter-grid label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.documents-filter-grid input,
.documents-filter-grid select {
  width: 100%;
  min-height: 31px;
  padding: 6px 8px;
  color: #1f252d;
  background: white;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

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

.documents-table small {
  display: block;
  margin-top: 2px;
  color: #69737f;
  overflow-wrap: anywhere;
}

.documents-table tr.is-receipt td {
  background: #eef8f1;
}

.documents-table tr.is-invoice td {
  background: #f8f9fa;
}

.sales-filter-grid {
  display: grid;
  grid-template-columns: 130px 130px 145px minmax(230px, 1.3fr) minmax(145px, 0.9fr) 130px 150px;
  gap: 8px;
  margin-bottom: 10px;
}

.sales-filter-grid label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.sales-filter-grid input,
.sales-filter-grid select {
  width: 100%;
  min-height: 31px;
  padding: 6px 8px;
  color: #1f252d;
  background: white;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

.sales-summary {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.sales-table {
  font-size: 11px;
}

.sales-table th {
  padding: 8px 8px;
  font-size: 10px;
  line-height: 1.15;
  white-space: normal;
}

.sales-table td {
  padding: 7px 8px;
  vertical-align: top;
}

.sales-table th:nth-child(1) { width: 7%; }
.sales-table th:nth-child(2) { width: 8%; }
.sales-table th:nth-child(3) { width: 7%; }
.sales-table th:nth-child(4) { width: 20%; }
.sales-table th:nth-child(5) { width: 10%; }
.sales-table th:nth-child(6) { width: 8%; }
.sales-table th:nth-child(7) { width: 9%; }
.sales-table th:nth-child(8) { width: 5%; }
.sales-table th:nth-child(9) { width: 9%; }
.sales-table th:nth-child(10) { width: 7%; }
.sales-table th:nth-child(11) { width: 9%; }
.sales-table th:nth-child(12) { width: 4%; }

.sales-table small {
  display: block;
  margin-top: 2px;
  color: #69737f;
  overflow-wrap: anywhere;
}

.sales-table tr.is-paid td {
  background: #f7fbf8;
}

.sales-table tr.is-credit td {
  background: #fff9dc;
}

.sales-table tr.is-canceled td {
  color: #7b8188;
  background: #f1f2f4;
  text-decoration: line-through;
}

.sales-basic-grid {
  display: grid;
  grid-template-columns: 130px minmax(210px, 0.9fr) 145px minmax(280px, 1fr) 110px;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.sales-basic-grid label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.sales-basic-grid input,
.sales-basic-grid select,
.sales-basic-grid textarea,
.sales-quote-import input,
.sales-product-row input,
.sales-items-table input,
.sales-total-box input {
  width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 6px 8px;
  color: #1f252d;
  background: white;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

.sales-quote-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.sales-client-field {
  grid-column: span 2;
}

.sales-notes {
  grid-column: 1 / -1;
}

.sales-notes textarea {
  min-height: 72px;
  resize: vertical;
}

.sales-product-row {
  position: relative;
}

.sales-items-table td {
  vertical-align: top;
}

.sales-items-table th:nth-child(1) { width: 78px; }
.sales-items-table th:nth-child(2) { width: 120px; }
.sales-items-table th:nth-child(4) { width: 120px; }
.sales-items-table th:nth-child(5) { width: 145px; }
.sales-items-table th:nth-child(6) { width: 130px; }
.sales-items-table th:nth-child(7) { width: 48px; }

.sales-items-table button {
  color: #111820;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 15px;
}

.sales-total-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 8px 12px;
  justify-content: end;
  max-width: 520px;
  margin: 18px 0 16px auto;
  font-size: 13px;
  font-weight: 700;
}

.sales-total-box div {
  display: contents;
}

.sales-total-box span,
.sales-total-box strong {
  align-self: center;
  text-align: right;
}

.sales-total-box input {
  text-align: right;
  font-weight: 700;
}

.sales-total-box .sales-grand-total span,
.sales-total-box .sales-grand-total input {
  color: #0d4a28;
  font-size: 14px;
  font-weight: 900;
}

.sales-total-box .sales-grand-total span,
.sales-total-box .sales-grand-total input {
  border-top: 2px solid #0d4a28;
  padding-top: 8px;
}

.sales-footer-actions {
  padding: 14px;
  background: #eef1f5;
}

.sales-footer-actions > div {
  flex-wrap: wrap;
}

.sales-actions-menu {
  position: absolute;
  right: 0;
  bottom: 34px;
  z-index: 8;
  min-width: 190px;
  background: white;
  border: 1px solid #cfd4d8;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.sales-actions-menu::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: -8px;
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: white transparent transparent;
}

.sales-actions-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  color: #242a32;
  background: white;
  border: 0;
  border-bottom: 1px solid #e6e9ec;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.sales-actions-menu i {
  width: 18px;
  margin-right: 6px;
  text-align: center;
}

.sales-history-panel {
  margin: 14px 0;
}

.sales-history-empty {
  margin: 0;
  padding: 12px;
  background: #f4f6f8;
}

.debt-check {
  align-content: end;
}

.debt-table tr.is-credit td {
  background: #fff9dc;
}

.cash-movements-filter-grid {
  display: grid;
  grid-template-columns: 130px 130px 105px 105px 110px 142px minmax(220px, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.cash-movements-filter-grid label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.cash-movements-filter-grid input,
.cash-movements-filter-grid select {
  width: 100%;
  min-height: 31px;
  padding: 6px 8px;
  color: #1f252d;
  background: white;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

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

.cash-movements-consult-table small {
  display: block;
  margin-top: 2px;
  color: #69737f;
  overflow-wrap: anywhere;
}

.cash-movements-consult-table tr.is-in td {
  background: #eef8f1;
}

.cash-movements-consult-table tr.is-out td {
  background: #fff4f1;
}

.inventory-movements-filter-grid {
  display: grid;
  grid-template-columns: 130px 130px 120px 160px 160px minmax(260px, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.inventory-movements-filter-grid label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.inventory-movements-filter-grid input,
.inventory-movements-filter-grid select {
  width: 100%;
  min-height: 31px;
  padding: 6px 8px;
  color: #1f252d;
  background: white;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

.inventory-movements-table tbody tr[data-inventory-movement] {
  cursor: pointer;
}

.inventory-movements-table tbody tr[data-inventory-movement]:hover td {
  background: #eef8f1;
}

.inventory-movements-table a {
  color: #008fc5;
  font-weight: 800;
  text-decoration: underline;
}

.inventory-movements-table small,
.inventory-movements-items-table small {
  display: block;
  margin-top: 2px;
  color: #69737f;
  overflow-wrap: anywhere;
}

.inventory-movement-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 5px 8px;
  color: #17202a;
  background: #e8ebef;
  border: 1px solid #cbd1d8;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
}

.inventory-movement-type.is-transfer {
  color: #0d4a28;
  background: #e9f7ed;
  border-color: #b7d9c0;
}

.inventory-movement-type.is-shipment {
  color: #824a00;
  background: #fff4d7;
  border-color: #e2c76a;
}

.inventory-movement-detail-card .pg-table {
  margin-top: 0;
}

.inventory-movements-items-table td {
  vertical-align: top;
}

.inventory-transfer-basic-grid .pg-observations {
  grid-column: 1 / -1;
}

.inventory-transfer-line-form {
  grid-template-columns: 190px minmax(260px, 1fr) 120px 110px auto;
}

.inventory-transfer-items-table td {
  vertical-align: top;
}

.inventory-transfer-items-table button {
  color: #111820;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 15px;
}

.inventory-reception-filter-grid {
  display: grid;
  grid-template-columns: 150px 170px minmax(260px, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.inventory-reception-filter-grid label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.inventory-reception-filter-grid input,
.inventory-reception-filter-grid select {
  width: 100%;
  min-height: 31px;
  padding: 6px 8px;
  color: #1f252d;
  background: white;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

.inventory-reception-table tbody tr[data-inventory-reception] {
  cursor: pointer;
}

.inventory-reception-table tbody tr[data-inventory-reception]:hover td {
  background: #eef8f1;
}

.inventory-reception-table a {
  color: #008fc5;
  font-weight: 800;
  text-decoration: underline;
}

.inventory-reception-detail-card .pg-table {
  margin-top: 0;
}

.inventory-reception-items-table td {
  vertical-align: top;
}

.inventory-reception-receive-form {
  margin-top: 16px;
}

.inventory-adjustment-basic-grid .pg-observations {
  grid-column: 1 / -1;
}

.inventory-adjustment-line-form {
  grid-template-columns: 190px minmax(260px, 1fr) 120px 110px minmax(148px, auto);
  align-items: stretch;
}

.inventory-adjustment-line-form .pg-button {
  min-width: 148px;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-adjustment-filter-grid {
  display: grid;
  grid-template-columns: 130px 130px 140px 150px minmax(260px, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.inventory-adjustment-filter-grid label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.inventory-adjustment-filter-grid input,
.inventory-adjustment-filter-grid select {
  width: 100%;
  min-height: 31px;
  padding: 6px 8px;
  color: #1f252d;
  background: white;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

.inventory-adjustment-table td {
  vertical-align: top;
}

.cash-closures-filter-grid {
  display: grid;
  grid-template-columns: 130px 130px 110px minmax(260px, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.cash-closures-filter-grid label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.cash-closures-filter-grid input,
.cash-closures-filter-grid select {
  width: 100%;
  min-height: 31px;
  padding: 6px 8px;
  color: #1f252d;
  background: white;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

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

.cash-closures-table small,
.money-stack span {
  display: block;
}

.cash-closures-table small {
  margin-top: 2px;
  color: #69737f;
  overflow-wrap: anywhere;
}

.cash-closures-table tr.has-difference td {
  background: #fff9dc;
}

.difference-stack span {
  color: #0d4a28;
  font-weight: 800;
}

.module-view {
  margin: 36px 32px 34px;
  color: #1c232b;
  font-size: 13px;
}

.module-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid #2c9ccc;
}

.module-head span {
  display: block;
  margin-bottom: 7px;
  color: #6b7480;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.module-head h1 {
  margin: 0;
  color: #111820;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.module-head strong,
.module-status {
  color: #285d3d;
  background: #eef8f1;
  border: 1px solid #c7dccf;
}

.module-head strong {
  padding: 9px 12px;
  white-space: nowrap;
}

.module-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 11px 12px;
}

.module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 16px;
  margin-bottom: 16px;
}

.module-card {
  padding: 0 16px 16px;
  background: white;
  border: 1px solid #d4d8dd;
}

.module-card h2 {
  margin: 0 -16px 14px;
  padding: 10px 12px;
  color: white;
  background: #3a4353;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.module-card p {
  margin: 0 0 14px;
  color: #26313c;
  line-height: 1.48;
}

.module-card ul {
  margin: 0;
  padding-left: 18px;
  color: #26313c;
  line-height: 1.5;
}

.module-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.module-table th {
  padding: 9px 10px;
  color: white;
  background: #3a4353;
  border-right: 1px solid #566070;
  text-align: left;
  font-size: 11px;
}

.module-table td {
  padding: 10px;
  background: #f7f8f9;
  border: 1px solid #e1e5e8;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.module-table tbody tr:nth-child(even) td {
  background: #eef1f3;
}

.inventory-view h1 {
  margin: 0 0 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid #2c9ccc;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.pg-filter,
.pg-edit-form,
.pg-lines {
  background: white;
}

.pg-filter h2,
.pg-edit-form h2,
.pg-lines h2 {
  margin: 0 0 12px;
  padding: 9px 10px;
  color: #303741;
  background: #e9ecef;
  font-size: 12px;
  font-weight: 800;
}

.pg-filter-grid {
  display: grid;
  grid-template-columns: 90px 116px 116px 120px minmax(170px, 1fr) minmax(220px, 1.4fr) 115px;
  gap: 7px;
  align-items: end;
  margin-bottom: 18px;
}

.pg-filter label,
.pg-basic-grid label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.pg-filter input,
.pg-filter select,
.pg-basic-grid input,
.pg-basic-grid select,
.pg-basic-grid textarea,
.pg-line-form input {
  width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 6px 8px;
  color: #1f252d;
  background: white;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

.pg-filter-notes {
  grid-column: 1 / 5;
}

.pg-check {
  grid-template-columns: 1fr;
}

.pg-check input,
.pg-impact input,
.pg-auto input {
  width: auto;
  min-height: 0;
}

.pg-list-actions,
.pg-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 10px 0;
}

.pg-list-actions > div,
.pg-footer-actions > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg-button {
  min-height: 30px;
  padding: 6px 11px;
  color: #242a32;
  background: #f5f6f7;
  border: 1px solid #cfd4d8;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pg-button i {
  margin-right: 5px;
}

.pg-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.pg-table th {
  padding: 10px 10px;
  color: white;
  background: #3a4353;
  border-right: 1px solid #566070;
  text-align: left;
  font-size: 11px;
}

.pg-table td {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  vertical-align: middle;
}

.admin-registry-view {
  background: #ffffff;
}

.admin-registry-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px;
  gap: 9px;
  margin-bottom: 8px;
}

.admin-registry-filter-grid label,
.admin-registry-edit-grid label,
.admin-client-edit-grid label,
.admin-person-filter-grid label,
.admin-person-edit-grid label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.admin-registry-filter-grid input,
.admin-registry-filter-grid select,
.admin-registry-edit-grid input,
.admin-registry-edit-grid textarea,
.admin-client-edit-grid input,
.admin-client-edit-grid textarea,
.admin-person-filter-grid input,
.admin-person-filter-grid select,
.admin-person-edit-grid input,
.admin-person-edit-grid select,
.admin-person-edit-grid textarea {
  width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 6px 8px;
  color: #1f252d;
  background: #ffffff;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

.admin-registry-summary {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.admin-registry-table small,
.admin-clients-table small {
  display: block;
  margin-top: 2px;
  color: #69737f;
  font-size: 11px;
}

.admin-registry-table tbody tr,
.admin-clients-table tbody tr {
  cursor: pointer;
}

.admin-registry-table tbody tr:hover td,
.admin-clients-table tbody tr:hover td {
  background: #eef8f1;
}

.admin-registry-table .active-cell,
.admin-clients-table .active-cell {
  text-align: center;
}

.admin-registry-table .active-cell .fa-check-circle,
.admin-clients-table .active-cell .fa-check-circle {
  color: #10bd48;
}

.admin-registry-table .active-cell .fa-minus-circle,
.admin-clients-table .active-cell .fa-minus-circle {
  color: #d39b1f;
}

.expenses-view {
  background: #ffffff;
}

.expenses-view .pg-page-head {
  display: block;
  margin: 0 0 8px;
  padding: 0 0 22px;
  border-bottom: 1px solid #2c9ccc;
}

.expenses-view .pg-page-head h1 {
  margin: 0;
  color: #08111d;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.expenses-view .pg-page-head p,
.expenses-view .pg-page-head .cash-badge {
  display: none;
}

.expenses-view .pg-edit-form,
.expenses-view .pg-lines {
  padding: 0;
  background: #ffffff;
  border: 0;
  box-shadow: none;
}

.expenses-view .pg-edit-form h2,
.expenses-view .pg-lines h2 {
  margin: 0 0 12px;
  padding: 9px 10px;
  color: #151d28;
  background: #e5e9ef;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.expenses-filter-grid,
.expense-edit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.expenses-filter-grid label,
.expense-edit-grid label {
  display: grid;
  gap: 4px;
  color: #1c2430;
  font-size: 11px;
  font-weight: 700;
}

.expenses-filter-grid input,
.expenses-filter-grid select,
.expense-edit-grid input,
.expense-edit-grid select,
.expense-edit-grid textarea {
  width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 6px 8px;
  color: #1f252d;
  background: #ffffff;
  border: 1px solid #d5d9dc;
  border-radius: 2px;
  font: inherit;
}

.expenses-query,
.expense-provider,
.expense-notes {
  grid-column: span 2;
}

.expense-notes textarea {
  min-height: 68px;
  resize: vertical;
}

.expenses-view .expenses-summary {
  display: none;
}

.expenses-view .pg-footer-actions {
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 2px 0 10px;
}

.expenses-view .pg-footer-actions > div {
  gap: 8px;
}

.expenses-view .pg-button {
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 3px;
  font-size: 12px;
}

.expenses-view .pg-product-detail-footer {
  margin-top: 12px;
  padding: 14px 10px;
  background: #edf1f5;
}

.expenses-table {
  table-layout: fixed;
}

.expenses-table th {
  padding: 9px 10px;
  color: #ffffff;
  background: #3a4353;
  border-right: 1px solid #566070;
  font-size: 11px;
  line-height: 1.15;
}

.expenses-table td {
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid #e2e5e8;
  font-size: 12px;
  line-height: 1.25;
  vertical-align: middle;
}

.expenses-table tbody tr:nth-child(even) td {
  background: #f2f3f5;
}

.expenses-table small {
  display: block;
  margin-top: 2px;
  color: #69737f;
  font-size: 11px;
}

.expenses-table tbody tr {
  cursor: pointer;
}

.expenses-table tbody tr:hover td {
  background: #d8edf7;
}

.expense-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #cfd5dc;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.expense-report-group {
  margin-top: 16px;
}

.expense-status.is-paid,
.cash-badge.is-paid {
  color: #0d4a28;
  background: #d9f5df;
  border-color: #91d5a1;
}

.expense-status.is-pending,
.cash-badge.is-pending {
  color: #6a4a00;
  background: #fff4c2;
  border-color: #d7bd5a;
}

.expense-status.is-overdue,
.cash-badge.is-overdue,
.expense-status.is-cancelled,
.cash-badge.is-cancelled {
  color: #8a1d16;
  background: #fde1df;
  border-color: #ef9a95;
}

.admin-registry-edit-grid {
  display: grid;
  grid-template-columns: 180px minmax(260px, 1fr) 120px;
  gap: 14px;
  padding-bottom: 16px;
}

.admin-registry-name {
  grid-column: 2 / 3;
}

.admin-registry-active {
  align-content: end;
}

.admin-registry-active input,
.admin-check input {
  width: auto;
  min-height: 0;
}

.admin-registry-notes {
  grid-column: 1 / 4;
}

.admin-registry-notes textarea,
.admin-client-edit-grid textarea {
  min-height: 72px;
  resize: vertical;
}

.admin-registry-info {
  grid-column: 1 / 4;
  padding: 10px 12px;
  color: #28323c;
  background: #eef1f5;
  font-size: 12px;
  font-weight: 700;
}

.admin-client-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  padding-bottom: 16px;
}

.admin-client-edit-grid .client-name,
.admin-client-edit-grid .client-fantasy,
.admin-client-edit-grid .client-address {
  grid-column: span 2;
}

.admin-client-edit-grid .client-email-billing,
.admin-client-edit-grid .client-email-contact,
.admin-client-edit-grid .client-references,
.admin-client-edit-grid .client-info {
  grid-column: span 2;
}

.admin-check {
  align-content: end;
}

.admin-person-filter-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 170px 145px;
  gap: 9px;
  margin-bottom: 8px;
}

.providers-filter-grid {
  grid-template-columns: minmax(280px, 1fr) 180px 145px;
}

.admin-person-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  padding-bottom: 16px;
}

.admin-person-edit-grid .person-name,
.admin-person-edit-grid .person-fantasy,
.admin-person-edit-grid .person-address {
  grid-column: span 2;
}

.admin-person-edit-grid .person-email,
.admin-person-edit-grid .person-contact,
.admin-person-edit-grid .person-site,
.admin-person-edit-grid .person-notes {
  grid-column: span 2;
}

.admin-person-edit-grid .admin-registry-info {
  grid-column: span 3;
}

.admin-person-table small {
  display: block;
  margin-top: 2px;
  color: #69737f;
  font-size: 11px;
}

.admin-person-table tbody tr {
  cursor: pointer;
}

.admin-person-table tbody tr:hover td {
  background: #eef8f1;
}

.admin-person-table .active-cell {
  text-align: center;
}

.admin-person-table .active-cell .fa-check-circle {
  color: #10bd48;
}

.admin-person-table .active-cell .fa-minus-circle {
  color: #d39b1f;
}

.inventory-list-table tr.is-draft {
  background: #fbf7bc;
}

.inventory-list-table tr.is-completed {
  background: #94ea47;
}

.inventory-list-table tr.is-cancelled {
  background: #efb0a5;
}

.inventory-list-table button[data-inventory-open] {
  color: #1a8fbd;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
}

.pg-basic-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 1fr) minmax(210px, 1.4fr) minmax(170px, 1fr);
  gap: 16px 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf0f2;
}

.pg-basic-grid b {
  color: #d82020;
}

.pg-input-icons {
  position: relative;
}

.pg-input-icons input {
  padding-right: 45px;
}

.pg-input-icons i {
  position: absolute;
  right: 28px;
  bottom: 8px;
}

.pg-input-icons i + i {
  right: 9px;
}

.pg-impact {
  align-content: end;
}

.pg-observations {
  grid-column: 1 / 4;
}

.pg-observations textarea {
  min-height: 58px;
  resize: vertical;
}

.pg-footer-actions {
  margin-top: 28px;
  padding: 10px;
  background: #f0f2f5;
}

.pg-success {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -36px -32px 24px;
  padding: 14px 18px;
  color: #20420f;
  background: #d3ffa9;
  font-size: 13px;
}

.pg-success i {
  font-size: 22px;
}

.pg-success button {
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.pg-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #9aa3ad;
  margin-bottom: 8px;
}

.pg-tabs button {
  padding: 0 0 8px;
  color: #333b44;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.pg-tabs button.active {
  border-bottom: 3px solid #2c9ccc;
}

.pg-line-form {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(260px, 1fr) 96px 90px 88px 92px 58px;
  gap: 8px;
  align-items: center;
  width: min(850px, 100%);
  padding: 8px 0 12px;
}

.pg-search-field {
  position: relative;
}

.pg-search-field input {
  padding-right: 27px;
}

.pg-search-field i {
  position: absolute;
  right: 8px;
  top: 9px;
}

.pg-auto {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
}

.inventory-product-results {
  position: absolute;
  z-index: 4;
  top: 43px;
  left: 0;
  width: min(650px, 100%);
  display: grid;
  max-height: 260px;
  overflow: auto;
  background: white;
  border: 1px solid #cfd5da;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.inventory-product-results button {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  gap: 8px;
  padding: 8px 10px;
  color: #1f252d;
  background: white;
  border: 0;
  border-bottom: 1px solid #e3e7ea;
  text-align: left;
}

.inventory-product-results button:hover {
  background: #eef8f1;
}

.inventory-items-table th:nth-child(1),
.inventory-items-table td:nth-child(1) {
  width: 90px;
}

.inventory-items-table th:nth-child(2),
.inventory-items-table td:nth-child(2) {
  width: 120px;
}

.inventory-items-table td {
  background: #f5f6f7;
  border-color: #e4e7ea;
}

.inventory-items-table small {
  display: block;
  margin-top: 2px;
  color: #69737f;
}

.inventory-items-table tbody tr:nth-child(even) td {
  background: #eceff1;
}

.inventory-items-table tfoot td {
  background: white;
  border-top: 1px solid #1d232c;
  font-weight: 800;
}

.inventory-items-table [data-inventory-remove] {
  float: right;
  border: 0;
  color: #1d232c;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
}

.pg-action-wrap {
  position: relative;
  display: inline-block;
}

.pg-actions-menu {
  position: absolute;
  right: 0;
  bottom: 34px;
  z-index: 5;
  min-width: 190px;
  background: white;
  border: 1px solid #cfd4d8;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.pg-actions-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  color: #242a32;
  background: white;
  border: 0;
  border-bottom: 1px solid #e6e9ec;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.pg-actions-menu button:disabled {
  color: #9aa2aa;
  cursor: not-allowed;
}

.inventory-dialog {
  width: min(860px, calc(100vw - 44px));
  padding: 0;
  border: 0;
  background: transparent;
}

.inventory-dialog::backdrop {
  background: rgba(20, 25, 32, 0.45);
}

.inventory-dialog-card {
  background: white;
  border: 1px solid #cfd4d8;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
}

.inventory-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: white;
  background: #3a4353;
}

.inventory-dialog-head h2 {
  margin: 0;
  font-size: 14px;
}

.inventory-dialog-head button {
  color: white;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.inventory-dialog-body {
  max-height: min(68vh, 620px);
  overflow: auto;
  padding: 14px;
}

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

.inventory-report-summary div {
  padding: 10px;
  background: #f0f2f5;
  border: 1px solid #d9dee2;
}

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

.inventory-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.inventory-report-table th {
  color: white;
  background: #3a4353;
}

.inventory-report-table th,
.inventory-report-table td {
  padding: 8px;
  border: 1px solid #e0e4e7;
  text-align: left;
}

.inventory-upload-form {
  display: grid;
  gap: 12px;
}

.inventory-upload-form p {
  margin: 0;
}

.inventory-upload-form input[type="file"] {
  padding: 10px;
  border: 1px solid #d5d9dc;
}

.inventory-upload-status,
.inventory-import-errors {
  color: #6b7380;
}

.inventory-import-errors ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.provider-documents-view {
  background: #ffffff;
}

.invoice-entries-view {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 14px 36px 28px;
  color: #000000;
  background: #ffffff;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.invoice-entries-view .pg-progestion-form,
.invoice-entries-view .pg-progestion-list {
  min-width: 0;
}

.invoice-entries-view .pg-progestion-head {
  margin: 0 0 8px;
  padding: 0 0 28px;
  border-bottom: 1px solid #2c9ccc;
}

.provider-documents-view .pg-progestion-head {
  margin: 0 0 8px;
  padding: 0 0 28px;
  border-bottom: 1px solid #2c9ccc;
}

.provider-documents-view .pg-progestion-head h1,
.invoice-entries-view .pg-progestion-head h1 {
  margin: 0;
  color: #08111d;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.provider-documents-view .pg-progestion-head h1 span,
.invoice-entries-view .pg-progestion-head h1 span {
  display: inline-block;
  margin-top: 4px;
  font-size: 15px;
}

.provider-documents-view .pg-top-back,
.invoice-entries-view .pg-top-back {
  margin: 0 0 8px;
  padding: 0;
  color: #8b95a8;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.pg-progestion-form,
.pg-progestion-list {
  background: #ffffff;
}

.pg-progestion-form h2 {
  margin: 0 0 12px;
  padding: 9px 10px;
  color: #151d28;
  background: #e5e9ef;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.provider-document-filter-grid {
  display: grid;
  grid-template-columns: 130px 130px 130px 230px minmax(260px, 1fr);
  gap: 9px;
  align-items: end;
  margin-bottom: 12px;
}

.invoice-entry-filter-grid {
  display: grid;
  grid-template-columns: 150px minmax(260px, 1fr) 160px 150px 150px 155px;
  gap: 10px 12px;
  align-items: end;
  margin-bottom: 12px;
}

.invoice-entry-query {
  grid-column: span 2;
}

.provider-document-form-grid {
  display: grid;
  grid-template-columns: 280px 160px 150px 170px minmax(220px, 1fr);
  gap: 10px 14px;
  margin-bottom: 14px;
}

.invoice-entry-form-grid {
  display: grid;
  grid-template-columns: 210px 190px 150px 150px 150px minmax(280px, 1fr);
  gap: 10px 14px;
  margin-bottom: 14px;
}

.provider-document-amount-grid {
  display: grid;
  grid-template-columns: 180px 180px 220px;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.provider-document-wide {
  grid-column: span 2;
}

.invoice-entry-wide {
  grid-column: span 2;
}

.invoice-entry-file {
  grid-column: span 2;
}

.invoice-entry-file-status {
  align-self: end;
  min-height: 31px;
  padding: 7px 8px;
  color: #3e4854;
  background: #f5f7f9;
  border: 1px solid #d8dde2;
  font-size: 11px;
}

.invoice-entry-check {
  display: flex !important;
  grid-column: span 3;
  align-items: center;
  gap: 8px !important;
}

.invoice-entry-check input {
  width: auto !important;
  min-height: 0 !important;
}

.provider-document-filter-grid label,
.provider-document-form-grid label,
.provider-document-amount-grid label,
.invoice-entry-filter-grid label,
.invoice-entry-form-grid label {
  display: grid;
  gap: 4px;
  color: #1c2430;
  font-size: 11px;
  font-weight: 700;
}

.provider-document-filter-grid input,
.provider-document-filter-grid select,
.provider-document-form-grid input,
.provider-document-form-grid select,
.invoice-entry-filter-grid input,
.invoice-entry-filter-grid select,
.invoice-entry-form-grid input,
.invoice-entry-form-grid select,
.provider-document-amount-grid input,
.provider-document-notes {
  width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 6px 8px;
  color: #1f252d;
  background: #ffffff;
  border: 1px solid #cfd4d8;
  border-radius: 2px;
  font: inherit;
}

.invoice-entry-tabs {
  margin-top: 4px;
}

.invoice-entry-items-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 8px 0;
  font-size: 11px;
}

.invoice-entry-items-scroll {
  width: 100%;
  overflow-x: hidden;
  border: 1px solid #e1e5ea;
  border-top: 0;
}

.invoice-entry-list-table {
  min-width: 0;
}

.invoice-entry-list-table th:nth-child(n),
.invoice-entry-list-table td:nth-child(n) {
  text-align: left;
}

.invoice-entry-list-table th:nth-child(1) {
  width: 130px;
}

.invoice-entry-list-table th:nth-child(3) {
  width: 240px;
}

.invoice-entry-list-table th:nth-child(7),
.invoice-entry-list-table td:nth-child(7) {
  width: 120px;
  text-align: right;
}

.invoice-entry-list-table th:nth-child(9),
.invoice-entry-list-table td:nth-child(9) {
  width: 95px;
  text-align: center;
}

.invoice-entry-items-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 10px;
}

.invoice-entry-items-table th:nth-child(1),
.invoice-entry-items-table td:nth-child(1) {
  width: 2.6%;
  text-align: center;
}

.invoice-entry-items-table th:nth-child(2),
.invoice-entry-items-table td:nth-child(2) {
  width: 9%;
}

.invoice-entry-items-table th:nth-child(3),
.invoice-entry-items-table td:nth-child(3) {
  width: 18%;
}

.invoice-entry-items-table th:nth-child(4),
.invoice-entry-items-table td:nth-child(4) {
  width: 5%;
}

.invoice-entry-items-table th:nth-child(5),
.invoice-entry-items-table td:nth-child(5) {
  width: 7.5%;
}

.invoice-entry-items-table th:nth-child(6),
.invoice-entry-items-table td:nth-child(6) {
  width: 7%;
}

.invoice-entry-items-table th:nth-child(7),
.invoice-entry-items-table td:nth-child(7) {
  width: 20.5%;
}

.invoice-entry-items-table th:nth-child(8),
.invoice-entry-items-table td:nth-child(8) {
  width: 7%;
}

.invoice-entry-items-table th:nth-child(9),
.invoice-entry-items-table td:nth-child(9) {
  width: 10.5%;
}

.invoice-entry-items-table th:nth-child(10),
.invoice-entry-items-table td:nth-child(10) {
  width: 8%;
  text-align: center;
}

.invoice-entry-items-table th:nth-child(11),
.invoice-entry-items-table td:nth-child(11) {
  width: 4.9%;
  text-align: center;
}

.invoice-entry-items-table th,
.invoice-entry-items-table td {
  padding: 5px 4px;
  overflow-wrap: anywhere;
}

.invoice-entry-items-table th {
  padding: 7px 5px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.invoice-entry-items-table td {
  line-height: 1.15;
  vertical-align: middle;
}

.invoice-entry-items-table input,
.invoice-entry-items-table select,
.invoice-entry-items-table textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 27px;
  padding: 3px 5px;
  border: 1px solid #cfd4d8;
  border-radius: 2px;
  font: inherit;
}

.invoice-entry-items-table textarea {
  min-height: 30px;
  max-height: 58px;
  resize: vertical;
}

.invoice-product-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 27px;
  gap: 3px;
  margin-bottom: 3px;
}

.invoice-product-link .pg-icon-action {
  width: 27px;
  height: 27px;
  background: #f5f7f9;
  border: 1px solid #cfd4d8;
  font-size: 13px;
}

.invoice-status,
.invoice-link-status {
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 3px 4px;
  border: 1px solid #cdd3da;
  border-radius: 2px;
  background: #f4f6f8;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.invoice-status.confirmada,
.invoice-link-status.is-linked {
  color: #0b6b34;
  background: #dff5e8;
  border-color: #9ad2ad;
}

.invoice-status.pendente-vinculo,
.invoice-link-status.is-pending {
  color: #815600;
  background: #fff2bf;
  border-color: #d8b957;
}

.invoice-status.cancelada {
  color: #8a1d16;
  background: #fde1df;
  border-color: #ef9a95;
}

.pg-icon-action {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #1f2730;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 15px;
}

.pg-icon-action.danger {
  color: #8a1f1f;
}

.invoice-product-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px 40px;
  background: rgba(12, 16, 22, 0.38);
}

.invoice-product-modal-card {
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100vw - 80px));
  max-height: calc(100vh - 72px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #cfd5da;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
}

.invoice-product-modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #3a4353;
}

.invoice-product-modal-card header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.invoice-product-modal-card header button {
  color: #ffffff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.invoice-product-search-form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(300px, 1fr) 112px;
  gap: 10px 12px;
  align-items: end;
  padding: 12px 14px;
  background: #eef1f5;
}

.invoice-product-search-form label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
}

.invoice-product-search-form input,
.invoice-product-search-form select {
  box-sizing: border-box;
  width: 100%;
  min-height: 31px;
  padding: 6px 8px;
  border: 1px solid #cfd4d8;
  font: inherit;
}

.invoice-product-result-line {
  padding: 8px 14px;
  color: #1d2732;
  font-size: 12px;
  border-bottom: 1px solid #e1e5ea;
}

.invoice-product-results-scroll {
  overflow: auto;
}

.invoice-product-results-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.invoice-product-results-table th:nth-child(1),
.invoice-product-results-table td:nth-child(1) {
  width: 12%;
}

.invoice-product-results-table th:nth-child(2),
.invoice-product-results-table td:nth-child(2) {
  width: 35%;
}

.invoice-product-results-table th:nth-child(5),
.invoice-product-results-table td:nth-child(5) {
  width: 8%;
  text-align: right;
}

.invoice-product-results-table th:nth-child(7),
.invoice-product-results-table td:nth-child(7) {
  width: 11%;
  text-align: center;
}

.invoice-product-results-table small {
  display: block;
  margin-top: 2px;
  color: #69737f;
}

.pg-button.compact {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 11px;
}

.provider-document-notes {
  display: block;
  min-height: 72px;
  margin-bottom: 10px;
  resize: vertical;
}

.pg-progestion-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
}

.pg-result-line {
  margin: 4px 0 6px;
  color: #1d2732;
  font-size: 12px;
}

.pg-provider-documents-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.pg-provider-documents-table th {
  padding: 10px 12px;
  color: #ffffff;
  background: #3a4353;
  border-right: 1px solid #566070;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
}

.pg-provider-documents-table th:nth-child(1) {
  width: 110px;
}

.pg-provider-documents-table th:nth-child(2) {
  width: 140px;
}

.pg-provider-documents-table th:nth-child(3) {
  width: 230px;
}

.pg-provider-documents-table th:nth-child(5) {
  width: 150px;
  text-align: right;
}

.pg-provider-documents-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #e3e6e8;
  line-height: 1.2;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.pg-provider-documents-table tbody tr:nth-child(even) td {
  background: #f0f2f4;
}

.pg-provider-documents-table td:nth-child(5) {
  text-align: right;
}

.invoice-entry-items-table.pg-provider-documents-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 10px;
}

.invoice-entry-items-table.pg-provider-documents-table th {
  padding: 7px 5px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.invoice-entry-items-table.pg-provider-documents-table td {
  padding: 5px 4px;
  line-height: 1.15;
  vertical-align: middle;
}

.invoice-entry-items-table.pg-provider-documents-table th:nth-child(1),
.invoice-entry-items-table.pg-provider-documents-table td:nth-child(1) {
  width: 2.6%;
  text-align: center;
}

.invoice-entry-items-table.pg-provider-documents-table th:nth-child(2),
.invoice-entry-items-table.pg-provider-documents-table td:nth-child(2) {
  width: 9%;
  text-align: left;
}

.invoice-entry-items-table.pg-provider-documents-table th:nth-child(3),
.invoice-entry-items-table.pg-provider-documents-table td:nth-child(3) {
  width: 18%;
  text-align: left;
}

.invoice-entry-items-table.pg-provider-documents-table th:nth-child(4),
.invoice-entry-items-table.pg-provider-documents-table td:nth-child(4) {
  width: 5%;
  text-align: center;
}

.invoice-entry-items-table.pg-provider-documents-table th:nth-child(5),
.invoice-entry-items-table.pg-provider-documents-table td:nth-child(5) {
  width: 7.5%;
  text-align: right;
}

.invoice-entry-items-table.pg-provider-documents-table th:nth-child(6),
.invoice-entry-items-table.pg-provider-documents-table td:nth-child(6) {
  width: 7%;
  text-align: right;
}

.invoice-entry-items-table.pg-provider-documents-table th:nth-child(7),
.invoice-entry-items-table.pg-provider-documents-table td:nth-child(7) {
  width: 20.5%;
  text-align: left;
}

.invoice-entry-items-table.pg-provider-documents-table th:nth-child(8),
.invoice-entry-items-table.pg-provider-documents-table td:nth-child(8) {
  width: 7%;
  text-align: left;
}

.invoice-entry-items-table.pg-provider-documents-table th:nth-child(9),
.invoice-entry-items-table.pg-provider-documents-table td:nth-child(9) {
  width: 10.5%;
  text-align: left;
}

.invoice-entry-items-table.pg-provider-documents-table th:nth-child(10),
.invoice-entry-items-table.pg-provider-documents-table td:nth-child(10) {
  width: 8%;
  text-align: center;
}

.invoice-entry-items-table.pg-provider-documents-table th:nth-child(11),
.invoice-entry-items-table.pg-provider-documents-table td:nth-child(11) {
  width: 4.9%;
  text-align: center;
}

.pg-link-button {
  padding: 0;
  color: #0088c7;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
}

.pg-progestion-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 0 0;
}

.pg-progestion-pagination > div {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pg-page-button {
  min-width: 28px;
  min-height: 28px;
  padding: 4px 8px;
  color: #222a33;
  background: #ffffff;
  border: 1px solid #ccd3d9;
  border-radius: 2px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.pg-page-button.is-active {
  color: #ffffff;
  background: #3a4353;
  border-color: #3a4353;
}

.pg-page-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.pg-required-note {
  margin: 8px 0 12px;
  color: #3b4652;
  font-size: 11px;
}

.pg-progestion-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 10px;
  background: #edf1f5;
}

.pg-progression-footer .secondary,
.pg-progestion-footer .secondary {
  margin-right: auto;
}

.pg-button.danger {
  color: #8a1f1f;
  border-color: #d6aaaa;
}

.admin-registry-view .pg-progestion-head {
  margin: 0 0 8px;
  padding: 0 0 28px;
  border-bottom: 1px solid #2c9ccc;
}

.admin-registry-view .pg-progestion-head h1 {
  margin: 0;
  color: #08111d;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.pg-config-list-form,
.pg-config-edit-form,
.pg-config-list,
.pg-config-box {
  background: #ffffff;
  font-size: 12px;
}

.pg-config-form-table,
.pg-config-result-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.pg-config-form-table th {
  padding: 9px 10px;
  color: #151d28;
  background: #e5e9ef;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}

.pg-config-form-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e8eb;
  vertical-align: middle;
}

.pg-config-form-table td:first-child {
  width: 220px;
  color: #1c2430;
  font-weight: 700;
}

.pg-config-form-table input[type="text"],
.pg-config-form-table input[type="search"],
.pg-config-form-table input[type="date"],
.pg-config-form-table input[type="number"],
.pg-config-form-table select,
.pg-config-form-table textarea {
  width: 100%;
  max-width: 520px;
  min-height: 31px;
  box-sizing: border-box;
  padding: 6px 8px;
  color: #1f252d;
  background: #ffffff;
  border: 1px solid #cfd4d8;
  border-radius: 2px;
  font: inherit;
}

.pg-config-form-table textarea {
  min-height: 70px;
  resize: vertical;
}

.pg-config-form-table input[type="checkbox"] {
  width: 13px;
  height: 13px;
}

.pg-admin-module-filter td {
  width: 12.5%;
}

.pg-admin-module-filter td:nth-child(odd) {
  white-space: nowrap;
}

.pg-canceled-row td {
  color: #8c8c8c;
  text-decoration: line-through;
}

.pg-link-button.danger {
  color: #b42318;
}

.pg-label-qty {
  max-width: 74px;
  min-height: 26px;
  padding: 3px 6px;
}

.pg-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 18px;
  font-weight: 400;
}

.bulk-collection-module .pg-config-form-table {
  table-layout: auto;
}

.bulk-collection-module .pg-config-form-table td:first-child {
  width: 1%;
  min-width: 160px;
  padding-right: 8px;
  white-space: nowrap;
}

.bulk-collection-module .pg-config-form-table td:nth-child(2) {
  padding-left: 0;
}

.bulk-collection-module .pg-config-form-table input[type="text"],
.bulk-collection-module .pg-config-form-table input[type="date"],
.bulk-collection-module .pg-config-form-table select {
  max-width: 260px;
}

.pg-progestion-head.compact {
  margin-top: 18px;
}

.fiscal-document-module .pg-config-form-table {
  table-layout: auto;
}

.fiscal-document-module .pg-config-form-table td {
  padding: 9px 6px;
}

.fiscal-document-module .pg-config-form-table td:nth-child(odd) {
  width: 1%;
  min-width: 0;
  padding-left: 14px;
  padding-right: 4px;
  color: #0f1722;
  font-weight: 700;
  white-space: nowrap;
}

.fiscal-document-module .pg-config-form-table td:nth-child(even) {
  width: 180px;
  padding-left: 0;
  padding-right: 22px;
}

.fiscal-document-module .pg-config-form-table input[type="text"],
.fiscal-document-module .pg-config-form-table input[type="search"],
.fiscal-document-module .pg-config-form-table input[type="date"],
.fiscal-document-module .pg-config-form-table input[type="number"],
.fiscal-document-module .pg-config-form-table select {
  width: 100%;
  max-width: 180px;
  min-height: 38px;
}

.fiscal-document-module .pg-config-form-table textarea {
  width: 100%;
  max-width: 620px;
}

.fiscal-document-module #fiscalReferenceForm .pg-config-form-table td:nth-child(odd),
.fiscal-document-module #fiscalDocumentForm .pg-config-form-table:nth-of-type(2) td:nth-child(odd) {
  width: 1%;
}

.fiscal-document-module #fiscalReferenceForm .pg-config-form-table td:nth-child(even),
.fiscal-document-module #fiscalDocumentForm .pg-config-form-table:nth-of-type(2) td:nth-child(even) {
  width: 150px;
}

.fiscal-document-module #fiscalReferenceForm .pg-config-form-table input,
.fiscal-document-module #fiscalReferenceForm .pg-config-form-table select,
.fiscal-document-module #fiscalDocumentForm .pg-config-form-table:nth-of-type(2) input,
.fiscal-document-module #fiscalDocumentForm .pg-config-form-table:nth-of-type(2) select {
  max-width: 150px;
}

.fiscal-document-module #fiscalDocumentForm .pg-config-form-table:nth-of-type(2) td {
  padding-right: 18px;
}

.fiscal-document-module #fiscalQty,
.fiscal-document-module #fiscalPrice {
  min-width: 0;
}

.pg-config-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.pg-config-action-row > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pg-text-action {
  min-height: 28px;
  padding: 3px 6px;
  color: #1d2732;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.pg-text-action i {
  margin-right: 5px;
  color: #333333;
  font-size: 15px;
}

.pg-config-result-table th {
  padding: 10px 12px;
  color: #ffffff;
  background: #3a4353;
  border-right: 1px solid #566070;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
}

.pg-config-result-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #e3e6e8;
  line-height: 1.22;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.pg-config-result-table tbody tr:nth-child(even) td {
  background: #f0f2f4;
}

.pg-config-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.pg-config-pagination > div {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pg-config-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 10px;
  background: #edf1f5;
}

.pg-config-footer .secondary {
  margin-right: auto;
}

.pg-config-tree-actions {
  display: flex;
  gap: 14px;
  margin: 10px 0;
}

.pg-config-tree-actions button,
.pg-config-tree button {
  color: #1d2732;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.pg-config-tree {
  display: grid;
  gap: 5px;
  align-items: start;
  padding: 6px 0 0 10px;
}

.pg-config-tree button {
  justify-self: start;
}

.pg-config-tree i {
  margin-right: 6px;
  color: #3a4353;
}

.pg-category-config {
  padding: 0;
}

.pg-category-form-table {
  table-layout: auto;
}

.pg-category-form-table th {
  text-transform: uppercase;
}

.pg-category-form-table td {
  padding: 16px 10px;
}

.pg-category-form-table td:first-child {
  width: 92px;
  padding-left: 18px;
  padding-right: 6px;
  white-space: nowrap;
}

.pg-category-form-table td:nth-child(2) {
  width: 230px;
  padding-left: 0;
}

.pg-category-form-table td:nth-child(3) {
  padding-left: 12px;
}

.pg-category-form-table input[type="text"] {
  max-width: 215px;
  min-height: 35px;
}

.pg-category-form-table .required {
  color: #d7242a;
}

.pg-category-action,
.pg-category-tree-actions button {
  min-height: 36px;
  margin-right: 6px;
  padding: 6px 10px;
  color: #1b2430;
  background: #f7f8fa;
  border: 1px solid #ccd3db;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.pg-category-action i,
.pg-category-tree-actions i {
  margin-right: 5px;
  color: #111923;
}

.pg-category-tree-actions {
  display: flex;
  gap: 0;
  padding: 16px 0 12px 10px;
  border-bottom: 1px solid #eef0f2;
}

.pg-category-tree-wrap {
  padding: 4px 0 24px 18px;
  overflow-x: auto;
}

.pg-category-tree,
.pg-category-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-category-tree ul {
  margin-left: 18px;
}

.pg-category-tree-item {
  position: relative;
}

.pg-category-tree-item ul {
  border-left: 1px dotted #c9cdd1;
}

.pg-category-node {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 20px;
  color: #202833;
  font-size: 12px;
  line-height: 1.1;
}

.pg-category-node .pg-category-branch {
  width: 14px;
  height: 1px;
  margin-right: 2px;
  border-top: 1px dotted #c9cdd1;
}

.pg-category-tree > .pg-category-tree-item > .pg-category-node .pg-category-branch {
  width: 0;
  margin-right: 0;
  border-top: 0;
}

.pg-category-toggle,
.pg-category-toggle-placeholder {
  display: inline-grid;
  place-items: center;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  padding: 0;
  color: #1e2833;
  background: #ffffff;
  border: 1px solid #89919b;
  font-size: 9px;
  line-height: 1;
}

.pg-category-toggle {
  cursor: pointer;
}

.pg-category-toggle-placeholder {
  border-color: transparent;
}

.pg-category-label {
  padding: 1px 3px;
  color: #202833;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.pg-category-node.level-0 .pg-category-label,
.pg-category-tree > .pg-category-tree-item > .pg-category-node .pg-category-label {
  font-weight: 800;
}

.pg-category-node.is-selected .pg-category-label {
  background: #d7edf8;
  outline: 1px solid #9bc9dd;
}

@media (max-width: 1280px) {
  .system-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .dashboard-frame {
    grid-template-columns: 288px minmax(0, 1fr);
  }

  .recent-row {
    grid-template-columns: 92px 1fr 104px 116px;
  }
}

@media (max-width: 1040px) {
  .dashboard-frame,
  .bottom-grid,
  .cash-balance-grid,
  .cash-form-grid,
  .billing-basic-grid,
  .billing-product-row,
  .sales-basic-grid,
  .module-grid,
  .pg-filter-grid,
  .customers-filter-grid,
  .documents-filter-grid,
  .sales-filter-grid,
  .cash-closures-filter-grid,
  .cash-movements-filter-grid,
  .inventory-movements-filter-grid,
  .inventory-reception-filter-grid,
  .inventory-adjustment-filter-grid,
  .product-inventory-filter-grid,
  .admin-product-filter-grid,
  .pg-basic-grid,
  .pg-line-form {
    grid-template-columns: 1fr;
  }

  .dashboard-frame {
    border-width: 6px;
  }

  .inventory-view,
  .inventory-transfer-view,
  .inventory-reception-view,
  .inventory-adjustment-view,
  .cash-view,
  .billing-view,
  .sales-view,
  .customers-view,
  .documents-view,
  .receipts-view,
  .accounts-view,
  .debt-view,
  .cash-closures-view,
  .cash-movements-view,
  .product-inventory-view,
  .inventory-movements-view {
    margin: 14px 18px 28px;
  }

  .pg-product-list {
    overflow-x: auto;
  }

  .pg-product-table {
    min-width: 1180px;
  }

  .pg-product-data-grid,
  .pg-product-price-grid,
  .pg-product-category-grid,
  .pg-product-other-grid {
    grid-template-columns: 1fr;
  }

  .pg-product-data-grid .sku,
  .pg-product-data-grid .alt-codes,
  .pg-product-data-grid .description,
  .pg-product-data-grid .unit,
  .pg-product-data-grid .currency,
  .pg-product-data-grid .tax,
  .pg-product-data-grid .undefined-price,
  .pg-product-category-grid .category,
  .pg-product-category-grid .model,
  .pg-product-category-grid .brand,
  .pg-product-category-grid .provider,
  .pg-product-category-grid .provider-code,
  .pg-product-other-grid .billing-info,
  .pg-product-other-grid .internal-notes,
  .pg-product-other-grid .detailed-description,
  .pg-product-other-grid .active-check {
    grid-column: auto;
    grid-row: auto;
  }

  .pg-product-image-slot {
    grid-column: auto;
    grid-row: auto;
    width: min(286px, 100%);
  }

  .module-view {
    margin: 14px 18px 28px;
  }

  .invoice-entries-view {
    padding: 14px 18px 28px;
  }

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

  .pg-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-list-head,
  .customer-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-pagination,
  .customer-detail-actions > div {
    flex-wrap: wrap;
  }

  .cash-wide,
  .billing-wide,
  .billing-client-field {
    grid-column: auto;
  }

  .module-head strong {
    white-space: normal;
  }

  .pg-filter-notes,
  .pg-observations {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .system-shell,
  .system-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .system-sidebar {
    position: static;
    height: auto;
  }

  .system-sidebar nav {
    max-height: 320px;
  }

  .system-shell.sidebar-collapsed .system-sidebar {
    display: none;
  }

  #priceImportDialog {
    width: calc(100vw - 18px);
  }

  .price-import-card {
    max-height: calc(100dvh - 18px);
    gap: 12px;
  }

  .price-import-head,
  .price-import-actions {
    padding-left: 16px;
    padding-right: 56px;
  }

  .price-import-actions {
    padding-right: 16px;
  }

  .price-import-file,
  .price-import-status,
  .price-import-preview {
    margin-left: 16px;
    margin-right: 16px;
  }

  .exchange-chip,
  .location-chip {
    display: none;
  }

  .page-title,
  .system-status,
  .dashboard-frame {
    margin-left: 12px;
    margin-right: 12px;
  }

  .invoice-entries-view {
    padding-left: 12px;
    padding-right: 12px;
  }

  .dashboard-frame {
    padding: 12px;
  }

  .page-title {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-metrics,
  .quote-total-row,
  .status-grid {
    grid-template-columns: 1fr;
  }

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