:root {
  color-scheme: dark;
  --bg: #071827;
  --panel: #0b1e2d;
  --panel-2: #102a3d;
  --sidebar: #061522;
  --line: #29445a;
  --text: #f2f7fb;
  --muted: #99b4c8;
  --accent: #1494ff;
  --accent-2: #0b62b8;
  --danger: #f05252;
}

* {
  box-sizing: border-box;
}

html, body, input, select, button, textarea {
  font-family: Aptos, Tahoma, Arial, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Aptos, Tahoma, Arial, sans-serif;
  font-size: 12px;
}

a {
  color: #74c5ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-frame {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 8px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.brand {
  display: block;
  padding: 7px 8px 9px;
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.side-nav {
  display: grid;
  gap: 5px;
}

.side-nav a,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 27px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}

.side-nav a {
  width: 100%;
  min-height: 30px;
  background: #0b2235;
}

.side-nav a:hover {
  background: #0f3049;
  text-decoration: none;
}

.button,
button {
  justify-content: center;
}

button.primary,
.primary {
  background: var(--accent-2);
  border-color: #3ca9ff;
}

.button.muted {
  background: transparent;
}

.shell {
  min-width: 0;
  padding: 8px 10px 12px;
  background: var(--bg);
}

.workspace-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 30px;
  margin-bottom: 6px;
}

.userbox {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.userbox small {
  color: var(--muted);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-card h1 {
  margin: 0 0 22px;
}

.form,
.toolbar {
  display: flex;
  gap: 8px;
}

.form {
  flex-direction: column;
}

label {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

input {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #06111d;
  color: var(--text);
  padding: 4px 6px;
  font: inherit;
}

select,
textarea {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #06111d;
  color: var(--text);
  padding: 4px 6px;
  font: inherit;
}

textarea {
  resize: vertical;
  width: 100%;
}

.toolbar {
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 8px;
}

.receipt-form {
  display: grid;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(140px, 0.7fr);
  gap: 8px;
}

.product-preview {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid #245d88;
  border-radius: 4px;
  background: #092238;
}

.product-preview span {
  color: var(--muted);
}

.product-preview.warning {
  border-color: var(--danger);
  color: #ffd6d6;
}

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

.toolbar input:not([type="date"]) {
  min-width: min(420px, 100%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.stat,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.stat {
  padding: 8px;
}

.stat span {
  color: var(--muted);
}

.stat strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.panel {
  padding: 8px;
}

.dashboard-empty {
  min-height: calc(100vh - 36px);
}

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

h1 {
  margin: 0;
  font-size: 12px;
}

p {
  margin: 3px 0 0;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
}

.table-wrap.tall {
  max-height: calc(100vh - 230px);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: inherit;
  line-height: 1;
}

thead tr,
tbody tr {
  height: 18px;
}

tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018);
}

tbody tr:hover td {
  background: rgba(20, 148, 255, 0.075);
}

th,
td {
  height: 18px;
  max-height: 18px;
  padding: 0 4px;
  font-size: inherit;
  line-height: 18px;
  border-bottom: 1px solid #173248;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  background: var(--panel-2);
  color: var(--text);
  z-index: 1;
}

td form {
  margin: 0;
  padding: 0;
}

td .link-button,
td button.link-button,
td a.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 54px;
  min-height: 24px;
  height: auto;
  padding: 4px 8px;
  border: 1px solid #2d5a78;
  border-radius: 4px;
  background: #0f3049;
  color: var(--text);
  line-height: 1.1;
  white-space: nowrap;
}

td .link-button:hover,
td button.link-button:hover,
td a.link-button:hover {
  background: var(--accent-2);
  border-color: #3ca9ff;
  text-decoration: none;
}

td .button.compact,
td a.button.compact {
  min-height: 0;
  height: 18px;
  padding: 0 4px;
  line-height: 18px;
}

td.num,
th.num {
  text-align: center;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 16px;
}

.messages {
  margin-bottom: 8px;
}

.message {
  padding: 7px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.message.error {
  border-color: var(--danger);
  color: #ffd6d6;
}

.message.ok {
  border-color: #1f9d55;
  color: #c8f8dc;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.row-actions form {
  margin: 0;
}

.link-button {
  border: 0;
  background: transparent;
  color: #69b7ff;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.link-button:hover {
  text-decoration: underline;
}

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

.inline-edit input {
  max-width: 90px;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

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

.danger-link {
  color: #ff8b8b;
}

td .danger-link,
td button.danger-link,
td a.danger-link {
  border-color: rgba(240, 82, 82, 0.75);
  background: #351923;
  color: #ffdada;
}

td .danger-link:hover,
td button.danger-link:hover,
td a.danger-link:hover {
  background: #6f1d1d;
  border-color: #d94b4b;
}

.compact-head {
  margin-top: 14px;
}

.compact-head h2 {
  margin: 0;
  font-size: 12px;
}

.button.compact {
  padding: 3px 7px;
  min-height: 0;
  font-size: 12px;
}

.document-action-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.document-action-card h2 {
  margin: 0;
  font-size: 12px;
}

.document-action-card p {
  max-width: 720px;
}

.danger-card {
  border-color: rgba(240, 82, 82, 0.65);
  background: #160f14;
}

button.danger,
.button.danger {
  background: #6f1d1d;
  border-color: #d94b4b;
  color: #fff4f4;
}

button.danger:hover,
.button.danger:hover {
  background: #842525;
  text-decoration: none;
}
@media (max-width: 1366px) {
  body {
    font-size: 12px;
  }

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

  .brand {
    font-size: 12px;
  }

  .side-nav a {
    min-height: 27px;
    padding: 4px 7px;
  }

  th,
  td {
    height: 18px;
    max-height: 18px;
    padding: 0 4px;
    line-height: 18px;
  }
}

@media (max-width: 900px) {
  body {
    font-size: 12px;
  }

  .app-frame {
    grid-template-columns: 1fr;
  }

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

  .side-nav {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

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

  .stats {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

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



.today-shipment-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.today-stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #2d5a78;
  border-radius: 6px;
  background: #0f3049;
}

.today-stat-card span {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

.today-stat-card strong {
  min-width: 72px;
  text-align: right;
  font-size: 24px;
  line-height: 1;
  color: #74c5ff;
}

.select-filter-input {
  width: 100%;
  margin-bottom: 4px;
  border-color: #2d6389;
  background: #071827;
}

.select-filter-input:focus {
  outline: 1px solid var(--accent);
}

/* UI refresh 2026-07-05 */
:root {
  --bg: #07131f;
  --panel: #0d2030;
  --panel-2: #122b40;
  --panel-3: #17364f;
  --sidebar: #06111d;
  --line: #244055;
  --line-soft: rgba(115, 178, 220, 0.18);
  --text: #f4f8fb;
  --muted: #a7bed1;
  --accent: #35a7ff;
  --accent-2: #0b6fd3;
  --accent-soft: rgba(53, 167, 255, 0.14);
  --success: #30d787;
  --warning: #f7b955;
  --danger: #ff6b6b;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(53, 167, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #081827 0%, #06111d 100%);
  font-size: clamp(11px, 0.72vw, 13px);
  line-height: 1.35;
}

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

.sidebar {
  padding: 16px 12px;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(9, 29, 45, 0.98), rgba(5, 16, 27, 0.98));
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1494ff, #68d5ff);
  color: white;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(20, 148, 255, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 13px;
  letter-spacing: 0.2px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.side-nav {
  gap: 13px;
}

.nav-group {
  display: grid;
  gap: 5px;
}

.nav-label {
  padding: 0 8px 2px;
  color: #6f92aa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-nav a {
  min-height: 33px;
  gap: 9px;
  padding: 7px 9px;
  border-color: transparent;
  border-radius: 7px;
  background: rgba(18, 43, 64, 0.72);
  color: #eaf6ff;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.side-nav a:hover {
  background: rgba(26, 63, 93, 0.95);
  border-color: rgba(79, 179, 255, 0.32);
  transform: translateX(2px);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(53, 167, 255, 0.13);
  color: #78caff;
  font-size: 14px;
  line-height: 1;
}

.shell {
  padding: 14px 16px 18px;
  background: transparent;
}

.workspace-top {
  min-height: 38px;
  margin-bottom: 10px;
}

.userbox {
  padding: 5px 6px 5px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(13, 32, 48, 0.72);
}

.userbox button {
  min-height: 26px;
  border-radius: 999px;
}

.panel,
.stat,
.login-card {
  border-color: var(--line-soft);
  background: linear-gradient(180deg, rgba(14, 36, 54, 0.96), rgba(10, 26, 40, 0.96));
  box-shadow: var(--shadow);
}

.panel {
  border-radius: 9px;
  padding: 14px;
}

.stat {
  border-radius: 9px;
  padding: 12px;
}

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

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.12;
}

h2 {
  font-size: clamp(15px, 1.05vw, 18px);
}

h3 {
  font-size: clamp(13px, 0.9vw, 16px);
}

p {
  color: var(--muted);
}

input,
select,
textarea {
  min-height: 32px;
  border-color: #315169;
  border-radius: 7px;
  background: rgba(5, 17, 29, 0.92);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 167, 255, 0.16);
}

button,
.button {
  min-height: 32px;
  border-radius: 7px;
  border-color: #33566f;
  background: rgba(18, 43, 64, 0.94);
  font-weight: 700;
}

button:hover,
.button:hover {
  background: #17364f;
  text-decoration: none;
}

button.primary,
.primary {
  background: linear-gradient(135deg, #0b6fd3, #1494ff);
  border-color: #52b6ff;
  box-shadow: 0 10px 22px rgba(20, 148, 255, 0.18);
}

.actions {
  gap: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
}

th,
td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(115, 178, 220, 0.12);
  vertical-align: middle;
}

th {
  background: rgba(23, 54, 79, 0.92);
  color: #f6fbff;
  font-weight: 800;
}

tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}

tbody tr:hover td {
  background: rgba(53, 167, 255, 0.08);
}

/* Faktury: tabela ma zawsze mieścić się w dostępnej szerokości widoku. */
.invoices-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 12px;
}

.invoices-table th,
.invoices-table td {
  padding: 5px 6px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.25;
  height: auto;
  max-height: none;
}

.invoices-exported-table th:nth-child(1) { width: 13%; }
.invoices-exported-table th:nth-child(2) { width: 12%; }
.invoices-exported-table th:nth-child(3) { width: 5%; }
.invoices-exported-table th:nth-child(4) { width: 14%; }
.invoices-exported-table th:nth-child(5) { width: 19%; }
.invoices-exported-table th:nth-child(6) { width: 8%; }
.invoices-exported-table th:nth-child(7) { width: 9%; }
.invoices-exported-table th:nth-child(8) { width: 5%; }
.invoices-exported-table th:nth-child(9) { width: 15%; }

.invoices-queue-table {
  min-width: 1180px;
}

.invoices-queue-table th {
  overflow-wrap: normal;
  word-break: normal;
}

.invoices-queue-table th:nth-child(1) { width: 3%; }
.invoices-queue-table th:nth-child(2) { width: 10%; }
.invoices-queue-table th:nth-child(3) { width: 12%; }
.invoices-queue-table th:nth-child(4) { width: 5%; }
.invoices-queue-table th:nth-child(5) { width: 7%; }
.invoices-queue-table th:nth-child(6) { width: 8%; }
.invoices-queue-table th:nth-child(7) { width: 9%; }
.invoices-queue-table th:nth-child(8) { width: 20%; }
.invoices-queue-table th:nth-child(9) { width: 4%; }
.invoices-queue-table th:nth-child(10) { width: 9%; }
.invoices-queue-table th:nth-child(11) { width: 13%; white-space: nowrap; }

.invoice-status-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
}

.invoice-status-actions .status-badge {
  flex: 0 1 auto;
  white-space: nowrap;
}

.invoice-status-actions form {
  flex: 0 0 auto;
}

.invoice-status-actions button {
  min-width: 0;
  height: 28px;
  padding: 3px 7px;
  font-size: 11px;
  white-space: nowrap;
}

.invoice-review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.invoice-review-actions form,
.invoice-review-actions button {
  width: 100%;
  min-width: 0;
}

.invoice-review-actions button {
  height: 30px;
  padding: 4px 5px;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
  box-shadow: none;
}

.invoice-review-actions .review-to-queue {
  background: rgba(53, 167, 255, 0.15);
  border-color: rgba(53, 167, 255, 0.28);
  color: #c8ecff;
}

.invoice-review-actions .review-to-exported {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #b9f6cc;
}

.invoice-review-actions .review-to-queue:hover {
  background: rgba(53, 167, 255, 0.25);
}

.invoice-review-actions .review-to-exported:hover {
  background: rgba(34, 197, 94, 0.22);
}

.invoices-review-table th:nth-child(1) { width: 11%; }
.invoices-review-table th:nth-child(2) { width: 14%; }
.invoices-review-table th:nth-child(3) { width: 15%; }
.invoices-review-table th:nth-child(4) { width: 26%; }
.invoices-review-table th:nth-child(5) { width: 10%; }
.invoices-review-table th:nth-child(6) { width: 24%; }

.invoice-correction-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: stretch;
}

.invoice-preview-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(53, 167, 255, 0.28);
  border-radius: 7px;
  background: rgba(53, 167, 255, 0.15);
  color: #c8ecff;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.invoice-preview-tile:hover {
  background: rgba(53, 167, 255, 0.25);
  color: #fff;
  text-decoration: none;
}

.invoice-correction-form input,
.invoice-correction-form select,
.invoice-correction-form button {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 4px 6px;
  font-size: 11px;
}

.form-grid,
.receipt-form,
.toolbar {
  gap: 10px;
}

.messages {
  margin-bottom: 10px;
}

.message {
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.dashboard-empty {
  min-height: min(620px, calc(100vh - 76px));
  display: grid;
  align-content: start;
}

.dashboard-empty .section-head {
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--line-soft);
}

.dashboard-empty h1::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

@media (max-width: 900px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

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

  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-group {
    align-content: start;
  }

  .shell {
    padding: 10px;
  }
}

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

.login-logo {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 14px;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(56, 189, 248, 0.2);
}

.login-brand {
  text-align: center;
  margin-bottom: 22px;
}
.login-brand-title {
  margin-top: 8px;
  color: #f8fbff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}
.login-brand + .form {
  margin-top: 0;
}

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

.summary-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
  background: rgba(18, 43, 64, 0.72);
}

.summary-card span,
.muted-text {
  color: var(--muted);
}

.summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

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

.marketplace-order {
  border: 1px solid rgba(115, 178, 220, 0.18);
  border-radius: 8px;
  background: rgba(10, 29, 45, 0.84);
  overflow: hidden;
}

.order-main {
  display: grid;
  grid-template-columns: minmax(170px, 1.25fr) minmax(150px, 0.8fr) minmax(95px, 0.55fr) minmax(150px, 0.9fr) minmax(160px, 0.9fr) minmax(150px, 0.9fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(115, 178, 220, 0.12);
}

.order-no {
  color: #5ec2ff;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  background: rgba(53, 167, 255, 0.15);
  border: 1px solid rgba(53, 167, 255, 0.28);
  color: #c8ecff;
  font-weight: 800;
}

.badge.ok {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #b9f6cc;
}

.badge.warn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #ffe4ae;
}

.order-lines {
  display: grid;
}

.order-line {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 110px 120px;
  gap: 10px;
  padding: 8px 12px;
}

.order-line:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

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

.line-qty-badge {
  margin: 0;
  white-space: nowrap;
}

.strong {
  font-weight: 800;
}

@media (max-width: 1200px) {
  .summary-grid,
  .order-main,
  .order-line {
    grid-template-columns: 1fr 1fr;
  }
}

/* Compact Marketplace view */
.marketplace-list,
.marketplace-order,
.marketplace-order .muted-text,
.marketplace-order .badge,
.marketplace-order strong,
.marketplace-order a,
.marketplace-order .num {
  font-size: 11px;
  line-height: 1.25;
}

.marketplace-order .order-no {
  font-size: 12px;
}

.marketplace-order .badge {
  min-height: 17px;
  padding: 1px 6px;
  font-size: 10px;
}

.order-main {
  padding: 6px 8px;
  gap: 7px;
}

.order-line {
  padding: 5px 8px;
  gap: 7px;
}

.summary-card {
  padding: 8px 10px;
}

.summary-card span {
  font-size: 11px;
}

.summary-card strong {
  margin-top: 3px;
  font-size: 17px;
}

.panel .section-head h1 {
  font-size: 22px;
}

.panel .section-head h2 {
  font-size: 17px;
}

.panel .section-head p,
.toolbar,
.toolbar input,
.toolbar select,
.toolbar button {
  font-size: 11px;
}

.marketplace-list .empty {
  font-size: 12px;
}


.doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.doc-badge.receipt {
  background: #16a34a;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.doc-badge.invoice {
  background: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.35);
}


.badge.ordered {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #ffe4ae;
}

.badge.danger {
  background: rgba(239, 68, 68, 0.13);
  border-color: rgba(239, 68, 68, 0.42);
  color: #fecaca;
}

.mini-badges {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 4px;
  line-height: 18px;
  vertical-align: top;
}

.mini-badges .doc-badge,
.mini-badges .pay-badge {
  flex: 0 0 18px;
  margin: 0;
  vertical-align: top;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.pay-badge.paid { background: #16a34a; box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35); }
.pay-badge.cod { background: #f97316; box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.35); }
.pay-badge.unknown { background: #64748b; box-shadow: 0 0 0 1px rgba(100, 116, 139, 0.35); }

.danger-text, .marketplace-order .danger-text { color: #fecaca; }
.ordered-text, .marketplace-order .ordered-text { color: #ffe4ae; }
.danger-cell {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.16) !important;
  font-weight: 900;
}

.allocation strong { color: #ff7b7b; }

.stock-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.stock-card {
  border: 1px solid rgba(115, 178, 220, 0.18);
  border-radius: 8px;
  background: rgba(10, 29, 45, 0.84);
  overflow: hidden;
}

.stock-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.65fr) repeat(4, minmax(110px, 0.6fr));
  gap: 6px;
  align-items: center;
  padding: 5px 8px;
}

.stock-product,
.stock-metric {
  min-width: 0;
}

.stock-metric {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.metric-label {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
}

.stock-card .badge {
  min-width: 38px;
  justify-content: center;
  margin: 0;
  text-decoration: none;
}

.stock-card,
.stock-card .muted-text,
.stock-card .badge,
.stock-card strong,
.stock-card a {
  font-size: 11px;
  line-height: 1.18;
}

.stock-card .order-no {
  font-size: 11px;
}

.stock-card:nth-child(even) {
  background: rgba(18, 43, 64, 0.72);
}

@media (max-width: 1200px) {
  .stock-main {
    grid-template-columns: 1fr 1fr;
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.info-grid > div {
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(18, 43, 64, 0.72);
}

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

.info-grid span {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}

.info-grid strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  word-break: break-word;
}

@media (max-width: 1200px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.inline-actions input {
  min-width: 0;
}

.inline-actions .button {
  white-space: nowrap;
}

.action-card {
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.action-card:hover {
  border-color: #4da3ff;
  transform: translateY(-1px);
  background: rgba(47, 128, 237, 0.12);
}

.warning-card strong {
  color: #f6c453;
}

.danger-card strong {
  color: #ff6b6b;
}

.dashboard-summary .summary-card strong {
  font-size: clamp(1.8rem, 2.4vw, 3.2rem);
}

.dashboard-summary .summary-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

/* Dashboard alignment and phone layout */
.dashboard-panel .section-head,
.dashboard-panel > .muted-text {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-panel > .muted-text {
  text-align: center;
}

.dashboard-summary {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 340px));
  justify-content: center;
  align-items: stretch;
  max-width: 1120px;
  margin: 18px auto 14px;
}

.dashboard-summary .summary-card {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 640px) {
  body {
    font-size: 12px;
  }

  .app-frame {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 10px;
    gap: 10px;
  }

  .brand {
    padding: 6px;
  }

  .side-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .side-nav a {
    min-height: 32px;
    padding: 7px 9px;
  }

  .shell {
    padding: 8px;
  }

  .workspace-top {
    justify-content: flex-end;
    align-items: flex-start;
  }

  .userbox {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .panel {
    padding: 10px;
    border-radius: 8px;
  }

  .section-head {
    display: block;
  }

  .summary-grid,
  .dashboard-summary,
  .stock-main,
  .info-grid,
  .order-main,
  .order-line {
    grid-template-columns: 1fr;
  }

  .dashboard-summary {
    max-width: 100%;
    margin: 12px 0;
  }

  .dashboard-summary .summary-card {
    min-height: auto;
  }

  .form-grid,
  .filters,
  .inline-actions {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea,
  .button,
  button {
    max-width: 100%;
  }

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

/* Empik status dashboard */
.dashboard-summary-six {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.ok-card strong {
  color: #30d787;
}

.summary-card.danger-card strong,
.danger-card strong {
  color: #ff6b6b;
}

.summary-card.warning-card strong,
.warning-card strong {
  color: #f6c453;
}

.inline-confirm {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: 10px;
}

.mismatch-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

/* Compact Empik dashboard and unified stock view */
.dashboard-summary-eight {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.compact-summary {
  gap: 10px;
}

.compact-summary .summary-card {
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 10px;
}

.compact-summary .summary-card span {
  font-size: 0.88rem;
  line-height: 1.2;
}

.compact-summary .summary-card strong {
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  line-height: 1.05;
  margin-top: 4px;
}

.compact-summary .summary-card small {
  font-size: 0.72rem;
  line-height: 1.25;
}

.info-card {
  border-color: rgba(59, 130, 246, 0.45) !important;
}

.info-card strong {
  color: #60a5fa;
}

.alert-link {
  display: block;
  text-decoration: none;
}

.stock-marketplace-list {
  margin-top: 12px;
}

.stock-order-main {
  grid-template-columns: minmax(320px, 1.8fr) repeat(4, minmax(120px, 0.7fr));
  align-items: center;
}

.stock-order-main .num {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stock-order-main .metric-label {
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 1280px) {
  .dashboard-summary-eight {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
  .stock-order-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard-summary-eight,
  .stock-order-main {
    grid-template-columns: 1fr;
  }
}

/* Empik order details */
.empik-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.detail-card {
  border: 1px solid var(--line);
  background: rgba(15, 32, 49, 0.72);
  border-radius: 10px;
  padding: 12px;
}

.detail-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 5px;
}

.detail-card strong {
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.detail-card.wide {
  grid-column: span 2;
}

@media (max-width: 1100px) {
  .empik-detail-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}

@media (max-width: 700px) {
  .empik-detail-grid { grid-template-columns: 1fr; }
  .detail-card.wide { grid-column: span 1; }
}


.dashboard-ops-row,
.dashboard-doubtful-row {
  display: grid;
  gap: 10px;
  margin: 14px auto 0;
  max-width: 560px;
  width: min(560px, 100%);
}

.dashboard-ops-row {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

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

.dashboard-ops-row .summary-card,
.dashboard-doubtful-row .summary-card {
  min-height: 78px;
  padding: 12px 14px;
}

@media (max-width: 760px) {
  .dashboard-ops-row,
  .dashboard-doubtful-row {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

.shortcut-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.shortcut-card small {
  display: block;
  margin-top: 8px;
}

.price-automation-controls {
  justify-content: flex-start;
  align-items: end;
  margin: 6px 0 14px;
}

.price-automation-controls label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
}

.price-automation-controls label span {
  color: var(--muted);
  font-weight: 700;
}

.toolbar.price-automation-controls input:not([type="date"]),
.price-automation-controls select {
  min-width: 150px;
  width: 150px;
}

.price-automation-controls select {
  height: 30px;
}

.price-automation-controls button {
  height: 30px;
}

.price-min-input,
.price-current-input,
.offer-qty-input {
  min-width: 118px !important;
  width: 118px;
  text-align: right;
}

.price-current-input {
  min-width: 112px !important;
  width: 112px;
}

.offer-qty-input {
  min-width: 90px !important;
  width: 90px;
}

.schedule-time-input {
  min-width: 118px !important;
  width: 118px;
}

.muted-primary {
  background: rgba(53, 125, 255, 0.18);
  border-color: rgba(91, 166, 255, 0.55);
}

.danger-button {
  border-color: rgba(255, 99, 99, 0.55);
  color: #ff9d9d;
}

.danger-button:hover {
  background: rgba(255, 99, 99, 0.14);
}


.external-fulfillment-form {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
}

.external-fulfillment-form select,
.external-fulfillment-form input {
  min-width: 170px;
}

.label-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  color: #dff6ff;
  text-decoration: none;
  background: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.45);
}

.label-badge:hover {
  color: #ffffff;
  background: #38bdf8;
}

.mini-badges .label-badge {
  flex: 0 0 18px;
  margin: 0;
  vertical-align: top;
}


.label-group-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.label-group-grid .quick-tile {
  min-height: 58px;
}

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

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

fieldset:disabled {
  opacity: 0.72;
}

.order-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.order-editor-grid .panel {
  margin: 0;
  min-width: 0;
}

.order-lines-panel .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.order-lines-panel table {
  min-width: 700px;
}

.order-line-edit-form {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 62px minmax(100px, 0.55fr);
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.order-line-edit-form label,
.order-add-form label {
  gap: 3px;
  font-size: 0.9em;
}

.order-line-edit-form input,
.order-line-edit-form select,
.order-add-form input,
.order-add-form select {
  width: 100%;
  min-width: 0;
}

.order-line-edit-form button {
  grid-column: 1 / -1;
  justify-self: start;
  white-space: nowrap;
}

.order-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(120px, 0.55fr);
  gap: 8px;
  align-items: end;
}

.order-add-form button,
.order-add-form .muted-text {
  grid-column: 1 / -1;
}

@media (max-width: 1050px) {
  .order-editor-grid {
    grid-template-columns: 1fr;
  }

  .order-line-edit-form {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .order-line-edit-form,
  .order-add-form {
    grid-template-columns: 1fr;
    min-width: 260px;
  }

  .order-add-form button,
  .order-add-form .muted-text {
    grid-column: auto;
  }
}

.card-main {
  display: block;
  color: inherit;
  text-decoration: none;
}

.summary-card {
  position: relative;
}

.tile-print {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 211, 252, 0.45);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  color: #dbeafe;
  text-decoration: none;
  z-index: 2;
}

.tile-print:hover {
  background: rgba(37, 99, 235, 0.35);
  border-color: rgba(147, 197, 253, 0.85);
}

.tile-print svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compact-summary .summary-card .card-main {
  padding-right: 34px;
}
.settings-panel .section-head {
  align-items: flex-start;
}

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

.settings-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 28, 43, 0.72);
}

.settings-card-wide {
  grid-column: 1 / -1;
}

.settings-card h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.settings-card p {
  margin: 0 0 10px;
}

.settings-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.settings-actions {
  margin-top: 14px;
}

.settings-sender-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}


.dashboard-group {
  margin-top: 18px;
}

.dashboard-group h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 9px;
}

.dashboard-group-grid-four { grid-template-columns: repeat(4, minmax(145px, 1fr)); }
.dashboard-group-grid-three { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
.dashboard-group-grid-two { grid-template-columns: repeat(2, minmax(180px, 1fr)); }

.dashboard-group-grid .summary-card {
  min-height: 76px;
  padding: 10px 12px;
  border-radius: 9px;
}

.dashboard-group-grid .summary-card span {
  font-size: .78rem;
  line-height: 1.15;
}

.dashboard-group-grid .summary-card strong {
  display: block;
  margin-top: 2px;
  font-size: 1.45rem;
  line-height: 1;
}

.dashboard-group-grid .summary-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .67rem;
  line-height: 1.2;
}

.delivery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.delivery-period-filter {
  grid-template-columns: minmax(140px, 180px) minmax(140px, 180px) auto auto;
  align-items: end;
}

@media (max-width: 900px) {
  .dashboard-group-grid-four,
  .dashboard-group-grid-three { grid-template-columns: repeat(2, minmax(145px, 1fr)); }
}

@media (max-width: 560px) {
  .dashboard-group-grid,
  .dashboard-group-grid-four,
  .dashboard-group-grid-three,
  .dashboard-group-grid-two,
  .delivery-period-filter { grid-template-columns: 1fr; }
}

.multi-order-components {
  margin-top: 7px;
  padding: 7px 9px;
  border-left: 3px solid #ef4444;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.08);
  font-size: 0.76rem;
  line-height: 1.35;
}

.multi-order-components .badge {
  margin-bottom: 4px;
}

tr.multi-order-row > td {
  background: rgba(239, 68, 68, 0.08);
}

.multi-order-device-list strong {
  display: block;
  font-size: inherit;
  line-height: 1.4;
}

.multi-order-device-list strong + strong {
  margin-top: 5px;
}

.competition-details {
  min-width: 118px;
}

.competition-details > summary {
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.competition-details > summary::-webkit-details-marker {
  display: none;
}

.competition-details-panel {
  display: grid;
  gap: 6px;
  min-width: 270px;
  margin-top: 8px;
}

.competition-offer-detail {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.invoice-provider-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.provider-tab{display:inline-flex;align-items:center;justify-content:center;min-width:105px;padding:8px 13px;border:1px solid #35556f;border-radius:9px;background:#12283a;color:#b9cad8;text-decoration:none;font-weight:700}.provider-tab.active{border-color:#58a9ef;background:#1e527b;color:#fff}.provider-tab.provider-systim.active{background:#174d88;border-color:#56a4f0}.provider-tab.provider-wms.active{background:#17684d;border-color:#54ca98}.provider-tab.provider-fakturownia.active{background:#6d3f87;border-color:#bb7bdc}.invoice-provider-icons{display:flex;gap:6px;align-items:center;white-space:nowrap}.invoice-provider-icon{width:29px;height:29px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #516678;background:#263746;color:#8293a0;font-weight:800;font-size:12px;text-decoration:none;transition:.15s ease}.invoice-provider-icon.state-inactive{opacity:.3;filter:grayscale(1)}.invoice-provider-icon.state-planned{opacity:.72;filter:grayscale(1);border-style:dashed}.invoice-provider-icon.state-error{background:#7b2631;border-color:#ec6676;color:#fff;filter:none;opacity:1}.invoice-provider-icon.state-exported{opacity:1;filter:none;color:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.08) inset}.invoice-provider-icon.provider-wms.state-exported{background:#16845d;border-color:#4bd49e}.invoice-provider-icon.provider-systim.state-exported{background:#1468b8;border-color:#54abf7}.invoice-provider-icon.provider-fakturownia.state-exported{background:#7a3c9a;border-color:#c27be4}

/* Faktury WMS */
.invoice-mail-tiles{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px;margin:12px 0}.mail-tile{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;border:1px solid #35556f;border-radius:10px;background:#162d40;color:#dbeaf5;text-decoration:none}.mail-tile b{font-size:22px}.mail-gray{border-color:#72808b}.mail-green{border-color:#38b878}.mail-red{border-color:#db5b68}.wms-invoice-table small{display:block;color:#92a9ba;margin-top:3px}.wms-invoice-table td{vertical-align:top}.mail-envelope{display:inline-flex;width:34px;height:28px;align-items:center;justify-content:center;border-radius:8px;font-size:20px;background:#4e5c67;color:#d7dde1}.mail-envelope.state-sent{background:#16845d;color:#fff}.mail-envelope.state-error,.mail-envelope.state-bounce{background:#a93241;color:#fff}.invoice-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.send-form{display:flex;gap:5px}.send-form input{width:190px}.company-convert{margin-top:10px;padding:10px;border:1px solid #36536a;border-radius:8px;background:#102333}.company-convert form{display:grid;gap:7px}.company-convert .nip-row{display:flex;gap:6px}.company-convert textarea{min-height:60px}.lookup-message{font-size:12px;color:#9fc8e6;margin:0}@media(max-width:1100px){.invoice-mail-tiles{grid-template-columns:repeat(2,1fr)}.wms-invoice-table{min-width:1180px}}

/* Ujednolicony układ kart ustawień */
.settings-card-fields{display:grid;grid-template-columns:1fr;gap:8px}.settings-card-fields label{min-width:0}.settings-card-fields input,.settings-card-fields select,.settings-card-fields textarea{width:100%}


.dashboard-tile-with-pdf {
  position: relative;
  min-width: 0;
}

.dashboard-tile-with-pdf > .summary-card {
  display: block;
  height: 100%;
  padding-right: 44px;
}
