.srm-admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}

.srm-card,
.srm-rental-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 16px;
}

.srm-inline-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.srm-inline-modal[hidden],
.srm-fullscreen-modal[hidden] {
  display: none !important;
}

.srm-inline-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 35, 39, 0.5);
}

.srm-inline-modal__dialog {
  position: relative;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 20px;
}

.srm-inline-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.srm-inline-modal__header h3 {
  margin: 0 0 6px;
}

.srm-inline-modal__header p {
  margin: 0;
  color: #50575e;
}

body.srm-modal-open {
  overflow: hidden;
}
.srm-rental-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 16px;
}

.srm-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

.srm-admin-actions {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.srm-admin-actions form,
.srm-extension-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.srm-admin-actions label,
.srm-extension-form label {
  display: grid;
  gap: 6px;
}

.srm-rental-card {
  margin-bottom: 24px;
}

.srm-rental-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 20px;
  margin: 12px 0 18px;
}


.srm-myaccount-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.srm-myaccount-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #fff;
  color: #1d2327;
  text-decoration: none;
  font-weight: 600;
}

.srm-myaccount-tab:hover,
.srm-myaccount-tab:focus {
  border-color: #2271b1;
  color: #2271b1;
  outline: none;
}

.srm-myaccount-tab.is-active {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}


.srm-payment-summary {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.srm-payment-summary-value {
  font-size: 18px;
  font-weight: 700;
}

.srm-help-text {
  margin-top: 8px;
  color: #50575e;
}

.srm-yearly-payment-form input[type=checkbox] {
  transform: scale(1.15);
}


@media (max-width: 768px) {
  .srm-rental-card .shop_table.my_account_orders tbody tr.srm-period-row-odd,
  .srm-rental-card .shop_table.my_account_orders tbody tr.srm-period-row-odd td {
    background: #ffffff;
  }

  .srm-rental-card .shop_table.my_account_orders tbody tr.srm-period-row-even,
  .srm-rental-card .shop_table.my_account_orders tbody tr.srm-period-row-even td {
    background: #f1f1f1;
  }

  .srm-rental-card .shop_table.my_account_orders tbody tr.srm-period-row td {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}


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

.srm-kod-input {
  width: 130px;
  min-width: 130px;
  max-width: 130px;
}


.srm-paid-year-group {
  margin: 4px 0;
}
.srm-paid-year-group summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 10px;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 6px;
}
.srm-inner-year-table {
  margin-top: 8px;
}
.srm-year-toggle-row td {
  background: #fff !important;
}

.srm-price-toolbar {
  margin: 16px 0;
  display: flex;
  justify-content: flex-end;
}

.srm-fullscreen-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.72);
  z-index: 99999;
  padding: 20px;
}

.srm-fullscreen-modal[hidden] {
  display: none !important;
}

.srm-fullscreen-modal__panel {
  background: #fff;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-sizing: border-box;
  padding: 24px;
  overflow: auto;
}

.srm-fullscreen-modal__topbar,
.srm-fullscreen-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.srm-price-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
  max-width: 920px;
  margin-bottom: 12px;
}

.srm-price-editor-grid label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.srm-price-editor-grid input[type="date"] {
  width: 100%;
  min-height: 42px;
}

.srm-price-editor-table input[type="number"] {
  width: 100%;
  min-width: 160px;
}

.srm-payment-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.srm-payment-summary-main {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.srm-quick-pay-button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
.srm-detail-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap:20px;
  margin-bottom:20px;
}
.srm-detail-grid--stack {
  grid-template-columns: 1fr;
}
.srm-detail-card {
  background:#fff;
  border:1px solid #dcdcde;
  border-radius:10px;
  padding:18px;
}
.srm-inline-form {
  display:grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap:14px;
}
.srm-inline-form label {
  display:grid;
  gap:6px;
  font-weight:600;
}
.srm-inline-form--wide {
  grid-column: 1 / -1;
}
.srm-rate-history-table {
  margin: 8px 0 18px;
}
.srm-rate-history-table th,
.srm-rate-history-table td {
  vertical-align: middle;
}
.srm-rate-history-edit-panel {
  border-top: 1px solid #dcdcde;
  margin-top: 18px;
  padding-top: 14px;
}
.srm-rate-history-edit-panel h4 {
  margin: 14px 0 10px;
}
.srm-rate-history-start-form {
  margin-bottom: 18px;
}
.srm-rate-history-edit-table td {
  vertical-align: top;
}
.srm-rate-history-row-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.srm-rate-history-row-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.srm-rate-history-row-form input[readonly] {
  background: #f6f7f7;
  color: #50575e;
}
.srm-rate-history-row-actions {
  margin: 0;
  align-self: end;
}
@media (max-width: 1100px) {
  .srm-rate-history-row-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
  .srm-rate-history-row-actions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 782px) {
  .srm-rate-history-row-form {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 782px) {
  .srm-detail-grid, .srm-inline-form {
    grid-template-columns: 1fr;
  }
}


.srm-app-shell{min-height:calc(100vh - 64px);background:#fff;margin-top:12px;padding:20px;border:1px solid #dcdcde;border-radius:12px;box-sizing:border-box}
.srm-app-shell__topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.srm-app-brand{display:inline-grid;gap:6px;justify-items:stretch;width:min(32ch,100%);max-width:100%;margin:0;font-size:20px;line-height:1.2}
.srm-app-brand__logo{display:block;width:100%;height:auto}
.srm-app-brand__subtitle{display:block;width:100%;box-sizing:border-box;text-align:center;font-size:1em;line-height:1.25;font-weight:700;letter-spacing:.02em;color:#1d2327}
.srm-app-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid #e5e7eb}
.srm-app-tab{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border:1px solid #dcdcde;border-radius:8px;background:#fff;color:#1d2327;text-decoration:none;font-weight:600}
.srm-app-tab.is-active{background:#2271b1;border-color:#2271b1;color:#fff}
.srm-app-shell__content > .wrap{margin:0}
.srm-app-shell__content > .wrap h1:first-child{display:none}
.srm-app-shell__content > .wrap .nav-tab-wrapper{display:none}
@media (max-width:782px){.srm-app-shell{padding:14px}.srm-app-shell__topbar{align-items:stretch}.srm-app-brand{width:min(32ch,100%);max-width:100%}.srm-exit-fullscreen{width:100%;text-align:center;justify-content:center}}


.srm-text-danger, .srm-text-danger td, .srm-text-danger a, .srm-text-danger span { color:#b42318 !important; }
.srm-text-warning, .srm-text-warning td, .srm-text-warning a, .srm-text-warning span { color:#c56a00 !important; }
.srm-inline-controls { display:flex; gap:16px; align-items:center; }

.srm-period-group-row td {
  background: #f6f7f7 !important;
  padding: 0;
  border-top: 1px solid #dcdcde;
  border-bottom: 1px solid #dcdcde;
}

.srm-period-group-row[data-group-id] {
  cursor: pointer;
}

.srm-period-group-trigger,
.srm-period-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  color: #1d2327;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
}

.srm-period-group-trigger:hover,
.srm-period-group-trigger:focus {
  color: #135e96;
  outline: none;
  box-shadow: none;
}

.srm-period-group-trigger::before {
  content: '▸';
  margin-right: 8px;
}

.srm-period-group-row.is-open .srm-period-group-trigger::before {
  content: '▾';
}

.srm-period-group-toggle__label {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
}

.srm-period-group-toggle__meta {
  color: #50575e;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 782px) {
  .srm-period-group-trigger,
  .srm-period-group-label {
    flex-direction: column;
    align-items: flex-start;
  }
}

.srm-map-editor-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}

.srm-map-editor-meta label,
.srm-map-builder__fields label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.srm-map-editor-meta label span,
.srm-map-builder__fields label span {
  font-weight: 600;
}

.srm-map-editor-meta__wide {
  grid-column: 1 / -1;
}

.srm-map-editor-meta__media-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.srm-map-editor-meta__media-row input {
  flex: 1 1 420px;
}

.srm-map-background-preview-wrap {
  margin-top: 8px;
}

.srm-map-background-preview {
  display: block;
  max-width: 220px;
  max-height: 140px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #fff;
}

.srm-map-background-preview[hidden] {
  display: none;
}

.srm-map-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.srm-map-builder__canvas-wrap,
.srm-map-builder__sidebar {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 16px;
}

.srm-map-builder__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.srm-storage-map-stage {
  position: relative;
  width: 100%;
  border: 1px solid #c3c4c7;
  border-radius: 10px;
  background-color: #f6f7f7;
  background-size: 100% 100%;
  background-position: left top;
  background-repeat: no-repeat;
  overflow: hidden;
}

.srm-storage-map-stage--editor {
  min-height: 420px;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px;
  cursor: crosshair;
}

.srm-storage-map-stage--front {
  min-height: 320px;
}

.srm-storage-map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #50575e;
  background: rgba(255,255,255,0.65);
}

.srm-storage-map-unit {
  position: absolute;
  border-radius: 0;
  border: 2px solid #2271b1;
  background: rgba(34, 113, 177, 0.16);
  color: #1d2327;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  overflow: hidden;
  text-decoration: none;
}

button.srm-storage-map-unit {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  font: inherit;
  text-align: left;
}

/* 1.2.42: motyw potrafi nadać <button> padding (np. 0.5em 1em = 8px/16px). Przy box-sizing:border-box
   wąskie/niskie boksy (szer./wys. mniejsza niż padding) są ROZDMUCHIWANE do rozmiaru paddingu i NACHODZĄ
   na sąsiadów. Etykieta jest w nakładce .srm-storage-map-unit__content (position:absolute; inset:0;
   z własnym paddingiem), więc padding samego boksu jest zbędny. Zerujemy go z wysoką specyficznością,
   żeby pobić reguły motywu (nawet !important o niższej specyficzności). */
.srm-storage-map-stage button.srm-storage-map-unit,
.srm-storage-map-frontend .srm-storage-map-stage button.srm-storage-map-unit.srm-storage-map-unit--front,
.srm-map-builder .srm-storage-map-stage button.srm-storage-map-unit.srm-storage-map-unit--editor {
  padding: 0 !important;
}

.srm-storage-map-unit__label {
  font-weight: 700;
  line-height: 1.2;
}

.srm-storage-map-unit__meta {
  font-size: 12px;
  opacity: 0.85;
}

.srm-storage-map-unit--editor {
  cursor: move;
  user-select: none;
}

.srm-storage-map-unit--front {
  cursor: pointer;
}

.srm-storage-map-unit--front.is-selected {
  box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.28);
  transform: translateY(-1px);
}

.srm-storage-map-unit--editor.is-selected {
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.2);
}

.srm-storage-map-unit--editor.is-hidden {
  opacity: 0.45;
  border-style: dashed;
}

.srm-storage-map-guide {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background: rgba(214, 54, 56, 0.9);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.65);
}

.srm-storage-map-guide--vertical {
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.srm-storage-map-guide--horizontal {
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}


.srm-storage-map-selection-box {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  border: 1px dashed #2271b1;
  background: rgba(34, 113, 177, 0.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.55) inset;
}

.srm-storage-map-unit__resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-top: 2px solid rgba(255,255,255,0.9);
  border-left: 2px solid rgba(255,255,255,0.9);
  background: rgba(17, 24, 39, 0.55);
  cursor: nwse-resize;
  border-top-left-radius: 0;
}

.srm-map-builder__empty[hidden] {
  display: none;
}

.srm-map-builder__fields {
  display: grid;
  gap: 12px;
}

.srm-map-builder__fields[hidden] {
  display: none;
}

.srm-map-position-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.srm-map-inline-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.srm-map-unit-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.srm-map-unit-list__item {
  width: 100%;
  text-align: left;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #f6f7f7;
  padding: 10px 12px;
  cursor: pointer;
  display: grid;
  gap: 4px;
}

.srm-map-unit-list__item.is-active {
  border-color: #2271b1;
  background: rgba(34, 113, 177, 0.08);
}


.srm-map-multi-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  background: #fff;
}

body.srm-map-dragging,
body.srm-map-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}

.srm-storage-map-frontend {
  display: grid;
  gap: 16px;
}


.srm-storage-map-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 14px 16px;
}

.srm-storage-map-controls__search {
  display: grid;
  gap: 6px;
  min-width: min(320px, 100%);
  flex: 1 1 280px;
}

.srm-storage-map-controls__search span {
  font-weight: 600;
}

.srm-storage-map-controls__search input {
  width: 100%;
}

.srm-storage-map-controls__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  min-height: 40px;
}

.srm-storage-map-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #50575e;
}

.srm-storage-map-summary strong {
  color: #1d2327;
}

.srm-storage-map-frontend__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.srm-storage-map-frontend__header h2 {
  margin: 0 0 6px;
}

.srm-storage-map-frontend__header p {
  margin: 0;
  color: #50575e;
}

.srm-storage-map-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.srm-storage-map-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.srm-storage-map-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.srm-storage-map-legend .is-available,
.srm-storage-map-unit.is-available {
  background: rgba(70, 185, 128, 0.18);
  border-color: #2f9e69;
}

.srm-storage-map-legend .is-occupied,
.srm-storage-map-unit.is-occupied {
  background: rgba(215, 58, 73, 0.18);
  border-color: #d63638;
}

.srm-storage-map-legend .is-unavailable,
.srm-storage-map-unit.is-unavailable {
  background: rgba(100, 108, 118, 0.18);
  border-color: #646c76;
}

@media (max-width: 960px) {
  .srm-map-builder {
    grid-template-columns: 1fr;
  }

  .srm-storage-map-controls {
    align-items: stretch;
  }

  .srm-storage-map-summary {
    width: 100%;
  }
}


.srm-storage-map-details {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 16px;
}

.srm-storage-map-details__empty[hidden],
.srm-storage-map-details__content[hidden] {
  display: none;
}

.srm-storage-map-details__top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.srm-storage-map-details__top h3 {
  margin: 0 0 4px;
}

.srm-storage-map-details__top p {
  margin: 0;
  color: #50575e;
}

.srm-storage-map-details__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  border: 1px solid #dcdcde;
}

.srm-storage-map-details__badge.is-available {
  background: rgba(70, 185, 128, 0.14);
  border-color: #2f9e69;
  color: #145c3a;
}

.srm-storage-map-details__badge.is-occupied {
  background: rgba(215, 58, 73, 0.14);
  border-color: #d63638;
  color: #8a2424;
}

.srm-storage-map-details__badge.is-unavailable {
  background: rgba(100, 108, 118, 0.14);
  border-color: #646c76;
  color: #3c434a;
}

.srm-storage-map-details__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.srm-storage-map-details__grid small {
  display: block;
  color: #50575e;
  margin-bottom: 4px;
}

.srm-storage-map-details__grid strong {
  font-size: 18px;
}

.srm-storage-map-details__multiline {
  display: block;
  white-space: pre-line;
  line-height: 1.35;
}


.srm-storage-map-details__note {
  margin: 14px 0 0;
  color: #50575e;
}

.srm-storage-map-details__actions {
  margin-top: 16px;
}


.srm-exit-fullscreen{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px !important;
  min-width:48px;
  min-height:48px;
  line-height:1;
}
.srm-exit-fullscreen__icon{
  display:block;
  width:32px;
  height:32px;
  object-fit:contain;
}


/* Manual rental form: responsive layout inside fullscreen/app containers. */
.srm-manual-rental-form {
  max-width: min(1100px, 100%) !important;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.srm-manual-rental-form .form-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.srm-manual-rental-form .form-table th {
  width: 180px;
  max-width: 34%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.srm-manual-rental-form .form-table td {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.srm-manual-rental-form input[type="text"],
.srm-manual-rental-form input[type="email"],
.srm-manual-rental-form input[type="number"],
.srm-manual-rental-form input[type="date"],
.srm-manual-rental-form input[type="password"],
.srm-manual-rental-form select,
.srm-manual-rental-form textarea,
.srm-manual-rental-form .regular-text,
.srm-manual-rental-form .large-text {
  max-width: 100% !important;
  box-sizing: border-box;
}

.srm-manual-rental-form select {
  min-width: 0 !important;
}

.srm-manual-rental-form fieldset,
.srm-manual-rental-form fieldset label,
.srm-manual-rental-form .description,
.srm-manual-rental-form p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.srm-manual-rental-form fieldset label {
  display: inline-block;
}

.srm-manual-rental-form .srm-kod-row {
  max-width: 100%;
}

@media (max-width: 960px) {
  .srm-manual-rental-form {
    padding: 12px !important;
  }

  .srm-manual-rental-form .form-table,
  .srm-manual-rental-form .form-table tbody,
  .srm-manual-rental-form .form-table tr,
  .srm-manual-rental-form .form-table th,
  .srm-manual-rental-form .form-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .srm-manual-rental-form .form-table th {
    padding-bottom: 4px;
  }

  .srm-manual-rental-form .form-table td {
    padding-top: 0;
  }

  .srm-manual-rental-form input[type="text"],
  .srm-manual-rental-form input[type="email"],
  .srm-manual-rental-form input[type="number"],
  .srm-manual-rental-form input[type="date"],
  .srm-manual-rental-form select,
  .srm-manual-rental-form textarea,
  .srm-manual-rental-form .regular-text,
  .srm-manual-rental-form .large-text {
    width: 100% !important;
  }

  .srm-manual-rental-form .srm-kod-row {
    align-items: stretch;
  }

  .srm-manual-rental-form .srm-kod-input {
    flex: 1 1 160px;
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  .srm-manual-rental-form .srm-kod-row .button {
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  .srm-manual-rental-form .srm-kod-row .button,
  .srm-manual-rental-form p .button {
    width: 100%;
    margin-left: 0 !important;
    text-align: center;
  }
}

/* Global responsive hardening for SRM admin screens (1.0.18.10). */
.srm-app-shell,
.srm-app-shell *,
.srm-settings-embedded-page,
.srm-settings-embedded-page * {
  box-sizing: border-box;
}

.srm-app-shell,
.srm-app-shell__content,
.srm-settings-embedded-page,
.srm-settings-form,
.srm-storage-map-form,
.srm-operator-management,
.srm-gateway-box,
.srm-racs5-zone-card {
  max-width: 100%;
  min-width: 0;
}

.srm-app-shell__content,
.srm-settings-embedded-page {
  overflow-x: hidden;
}

.srm-app-shell .notice,
.srm-settings-embedded-page .notice,
.srm-app-shell .postbox,
.srm-settings-embedded-page .postbox,
.srm-app-shell .card,
.srm-settings-embedded-page .card {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.srm-app-shell p,
.srm-settings-embedded-page p,
.srm-app-shell .description,
.srm-settings-embedded-page .description,
.srm-app-shell code,
.srm-settings-embedded-page code,
.srm-app-shell pre,
.srm-settings-embedded-page pre {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.srm-app-shell input[type="text"],
.srm-app-shell input[type="email"],
.srm-app-shell input[type="number"],
.srm-app-shell input[type="password"],
.srm-app-shell input[type="url"],
.srm-app-shell input[type="date"],
.srm-app-shell select,
.srm-app-shell textarea,
.srm-app-shell .regular-text,
.srm-app-shell .large-text,
.srm-settings-embedded-page input[type="text"],
.srm-settings-embedded-page input[type="email"],
.srm-settings-embedded-page input[type="number"],
.srm-settings-embedded-page input[type="password"],
.srm-settings-embedded-page input[type="url"],
.srm-settings-embedded-page input[type="date"],
.srm-settings-embedded-page select,
.srm-settings-embedded-page textarea,
.srm-settings-embedded-page .regular-text,
.srm-settings-embedded-page .large-text {
  max-width: 100% !important;
}

.srm-app-shell textarea,
.srm-settings-embedded-page textarea {
  width: 100%;
}

.srm-app-shell .form-table,
.srm-settings-embedded-page .form-table {
  max-width: 100%;
  table-layout: fixed;
}

.srm-app-shell .form-table th,
.srm-settings-embedded-page .form-table th {
  width: 210px;
  max-width: 34%;
  overflow-wrap: anywhere;
}

.srm-app-shell .form-table td,
.srm-settings-embedded-page .form-table td,
.srm-app-shell .widefat td,
.srm-app-shell .widefat th,
.srm-settings-embedded-page .widefat td,
.srm-settings-embedded-page .widefat th {
  overflow-wrap: anywhere;
  word-break: normal;
}

.srm-app-shell table.widefat,
.srm-settings-embedded-page table.widefat {
  max-width: 100%;
}

.srm-app-shell .button,
.srm-settings-embedded-page .button,
.srm-app-shell .button-primary,
.srm-settings-embedded-page .button-primary,
.srm-app-shell .button-secondary,
.srm-settings-embedded-page .button-secondary {
  white-space: normal;
  min-height: 34px;
}

/* Storage maps: keep the editor inside the visible frame. */
.srm-storage-map-form {
  width: 100%;
  overflow: hidden;
}

.srm-map-editor-meta {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.srm-map-editor-meta__media-row {
  min-width: 0;
}

.srm-map-editor-meta__media-row input {
  flex: 1 1 240px;
  min-width: 0;
}

.srm-map-builder {
  width: 100%;
  min-width: 0;
}

.srm-map-builder__canvas-wrap,
.srm-map-builder__sidebar {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.srm-map-builder__toolbar {
  min-width: 0;
}

.srm-map-builder__toolbar .description {
  flex: 1 1 260px;
  min-width: 0;
}

.srm-storage-map-stage {
  max-width: 100%;
}

.srm-map-builder__unit-list,
.srm-map-unit-list {
  max-width: 100%;
  max-height: min(420px, 55vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.srm-map-position-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Operator/payment cards: prevent long transfer titles/senders from pushing the frame wider. */
.srm-app-shell .postbox ol,
.srm-settings-embedded-page .postbox ol {
  max-width: 100%;
  padding-right: 8px;
}

.srm-app-shell .postbox li,
.srm-settings-embedded-page .postbox li,
.srm-app-shell .postbox h4,
.srm-settings-embedded-page .postbox h4 {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .srm-map-builder {
    grid-template-columns: 1fr;
  }

  .srm-map-builder__sidebar {
    order: 2;
  }

  .srm-map-builder__canvas-wrap {
    order: 1;
  }

  .srm-operator-management {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 960px) {
  .srm-app-shell,
  .srm-settings-embedded-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .srm-app-tabs,
  .srm-myaccount-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .srm-app-tab,
  .srm-myaccount-tab {
    flex: 0 0 auto;
  }

  .srm-app-shell .form-table,
  .srm-app-shell .form-table tbody,
  .srm-app-shell .form-table tr,
  .srm-app-shell .form-table th,
  .srm-app-shell .form-table td,
  .srm-settings-embedded-page .form-table,
  .srm-settings-embedded-page .form-table tbody,
  .srm-settings-embedded-page .form-table tr,
  .srm-settings-embedded-page .form-table th,
  .srm-settings-embedded-page .form-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .srm-app-shell .form-table th,
  .srm-settings-embedded-page .form-table th {
    padding-bottom: 4px;
  }

  .srm-app-shell .form-table td,
  .srm-settings-embedded-page .form-table td {
    padding-top: 0;
  }

  .srm-app-shell table.widefat,
  .srm-app-shell .wp-list-table,
  .srm-settings-embedded-page table.widefat,
  .srm-settings-embedded-page .wp-list-table {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .srm-app-shell table.widefat thead,
  .srm-settings-embedded-page table.widefat thead,
  .srm-app-shell .wp-list-table thead,
  .srm-settings-embedded-page .wp-list-table thead {
    white-space: nowrap;
  }

  .srm-app-shell input[type="text"],
  .srm-app-shell input[type="email"],
  .srm-app-shell input[type="number"],
  .srm-app-shell input[type="password"],
  .srm-app-shell input[type="url"],
  .srm-app-shell input[type="date"],
  .srm-app-shell select,
  .srm-app-shell textarea,
  .srm-app-shell .regular-text,
  .srm-app-shell .large-text,
  .srm-settings-embedded-page input[type="text"],
  .srm-settings-embedded-page input[type="email"],
  .srm-settings-embedded-page input[type="number"],
  .srm-settings-embedded-page input[type="password"],
  .srm-settings-embedded-page input[type="url"],
  .srm-settings-embedded-page input[type="date"],
  .srm-settings-embedded-page select,
  .srm-settings-embedded-page textarea,
  .srm-settings-embedded-page .regular-text,
  .srm-settings-embedded-page .large-text {
    width: 100% !important;
  }

  .srm-map-position-grid {
    grid-template-columns: 1fr;
  }

  .srm-storage-map-stage--editor {
    min-height: 300px;
  }
}

@media (max-width: 600px) {
  .srm-app-shell,
  .srm-settings-embedded-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .srm-map-editor-meta,
  .srm-detail-grid,
  .srm-inline-form,
  .srm-price-editor-grid {
    grid-template-columns: 1fr !important;
  }

  .srm-map-editor-meta__media-row,
  .srm-map-builder__toolbar,
  .srm-payment-summary,
  .srm-payment-summary-main,
  .srm-inline-controls,
  .srm-storage-map-controls,
  .srm-storage-map-frontend__header,
  .srm-storage-map-legend {
    flex-direction: column;
    align-items: stretch;
  }

  .srm-map-editor-meta__media-row .button,
  .srm-map-builder__toolbar .button,
  .srm-storage-map-details__actions .button,
  .srm-app-shell p .button,
  .srm-settings-embedded-page p .button {
    width: 100%;
    text-align: center;
  }

  .srm-storage-map-stage--editor {
    min-height: 240px;
  }

  .srm-storage-map-unit {
    padding: 5px;
    border-radius: 7px;
  }

  .srm-storage-map-unit__label {
    font-size: 12px;
  }

  .srm-storage-map-unit__meta {
    display: none;
  }
}

/* 1.0.18.11: Responsive popup/fullscreen modal hardening. */
.srm-inline-modal,
.srm-fullscreen-modal {
  box-sizing: border-box;
}

.srm-inline-modal *,
.srm-inline-modal *::before,
.srm-inline-modal *::after,
.srm-fullscreen-modal *,
.srm-fullscreen-modal *::before,
.srm-fullscreen-modal *::after {
  box-sizing: border-box;
}

.srm-inline-modal__dialog,
.srm-fullscreen-modal__panel {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-wrap: anywhere;
  -webkit-overflow-scrolling: touch;
}

.srm-fullscreen-modal {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.srm-fullscreen-modal__panel {
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
}

.srm-fullscreen-modal__topbar > *,
.srm-inline-modal__header > * {
  min-width: 0;
}

.srm-fullscreen-modal h1,
.srm-fullscreen-modal h2,
.srm-fullscreen-modal h3,
.srm-fullscreen-modal h4,
.srm-inline-modal h1,
.srm-inline-modal h2,
.srm-inline-modal h3,
.srm-inline-modal h4 {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.srm-fullscreen-modal .form-table,
.srm-fullscreen-modal table,
.srm-inline-modal .form-table,
.srm-inline-modal table {
  max-width: 100%;
}

.srm-fullscreen-modal input[type="text"],
.srm-fullscreen-modal input[type="email"],
.srm-fullscreen-modal input[type="number"],
.srm-fullscreen-modal input[type="password"],
.srm-fullscreen-modal input[type="url"],
.srm-fullscreen-modal input[type="date"],
.srm-fullscreen-modal select,
.srm-fullscreen-modal textarea,
.srm-fullscreen-modal .regular-text,
.srm-fullscreen-modal .large-text,
.srm-inline-modal input[type="text"],
.srm-inline-modal input[type="email"],
.srm-inline-modal input[type="number"],
.srm-inline-modal input[type="password"],
.srm-inline-modal input[type="url"],
.srm-inline-modal input[type="date"],
.srm-inline-modal select,
.srm-inline-modal textarea,
.srm-inline-modal .regular-text,
.srm-inline-modal .large-text {
  max-width: 100% !important;
}

.srm-fullscreen-modal table.widefat,
.srm-fullscreen-modal .wp-list-table,
.srm-inline-modal table.widefat,
.srm-inline-modal .wp-list-table,
.srm-fullscreen-modal .srm-price-editor-table,
.srm-inline-modal .srm-price-editor-table {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.srm-fullscreen-modal fieldset,
.srm-inline-modal fieldset,
.srm-fullscreen-modal label,
.srm-inline-modal label,
.srm-fullscreen-modal p,
.srm-inline-modal p,
.srm-fullscreen-modal .description,
.srm-inline-modal .description {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 782px) {
  .srm-inline-modal__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    margin: 10px auto;
    padding: 14px;
    border-radius: 10px;
  }

  .srm-fullscreen-modal {
    padding: 8px;
  }

  .srm-fullscreen-modal__panel {
    height: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 14px;
    border-radius: 10px;
  }

  .srm-fullscreen-modal__topbar,
  .srm-inline-modal__header,
  .srm-fullscreen-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .srm-fullscreen-modal__topbar .button,
  .srm-inline-modal__header .button,
  .srm-fullscreen-modal__actions .button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .srm-fullscreen-modal .form-table,
  .srm-fullscreen-modal .form-table tbody,
  .srm-fullscreen-modal .form-table tr,
  .srm-fullscreen-modal .form-table th,
  .srm-fullscreen-modal .form-table td,
  .srm-inline-modal .form-table,
  .srm-inline-modal .form-table tbody,
  .srm-inline-modal .form-table tr,
  .srm-inline-modal .form-table th,
  .srm-inline-modal .form-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
  }

  .srm-fullscreen-modal .form-table th,
  .srm-inline-modal .form-table th {
    padding-bottom: 4px;
  }

  .srm-fullscreen-modal .form-table td,
  .srm-inline-modal .form-table td {
    padding-top: 0;
  }

  .srm-fullscreen-modal input[type="text"],
  .srm-fullscreen-modal input[type="email"],
  .srm-fullscreen-modal input[type="number"],
  .srm-fullscreen-modal input[type="password"],
  .srm-fullscreen-modal input[type="url"],
  .srm-fullscreen-modal input[type="date"],
  .srm-fullscreen-modal select,
  .srm-fullscreen-modal textarea,
  .srm-inline-modal input[type="text"],
  .srm-inline-modal input[type="email"],
  .srm-inline-modal input[type="number"],
  .srm-inline-modal input[type="password"],
  .srm-inline-modal input[type="url"],
  .srm-inline-modal input[type="date"],
  .srm-inline-modal select,
  .srm-inline-modal textarea {
    width: 100% !important;
  }
}


/* 1.0.18.12: Customer "Moje konto" responsive hardening. */
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .srm-rental-card,
.woocommerce-account .srm-door-control,
.woocommerce-account .srm-door-control * {
  box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-content {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.woocommerce-account .srm-rental-card,
.woocommerce-account .srm-door-control .woocommerce-info,
.woocommerce-account .srm-door-geo-box,
.woocommerce-account .srm-door-card {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.woocommerce-account .srm-myaccount-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 14px;
  border-radius: 6px;
}

.woocommerce-account .srm-myaccount-table-scroll:focus {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.woocommerce-account .srm-myaccount-period-table,
.woocommerce-account .srm-door-control .shop_table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
}

.woocommerce-account .srm-myaccount-period-table th,
.woocommerce-account .srm-myaccount-period-table td,
.woocommerce-account .srm-door-control .shop_table th,
.woocommerce-account .srm-door-control .shop_table td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.woocommerce-account .srm-period-group-trigger,
.woocommerce-account .srm-period-group-label,
.woocommerce-account .srm-payment-summary,
.woocommerce-account .srm-payment-summary-main,
.woocommerce-account .srm-myaccount-extension-actions,
.woocommerce-account .srm-extension-form,
.woocommerce-account .srm-extension-undo-form {
  max-width: 100%;
  min-width: 0;
}

.woocommerce-account .srm-extension-form input[type="number"],
.woocommerce-account .srm-extension-form button,
.woocommerce-account .srm-myaccount-extension-actions button,
.woocommerce-account .srm-extension-undo-form button,
.woocommerce-account .srm-door-control button {
  max-width: 100%;
}

.woocommerce-account .srm-door-control-grid {
  max-width: 100%;
  min-width: 0;
}

.woocommerce-account .srm-door-card code,
.woocommerce-account .srm-door-control table code {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 782px) {
  .woocommerce-account .srm-rental-card {
    padding: 12px;
    border-radius: 8px;
  }

  .woocommerce-account .srm-rental-card h3,
  .woocommerce-account .srm-door-control h2,
  .woocommerce-account .srm-door-control h3,
  .woocommerce-account .srm-door-card h4 {
    overflow-wrap: anywhere;
  }

  .woocommerce-account .srm-rental-meta {
    grid-template-columns: 1fr;
  }

  .woocommerce-account .srm-myaccount-table-scroll {
    border: 1px solid #e5e5e5;
    padding-bottom: 2px;
  }

  .woocommerce-account .srm-myaccount-period-table {
    min-width: 680px;
  }

  .woocommerce-account .srm-payment-summary,
  .woocommerce-account .srm-payment-summary-main,
  .woocommerce-account .srm-myaccount-extension-actions p,
  .woocommerce-account .srm-extension-form,
  .woocommerce-account .srm-extension-undo-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .woocommerce-account .srm-payment-summary .button,
  .woocommerce-account .srm-myaccount-extension-actions .button,
  .woocommerce-account .srm-extension-form .button,
  .woocommerce-account .srm-extension-undo-form .button,
  .woocommerce-account .srm-door-control .button {
    width: 100%;
    text-align: center;
  }

  .woocommerce-account .srm-extension-form input[type="number"] {
    width: 100%;
  }

  .woocommerce-account .srm-door-control .shop_table,
  .woocommerce-account .srm-door-control .shop_table tbody,
  .woocommerce-account .srm-door-control .shop_table tr,
  .woocommerce-account .srm-door-control .shop_table th,
  .woocommerce-account .srm-door-control .shop_table td {
    display: block;
    width: 100% !important;
  }

  .woocommerce-account .srm-door-control .shop_table tr {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .woocommerce-account .srm-door-control .shop_table th,
  .woocommerce-account .srm-door-control .shop_table td {
    padding: 4px 0 !important;
    text-align: left !important;
  }

  .woocommerce-account .srm-door-control-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .woocommerce-account .srm-myaccount-tabs {
    gap: 8px;
  }

  .woocommerce-account .srm-myaccount-tab {
    width: 100%;
    flex: 1 1 100%;
  }

  .woocommerce-account .srm-myaccount-period-table {
    min-width: 620px;
  }
}

/* Dashboard: verifier fields must stay inside their card on narrow columns. */
.srm-dashboard-identity-verifier,
.srm-dashboard-identity-verifier * {
  box-sizing: border-box;
}

.srm-dashboard-identity-verifier {
  overflow: visible;
  position: relative;
  z-index: 2;
}

.srm-dashboard-identity-grid > div,
.srm-dashboard-nip-tooltip-wrap {
  min-width: 0;
  max-width: 100%;
}

.srm-dashboard-identity-verifier input.regular-text {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

#srm-dashboard-gus-tooltip {
  position: fixed !important;
  z-index: 100000 !important;
  width: min(440px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  min-width: 0;
  margin: 0 !important;
  clear: none;
  overflow: visible;
  overflow-wrap: normal;
  word-break: normal;
}

#srm-dashboard-gus-tooltip .srm-dashboard-gus-result-title {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.25;
}

#srm-dashboard-gus-tooltip .srm-dashboard-gus-result-list {
  margin-top: 0;
}

#srm-dashboard-gus-tooltip .srm-dashboard-gus-result-row {
  display: block;
  padding: 9px 0;
  border-top: 1px solid #f0f0f1;
}

#srm-dashboard-gus-tooltip .srm-dashboard-gus-result-label {
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
  color: #3c434a;
}

#srm-dashboard-gus-tooltip .srm-dashboard-gus-result-value {
  display: block;
  min-width: 0;
  color: #1d2327;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.35;
}

.srm-dashboard-cards > .srm-dashboard-identity-verifier {
  overflow: visible !important;
}

.srm-dashboard-identity-verifier .srm-dashboard-nip-tooltip-wrap {
  overflow: visible;
}

.srm-dashboard-identity-verifier--tooltip-open {
  z-index: 20;
}

@media (max-width: 520px) {
  .srm-dashboard-identity-verifier {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* 1.0.18.42: Full-screen customer details popup with balances and access control. */
.srm-inline-modal--fullscreen .srm-inline-modal__dialog {
  width: calc(100vw - 32px);
  max-width: calc(100vw - 32px);
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: 16px auto;
  display: flex;
  flex-direction: column;
}

.srm-client-details-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid #dcdcde;
  padding-bottom: 12px;
}

.srm-client-details-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 16px;
  margin-bottom: 16px;
}

.srm-client-details-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 16px;
  min-width: 0;
}

.srm-client-details-card h4 {
  margin: 0 0 12px;
  font-size: 16px;
}

.srm-client-details-table th {
  width: 220px;
}

.srm-client-access-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.srm-access-override-form {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: min(420px, 100%);
}

.srm-compact-list {
  margin: 0;
  padding-left: 18px;
}

.srm-text-warning {
  color: #996800;
  font-weight: 600;
}

@media (max-width: 960px) {
  .srm-client-details-layout {
    grid-template-columns: 1fr;
  }

  .srm-client-access-card__top {
    flex-direction: column;
  }

  .srm-access-override-form {
    justify-content: flex-start;
  }
}

@media (max-width: 782px) {
  .srm-inline-modal--fullscreen .srm-inline-modal__dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    margin: 8px auto;
  }

  .srm-client-details-table th,
  .srm-client-details-table td,
  .srm-client-access-table th,
  .srm-client-access-table td {
    white-space: normal;
  }
}


/* 1.0.18.481: narrower customer-list columns and two-column action buttons. */
@media (min-width: 783px) {
  .srm-app-shell table.srm-clients-table,
  .srm-settings-embedded-page table.srm-clients-table {
    table-layout: fixed;
    width: 100%;
  }

  .srm-clients-table th,
  .srm-clients-table td {
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    vertical-align: top;
  }

  .srm-clients-table th:nth-child(1),
  .srm-clients-table td:nth-child(1) {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
  }

  .srm-clients-table th:nth-child(2),
  .srm-clients-table td:nth-child(2) {
    width: 18%;
  }

  .srm-clients-table th:nth-child(3),
  .srm-clients-table td:nth-child(3) {
    width: 12%;
  }

  .srm-clients-table th:nth-child(4),
  .srm-clients-table td:nth-child(4) {
    width: 86px;
    max-width: 86px;
  }

  .srm-clients-table th:nth-child(5),
  .srm-clients-table td:nth-child(5) {
    width: 120px;
    max-width: 120px;
  }

  .srm-clients-table th:nth-child(6),
  .srm-clients-table td:nth-child(6) {
    width: 105px;
    max-width: 105px;
  }

  .srm-clients-table th:nth-child(7),
  .srm-clients-table td:nth-child(7) {
    width: 300px;
    min-width: 300px;
  }

  .srm-clients-table .srm-client-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .srm-clients-table .srm-client-row-actions .button,
  .srm-clients-table .srm-client-row-actions button {
    width: 100%;
    min-width: 0;
    text-align: center;
    justify-content: center;
    white-space: normal;
    line-height: 1.2;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* 1.0.18.44: responsive customer list and safer full-screen customer popup. */
.srm-client-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
}

.srm-client-row-actions .button,
.srm-client-row-actions button {
  max-width: 100%;
}

.srm-clients-table td:last-child,
.srm-clients-table th:last-child {
  width: 1%;
  min-width: 220px;
}

.srm-inline-modal--fullscreen .srm-inline-modal__dialog {
  position: absolute;
  inset: 16px;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
}

@media (max-width: 782px) {
  .srm-app-shell table.srm-clients-table,
  .srm-settings-embedded-page table.srm-clients-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    border: 0;
  }

  .srm-clients-table thead {
    display: none !important;
  }

  .srm-clients-table tbody,
  .srm-clients-table tr,
  .srm-clients-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .srm-clients-table tr {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
  }

  .srm-clients-table td {
    min-width: 0 !important;
    border: 0 !important;
    padding: 7px 0 !important;
    overflow-wrap: anywhere;
  }

  .srm-clients-table td:nth-child(1) {
    padding-bottom: 10px !important;
  }

  .srm-clients-table td:nth-child(2),
  .srm-clients-table td:nth-child(3),
  .srm-clients-table td:nth-child(4),
  .srm-clients-table td:nth-child(5),
  .srm-clients-table td:nth-child(6) {
    display: grid !important;
    grid-template-columns: minmax(118px, 38%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .srm-clients-table td:nth-child(2)::before { content: "Klient"; }
  .srm-clients-table td:nth-child(3)::before { content: "Nazwa firmy"; }
  .srm-clients-table td:nth-child(4)::before { content: "Liczba magazynów"; }
  .srm-clients-table td:nth-child(5)::before { content: "Status płatności"; }
  .srm-clients-table td:nth-child(6)::before { content: "Najbliższy koniec umowy"; }
  .srm-clients-table td:nth-child(7)::before { content: "Akcje"; }

  .srm-clients-table td:nth-child(n+2)::before {
    font-weight: 600;
    color: #1d2327;
    overflow-wrap: normal;
  }

  .srm-clients-table td:nth-child(7)::before {
    display: block;
    margin-bottom: 8px;
  }

  .srm-clients-table .srm-client-row-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .srm-clients-table .srm-client-row-actions .button,
  .srm-clients-table .srm-client-row-actions button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .srm-inline-modal--fullscreen .srm-inline-modal__dialog {
    inset: 8px;
    padding: 12px;
  }
}

@media (max-width: 520px) {
  .srm-clients-table td:nth-child(2),
  .srm-clients-table td:nth-child(3),
  .srm-clients-table td:nth-child(4),
  .srm-clients-table td:nth-child(5),
  .srm-clients-table td:nth-child(6) {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* 1.0.18.45: customer list search/action hardening. Scope card layout to direct rows only. */
@media (max-width: 782px) {
  .srm-app-shell table.srm-clients-table > tbody,
  .srm-settings-embedded-page table.srm-clients-table > tbody,
  .srm-clients-table > tbody > tr,
  .srm-clients-table > tbody > tr > td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .srm-clients-table > tbody > tr {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
  }

  .srm-clients-table > tbody > tr > td {
    min-width: 0 !important;
    border: 0 !important;
    padding: 7px 0 !important;
    overflow-wrap: anywhere;
  }

  .srm-clients-table > tbody > tr > td:nth-child(2),
  .srm-clients-table > tbody > tr > td:nth-child(3),
  .srm-clients-table > tbody > tr > td:nth-child(4),
  .srm-clients-table > tbody > tr > td:nth-child(5),
  .srm-clients-table > tbody > tr > td:nth-child(6) {
    display: grid !important;
    grid-template-columns: minmax(118px, 38%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .srm-clients-table > tbody > tr > td:nth-child(2)::before { content: "Klient"; }
  .srm-clients-table > tbody > tr > td:nth-child(3)::before { content: "Nazwa firmy"; }
  .srm-clients-table > tbody > tr > td:nth-child(4)::before { content: "Liczba magazynów"; }
  .srm-clients-table > tbody > tr > td:nth-child(5)::before { content: "Status płatności"; }
  .srm-clients-table > tbody > tr > td:nth-child(6)::before { content: "Najbliższy koniec umowy"; }
  .srm-clients-table > tbody > tr > td:nth-child(7)::before { content: "Akcje"; }

  .srm-clients-table > tbody > tr > td:nth-child(n+2)::before {
    font-weight: 600;
    color: #1d2327;
    overflow-wrap: normal;
  }

  .srm-clients-table > tbody > tr > td:nth-child(7)::before {
    display: block;
    margin-bottom: 8px;
  }

  .srm-clients-table > tbody > tr > td .srm-client-row-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .srm-clients-table > tbody > tr > td .srm-client-row-actions .button,
  .srm-clients-table > tbody > tr > td .srm-client-row-actions button {
    width: 100%;
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .srm-clients-table > tbody > tr > td:nth-child(2),
  .srm-clients-table > tbody > tr > td:nth-child(3),
  .srm-clients-table > tbody > tr > td:nth-child(4),
  .srm-clients-table > tbody > tr > td:nth-child(5),
  .srm-clients-table > tbody > tr > td:nth-child(6) {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* 1.0.18.56: mobile-first hardening for dashboard and SRM admin screens. */
.srm-app-shell {
  width: 100%;
  max-width: 100%;
}

.srm-app-shell__content,
.srm-app-shell__content > .wrap {
  min-width: 0;
  max-width: 100%;
}

.srm-app-shell .card,
.srm-settings-embedded-page .card {
  min-width: 0;
}

.srm-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  margin: 18px 0;
  max-width: 1100px;
  width: 100%;
}

.srm-dashboard-cards > .card {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.srm-dashboard-action-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.srm-dashboard-action-card--bank {
  border-left: 4px solid #2271b1;
}

.srm-dashboard-action-card--delete {
  border-left: 4px solid #d63638;
}

.srm-dashboard-action-count {
  font-size: clamp(28px, 10vw, 46px);
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
}

.srm-dashboard-finance-card {
  max-width: none;
  border-left: 4px solid #00a32a;
  grid-column: span 2;
}

.srm-dashboard-finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
  margin-top: 12px;
}

.srm-dashboard-finance-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #fff;
}

.srm-dashboard-finance-value {
  display: block;
  margin-top: 4px;
  font-size: clamp(10px, 3.5vw, 16px);
  line-height: 1.12;
  overflow-wrap: anywhere;
  font-weight: 700;
}

@media (max-width: 960px) {
  .srm-dashboard-finance-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 782px) {
  .srm-app-shell {
    margin: 8px 0 0;
    padding: 12px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .srm-app-shell__topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .srm-app-brand {
    justify-self: center;
    width: min(32ch, 100%);
  }

  .srm-app-shell__content {
    overflow-x: hidden;
  }

  .srm-app-shell__content > .wrap {
    margin-right: 0;
    overflow-x: hidden;
  }

  .srm-dashboard-cards {
    grid-template-columns: 1fr !important;
    gap: 12px;
    max-width: 100%;
  }

  .srm-dashboard-cards > .card {
    padding: 16px;
  }

  .srm-dashboard-cards h2,
  .srm-dashboard-finance-card h2,
  .srm-dashboard-identity-verifier h2 {
    font-size: 21px;
    line-height: 1.2;
  }

  .srm-dashboard-finance-card {
    grid-column: auto !important;
  }

  .srm-dashboard-finance-grid {
    grid-template-columns: 1fr !important;
  }

  .srm-inline-controls {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .srm-inline-controls .button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .srm-app-tabs,
  .srm-myaccount-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    flex-wrap: initial;
  }

  .srm-app-tab,
  .srm-myaccount-tab {
    width: 100%;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    white-space: normal;
  }

  .srm-app-shell [style*="grid-template-columns:repeat(auto-fit"],
  .srm-app-shell [style*="grid-template-columns: repeat(auto-fit"],
  .srm-app-shell [style*="grid-template-columns:repeat(2"],
  .srm-app-shell [style*="grid-template-columns: repeat(2"],
  .srm-app-shell [style*="grid-template-columns:minmax"],
  .srm-app-shell [style*="grid-template-columns: minmax"],
  .srm-settings-embedded-page [style*="grid-template-columns:repeat(auto-fit"],
  .srm-settings-embedded-page [style*="grid-template-columns: repeat(auto-fit"],
  .srm-settings-embedded-page [style*="grid-template-columns:repeat(2"],
  .srm-settings-embedded-page [style*="grid-template-columns: repeat(2"],
  .srm-settings-embedded-page [style*="grid-template-columns:minmax"],
  .srm-settings-embedded-page [style*="grid-template-columns: minmax"] {
    grid-template-columns: 1fr !important;
  }

  .srm-app-shell [style*="max-width:1100px"],
  .srm-app-shell [style*="max-width:1200px"],
  .srm-app-shell [style*="max-width:1400px"],
  .srm-settings-embedded-page [style*="max-width:1100px"],
  .srm-settings-embedded-page [style*="max-width:1200px"],
  .srm-settings-embedded-page [style*="max-width:1400px"] {
    max-width: 100% !important;
  }
}

@media (max-width: 420px) {
  .srm-app-tabs,
  .srm-myaccount-tabs {
    grid-template-columns: 1fr;
  }

  .srm-dashboard-cards > .card {
    padding: 14px;
  }
}

/* 1.0.18.57: compact right-aligned exit button on mobile and desktop. */
.srm-exit-fullscreen,
.srm-fullscreen-modal__topbar .srm-exit-fullscreen,
.srm-inline-modal__header .srm-exit-fullscreen,
.srm-app-shell__topbar .srm-exit-fullscreen {
  display: inline-flex !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  flex: 0 0 48px !important;
  padding: 6px !important;
  margin-left: auto !important;
  align-self: flex-start !important;
  justify-content: center !important;
  align-items: center !important;
  background: #fff !important;
  color: #1d2327 !important;
  border: 1px solid #c3c4c7 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  text-indent: 0 !important;
}

.srm-exit-fullscreen__icon {
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
  margin: 0 !important;
}

@media (max-width: 782px) {
  .srm-app-shell__topbar {
    grid-template-columns: minmax(0, 1fr) 48px !important;
    align-items: start !important;
    column-gap: 10px !important;
  }

  .srm-app-shell__topbar .srm-app-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    max-width: calc(100% - 58px);
  }

  .srm-app-shell__topbar .srm-exit-fullscreen {
    grid-column: 2;
    grid-row: 1;
    justify-self: end !important;
    margin-left: 0 !important;
  }

  .srm-fullscreen-modal__topbar,
  .srm-inline-modal__header {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  .srm-fullscreen-modal__topbar > :not(.srm-exit-fullscreen),
  .srm-inline-modal__header > :not(.srm-exit-fullscreen) {
    min-width: 0;
    flex: 1 1 auto;
  }

  .srm-fullscreen-modal__topbar .srm-exit-fullscreen,
  .srm-inline-modal__header .srm-exit-fullscreen,
  .srm-fullscreen-modal__actions .srm-exit-fullscreen {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    flex-basis: 48px !important;
    margin-left: auto !important;
  }
}


/* 1.0.18.58: mobile-first responsive notices/info boxes across the app. */
.srm-app-shell .notice,
.srm-settings-embedded-page .notice,
.srm-app-shell .postbox,
.srm-settings-embedded-page .postbox,
.srm-app-shell .card,
.srm-settings-embedded-page .card,
.srm-app-shell .notice p,
.srm-settings-embedded-page .notice p,
.srm-app-shell .card p,
.srm-settings-embedded-page .card p,
.srm-app-shell .postbox p,
.srm-settings-embedded-page .postbox p {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.srm-app-shell .notice,
.srm-settings-embedded-page .notice,
.srm-app-shell .postbox,
.srm-settings-embedded-page .postbox,
.srm-app-shell .card,
.srm-settings-embedded-page .card,
.srm-dashboard-identity-verifier {
  width: 100%;
  min-width: 0;
}

.srm-app-shell .notice,
.srm-settings-embedded-page .notice {
  margin: 0 0 16px;
}

@media (max-width: 782px) {
  .srm-app-shell .notice,
  .srm-settings-embedded-page .notice,
  .srm-app-shell .postbox,
  .srm-settings-embedded-page .postbox,
  .srm-app-shell .card,
  .srm-settings-embedded-page .card,
  .srm-dashboard-identity-verifier {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 14px !important;
    border-radius: 10px;
  }

  .srm-app-shell .notice p,
  .srm-settings-embedded-page .notice p,
  .srm-app-shell .card p,
  .srm-settings-embedded-page .card p,
  .srm-app-shell .postbox p,
  .srm-settings-embedded-page .postbox p,
  .srm-dashboard-identity-verifier p {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
  }

  .srm-app-shell .notice h2,
  .srm-app-shell .notice h3,
  .srm-settings-embedded-page .notice h2,
  .srm-settings-embedded-page .notice h3,
  .srm-app-shell .card h2,
  .srm-app-shell .card h3,
  .srm-settings-embedded-page .card h2,
  .srm-settings-embedded-page .card h3,
  .srm-app-shell .postbox h2,
  .srm-app-shell .postbox h3,
  .srm-settings-embedded-page .postbox h2,
  .srm-settings-embedded-page .postbox h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.25;
  }

  .srm-app-shell .notice .button,
  .srm-settings-embedded-page .notice .button,
  .srm-app-shell .postbox .button,
  .srm-settings-embedded-page .postbox .button,
  .srm-app-shell .card .button,
  .srm-settings-embedded-page .card .button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .srm-app-shell .notice,
  .srm-settings-embedded-page .notice,
  .srm-app-shell .postbox,
  .srm-settings-embedded-page .postbox,
  .srm-app-shell .card,
  .srm-settings-embedded-page .card,
  .srm-dashboard-identity-verifier {
    padding: 12px !important;
  }

  .srm-app-shell .notice p,
  .srm-settings-embedded-page .notice p,
  .srm-app-shell .card p,
  .srm-settings-embedded-page .card p,
  .srm-app-shell .postbox p,
  .srm-settings-embedded-page .postbox p,
  .srm-dashboard-identity-verifier p {
    font-size: 15px;
    line-height: 1.5;
  }

  .srm-app-shell .notice h2,
  .srm-app-shell .notice h3,
  .srm-settings-embedded-page .notice h2,
  .srm-settings-embedded-page .notice h3,
  .srm-app-shell .card h2,
  .srm-app-shell .card h3,
  .srm-settings-embedded-page .card h2,
  .srm-settings-embedded-page .card h3,
  .srm-app-shell .postbox h2,
  .srm-app-shell .postbox h3,
  .srm-settings-embedded-page .postbox h2,
  .srm-settings-embedded-page .postbox h3 {
    font-size: 20px;
  }
}


/* 1.0.18.59: mobile header alignment — logo left, compact exit button right, subtitle fitted to logo width. */
.srm-app-shell__topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: start;
  column-gap: 12px;
  row-gap: 10px;
}

.srm-app-shell__topbar .srm-app-brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin: 0;
  width: min(32ch, 100%);
}

.srm-app-shell__topbar .srm-exit-fullscreen {
  grid-column: 2;
  grid-row: 1;
  justify-self: end !important;
  margin-left: 0 !important;
}

.srm-app-brand__subtitle {
  width: 100%;
  max-width: 100%;
  text-align: center;
}

@media (max-width: 782px) {
  .srm-app-shell__topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px !important;
    align-items: start !important;
    column-gap: 8px !important;
    row-gap: 10px !important;
  }

  .srm-app-shell__topbar .srm-app-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    width: min(300px, calc(100vw - 104px)) !important;
    max-width: calc(100vw - 104px) !important;
    margin: 0 !important;
  }

  .srm-app-brand__logo {
    width: 100% !important;
    height: auto !important;
  }

  .srm-app-brand__subtitle {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(17px, 5.1vw, 22px) !important;
    line-height: 1.14 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
  }

  .srm-app-shell__topbar .srm-exit-fullscreen {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: start !important;
    margin: 0 !important;
    position: static !important;
    z-index: 1;
  }
}

@media (max-width: 390px) {
  .srm-app-shell__topbar .srm-app-brand {
    width: min(270px, calc(100vw - 98px)) !important;
    max-width: calc(100vw - 98px) !important;
  }

  .srm-app-brand__subtitle {
    font-size: clamp(16px, 5vw, 20px) !important;
  }
}


/* 1.0.18.60: stable stacked hints/notices inside popup shells. */
.srm-notice-stack {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  clear: both;
  margin: 0 0 16px !important;
  box-sizing: border-box;
}

.srm-notice-stack > .notice,
.srm-email-notifications-page > .notice,
.srm-fullscreen-modal__panel .notice,
.srm-inline-modal__dialog .notice {
  display: block !important;
  float: none !important;
  clear: both !important;
  flex: none !important;
  grid-column: 1 / -1 !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  white-space: normal !important;
}

.srm-email-notifications-page,
.srm-fullscreen-modal__panel > .wrap,
.srm-inline-modal__dialog > .wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden;
  box-sizing: border-box;
}

.srm-notice-stack > .notice p,
.srm-email-notifications-page > .notice p,
.srm-fullscreen-modal__panel .notice p,
.srm-inline-modal__dialog .notice p {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.45;
}

.srm-email-notifications-hints {
  max-width: 1100px !important;
}

@media (max-width: 782px) {
  .srm-notice-stack {
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .srm-notice-stack > .notice,
  .srm-email-notifications-page > .notice,
  .srm-fullscreen-modal__panel .notice,
  .srm-inline-modal__dialog .notice {
    padding: 12px !important;
  }
}


/* 1.0.18.61: email notifications hint forced to one full-width block. */
.srm-email-notifications-page {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

.srm-email-notifications-page > .srm-email-notifications-main-hint,
.srm-app-shell__content .srm-email-notifications-page > .srm-email-notifications-main-hint,
.srm-fullscreen-modal__panel .srm-email-notifications-page > .srm-email-notifications-main-hint {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 1100px !important;
  min-width: 0 !important;
  flex: 0 0 100% !important;
  grid-column: 1 / -1 !important;
  margin: 0 0 16px 0 !important;
  box-sizing: border-box !important;
  white-space: normal !important;
}

.srm-email-notifications-main-hint p {
  display: block !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.45 !important;
}

.srm-email-notifications-page > .notice:not(.srm-email-notifications-main-hint) {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 1100px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 782px) {
  .srm-email-notifications-page > .srm-email-notifications-main-hint,
  .srm-email-notifications-page > .notice:not(.srm-email-notifications-main-hint) {
    max-width: 100% !important;
    padding: 12px !important;
  }
}


/* 1.0.18.62: graphical email editor with responsive preview devices. */
.srm-email-preview-overlay,
.srm-email-builder-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.68);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}

.srm-email-preview-overlay.is-visible,
.srm-email-builder-overlay.is-visible {
  display: flex;
}

.srm-email-preview-dialog,
.srm-email-builder-dialog {
  background: #fff;
  width: min(1280px, 96vw);
  max-width: 96vw;
  height: min(900px, 94vh);
  max-height: 94vh;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.srm-email-preview-header,
.srm-email-builder-header {
  padding: 14px 18px;
  border-bottom: 1px solid #dcdcde;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.srm-email-preview-header h3,
.srm-email-builder-header h3,
.srm-email-builder-preview h4,
.srm-email-builder-sidebar h4 {
  margin: 0 0 6px;
}

.srm-email-preview-subject {
  margin: 0;
  color: #50575e;
  overflow-wrap: anywhere;
}

.srm-email-device-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.srm-email-device-buttons .button.is-active {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

.srm-email-preview-device,
.srm-email-builder-preview-device {
  flex: 1 1 auto;
  margin: 16px auto;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  background: #f6f7f7;
  overflow: hidden;
  transition: width .18s ease;
}

.srm-email-preview-device--desktop,
.srm-email-builder-preview-device--desktop {
  width: min(1000px, calc(100% - 32px));
}

.srm-email-preview-device--tablet,
.srm-email-builder-preview-device--tablet {
  width: min(768px, calc(100% - 32px));
}

.srm-email-preview-device--phone,
.srm-email-builder-preview-device--phone {
  width: min(390px, calc(100% - 32px));
}

.srm-email-preview-frame,
.srm-email-builder-preview-frame {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  background: #fff;
  display: block;
}

.srm-email-builder-body {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 16px;
  padding: 16px;
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
  box-sizing: border-box;
}

.srm-email-builder-sidebar,
.srm-email-builder-main,
.srm-email-builder-preview {
  min-width: 0;
  box-sizing: border-box;
}

.srm-email-builder-sidebar,
.srm-email-builder-preview {
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 14px;
  background: #f6f7f7;
}

.srm-email-builder-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.srm-email-builder-label {
  font-weight: 600;
}

.srm-email-builder-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid #dcdcde;
  background: #f6f7f7;
  border-radius: 10px;
  padding: 8px;
}

.srm-email-builder-editor {
  flex: 1 1 auto;
  min-height: 360px;
  max-height: 56vh;
  overflow: auto;
  border: 1px solid #8c8f94;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
  box-sizing: border-box;
}

.srm-email-builder-editor:focus {
  outline: 2px solid #2271b1;
  outline-offset: 1px;
}

.srm-email-builder-editor p {
  margin: 0 0 12px;
}

.srm-email-builder-editor h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.srm-email-builder-variables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 56vh;
  overflow: auto;
  padding-right: 2px;
}

.srm-email-variable-chip {
  border: 1px solid #c3c4c7;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  text-align: left;
  cursor: grab;
  display: grid;
  gap: 3px;
  width: 100%;
  box-sizing: border-box;
}

.srm-email-variable-chip:active {
  cursor: grabbing;
}

.srm-email-variable-chip span {
  font-family: monospace;
  font-weight: 700;
  color: #2271b1;
  overflow-wrap: anywhere;
}

.srm-email-variable-chip small {
  color: #646970;
  line-height: 1.25;
}

.srm-email-builder-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.srm-email-builder-preview {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.srm-email-builder-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.srm-email-builder-preview-device {
  flex: 1 1 auto;
  margin: 10px auto 0;
  min-height: 520px;
}

.srm-email-builder-preview-frame {
  min-height: 520px;
}

@media (max-width: 1180px) {
  .srm-email-builder-body {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }

  .srm-email-builder-preview {
    grid-column: 1 / -1;
  }
}

@media (max-width: 782px) {
  .srm-email-preview-overlay,
  .srm-email-builder-overlay {
    padding: 8px;
  }

  .srm-email-preview-dialog,
  .srm-email-builder-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 10px;
  }

  .srm-email-preview-header,
  .srm-email-builder-header {
    padding: 12px;
  }

  .srm-email-builder-body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .srm-email-builder-sidebar,
  .srm-email-builder-preview {
    padding: 12px;
  }

  .srm-email-builder-variables {
    grid-template-columns: 1fr 1fr;
    max-height: 220px;
  }

  .srm-email-builder-editor {
    min-height: 300px;
    max-height: none;
  }

  .srm-email-preview-device,
  .srm-email-builder-preview-device {
    width: 100% !important;
    margin: 10px auto;
  }

  .srm-email-preview-frame,
  .srm-email-builder-preview-frame,
  .srm-email-builder-preview-device {
    min-height: 420px;
  }
}

@media (max-width: 520px) {
  .srm-email-builder-variables {
    grid-template-columns: 1fr;
  }

  .srm-email-preview-header,
  .srm-email-builder-header,
  .srm-email-builder-preview-top,
  .srm-email-builder-actions,
  .srm-email-device-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .srm-email-preview-close,
  .srm-email-builder-close,
  .srm-email-builder-actions .button,
  .srm-email-device-buttons .button {
    width: 100%;
    text-align: center;
  }
}


/* 1.0.18.63: email notifications page notices must never share a row. */
.srm-email-notifications-page > .notice {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 1100px !important;
  min-width: 0 !important;
  flex: 0 0 100% !important;
  grid-column: 1 / -1 !important;
  margin: 0 0 16px 0 !important;
  box-sizing: border-box !important;
}

.srm-email-notifications-page > .notice p {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.srm-email-notifications-page > .notice + .notice {
  margin-top: 10px !important;
}


/* 1.0.18.64: global email footer editor. */
.srm-email-footer-settings textarea {
  width: 100%;
  max-width: 100%;
  min-height: 180px;
  box-sizing: border-box;
  font-family: monospace;
  line-height: 1.45;
}

.srm-email-global-footer,
.srm-email-global-footer * {
  max-width: 100%;
  box-sizing: border-box;
}

.srm-email-global-footer img {
  max-width: 300px;
  width: 100%;
  height: auto;
}


/* 1.0.18.65: footer font controls and live footer preview. */
.srm-email-footer-style-controls,
.srm-email-builder-footer-style-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 12px 0;
}

.srm-email-footer-style-controls label,
.srm-email-builder-footer-style-controls label {
  font-weight: 600;
}

.srm-email-footer-style-controls select,
.srm-email-builder-footer-style-controls select {
  min-width: 180px;
  max-width: 100%;
}

.srm-email-builder-footer-style-controls[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .srm-email-footer-style-controls,
  .srm-email-builder-footer-style-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .srm-email-footer-style-controls select,
  .srm-email-builder-footer-style-controls select {
    width: 100%;
  }
}

/* 1.0.18.78: logical connected warehouses package UI. */
.srm-connected-warehouses-form input[type="text"],
.srm-connected-warehouses-form input[type="number"],
.srm-connected-warehouses-form input[type="date"],
.srm-connected-warehouses-form select,
.srm-connected-warehouses-form textarea {
  max-width: 100%;
}

.srm-connected-package-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c3c4c7;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f6f7f7;
  font-weight: 600;
}

/* 1.0.18.79: connected warehouses picker and package occupancy. */
.srm-connected-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.srm-connected-picker select {
  min-width: min(100%, 360px);
}

.srm-connected-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}

.srm-connected-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c3c4c7;
  border-radius: 999px;
  padding: 4px 9px;
  background: #f6f7f7;
}

.srm-connected-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 600px) {
  .srm-connected-picker {
    display: grid;
    grid-template-columns: 1fr;
  }
  .srm-connected-picker select,
  .srm-connected-picker .button {
    width: 100%;
  }
}

/* 1.0.18.80: connected warehouses visibility and mobile-safe picker. */
.srm-connected-warehouses-form,
.srm-connected-warehouses-form *,
.srm-connected-picker,
.srm-connected-picker * {
  box-sizing: border-box;
  min-width: 0;
}

.srm-connected-warehouses-form {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.srm-connected-picker {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  max-width: 100%;
  gap: 8px;
  align-items: end;
}

.srm-connected-picker select,
.srm-connected-warehouses-form select,
.srm-connected-warehouses-form input[type="text"],
.srm-connected-warehouses-form input[type="number"],
.srm-connected-warehouses-form input[type="date"],
.srm-connected-warehouses-form textarea {
  width: 100% !important;
  max-width: 100% !important;
}

.srm-connected-package-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
  gap: 6px;
  border: 1px solid #c3c4c7;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f6f7f7;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.srm-connected-package-badge--muted {
  color: #646970;
  font-weight: 500;
}

@media (max-width: 782px) {
  .srm-connected-picker {
    grid-template-columns: 1fr;
  }

  .srm-connected-picker .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* 1.0.18.81: clearer connected warehouse package state, rate history and responsive controls. */
.srm-connected-warehouses-card {
  overflow: hidden;
}

.srm-connected-status-panel {
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
  background: #f6f7f7;
  overflow-wrap: anywhere;
}

.srm-connected-status-panel.is-active {
  border-left: 4px solid #00a32a;
  background: #f0fff4;
}

.srm-connected-status-panel.is-member {
  border-left: 4px solid #dba617;
  background: #fff8e5;
}

.srm-connected-status-panel.is-disabled {
  border-left: 4px solid #8c8f94;
}

.srm-connected-rate-panel,
.srm-connected-rate-history-inline {
  width: 100%;
  max-width: 100%;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  margin: 12px 0;
  box-sizing: border-box;
  overflow-x: auto;
}

.srm-connected-rate-panel h4,
.srm-connected-rate-history-inline h4 {
  margin-top: 0;
}

.srm-connected-warehouses-form label,
.srm-connected-warehouses-form .srm-inline-form--wide {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.srm-connected-picker {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.srm-connected-picker select,
.srm-connected-picker .button,
.srm-connected-warehouses-form select,
.srm-connected-warehouses-form input,
.srm-connected-warehouses-form textarea {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

.srm-connected-picker select {
  width: 100% !important;
}

.srm-connected-package-badge--warning {
  border-color: #dba617;
  background: #fff8e5;
}

@media (max-width: 782px) {
  .srm-connected-picker {
    grid-template-columns: 1fr;
  }

  .srm-connected-picker .button {
    width: 100%;
    text-align: center;
  }

  .srm-connected-rate-history-inline table {
    min-width: 560px;
  }
}

/* 1.0.18.82: connected package save clarity. */
.srm-connected-main-number {
  border-left: 4px solid #72aee6;
  background: #f0f6fc;
  padding: 8px 10px;
  margin: 8px 0 12px;
  border-radius: 6px;
}

.srm-connected-rate-panel {
  border-left: 4px solid #00a32a;
}

/* 1.0.18.83: semi-automatic payment matching select clarity. */
.srm-bank-notification-card select[name="selected_customer_id"] option {
  white-space: normal;
}

/* 1.0.18.84: bank notification rental options fallback clarity. */
.srm-bank-notification-card select[name="selected_customer_id"] {
  max-width: 100%;
}


/* 1.0.18.85: semi-automatic bank notices must stay full-width. */
.srm-bank-notices {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  max-width: 1400px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.srm-bank-notices .notice,
.srm-bank-notice {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 10px 0 !important;
  box-sizing: border-box !important;
  white-space: normal !important;
}

.srm-bank-notices .notice p,
.srm-bank-notice p {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.srm-bank-notification-card select[name="selected_customer_id"] {
  max-width: 100% !important;
  min-width: 0 !important;
}

/* 1.0.18.89: quick popup editor for booked payments. */
.srm-transaction-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(17, 24, 39, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.srm-transaction-edit-overlay[hidden] {
  display: none !important;
}

.srm-transaction-edit-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  padding: 18px;
  box-sizing: border-box;
}

.srm-transaction-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.srm-transaction-edit-header h3 {
  margin: 0;
}

.srm-transaction-edit-label {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  font-weight: 600;
}

.srm-transaction-edit-label input {
  width: 100%;
  max-width: 100%;
  font-size: 18px;
  padding: 8px 10px;
  box-sizing: border-box;
}

.srm-transaction-edit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 16px;
}

@media (max-width: 520px) {
  .srm-transaction-edit-header,
  .srm-transaction-edit-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .srm-transaction-edit-actions .button,
  .srm-transaction-edit-close {
    width: 100%;
    text-align: center;
  }
}

/* 1.0.18.90: delegated popup editor for booked payments. */
.srm-booked-payment-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(17, 24, 39, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.srm-booked-payment-edit-overlay[hidden] {
  display: none !important;
}

.srm-booked-payment-edit-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  padding: 18px;
  box-sizing: border-box;
}

.srm-booked-payment-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.srm-booked-payment-edit-header h3 {
  margin: 0;
}

.srm-booked-payment-edit-label {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  font-weight: 600;
}

.srm-booked-payment-edit-label input {
  width: 100%;
  max-width: 100%;
  font-size: 18px;
  padding: 8px 10px;
  box-sizing: border-box;
}

.srm-booked-payment-edit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 16px;
}

@media (max-width: 520px) {
  .srm-booked-payment-edit-header,
  .srm-booked-payment-edit-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .srm-booked-payment-edit-actions .button,
  .srm-booked-payment-edit-close {
    width: 100%;
    text-align: center;
  }
}

/* 1.0.18.91: smaller dashboard finance values. */
.srm-dashboard-finance-value {
  font-size: clamp(10px, 3.5vw, 16px) !important;
  font-weight: 700 !important;
}

/* 1.0.18.91: safer filtered tables and details navigation layout. */
.srm-filter-table {
  max-width: 100%;
}

.srm-filter-table th,
.srm-filter-table td {
  overflow-wrap: anywhere;
}

.srm-filter-table .srm-filter-input {
  max-width: 100%;
}

/* 1.0.18.96: package price history edit modal. */
.srm-connected-history-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 4px solid #72aee6;
  background: #f0f6fc;
  border-radius: 6px;
}

.srm-rate-history-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.62);
  padding: 18px;
  box-sizing: border-box;
}

.srm-rate-history-modal[hidden] {
  display: none !important;
}

.srm-rate-history-modal__dialog {
  width: min(1120px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
  box-sizing: border-box;
}

.srm-rate-history-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.srm-rate-history-modal__header h3 {
  margin: 0 0 4px;
}

.srm-rate-history-edit-panel.is-inside-modal {
  margin-top: 0;
}

@media (max-width: 782px) {
  .srm-rate-history-modal {
    align-items: stretch;
    padding: 10px;
  }
  .srm-rate-history-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 14px;
  }
  .srm-rate-history-modal__header {
    display: grid;
    grid-template-columns: 1fr;
  }
  .srm-rate-history-modal-close {
    width: 100%;
  }
}

/* 1.0.18.97: row-level package rate editing. */
.srm-rate-row-modal-open {
  white-space: nowrap;
}

.srm-rate-history-edit-panel.is-inside-modal .srm-rate-history-edit-table .srm-rate-history-edit-row[style*="display: none"] {
  display: none !important;
}

.srm-rate-history-edit-panel.is-inside-modal .srm-rate-history-edit-table th:nth-child(1),
.srm-rate-history-edit-panel.is-inside-modal .srm-rate-history-edit-table th:nth-child(2),
.srm-rate-history-edit-panel.is-inside-modal .srm-rate-history-edit-table td:nth-child(1),
.srm-rate-history-edit-panel.is-inside-modal .srm-rate-history-edit-table td:nth-child(2) {
  width: 90px;
}

/* 1.0.18.100: delete package rate actions. */
.srm-rate-history-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* 1.0.18.102: package rate popup layout fixes. */
.srm-rate-history-edit-panel.is-inside-modal .srm-rate-history-row-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

.srm-rate-history-edit-panel.is-inside-modal .srm-rate-history-row-form label,
.srm-rate-history-edit-panel.is-inside-modal .srm-rate-history-row-form input {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.srm-rate-history-edit-panel.is-inside-modal .srm-rate-history-row-actions {
  margin: 0;
  align-self: end;
}

.srm-rate-history-edit-panel.is-inside-modal .srm-rate-history-row-actions .button {
  width: 100%;
}

@media (max-width: 1100px) {
  .srm-rate-history-edit-panel.is-inside-modal .srm-rate-history-row-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .srm-rate-history-edit-panel.is-inside-modal .srm-rate-history-row-form {
    grid-template-columns: 1fr;
  }
}

/* 1.0.18.104: compact balanced rental detail cards. */
.srm-detail-grid--balanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr));
  gap: 18px;
  align-items: start;
}

.srm-detail-grid--balanced .srm-detail-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.srm-detail-card--rate-history,
.srm-detail-card--ksef,
.srm-detail-card--periods {
  width: 100%;
  box-sizing: border-box;
}

.srm-detail-card--rate-history .widefat,
.srm-detail-card--ksef .widefat,
.srm-detail-card--periods .widefat {
  width: 100%;
  max-width: 100%;
}

.srm-detail-card--rate-history .srm-rate-history-table,
.srm-detail-card--ksef pre,
.srm-detail-card--periods table {
  max-width: 100%;
}

.srm-detail-card--rate-history,
.srm-detail-card--ksef,
.srm-detail-card--periods {
  overflow-x: auto;
}

.srm-detail-card--ksef .srm-inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.srm-detail-card--ksef select,
.srm-detail-card--ksef input,
.srm-detail-card--ksef textarea {
  max-width: 100%;
}

.srm-detail-card--ksef pre {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.srm-detail-card--periods table {
  min-width: 640px;
}

.srm-detail-card--rate-history table {
  min-width: 520px;
}

@media (max-width: 1180px) {
  .srm-detail-grid--balanced {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .srm-detail-grid--balanced {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .srm-detail-card--ksef .srm-inline-form {
    grid-template-columns: 1fr;
  }
}

/* 1.0.18.107: billing start date quick edit in summary. */
.srm-summary-billing-start-line,
.srm-summary-contract-start-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.srm-summary-billing-start-line .button,
.srm-summary-contract-start-line .button {
  margin-left: 4px;
}

.srm-billing-start-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.62);
  padding: 18px;
  box-sizing: border-box;
}

.srm-billing-start-modal[hidden] {
  display: none !important;
}

.srm-billing-start-modal__dialog {
  width: min(560px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
  box-sizing: border-box;
}

.srm-billing-start-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.srm-billing-start-modal__header h3 {
  margin: 0 0 4px;
}

@media (max-width: 640px) {
  .srm-billing-start-modal {
    align-items: stretch;
    padding: 10px;
  }
  .srm-billing-start-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
  }
  .srm-billing-start-modal__header {
    display: grid;
    grid-template-columns: 1fr;
  }
  .srm-billing-start-modal-close,
  .srm-contract-start-modal-close {
    width: 100%;
  }
}

/* 1.0.18.110: public-style current price list preview. */
.srm-public-price-list-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.srm-public-price-list-range {
  margin: 0 0 12px;
  font-size: 15px;
  color: #2c3338;
}

.srm-public-price-list-scroll {
  width: 100%;
  overflow-x: auto;
  padding: 10px;
  border-radius: 28px;
  background: #f8f8f8;
  border: 4px solid #1f1f1f;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  box-sizing: border-box;
}

.srm-public-price-list-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  border: 3px solid #111;
  background: #fff;
  font-family: inherit;
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.25;
}

.srm-public-price-list-table th,
.srm-public-price-list-table td {
  border: 3px solid #111;
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.srm-public-price-list-table thead th {
  background: #e8e8e8;
  color: #f47a22;
  font-weight: 800;
  font-size: 1.05em;
}

.srm-public-price-list-subhead th {
  background: #eeeeee;
  font-size: .9em;
}

.srm-public-price-list-table tbody tr:nth-child(even) th,
.srm-public-price-list-table tbody tr:nth-child(even) td {
  background: #fde7d8;
}

.srm-public-price-list-size {
  color: #f47a22;
  font-weight: 900;
}

.srm-public-price-list-capacity,
.srm-public-price-list-price {
  color: #000;
  font-weight: 700;
}

.srm-public-price-list-price .woocommerce-Price-amount,
.srm-public-price-list-price .amount {
  font-weight: 800;
}

#srm-current-price-list-modal .srm-inline-modal__dialog {
  width: min(1220px, calc(100vw - 36px));
  max-width: 1220px;
}

@media (max-width: 782px) {
  .srm-public-price-list-scroll {
    border-width: 3px;
    border-radius: 18px;
    padding: 6px;
  }

  .srm-public-price-list-table {
    min-width: 760px;
    font-size: 18px;
  }

  .srm-public-price-list-table th,
  .srm-public-price-list-table td {
    padding: 8px 10px;
  }
}

/* 1.0.18.112: current price list shown directly in Cenniki section. */
.srm-current-price-list-section {
  max-width: 1380px;
  margin: 18px 0 24px;
}

.srm-current-price-list-section .srm-public-price-list-wrap {
  margin-left: 0;
  margin-right: 0;
}

.srm-current-price-list-section .srm-public-price-list-scroll {
  max-width: 100%;
}

/* Carry-forward fitting rules for the embedded cennik table. */
.srm-public-price-list-wrap {
  max-width: 100%;
}

.srm-public-price-list-table {
  table-layout: fixed;
  min-width: 0 !important;
  width: 100%;
  font-size: clamp(15px, 1.55vw, 23px);
}

.srm-public-price-list-table th,
.srm-public-price-list-table td {
  padding: 9px 8px;
}

.srm-public-price-list-table thead th {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.25;
}

.srm-public-price-list-table tbody th,
.srm-public-price-list-table tbody td {
  white-space: nowrap;
}

.srm-public-price-list-table th:nth-child(1) {
  width: 17%;
}

.srm-public-price-list-table th:nth-child(2) {
  width: 18%;
}

.srm-public-price-list-table th:nth-child(3) {
  width: 20%;
}

.srm-public-price-list-table th:nth-child(4) {
  width: 21%;
}

.srm-public-price-list-table th:nth-child(5) {
  width: 24%;
}

@media (max-width: 1100px) {
  .srm-public-price-list-table {
    min-width: 760px !important;
    font-size: 17px;
  }
}

@media (max-width: 782px) {
  .srm-current-price-list-section {
    margin-top: 14px;
  }

  .srm-public-price-list-table {
    min-width: 700px !important;
    font-size: 16px;
  }
}

/* 1.0.18.113: current price list shortcode copy button and frontend table. */
.srm-shortcode-copy-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.srm-shortcode-copy-box code {
  padding: 7px 10px;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  background: #f6f7f7;
}

.srm-shortcode-copy-status {
  min-width: 90px;
}

.srm-public-price-list-wrap--shortcode {
  margin: 0 auto;
}

.srm-public-price-list-wrap--shortcode .srm-public-price-list-scroll {
  margin: 0;
}

/* 1.0.18.114: visually even price-list frame. */
.srm-public-price-list-scroll {
  padding: 10px !important;
  padding-bottom: 10px !important;
  border-width: 4px !important;
  border-bottom-width: 4px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .24) !important;
}

.srm-public-price-list-table {
  margin: 0 !important;
}

.srm-public-price-list-table tbody tr:last-child th,
.srm-public-price-list-table tbody tr:last-child td {
  border-bottom-width: 3px !important;
}

.srm-public-price-list-wrap--shortcode .srm-public-price-list-scroll {
  padding-bottom: 10px !important;
  border-bottom-width: 4px !important;
}

/* 1.0.18.115: optional frontend auto-scroll hint for price-list shortcode. */
.srm-price-list-shortcode-settings {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-width: 980px;
}

.srm-price-list-shortcode-settings label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
}

.srm-price-list-shortcode-settings input[type="checkbox"] {
  margin-top: 2px;
}

.srm-public-price-list-wrap--auto-scroll.is-auto-scrolling .srm-public-price-list-scroll {
  scroll-behavior: auto;
}

.srm-public-price-list-wrap--auto-scroll {
  position: relative;
}

.srm-public-price-list-wrap--auto-scroll.is-auto-scrolling::before {
  content: 'Przesuń cennik palcem';
  position: absolute;
  z-index: 6;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(0,0,0,.14);
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  color: #1d2327;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
}


/* 1.0.18.132: global notice layout rule.
 * Komunikaty systemowe w aplikacji zawsze zaczynają się od nowej linii
 * i nie mogą być wciskane w wąskie kolumny/flex/grid.
 */
.srm-app-shell .notice,
.srm-settings-embedded-page .notice,
.srm-app-shell .notice.inline,
.srm-settings-embedded-page .notice.inline,
.srm-app-shell .notice.notice-info,
.srm-app-shell .notice.notice-warning,
.srm-app-shell .notice.notice-success,
.srm-app-shell .notice.notice-error,
.srm-settings-embedded-page .notice.notice-info,
.srm-settings-embedded-page .notice.notice-warning,
.srm-settings-embedded-page .notice.notice-success,
.srm-settings-embedded-page .notice.notice-error {
  display: block !important;
  clear: both !important;
  float: none !important;
  flex: 0 0 100% !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 12px 0 !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  text-align: left !important;
}

.srm-app-shell .notice p,
.srm-settings-embedded-page .notice p {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: .5em 0 !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.45 !important;
  text-align: left !important;
}

.srm-app-shell .notice + .notice,
.srm-settings-embedded-page .notice + .notice {
  margin-top: 8px !important;
}

.srm-app-shell .srm-inline-form > .notice,
.srm-settings-embedded-page .srm-inline-form > .notice,
.srm-app-shell form > .notice,
.srm-settings-embedded-page form > .notice,
.srm-app-shell .postbox > .notice,
.srm-settings-embedded-page .postbox > .notice {
  grid-column: 1 / -1 !important;
  flex-basis: 100% !important;
}

/* 1.0.18.143: Storage map editor sidebar hardening. */
.srm-map-builder {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 14px;
}

.srm-map-builder__canvas-wrap,
.srm-map-builder__sidebar {
  box-sizing: border-box;
}

.srm-map-builder__fields,
.srm-map-builder__fields label,
.srm-map-position-grid,
.srm-map-position-grid label {
  min-width: 0;
}

.srm-map-builder__fields input:not([type="checkbox"]),
.srm-map-builder__fields select,
.srm-map-builder__fields textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.srm-map-builder__fields select {
  text-overflow: ellipsis;
}

.srm-map-builder__fields textarea {
  resize: vertical;
}

@media (max-width: 1280px) {
  .srm-map-builder {
    grid-template-columns: 1fr;
  }

  .srm-map-builder__sidebar {
    order: 2;
  }

  .srm-map-builder__canvas-wrap {
    order: 1;
  }
}

/* 1.0.18.144: less aggressive snapping and square storage-map unit corners. */
.srm-storage-map-unit {
  border-radius: 0;
}

.srm-storage-map-unit__resize {
  border-top-left-radius: 0;
}


/* 1.0.18.145: storage-map snapping controls and stable top-left background origin. */
.srm-map-snap-settings {
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.srm-map-snap-settings legend {
  font-weight: 700;
  padding: 0 4px;
}

.srm-map-snap-settings label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.srm-map-snap-settings__strength {
  align-items: stretch !important;
  flex-direction: column;
}

.srm-map-snap-settings__strength input[type="range"] {
  width: 100%;
}

/* 1.0.18.146: restore absolute unit positioning and compact plan dimensions section. */
.srm-storage-map-stage .srm-storage-map-unit {
  position: absolute;
}

.srm-map-plan-settings {
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}

.srm-map-plan-settings legend {
  font-weight: 700;
  padding: 0 4px;
}

.srm-map-plan-settings__grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}

.srm-map-plan-settings label {
  min-width: 0;
}

.srm-map-plan-settings select,
.srm-map-plan-settings input[type="number"] {
  width: 100% !important;
  min-height: 36px;
}

.srm-map-plan-settings .small-text {
  max-width: none !important;
}

.srm-storage-map-unit,
.srm-storage-map-unit__resize {
  border-radius: 0 !important;
}

@media (max-width: 900px) {
  .srm-map-plan-settings__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .srm-map-plan-settings__grid {
    grid-template-columns: 1fr;
  }
}

/* 1.0.18.147: plan colors from WooCommerce stock status. */
.srm-storage-map-frontend,
.srm-map-builder {
  --srm-plan-free-bg: rgba(34, 197, 94, 0.30);
  --srm-plan-free-border: #16a34a;
  --srm-plan-free-selected-bg: rgba(22, 163, 74, 0.56);
  --srm-plan-free-selected-border: #166534;
  --srm-plan-rented-bg: rgba(239, 68, 68, 0.30);
  --srm-plan-rented-border: #dc2626;
  --srm-plan-rented-selected-bg: rgba(220, 38, 38, 0.56);
  --srm-plan-rented-selected-border: #991b1b;
  --srm-plan-unavailable-bg: rgba(100, 108, 118, 0.18);
  --srm-plan-unavailable-border: #646c76;
  --srm-plan-box-border-color: #111827;
  --srm-plan-box-border-width: 1px;
}

.srm-storage-map-legend .is-available,
.srm-storage-map-unit.is-available {
  background: var(--srm-plan-free-bg) !important;
  border-color: var(--srm-plan-free-border) !important;
}

.srm-storage-map-legend .is-occupied,
.srm-storage-map-unit.is-occupied {
  background: var(--srm-plan-rented-bg) !important;
  border-color: var(--srm-plan-rented-border) !important;
}

.srm-storage-map-legend .is-unavailable,
.srm-storage-map-unit.is-unavailable {
  background: var(--srm-plan-unavailable-bg) !important;
  border-color: var(--srm-plan-unavailable-border) !important;
}

.srm-storage-map-unit.is-available.is-selected {
  background: var(--srm-plan-free-selected-bg) !important;
  border-color: var(--srm-plan-free-selected-border) !important;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.30) !important;
}

.srm-storage-map-unit.is-occupied.is-selected {
  background: var(--srm-plan-rented-selected-bg) !important;
  border-color: var(--srm-plan-rented-selected-border) !important;
  box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.30) !important;
}

.srm-storage-map-unit.is-unavailable.is-selected {
  box-shadow: 0 0 0 3px rgba(100, 108, 118, 0.28) !important;
}

.srm-map-unit-list__status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.srm-map-unit-list__status.is-available {
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
}

.srm-map-unit-list__status.is-occupied {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.14);
}

.srm-map-unit-list__status.is-unavailable {
  color: #4b5563;
  background: rgba(100, 108, 118, 0.12);
}

.srm-map-unit-list__item.is-available.is-active {
  border-color: var(--srm-plan-free-selected-border);
  background: rgba(34, 197, 94, 0.10);
}

.srm-map-unit-list__item.is-occupied.is-active {
  border-color: var(--srm-plan-rented-selected-border);
  background: rgba(239, 68, 68, 0.10);
}

/* 1.0.18.148: editor zoom controls for detailed positioning on small units. */
.srm-map-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  padding: 4px 6px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #f6f7f7;
}

.srm-map-zoom-controls .button {
  min-height: 32px;
  line-height: 1.2;
}

.srm-map-zoom-range {
  width: 130px;
  max-width: 24vw;
}

.srm-map-zoom-value {
  min-width: 44px;
  text-align: right;
  font-weight: 700;
  color: #1d2327;
}

.srm-storage-map-zoom-viewport {
  width: 100%;
  overflow: auto;
  max-height: 78vh;
  padding: 0;
  border-radius: 10px;
  background: #f6f7f7;
  overscroll-behavior: contain;
}

.srm-storage-map-zoom-inner {
  width: 100%;
  min-width: 520px;
  transform-origin: left top;
}

.srm-storage-map-zoom-inner .srm-storage-map-stage--editor {
  width: 100%;
}

@media (max-width: 782px) {
  .srm-map-zoom-controls {
    width: 100%;
    justify-content: space-between;
  }

  .srm-map-zoom-range {
    flex: 1 1 auto;
    max-width: none;
  }

  .srm-storage-map-zoom-viewport {
    max-height: 70vh;
  }
}

/* 1.0.18.149: rental occupancy hint for storage-map editor. */
.srm-map-product-rental-info {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid #dcdcde;
  background: #f6f7f7;
  color: #1d2327;
  font-size: 12px;
  line-height: 1.35;
}

.srm-map-product-rental-info strong {
  font-size: 13px;
}

.srm-map-product-rental-info span {
  white-space: pre-line;
}


.srm-map-product-rental-info.is-available {
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(34, 197, 94, 0.10);
}

.srm-map-product-rental-info.is-occupied {
  border-color: rgba(220, 38, 38, 0.45);
  background: rgba(239, 68, 68, 0.10);
}

.srm-map-product-rental-info.is-unavailable {
  border-color: rgba(100, 108, 118, 0.35);
  background: rgba(100, 108, 118, 0.08);
}

/* 1.0.18.157: polygon and arc editing for storage-map units. */
.srm-storage-map-unit.has-custom-shape {
  background: transparent !important;
  border-color: transparent !important;
  overflow: visible;
  padding: 0 !important;
}

.srm-storage-map-unit.has-custom-shape .srm-storage-map-shape-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.srm-storage-map-unit.has-custom-shape .srm-storage-map-shape-fill {
  vector-effect: non-scaling-stroke;
  stroke-width: 2;
}

.srm-storage-map-unit.has-custom-shape.is-available .srm-storage-map-shape-fill {
  fill: var(--srm-plan-free-bg);
  stroke: var(--srm-plan-free-border);
}

.srm-storage-map-unit.has-custom-shape.is-occupied .srm-storage-map-shape-fill {
  fill: var(--srm-plan-rented-bg);
  stroke: var(--srm-plan-rented-border);
}

.srm-storage-map-unit.has-custom-shape.is-unavailable .srm-storage-map-shape-fill {
  fill: var(--srm-plan-unavailable-bg);
  stroke: var(--srm-plan-unavailable-border);
}

.srm-storage-map-unit.has-custom-shape.is-available.is-selected .srm-storage-map-shape-fill {
  fill: var(--srm-plan-free-selected-bg);
  stroke: var(--srm-plan-free-selected-border);
}

.srm-storage-map-unit.has-custom-shape.is-occupied.is-selected .srm-storage-map-shape-fill {
  fill: var(--srm-plan-rented-selected-bg);
  stroke: var(--srm-plan-rented-selected-border);
}

.srm-storage-map-unit.has-custom-shape .srm-storage-map-unit__label,
.srm-storage-map-unit.has-custom-shape .srm-storage-map-unit__meta,
.srm-storage-map-unit.has-custom-shape .srm-storage-map-unit__resize {
  position: relative;
  z-index: 2;
  margin: 6px;
}

.srm-storage-map-unit.has-custom-shape .srm-storage-map-unit__resize {
  position: absolute;
  margin: 0;
}

.srm-map-shape-point {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #1d2327;
  border-radius: 50%;
  background: #fff;
  color: #1d2327;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  transform: translate(-50%, -50%);
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.srm-map-shape-point.is-selected {
  border-color: #2271b1;
  box-shadow: 0 0 0 3px rgba(34,113,177,0.25), 0 1px 4px rgba(0,0,0,0.25);
}

.srm-map-shape-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #f6f7f7;
}

.srm-map-shape-editor h4 {
  margin: 0;
}

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

.srm-map-shape-points-list,
.srm-map-shape-edges-list {
  display: grid;
  gap: 6px;
}

.srm-map-shape-point-row,
.srm-map-shape-edge-row {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) minmax(72px, 0.8fr) minmax(72px, 0.8fr);
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #fff;
}

.srm-map-shape-edge-row {
  grid-template-columns: minmax(82px, 1fr) minmax(80px, 0.9fr) minmax(78px, 0.8fr) minmax(88px, 0.9fr);
}

.srm-map-shape-point-row.is-active,
.srm-map-shape-edge-row.is-active {
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34,113,177,0.12);
}

.srm-map-shape-point-row label {
  display: grid;
  gap: 3px;
  font-size: 11px;
}

.srm-map-shape-point-row input,
.srm-map-shape-edge-row input,
.srm-map-shape-edge-row select {
  width: 100% !important;
  min-width: 0;
}

@media (max-width: 600px) {
  .srm-map-shape-point-row,
  .srm-map-shape-edge-row {
    grid-template-columns: 1fr;
  }
}


/* 1.0.18.158: move irregular-shape editor next to snapping controls and keep it horizontal. */
.srm-map-editor-tools {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.srm-map-editor-tools .srm-map-snap-settings {
  height: 100%;
  box-sizing: border-box;
}

.srm-map-shape-editor[hidden] {
  display: none !important;
}

.srm-map-editor-tools .srm-map-shape-editor {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr) minmax(300px, 1.15fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.srm-map-shape-editor__header {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.srm-map-shape-editor label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
}

.srm-map-shape-editor select,
.srm-map-shape-editor input:not([type="checkbox"]) {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.srm-map-shape-editor .description {
  margin: 0;
  line-height: 1.35;
}

.srm-map-shape-actions .button {
  min-height: 32px;
  line-height: 1.2;
  padding: 4px 10px;
}

.srm-map-shape-points,
.srm-map-shape-edges {
  min-width: 0;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.srm-map-shape-points-list,
.srm-map-shape-edges-list {
  min-width: 0;
}

.srm-map-shape-point-row,
.srm-map-shape-edge-row {
  min-width: 0;
}

.srm-map-editor-tools .srm-map-shape-edge-row {
  grid-template-columns: minmax(70px, 0.85fr) minmax(72px, 0.8fr) minmax(72px, 0.7fr) minmax(86px, 0.85fr);
  gap: 5px;
}

.srm-map-editor-tools .srm-map-shape-point-row {
  grid-template-columns: minmax(70px, 0.8fr) minmax(72px, 0.75fr) minmax(72px, 0.75fr);
  gap: 5px;
}

@media (max-width: 1280px) {
  .srm-map-editor-tools {
    grid-template-columns: 1fr;
  }

  .srm-map-editor-tools .srm-map-shape-editor {
    grid-template-columns: 1fr;
  }

  .srm-map-shape-points,
  .srm-map-shape-edges {
    max-height: none;
  }
}

/* 1.0.18.160: size group selector for XS/S/M/L/XL/XXL storage units. */
.srm-map-size-group-filter-wrap,
.srm-storage-map-controls__group {
  display: grid;
  gap: 4px;
  min-width: 150px;
  font-weight: 600;
}

.srm-map-size-group-filter-wrap select,
.srm-storage-map-controls__group select {
  width: 100%;
  min-height: 36px;
}

.srm-map-unit-list__group {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 113, 177, 0.10);
  color: #1d4ed8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.srm-storage-map-unit.is-filter-dimmed,
.srm-map-unit-list__item.is-filter-dimmed {
  opacity: 0.32;
}

.srm-storage-map-unit.is-available.is-selector-highlighted,
.srm-storage-map-unit.is-available.is-selected {
  background: var(--srm-plan-free-selected-bg) !important;
  border-color: var(--srm-plan-free-selected-border) !important;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.30) !important;
}

.srm-storage-map-unit.is-occupied.is-selector-highlighted,
.srm-storage-map-unit.is-occupied.is-selected {
  background: var(--srm-plan-rented-selected-bg) !important;
  border-color: var(--srm-plan-rented-selected-border) !important;
  box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.30) !important;
}

.srm-storage-map-unit.has-custom-shape.is-available.is-selector-highlighted .srm-storage-map-shape-fill,
.srm-storage-map-unit.has-custom-shape.is-available.is-selected .srm-storage-map-shape-fill {
  fill: var(--srm-plan-free-selected-bg);
  stroke: var(--srm-plan-free-selected-border);
}

.srm-storage-map-unit.has-custom-shape.is-occupied.is-selector-highlighted .srm-storage-map-shape-fill,
.srm-storage-map-unit.has-custom-shape.is-occupied.is-selected .srm-storage-map-shape-fill {
  fill: var(--srm-plan-rented-selected-bg);
  stroke: var(--srm-plan-rented-selected-border);
}

.srm-map-unit-list__item.is-selector-highlighted {
  border-width: 2px;
}

@media (max-width: 782px) {
  .srm-map-size-group-filter-wrap,
  .srm-storage-map-controls__group {
    width: 100%;
  }
}

/* 1.0.18.189: configurable storage-map BOX colors and fill transparency. */
.srm-map-color-settings {
  border: 1px solid #ccd0d4;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.srm-map-color-settings legend {
  font-weight: 700;
  padding: 0 4px;
}

.srm-map-color-settings__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.srm-map-color-settings label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.srm-map-color-settings input[type="color"] {
  width: 100%;
  min-height: 36px;
  padding: 2px;
}

.srm-map-color-settings__transparency {
  grid-column: span 2;
}

.srm-map-color-settings__transparency input[type="range"] {
  width: 100%;
}

.srm-storage-map-unit__label,
.srm-storage-map-unit__meta {
  position: relative;
  z-index: 2;
  color: #111827;
  text-shadow: 0 1px 2px rgba(255,255,255,0.95), 0 0 2px rgba(255,255,255,0.85);
}

.srm-storage-map-unit__resize {
  z-index: 3;
}

.srm-storage-map-unit.has-custom-shape .srm-storage-map-shape-svg {
  z-index: 0;
}

@media (max-width: 960px) {
  .srm-map-color-settings__grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .srm-map-color-settings__transparency {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .srm-map-color-settings__grid {
    grid-template-columns: 1fr;
  }
}

/* 1.0.18.234: repair access-control diagnostics layout and overpayment highlighting. */
.srm-text-success,
.srm-text-success td,
.srm-text-success a {
  color: #008a20 !important;
}
.srm-access-control-card,
.srm-client-access-control,
.srm-racs5-client-diagnostics,
.srm-racs5-byid-diagnostics,
.srm-racs5-getbyid-diagnostics {
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
}
.srm-racs5-diagnostics-scroll,
.srm-racs5-byid-diagnostics,
.srm-racs5-getbyid-diagnostics,
.srm-racs5-client-diagnostics {
  overflow-x: auto !important;
}
.srm-racs5-byid-diagnostics table,
.srm-racs5-getbyid-diagnostics table,
.srm-racs5-client-diagnostics table {
  min-width: 1200px;
  table-layout: fixed;
}
.srm-racs5-byid-diagnostics th,
.srm-racs5-byid-diagnostics td,
.srm-racs5-getbyid-diagnostics th,
.srm-racs5-getbyid-diagnostics td,
.srm-racs5-client-diagnostics th,
.srm-racs5-client-diagnostics td {
  vertical-align: top;
}
.srm-racs5-byid-diagnostics pre,
.srm-racs5-getbyid-diagnostics pre,
.srm-racs5-client-diagnostics pre,
.srm-racs5-diagnostic-response {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow: auto;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  padding: 8px;
  margin: 0;
}


/* 1.0.18.235: full-width readable System KD Get...ByID diagnostics in customer details. */
.srm-client-details-layout > .srm-client-racs5-card {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.srm-client-racs5-card .srm-racs5-customer-diagnostics-grid,
.srm-client-racs5-card .srm-racs5-getbyid-diagnostic,
.srm-client-racs5-card .srm-racs5-diagnostics-fullwidth {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.srm-client-racs5-card .srm-racs5-getbyid-diagnostic {
  overflow: hidden !important;
}
.srm-client-racs5-card .srm-racs5-diagnostic-table-scroll {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dcdcde;
  background: #fff;
}
.srm-client-racs5-card .srm-racs5-getbyid-results-table {
  min-width: 1480px !important;
  width: 1480px !important;
  table-layout: fixed !important;
  margin: 0 !important;
}
.srm-client-racs5-card .srm-racs5-getbyid-results-table th,
.srm-client-racs5-card .srm-racs5-getbyid-results-table td {
  vertical-align: top !important;
  white-space: normal !important;
  word-break: break-word !important;
}
.srm-client-racs5-card .srm-racs5-getbyid-results-table th:nth-child(1),
.srm-client-racs5-card .srm-racs5-getbyid-results-table td:nth-child(1) { width: 300px !important; }
.srm-client-racs5-card .srm-racs5-getbyid-results-table th:nth-child(2),
.srm-client-racs5-card .srm-racs5-getbyid-results-table td:nth-child(2) { width: 240px !important; }
.srm-client-racs5-card .srm-racs5-getbyid-results-table th:nth-child(3),
.srm-client-racs5-card .srm-racs5-getbyid-results-table td:nth-child(3) { width: 180px !important; }
.srm-client-racs5-card .srm-racs5-getbyid-results-table th:nth-child(4),
.srm-client-racs5-card .srm-racs5-getbyid-results-table td:nth-child(4) { width: 760px !important; }
.srm-client-racs5-card .srm-racs5-diagnostic-response,
.srm-client-racs5-card .srm-racs5-diagnostic-response-cell pre {
  max-width: 100% !important;
  max-height: 420px !important;
  overflow: auto !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  box-sizing: border-box !important;
}
.srm-client-racs5-card .srm-racs5-diagnostic-summary {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: auto !important;
}

/* 1.0.18.236: naprawa czytelności, kolorów i historii wpłat. */
.srm-text-warning,
.srm-text-warning td,
.srm-text-warning a,
.srm-text-warning span {
  color: #d18a00 !important;
}
.srm-text-danger,
.srm-text-danger td,
.srm-text-danger a,
.srm-text-danger span {
  color: #b42318 !important;
}
.srm-text-success,
.srm-text-success td,
.srm-text-success a,
.srm-text-success span {
  color: #008a20 !important;
}
.srm-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.srm-customer-payment-history-modal .srm-inline-modal__dialog {
  width: min(1500px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
}
.srm-customer-payment-history-modal table {
  min-width: 1100px;
}


/* 1.0.18.278: niezależna ramka BOX-ów w edytorze i publicznym planie. */
.srm-storage-map-unit--editor,
.srm-storage-map-unit--front {
  border-color: var(--srm-plan-box-border-color, #111827) !important;
  border-width: var(--srm-plan-box-border-width, 1px) !important;
  background-clip: padding-box;
}

.srm-storage-map-unit.has-custom-shape .srm-storage-map-shape-fill {
  stroke: var(--srm-plan-box-border-color, #111827) !important;
  stroke-width: var(--srm-plan-box-border-width, 1px) !important;
  paint-order: fill stroke markers;
}

/* 1.0.18.279: mocniejsze nadpisanie statusów, żeby kolor ramki nie był przykrywany przez kolory wolny/zajęty/zaznaczony. */
.srm-map-builder .srm-storage-map-stage .srm-storage-map-unit.srm-storage-map-unit--editor,
.srm-storage-map-frontend .srm-storage-map-stage .srm-storage-map-unit.srm-storage-map-unit--front {
  border-color: var(--srm-plan-box-border-color, #111827) !important;
  border-width: var(--srm-plan-box-border-width, 1px) !important;
}

.srm-map-builder .srm-storage-map-stage .srm-storage-map-unit.has-custom-shape .srm-storage-map-shape-fill,
.srm-storage-map-frontend .srm-storage-map-stage .srm-storage-map-unit.has-custom-shape .srm-storage-map-shape-fill {
  stroke: var(--srm-plan-box-border-color, #111827) !important;
  stroke-width: var(--srm-plan-box-border-width, 1px) !important;
  paint-order: fill stroke markers;
}

.srm-map-color-settings__border-width {
  grid-column: span 2;
}

.srm-map-color-settings__border-width input[type="range"] {
  width: 100%;
}

/* 1.0.18.310: podstawowy popup/aplikacyjny panel klienta Self Storage. */
.srm-customer-app-is-open {
  overflow: hidden;
}
.srm-customer-app-account > .srm-customer-app-open {
  margin-top: 12px;
}
.srm-customer-app-modal[hidden] {
  display: none !important;
}
.srm-customer-app-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.srm-customer-app-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}
.srm-customer-app-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  background: #f8fafc;
  color: #111827;
  border-radius: 24px;
  box-shadow: 0 24px 90px rgba(15, 23, 42, 0.32);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.srm-customer-app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: #111827;
  color: #fff;
}
.srm-customer-app-header h2 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.2;
}
.srm-customer-app-eyebrow {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.srm-customer-app-close {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  font-size: 30px;
  line-height: 38px;
  cursor: pointer;
}
.srm-customer-app-content {
  padding: 22px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.srm-customer-app-notice {
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #334155;
}
.srm-customer-app-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.srm-customer-app-stat,
.srm-customer-app-rental-card,
.srm-customer-app-section,
.srm-customer-app-link-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.srm-customer-app-stat {
  padding: 14px;
}
.srm-customer-app-stat span,
.srm-customer-app-access-grid span {
  display: block;
  color: #64748b;
  font-size: .86rem;
  margin-bottom: 6px;
}
.srm-customer-app-stat strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.25;
}
.srm-customer-app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.srm-customer-app-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}
.srm-customer-app-section {
  padding: 18px;
  margin-bottom: 16px;
}
.srm-customer-app-section h3,
.srm-customer-app-rental-card h4 {
  margin-top: 0;
}
.srm-customer-app-rental-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.srm-customer-app-rental-card {
  padding: 16px;
}
.srm-customer-app-rental-card dl {
  margin: 0;
}
.srm-customer-app-rental-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #eef2f7;
}
.srm-customer-app-rental-card dt {
  color: #64748b;
  font-weight: 500;
}
.srm-customer-app-rental-card dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.srm-customer-app-access-grid,
.srm-customer-app-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.srm-customer-app-access-grid > div {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.srm-customer-app-link-card {
  display: block;
  padding: 15px;
  color: #0f172a;
  text-decoration: none;
}
.srm-customer-app-link-card strong,
.srm-customer-app-link-card span {
  display: block;
}
.srm-customer-app-link-card span {
  color: #64748b;
  margin-top: 4px;
  font-size: .92rem;
}
@media (max-width: 782px) {
  .srm-customer-app-modal {
    padding: 0;
    align-items: stretch;
  }
  .srm-customer-app-shell {
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }
  .srm-customer-app-header {
    padding: 18px 16px;
  }
  .srm-customer-app-content {
    padding: 14px;
  }
  .srm-customer-app-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .srm-customer-app-nav {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px 0;
    background: #f8fafc;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .srm-customer-app-nav a {
    white-space: nowrap;
  }
}

/* 1.0.18.311: skoroszyt/zakładki dla panelu klienta i przyszłych menu 4. poziomu. */
.srm-tabbook {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.srm-tabbook-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.srm-tabbook-tab {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #e2e8f0;
  color: #0f172a;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.srm-tabbook-tab:hover,
.srm-tabbook-tab:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, .22);
  outline: none;
}
.srm-tabbook-tab.is-active,
.srm-tabbook-tab[aria-selected="true"] {
  background: #111827;
  border-color: #111827;
  color: #fff;
}
.srm-tabbook-panels {
  min-height: 0;
}
.srm-tabbook-panel[hidden] {
  display: none !important;
}
.srm-customer-app-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.srm-customer-app-tabbook {
  flex: 1 1 auto;
  min-height: 0;
}
.srm-customer-app-tab-panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.srm-customer-app-section.srm-tabbook-panel {
  margin-bottom: 0;
  max-height: min(430px, calc(100vh - 350px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.srm-customer-app-nav.srm-tabbook-tabs {
  flex-wrap: nowrap;
}
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab {
  flex: 0 0 auto;
}
@media (max-width: 782px) {
  .srm-customer-app-content {
    padding: 12px;
  }
  .srm-customer-app-notice {
    margin-bottom: 10px;
  }
  .srm-customer-app-stats {
    margin-bottom: 10px;
  }
  .srm-customer-app-nav.srm-tabbook-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px 0;
    margin-bottom: 10px;
    background: #f8fafc;
  }
  .srm-customer-app-section.srm-tabbook-panel {
    max-height: calc(100vh - 285px);
    padding: 14px;
  }
}

/* 1.0.18.312: panel klienta bez linków wyprowadzających z popupu; wszystko w zakładkach. */
.srm-customer-app-payment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.srm-customer-app-payment-summary > div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
}

.srm-customer-app-payment-summary span {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 4px;
}

.srm-customer-app-payment-summary strong {
  display: block;
  font-size: 16px;
}

.srm-customer-app-order-list {
  display: grid;
  gap: 12px;
}

.srm-customer-app-order-card h4 {
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .srm-customer-app-payment-summary {
    grid-template-columns: 1fr;
  }
}


/* 1.0.18.313: bardziej aplikacyjny, pomarańczowy panel klienta z bocznym skoroszytem na desktopie. */
.srm-customer-app-backdrop {
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(3px);
}
.srm-customer-app-shell {
  width: min(1180px, 100%);
  max-height: min(900px, calc(100vh - 48px));
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, .22);
  box-shadow: 0 28px 100px rgba(15, 23, 42, 0.34);
}
.srm-customer-app-header {
  align-items: center;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 48%, #ea580c 100%);
  padding: 20px 24px;
}
.srm-customer-app-header h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.srm-customer-app-eyebrow {
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
}
.srm-customer-app-close {
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
}
.srm-customer-app-close:hover,
.srm-customer-app-close:focus {
  background: rgba(255, 255, 255, .28);
  outline: none;
}
.srm-customer-app-content {
  gap: 16px;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, .22), transparent 34%),
    linear-gradient(180deg, #fff7ed 0%, #f8fafc 44%, #f8fafc 100%);
}
.srm-customer-app-notice {
  margin-bottom: 0;
  border: 1px solid rgba(249, 115, 22, .22);
  background: rgba(255, 255, 255, .84);
  color: #7c2d12;
  box-shadow: 0 10px 26px rgba(154, 52, 18, .08);
}
.srm-customer-app-stats {
  margin-bottom: 0;
}
.srm-customer-app-stat,
.srm-customer-app-rental-card,
.srm-customer-app-section,
.srm-customer-app-link-card {
  border-color: #fed7aa;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}
.srm-customer-app-stat {
  position: relative;
  overflow: hidden;
  padding: 16px;
  background: rgba(255, 255, 255, .92);
}
.srm-customer-app-stat::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #fb923c, #f97316);
}
.srm-customer-app-stat span,
.srm-customer-app-access-grid span,
.srm-customer-app-payment-summary span {
  color: #9a3412;
  font-weight: 700;
}
.srm-customer-app-stat strong {
  color: #111827;
  font-size: 1.35rem;
}
.srm-customer-app-tabbook {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}
.srm-customer-app-nav.srm-tabbook-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 14px;
  overflow: visible;
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(234, 88, 12, .24);
}
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-color: rgba(255, 255, 255, .24);
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  padding: 13px 14px;
  text-align: left;
  box-shadow: none;
}
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab:hover,
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab:focus {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab.is-active,
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab[aria-selected="true"] {
  border-color: #fff;
  background: #fff;
  color: #c2410c;
  box-shadow: 0 12px 26px rgba(154, 52, 18, .2);
}
.srm-customer-app-tab-panels {
  overflow: hidden;
}
.srm-customer-app-section.srm-tabbook-panel {
  max-height: min(520px, calc(100vh - 330px));
  padding: 22px;
  border-color: #fed7aa;
  background: rgba(255, 255, 255, .96);
}
.srm-customer-app-section h3 {
  color: #111827;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}
.srm-customer-app-rental-card {
  background: #fff;
  border-color: #ffedd5;
}
.srm-customer-app-rental-card h4 {
  color: #9a3412;
  font-weight: 800;
}
.srm-customer-app-rental-card dl > div {
  border-top-color: #ffedd5;
}
.srm-customer-app-rental-card dt {
  color: #7c2d12;
}
.srm-customer-app-rental-card dd {
  color: #111827;
}
.srm-customer-app-access-grid > div,
.srm-customer-app-payment-summary > div {
  background: #fff7ed;
  border-color: #fed7aa;
}
.srm-customer-app-order-list,
.srm-customer-app-rental-list {
  gap: 14px;
}
.srm-customer-app-account > .srm-customer-app-open {
  border-color: #ea580c;
  background: #f97316;
  color: #fff;
  box-shadow: 0 10px 24px rgba(249, 115, 22, .24);
}
.srm-customer-app-account > .srm-customer-app-open:hover,
.srm-customer-app-account > .srm-customer-app-open:focus {
  border-color: #c2410c;
  background: #ea580c;
  color: #fff;
}
@media (max-width: 782px) {
  .srm-customer-app-shell {
    width: 100vw;
    height: 100vh;
    border: 0;
  }
  .srm-customer-app-header {
    padding: 16px;
  }
  .srm-customer-app-content {
    gap: 12px;
    padding: 12px;
  }
  .srm-customer-app-tabbook {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .srm-customer-app-nav.srm-tabbook-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-direction: row;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    border-radius: 18px;
    background: #ffedd5;
    box-shadow: 0 10px 22px rgba(154, 52, 18, .12);
  }
  .srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab {
    width: auto;
    border-color: #fdba74;
    background: #fff;
    color: #9a3412;
    padding: 10px 13px;
  }
  .srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab.is-active,
  .srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab[aria-selected="true"] {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
  }
  .srm-customer-app-section.srm-tabbook-panel {
    max-height: calc(100vh - 310px);
    padding: 16px;
  }
}
@media (max-width: 480px) {
  .srm-customer-app-section.srm-tabbook-panel {
    max-height: calc(100vh - 330px);
  }
}


/* 1.0.18.330: logo aplikacji i podpis zmniejszone jeszcze o polowe, z mniejszym odstepem podpisu od logo. */
.srm-app-brand,
.srm-app-shell__topbar .srm-app-brand {
  width: min(11.2ch, 100%) !important;
  gap: 3px !important;
}
.srm-app-brand__logo {
  width: 100% !important;
  height: auto !important;
}
.srm-app-brand__subtitle {
  font-size: 0.35em !important;
  line-height: 1.18 !important;
}

/* 1.1.70.19.14: większe logo na desktopie z auto-hide menu */
@media (min-width: 1180px) {
  .srm-app-shell__topbar .srm-app-brand {
    width: min(22ch, 100%) !important;
    gap: 4px !important;
  }
  .srm-app-brand__subtitle {
    font-size: 0.55em !important;
  }
}
@media (max-width: 782px) {
  .srm-app-shell__topbar .srm-app-brand {
    width: min(105px, calc(100vw - 104px)) !important;
    max-width: calc(100vw - 104px) !important;
    gap: 3px !important;
  }
  .srm-app-brand__subtitle {
    font-size: clamp(6px, 1.785vw, 7.7px) !important;
    line-height: 1.08 !important;
  }
}

/* 1.0.18.334: atrakcyjny kafelek obłożenia magazynów na pulpicie. */
.srm-dashboard-occupancy-card {
  position: relative;
  isolation: isolate;
  overflow: hidden !important;
  grid-column: span 2;
  min-height: 520px;
  padding: 28px !important;
  border: 1px solid rgba(249, 115, 22, 0.20) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.13), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fffaf6 52%, #ffffff 100%);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.10), 0 2px 12px rgba(249, 115, 22, 0.10);
}

.srm-dashboard-occupancy-card__shine {
  position: absolute;
  inset: auto -110px -170px auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.13), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.srm-dashboard-occupancy-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}

.srm-dashboard-occupancy-head h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.srm-dashboard-occupancy-date {
  margin-top: 8px !important;
}

.srm-dashboard-occupancy-date::before {
  content: "📅";
  margin-right: 6px;
}

.srm-dashboard-occupancy-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 13px;
  background: #fff;
  color: #f97316;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.12);
}

.srm-dashboard-occupancy-main {
  display: grid;
  place-items: center;
  margin: 22px 0 26px;
}

.srm-dashboard-occupancy-ring {
  --srm-occupancy-progress: 0deg;
  width: min(320px, 72vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg, #fb923c 0deg, #f97316 var(--srm-occupancy-progress), rgba(241, 245, 249, 0.96) var(--srm-occupancy-progress), rgba(241, 245, 249, 0.96) 360deg);
  box-shadow: 0 22px 52px rgba(249, 115, 22, 0.23), inset 0 0 0 1px rgba(249, 115, 22, 0.16);
  position: relative;
}

.srm-dashboard-occupancy-ring::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.10);
}

.srm-dashboard-occupancy-ring::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 2px solid rgba(249, 115, 22, 0.14);
  border-top-color: rgba(249, 115, 22, 0.42);
  transform: rotate(28deg);
  pointer-events: none;
}

.srm-dashboard-occupancy-ring__core {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
  color: #1d2327;
}

.srm-dashboard-occupancy-ring__core strong {
  display: block;
  font-size: clamp(50px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.srm-dashboard-occupancy-ring__core span {
  font-size: 17px;
  font-weight: 700;
}

.srm-dashboard-occupancy-ring__core small {
  color: #646970;
  font-size: 14px;
}


/* 1.0.18.370: liczby w środku wykresu obłożenia rozdzielone na dwie linie, żeby nie nachodziły na obręcz. */
.srm-dashboard-occupancy-ring__counts {
  display: grid;
  gap: 2px;
  justify-items: center;
  max-width: min(210px, 62vw);
  line-height: 1.22;
  text-align: center;
}

.srm-dashboard-occupancy-ring__counts span {
  display: block;
  width: 100%;
  color: #646970;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.22;
  white-space: normal;
}

.srm-dashboard-occupancy-free h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.3;
}

.srm-dashboard-occupancy-size-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 12px;
}

.srm-dashboard-occupancy-size {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.srm-dashboard-occupancy-size span {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.srm-dashboard-occupancy-size strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f97316;
  font-size: 28px;
  line-height: 1;
}

.srm-dashboard-occupancy-size strong::before {
  content: "▱";
  font-size: 18px;
  color: #fb923c;
}

.srm-dashboard-occupancy-size--xs { background: linear-gradient(135deg, #fff7ed, #ffffff); }
.srm-dashboard-occupancy-size--s { background: linear-gradient(135deg, #fffbeb, #ffffff); }
.srm-dashboard-occupancy-size--m { background: linear-gradient(135deg, #ecfdf5, #ffffff); }
.srm-dashboard-occupancy-size--l { background: linear-gradient(135deg, #eff6ff, #ffffff); }
.srm-dashboard-occupancy-size--xl { background: linear-gradient(135deg, #f5f3ff, #ffffff); }
.srm-dashboard-occupancy-size--xxl { background: linear-gradient(135deg, #f8fafc, #ffffff); }

.srm-dashboard-occupancy-summary {
  margin-top: 14px !important;
  text-align: center;
}

@media (max-width: 1160px) {
  .srm-dashboard-occupancy-size-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 960px) {
  .srm-dashboard-occupancy-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .srm-dashboard-occupancy-card {
    min-height: 0;
    padding: 18px !important;
  }
  .srm-dashboard-occupancy-head {
    align-items: stretch;
  }
  .srm-dashboard-occupancy-icon {
    display: none;
  }
  .srm-dashboard-occupancy-ring {
    width: min(250px, 78vw);
  }
  .srm-dashboard-occupancy-size-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 1.0.18.335: poprawa proporcji procentów i drugi etap nowoczesnego wyglądu aplikacji. */
.srm-dashboard-occupancy-ring__percent {
  display: inline-flex !important;
  align-items: flex-start;
  justify-content: center;
  gap: 0.02em;
  font-size: clamp(54px, 7vw, 88px) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.06em !important;
  white-space: nowrap;
}

.srm-dashboard-occupancy-ring__percent .srm-dashboard-occupancy-percent-number {
  display: inline-block !important;
  font: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

.srm-dashboard-occupancy-ring__percent .srm-dashboard-occupancy-percent-symbol {
  display: inline-block !important;
  margin-top: 0.09em;
  font-size: 0.58em !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
}

.srm-dashboard-modern {
  position: relative;
}

.srm-dashboard-modern-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: 18px;
  align-items: stretch;
  margin: 0 0 18px;
  padding: 24px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(249, 115, 22, 0.17), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #fff7ed 54%, #ffffff 100%);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08), 0 2px 14px rgba(249, 115, 22, 0.08);
}

.srm-dashboard-modern-hero::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -66px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: repeating-radial-gradient(circle, rgba(249, 115, 22, 0.10) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.srm-dashboard-modern-hero__copy,
.srm-dashboard-modern-hero__meta {
  position: relative;
  z-index: 1;
}

.srm-dashboard-modern-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #f97316;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.srm-dashboard-modern-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #f97316;
  box-shadow: 12px 0 0 rgba(249, 115, 22, 0.38), 0 12px 0 rgba(249, 115, 22, 0.38), 12px 12px 0 rgba(249, 115, 22, 0.18);
}

.srm-dashboard-modern-hero h2 {
  margin: 0;
  max-width: 780px;
  color: #111827;
  font-size: clamp(26px, 3.1vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.srm-dashboard-modern-hero p {
  max-width: 660px;
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.55;
}

.srm-dashboard-modern-hero__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width: 230px;
}

.srm-dashboard-modern-hero__meta > div {
  padding: 14px 16px;
  border: 1px solid rgba(249, 115, 22, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(8px);
}

.srm-dashboard-modern-hero__meta span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.srm-dashboard-modern-hero__meta strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
}

.srm-dashboard-modern .srm-dashboard-cards {
  max-width: 1320px;
  gap: 18px;
}

.srm-dashboard-modern .srm-dashboard-cards > .card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.srm-dashboard-modern .srm-dashboard-action-card {
  position: relative;
  min-height: 160px;
  padding: 22px !important;
  border-left: 0 !important;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.srm-dashboard-modern .srm-dashboard-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.10);
  border-color: rgba(249, 115, 22, 0.28);
}

.srm-dashboard-modern .srm-dashboard-action-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -46px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.14), transparent 67%);
  pointer-events: none;
}

.srm-dashboard-modern .srm-dashboard-action-count {
  color: #f97316;
  font-size: clamp(38px, 7vw, 64px);
  letter-spacing: -0.06em;
}

.srm-dashboard-modern .srm-dashboard-finance-card {
  border-left: 0 !important;
  padding: 24px !important;
}

.srm-dashboard-modern .srm-dashboard-finance-card h2,
.srm-dashboard-modern .srm-dashboard-identity-verifier h2 {
  color: #111827;
  letter-spacing: -0.03em;
}

.srm-dashboard-modern .srm-dashboard-finance-grid {
  gap: 14px;
}

.srm-dashboard-modern .srm-dashboard-finance-metric {
  border-color: rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.srm-dashboard-modern .srm-dashboard-finance-value {
  color: #111827;
  font-size: clamp(14px, 2vw, 20px) !important;
  letter-spacing: -0.03em;
}

.srm-dashboard-modern .srm-dashboard-identity-verifier {
  padding: 24px !important;
  border-left: 4px solid #16a34a !important;
}

.srm-dashboard-modern-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

@media (min-width: 1180px) {
  /* ── 1.1.70.19.12: auto-chowane menu boczne na desktopie ────────────────
     Shell nie ma już kolumny menu w gridzie — treść zajmuje całą szerokość.
     Menu jest fixowane, lewa krawędź, zwinięte do paska (56px),
     rozwijane hoverm lub najechaniem kursorem na strefę 0-8px od lewej krawędzi.
  ──────────────────────────────────────────────────────────────────────── */
  .srm-app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "topbar"
      "secondary"
      "content";
    gap: 18px;
    padding: 16px 16px 16px calc(56px + 16px) !important;
    margin-left: 0 !important;
    border: 0 !important;
    border-radius: 24px !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.11), transparent 28%),
      linear-gradient(135deg, #ffffff 0%, #fff7ed 42%, #f8fafc 100%) !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.11);
  }

  .srm-app-shell:not(:has(> .srm-app-tabs--secondary)) {
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "topbar"
      "content";
  }
  /* Nadpisanie inline max-width na desktopie — treść zajmuje pełną dostępną szerokość */
  .srm-app-shell [style*="max-width:1100px"],
  .srm-app-shell [style*="max-width: 1100px"],
  .srm-app-shell [style*="max-width:1200px"],
  .srm-app-shell [style*="max-width: 1200px"],
  .srm-app-shell [style*="max-width:1400px"],
  .srm-app-shell [style*="max-width: 1400px"],
  .srm-settings-embedded-page [style*="max-width:1100px"],
  .srm-settings-embedded-page [style*="max-width: 1100px"],
  .srm-settings-embedded-page [style*="max-width:1200px"],
  .srm-settings-embedded-page [style*="max-width: 1200px"] {
    max-width: 100% !important;
  }

  /* Form-table i settings-card — pełna szerokość na desktopie */
  .srm-app-shell .form-table,
  .srm-app-shell .srm-settings-card,
  .srm-app-shell .srm-box,
  .srm-app-shell .srm-gateway-box,
  .srm-app-shell .srm-appearance-wrap {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Topbar — pełna szerokość bez wewnętrznego ograniczenia */
  .srm-app-shell__topbar {
    box-sizing: border-box;
    width: 100%;
  }

  .srm-app-shell__topbar {
    grid-area: topbar;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 52px;
    align-items: center;
    gap: 14px;
    margin: 0 !important;
    padding: 12px 14px;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
    transition: margin-left 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .srm-app-shell__topbar .srm-app-brand {
    justify-self: start;
  }

  .srm-app-tabs--primary {
    /* Desktop auto-hide menu — mechanika identyczna z mobilną.
       top:0 + bottom:0 sprawia że WP admin bar automatycznie
       przesuwa element (przez html.wp-toolbar margin-top na body).
       overflow-y:auto + -webkit-overflow-scrolling pozwala scrollować
       gdy podmenu przekracza wysokość ekranu. */
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    height: auto;
    width: 56px;
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap !important; /* 84.4.53: bez tego wysokie rozwinięte „Ustawienia" zawijały się do 2. kolumny i wychodziły obok „Pulpit" (widać było tylko pomarańczowy fragment). nowrap → menu przewija się w pionie jak na telefonie. */
    gap: 4px;
    margin: 0 !important;
    padding: 16px 8px 24px !important;
    border: 0 !important;
    border-right: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 4px 0 28px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(12px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: width 0.26s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.26s ease,
                padding 0.22s ease;
    scrollbar-width: none;
  }

  /* Scrollbar ukryty gdy menu zwinięte */
  .srm-app-tabs--primary:not(.is-desktop-open)::-webkit-scrollbar {
    display: none;
  }

  /* Strefa hotspot przy lewej krawędzi — niewidoczna, wyzwala hover */
  .srm-app-tabs--primary::before {
    content: '';
    position: fixed;
    top: 0;
    left: 56px;
    width: 12px;
    height: 100vh;
    z-index: 10000;
    pointer-events: all;
    cursor: default;
  }

  /* Rozwinięcie tylko przez klasę is-desktop-open (JS mouseenter/leave) */
  .srm-app-tabs--primary.is-desktop-open {
    width: 242px;
    padding: 16px 12px 24px !important;
    box-shadow: 6px 0 40px rgba(15, 23, 42, 0.14);
    scrollbar-width: thin !important;
    scrollbar-color: rgba(249, 115, 22, 0.3) transparent !important;
  }

  .srm-app-tabs--primary.is-desktop-open::-webkit-scrollbar {
    display: block !important;
    width: 4px;
  }

  .srm-app-tabs--primary.is-desktop-open::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.3);
    border-radius: 4px;
  }

  /* Wskaźnik zwiniętego menu — usunięty w 19.15 (powodował wyciek koloru poza menu) */

  .srm-app-tabs--primary .srm-app-tab {
    justify-content: flex-start;
    min-height: 46px;
    padding: 12px 14px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #374151;
    font-weight: 800;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
  }

  .srm-app-tabs--primary .srm-app-tab:hover {
    transform: translateX(2px);
    background: #fff7ed;
    color: #f97316;
  }

  .srm-app-tabs--primary .srm-app-tab.is-active {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    color: #f97316;
    box-shadow: inset 4px 0 0 #f97316, 0 10px 24px rgba(249, 115, 22, 0.10);
  }

  .srm-app-tabs--secondary {
    grid-area: secondary;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(15, 23, 42, 0.07) !important;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  }

  .srm-app-tabs--secondary .srm-app-tab {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #4b5563;
  }

  .srm-app-tabs--secondary .srm-app-tab.is-active {
    background: #f97316;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.20);
  }

  .srm-app-shell__content {
    grid-area: content;
    min-width: 0;
  }
}

@media (max-width: 960px) {
  .srm-dashboard-modern-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .srm-dashboard-modern-hero__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .srm-dashboard-modern-hero {
    padding: 18px;
    border-radius: 18px;
  }
  .srm-dashboard-modern-hero__meta {
    grid-template-columns: 1fr;
  }
  .srm-dashboard-modern .srm-dashboard-cards {
    gap: 12px;
  }
  .srm-dashboard-occupancy-ring__percent {
    font-size: clamp(46px, 16vw, 62px) !important;
  }
}

/* 1.0.18.336: mobile app shell — chowane menu boczne i kolejny etap wyglądu mobile.
   1.0.18.337: na desktopie przycisk hamburgera jest wymuszony jako ukryty;
   WordPressowe style .button potrafiły go nadpisywać i pokazywać jako nieaktywny pasek.
   1.0.18.338: na mobile przycisk hamburgera jest kompaktowy, bez widocznego napisu Menu i ustawiony przy lewej krawędzi.
   1.0.18.339: przywrócono widoczne/tapowalne tło zamykające menu poza panelem. */
.srm-mobile-menu-toggle,
.srm-mobile-menu-backdrop,
body.wp-admin .srm-app-shell .srm-app-shell__topbar .srm-mobile-menu-toggle.button {
  display: none !important;
}

@media (max-width: 1179px) {
  body.srm-mobile-menu-is-open {
    overflow: hidden;
    touch-action: none;
  }

  .srm-app-shell {
    position: relative;
    margin: 0 !important;
    min-height: 100vh;
    padding: 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.13), transparent 34%),
      linear-gradient(135deg, #ffffff 0%, #fff7ed 46%, #f8fafc 100%) !important;
  }

  .srm-app-shell__topbar {
    position: sticky;
    top: 0;
    z-index: 99990;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 10px;
    margin: 0 0 14px !important;
    padding: 10px 10px 10px 4px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
  }

  .srm-app-shell__topbar .srm-app-brand {
    width: min(185px, 100%);
    min-width: 0;
    justify-self: start;
  }

  .srm-app-shell__topbar .srm-app-brand__subtitle {
    font-size: 0.78em;
    line-height: 1.15;
  }

  .srm-mobile-menu-toggle,
  body.wp-admin .srm-app-shell .srm-app-shell__topbar .srm-mobile-menu-toggle.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px;
    padding: 0 !important;
    margin-left: 2px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%) !important;
    color: #ffffff !important;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
  }

  .srm-mobile-menu-toggle .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
  }

  .srm-mobile-menu-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  }

  .srm-exit-fullscreen--app {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-height: 40px;
    padding: 8px 12px !important;
    border-radius: 14px !important;
    white-space: nowrap;
  }

  .srm-mobile-menu-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 100000;
    width: 100vw;
    height: 100vh;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
  }

  body.srm-mobile-menu-is-open .srm-mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .srm-app-tabs--primary {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100001;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: min(86vw, 328px);
    max-width: 100vw;
    height: 100vh;
    margin: 0 !important;
    padding: 90px 16px 22px !important;
    border: 0 !important;
    border-radius: 0 26px 26px 0;
    background:
      radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.17), transparent 36%),
      linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: 28px 0 60px rgba(15, 23, 42, 0.22);
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.24s ease, visibility 0.24s ease;
  }

  .srm-app-tabs--primary::before {
    content: "Menu";
    position: absolute;
    top: 24px;
    left: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    min-height: 42px;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.03em;
  }

  .srm-app-tabs--primary::after {
    content: "";
    position: absolute;
    top: 68px;
    left: 18px;
    right: 18px;
    height: 1px;
    background: rgba(15, 23, 42, 0.08);
  }

  body.srm-mobile-menu-is-open .srm-app-tabs--primary,
  .srm-app-shell.is-mobile-menu-open .srm-app-tabs--primary {
    transform: translateX(0);
    visibility: visible;
  }

  .srm-app-tabs--primary .srm-app-tab {
    justify-content: flex-start;
    min-height: 46px;
    width: 100%;
    padding: 12px 14px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: #374151 !important;
    font-weight: 850;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  }

  .srm-app-tabs--primary .srm-app-tab.is-active {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.24);
  }

  .srm-app-tabs--secondary {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 0 14px !important;
    padding: 9px !important;
    border: 1px solid rgba(15, 23, 42, 0.07) !important;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .srm-app-tabs--secondary .srm-app-tab {
    flex: 0 0 auto;
    min-height: 38px;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    color: #4b5563 !important;
    white-space: nowrap;
  }

  .srm-app-tabs--secondary .srm-app-tab.is-active {
    background: #f97316 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.20);
  }

  .srm-app-shell__content {
    position: relative;
    z-index: 1;
    padding: 0;
    overflow-x: hidden;
  }

  .srm-dashboard-modern-hero,
  .srm-dashboard-modern .srm-dashboard-cards > .card,
  .srm-dashboard-occupancy-card,
  .srm-dashboard-modern-actions {
    border-radius: 18px !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08) !important;
  }
}

@media (max-width: 600px) {
  .srm-app-shell {
    padding: 10px !important;
  }

  .srm-app-shell__topbar {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center !important;
    gap: 8px;
    padding: 9px 9px 9px 4px;
    border-radius: 16px;
  }

  .srm-app-shell__topbar .srm-app-brand {
    width: min(160px, 100%);
  }

  .srm-mobile-menu-toggle {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    margin-left: 0 !important;
  }

  .srm-exit-fullscreen--app {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100% !important;
  }

  .srm-app-tabs--primary {
    width: min(90vw, 310px);
    padding-top: 84px !important;
  }

  .srm-dashboard-modern-hero,
  .srm-dashboard-occupancy-card,
  .srm-dashboard-modern .srm-dashboard-cards > .card {
    border-radius: 16px !important;
  }
}


/* 1.0.18.340: w mobile/tablet ukrywamy informacyjne okienka podpowiedzi modułu wpłat półautomatycznych, żeby nie zasłaniały ekranu.
   Komunikaty wyników akcji/testów pozostają widoczne. */
@media (max-width: 782px) {
  .srm-bank-notice:not(.is-dismissible),
  .srm-bank-notices .srm-bank-notice:not(.is-dismissible) {
    display: none !important;
  }
}

/* 1.0.18.341: przycisk wyjścia przeniesiony z górnego paska aplikacji na dół głównego menu.
   Ikona wyjścia w górnym pasku pozostaje tylko w oknach popup/szczegółach. */
.srm-app-tabs--primary .srm-app-tab--exit {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: auto;
}

.srm-app-tabs--primary .srm-app-tab--exit__icon {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (min-width: 1180px) {
  .srm-app-shell__topbar {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .srm-app-tabs--primary {
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
  }
}

@media (max-width: 1179px) {
  .srm-app-shell__topbar {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }
}

/* 1.0.18.342: poprawki mobile UI po testach operatora.
   - ukrycie wszystkich statycznych podpowiedzi modułu wpłat półautomatycznych na mobile/tablet,
   - przycisk Wyjście jako ostatnia pozycja menu także w menu mobilnym,
   - hamburger w górnym pasku mobile po prawej stronie. */
@media (max-width: 1179px) {
  body.wp-admin .srm-app-shell .srm-bank-notices .notice.srm-bank-notice:not(.is-dismissible),
  body.wp-admin .srm-app-shell .srm-bank-notice:not(.is-dismissible),
  .srm-app-shell .srm-bank-notices .notice.srm-bank-notice:not(.is-dismissible),
  .srm-app-shell .srm-bank-notices > .notice:not(.is-dismissible),
  .srm-app-shell .srm-bank-notice:not(.is-dismissible),
  .srm-bank-notices .notice.srm-bank-notice:not(.is-dismissible),
  .srm-bank-notices > .notice:not(.is-dismissible),
  .srm-bank-notice:not(.is-dismissible) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .srm-app-shell__topbar,
  body.wp-admin .srm-app-shell .srm-app-shell__topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding-left: 10px !important;
    padding-right: 8px !important;
  }

  .srm-app-shell__topbar .srm-app-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }

  .srm-mobile-menu-toggle,
  body.wp-admin .srm-app-shell .srm-app-shell__topbar .srm-mobile-menu-toggle.button {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    margin-left: 8px !important;
    margin-right: 2px !important;
  }

  .srm-app-tabs--primary {
    padding-bottom: calc(22px + env(safe-area-inset-bottom)) !important;
  }

  .srm-app-tabs--primary .srm-app-tab--exit,
  body.wp-admin .srm-app-shell .srm-app-tabs--primary .srm-app-tab--exit {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    order: 999 !important;
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.88) !important;
    color: #374151 !important;
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.06), 0 8px 20px rgba(15, 23, 42, 0.04) !important;
    backdrop-filter: blur(8px);
  }

  .srm-app-tabs--primary .srm-app-tab--exit span,
  .srm-app-tabs--primary .srm-app-tab--exit__icon {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 600px) {
  .srm-app-shell__topbar,
  body.wp-admin .srm-app-shell .srm-app-shell__topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding-left: 9px !important;
    padding-right: 7px !important;
  }
}

/* 1.0.18.343: pionowe, animowane menu drzewiaste 2. i 3. poziomu w głównym panelu aplikacji. */
.srm-app-tabs--primary.srm-app-tabs--tree {
  gap: 7px !important;
}

.srm-app-tabs--tree .srm-app-menu-node {
  display: block;
  width: 100%;
}

.srm-app-tabs--tree .srm-app-tab {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none !important;
}

.srm-app-tabs--tree .srm-app-tab__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srm-app-tabs--tree .srm-app-tab__chevron {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
  opacity: 0.58;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.srm-app-tabs--tree .srm-app-menu-node.is-open > .srm-app-tab > .srm-app-tab__chevron,
.srm-app-tabs--tree .srm-app-tab.is-active > .srm-app-tab__chevron {
  transform: rotate(90deg);
  opacity: 0.95;
}

.srm-app-tabs--tree .srm-app-menu-branch {
  display: grid;
  grid-template-rows: 0fr;
  margin: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: grid-template-rows 0.26s ease, opacity 0.20s ease, transform 0.24s ease, margin 0.24s ease;
}

.srm-app-tabs--tree .srm-app-menu-node.is-open > .srm-app-menu-branch {
  grid-template-rows: 1fr;
  margin-top: 6px;
  margin-bottom: 4px;
  opacity: 1;
  transform: translateY(0);
}

.srm-app-tabs--tree .srm-app-menu-branch > .srm-app-menu-node {
  min-height: 0;
  overflow: hidden;
}

.srm-app-tabs--tree .srm-app-menu-branch--level-2 {
  padding-left: 16px;
}

.srm-app-tabs--tree .srm-app-menu-branch--level-3 {
  padding-left: 18px;
}

.srm-app-tabs--tree .srm-app-tab--tree {
  min-height: 38px !important;
  padding: 9px 12px !important;
  border-radius: 14px !important;
  font-size: 13px;
  font-weight: 780 !important;
  background: rgba(248, 250, 252, 0.72) !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

.srm-app-tabs--tree .srm-app-tab--level-3 {
  min-height: 34px !important;
  padding: 8px 11px !important;
  border-radius: 12px !important;
  font-size: 12.5px;
  font-weight: 740 !important;
  background: rgba(255, 247, 237, 0.66) !important;
}

.srm-app-tabs--tree .srm-app-tab--tree:hover {
  background: #fff7ed !important;
  color: #ea580c !important;
  transform: translateX(2px);
}

.srm-app-tabs--tree .srm-app-tab--tree.is-active {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%) !important;
  color: #f97316 !important;
  box-shadow: inset 3px 0 0 #f97316, 0 8px 18px rgba(249, 115, 22, 0.10) !important;
}

.srm-app-tabs--tree .srm-app-menu-node--primary > .srm-app-tab--primary.has-children.is-active {
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

/* Stare poziome menu 3. poziomu nie jest już potrzebne, bo poziom 3 pokazujemy w drzewie menu. */
.srm-app-shell__content > .srm-app-tabs--tertiary {
  display: none !important;
}

/* 1.0.18.344: ukryj wszystkie stare poziome zakładki trzeciego poziomu w treści ustawień, także gdy są zagnieżdżone w .wrap/modułach. */
.srm-app-shell__content .srm-app-tabs--tertiary,
.srm-app-shell__content .srm-maintenance-tabs,
.srm-app-shell__content .srm-admin-settings-tabs,
.srm-app-shell__content .srm-self-storage-project-tabs,
.srm-app-shell__content .srm-location-tabs {
  display: none !important;
}

@media (min-width: 1180px) {
  .srm-app-tabs--primary.srm-app-tabs--tree {
    /* max-height usunięty — menu fixed height:100vh */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
  }
}

@media (max-width: 1179px) {
  .srm-app-tabs--tree .srm-app-menu-branch--level-2 {
    padding-left: 14px;
  }

  .srm-app-tabs--tree .srm-app-menu-branch--level-3 {
    padding-left: 18px;
  }

  .srm-app-tabs--tree .srm-app-tab--tree {
    min-height: 42px !important;
    font-size: 13.5px;
  }

  .srm-app-tabs--tree .srm-app-tab--level-3 {
    min-height: 38px !important;
    font-size: 13px;
  }
}

/* 1.0.18.345: poprawki menu akordeonowego po testach mobile/desktop.
   - aktywna gałąź ustawień mieści się w przewijalnym panelu,
   - poziom 2 i 3 mają spójną szatę graficzną z wyższym poziomem,
   - stare poziome listy podmenu pozostają ukryte. */
.srm-app-tabs--tree {
  box-sizing: border-box;
}

.srm-app-tabs--tree .srm-app-menu-branch {
  width: 100%;
  box-sizing: border-box;
}

.srm-app-tabs--tree .srm-app-menu-branch--level-2,
.srm-app-tabs--tree .srm-app-menu-branch--level-3,
.srm-app-tabs--tree .srm-app-menu-branch[data-srm-menu-branch-level="2"],
.srm-app-tabs--tree .srm-app-menu-branch[data-srm-menu-branch-level="3"] {
  padding-left: 14px !important;
}

.srm-app-tabs--tree .srm-app-menu-branch--level-3,
.srm-app-tabs--tree .srm-app-menu-branch[data-srm-menu-branch-level="3"] {
  padding-left: 18px !important;
}

.srm-app-tabs--tree .srm-app-tab--tree,
.srm-app-tabs--tree .srm-app-tab--level-2,
.srm-app-tabs--tree .srm-app-tab--level-3 {
  min-height: 44px !important;
  padding: 11px 14px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  color: #374151 !important;
  font-size: 13.5px !important;
  font-weight: 850 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045) !important;
}

.srm-app-tabs--tree .srm-app-tab--level-3 {
  min-height: 40px !important;
  border-radius: 15px !important;
  font-size: 13px !important;
  background: rgba(255, 255, 255, 0.66) !important;
}

.srm-app-tabs--tree .srm-app-tab--tree:hover,
.srm-app-tabs--tree .srm-app-tab--level-2:hover,
.srm-app-tabs--tree .srm-app-tab--level-3:hover {
  background: #fff7ed !important;
  color: #ea580c !important;
  transform: translateX(2px);
}

.srm-app-tabs--tree .srm-app-tab--tree.is-active,
.srm-app-tabs--tree .srm-app-tab--level-2.is-active,
.srm-app-tabs--tree .srm-app-tab--level-3.is-active {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%) !important;
  color: #f97316 !important;
  box-shadow: inset 4px 0 0 #f97316, 0 10px 22px rgba(249, 115, 22, 0.12) !important;
}

@media (min-width: 1180px) {
  .srm-app-tabs--primary.srm-app-tabs--tree {
    /* max-height usunięty — menu fixed height:100vh, nie potrzebuje ograniczenia */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
  }

  .srm-app-tabs--tree .srm-app-menu-node.is-open > .srm-app-menu-branch {
    padding-bottom: 4px;
  }
}

@media (max-width: 1179px) {
  .srm-app-tabs--primary.srm-app-tabs--tree {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .srm-app-tabs--tree .srm-app-tab--tree,
  .srm-app-tabs--tree .srm-app-tab--level-2,
  .srm-app-tabs--tree .srm-app-tab--level-3 {
    min-height: 46px !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  .srm-app-tabs--tree .srm-app-tab--level-3 {
    min-height: 43px !important;
    font-size: 14.5px !important;
  }
}


/* 1.0.18.346: stabilizacja akordeonowego menu 2/3 poziomu.
   Rodzice nie uruchamiają pierwszej funkcji, zamknięte gałęzie naprawdę chowają całą zawartość,
   a przewijanie panelu na iOS/mobile działa wewnątrz menu. */
.srm-app-tabs--tree .srm-app-menu-branch {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  opacity: 0 !important;
  transform: translateY(-4px) !important;
  transition: max-height 0.28s ease, opacity 0.20s ease, transform 0.24s ease, margin 0.24s ease !important;
}

.srm-app-tabs--tree .srm-app-menu-node.is-open > .srm-app-menu-branch {
  max-height: 1800px !important;
  margin-top: 7px !important;
  margin-bottom: 5px !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  overflow: visible !important;
}

.srm-app-tabs--tree .srm-app-menu-node:not(.is-open) > .srm-app-menu-branch,
.srm-app-tabs--tree .srm-app-menu-node:not(.is-open) > .srm-app-menu-branch * {
  pointer-events: none !important;
}

.srm-app-tabs--tree .srm-app-menu-node.is-open > .srm-app-tab > .srm-app-tab__chevron {
  transform: rotate(90deg) !important;
  opacity: 0.95 !important;
}

.srm-app-tabs--tree .srm-app-menu-node:not(.is-open) > .srm-app-tab > .srm-app-tab__chevron {
  transform: rotate(0deg) !important;
}

.srm-app-tabs--tree .srm-app-menu-branch--level-2,
.srm-app-tabs--tree .srm-app-menu-branch[data-srm-menu-branch-level="2"] {
  padding-left: 14px !important;
}

.srm-app-tabs--tree .srm-app-menu-branch--level-3,
.srm-app-tabs--tree .srm-app-menu-branch[data-srm-menu-branch-level="3"] {
  padding-left: 28px !important;
}

.srm-app-tabs--tree .srm-app-tab--level-2,
.srm-app-tabs--tree .srm-app-tab--level-3 {
  min-height: 44px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  color: #374151 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045) !important;
}

.srm-app-tabs--tree .srm-app-tab--level-3 {
  background: rgba(255, 255, 255, 0.68) !important;
}

@media (max-width: 1179px) {
  body.srm-mobile-menu-is-open {
    overflow: hidden !important;
  }

  .srm-app-tabs--primary.srm-app-tabs--tree {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    align-content: flex-start !important;
    justify-content: flex-start !important;
  }

  .srm-app-tabs--tree .srm-app-menu-node {
    flex: 0 0 auto !important;
  }
}

@media (max-width: 1179px) {
  body.srm-mobile-menu-is-open {
    touch-action: auto !important;
  }
}

/* 1.0.18.347: pierwszy etap panelu klienta w stylu aplikacji/operatora. */
.srm-customer-app-account {
  max-width: 100%;
}
.srm-customer-app-account > h2,
.srm-customer-app-account > p {
  max-width: 760px;
}
.srm-customer-app-modal {
  padding: 22px;
}
.srm-customer-app-shell {
  width: min(1220px, 100%);
  max-height: min(920px, calc(100vh - 44px));
  border-radius: 26px;
  background: #f8fafc;
}
.srm-customer-app-header {
  min-height: 76px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.28), transparent 28%),
    linear-gradient(135deg, #fb923c 0%, #f97316 52%, #c2410c 100%);
}
.srm-customer-app-content {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  grid-template-areas:
    "notice notice"
    "stats stats"
    "tabs tabs";
  gap: 16px;
  overflow: auto;
  min-height: 0;
}
.srm-customer-app-notice {
  grid-area: notice;
  border-radius: 18px;
}
.srm-customer-app-stats {
  grid-area: stats;
}
.srm-customer-app-tabbook {
  grid-area: tabs;
  display: grid !important;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) !important;
  gap: 16px;
  min-height: min(560px, calc(100vh - 315px));
}
.srm-customer-app-nav.srm-tabbook-tabs {
  align-self: stretch;
  max-height: min(560px, calc(100vh - 315px));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 22px;
  padding: 12px;
}
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab {
  position: relative;
  min-height: 46px;
  padding: 12px 14px 12px 42px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.2;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab::before {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  text-align: center;
  font-size: 16px;
  line-height: 1;
  opacity: .95;
}
#srm-customer-app-tab-rentals::before { content: '▦'; }
#srm-customer-app-tab-payments::before { content: 'zł'; font-size: 13px; font-weight: 900; }
#srm-customer-app-tab-access::before { content: '⌁'; font-size: 18px; }
#srm-customer-app-tab-orders::before { content: '#'; font-weight: 900; }
#srm-customer-app-tab-documents::before { content: '□'; }
#srm-customer-app-tab-profile::before { content: '●'; font-size: 12px; }
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab:hover,
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab:focus {
  transform: translateX(2px);
}
.srm-customer-app-tab-panels {
  min-width: 0;
  overflow: hidden;
}
.srm-customer-app-section.srm-tabbook-panel {
  max-height: min(560px, calc(100vh - 315px));
  min-height: min(560px, calc(100vh - 315px));
  overflow: auto;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(249,115,22,.10), transparent 30%),
    rgba(255,255,255,.97);
}
.srm-customer-app-section h3 {
  margin-bottom: 16px;
}
.srm-customer-app-rental-card p,
.srm-customer-app-section .description {
  color: #475569;
  line-height: 1.5;
}
.srm-customer-app-rental-card {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.srm-customer-app-rental-card:hover {
  transform: translateY(-1px);
  border-color: #fdba74;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
}
@media (max-width: 782px) {
  .srm-customer-app-modal {
    padding: 0;
  }
  .srm-customer-app-shell {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  .srm-customer-app-header {
    flex: 0 0 auto;
    min-height: 64px;
  }
  .srm-customer-app-content {
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 12px;
  }
  .srm-customer-app-notice {
    display: none;
  }
  .srm-customer-app-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .srm-customer-app-stat {
    padding: 13px;
  }
  .srm-customer-app-tabbook {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
  }
  .srm-customer-app-nav.srm-tabbook-tabs {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  }
  .srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab {
    justify-content: center;
    min-height: 48px;
    padding: 8px 7px 7px;
    text-align: center;
    font-size: 12px;
    white-space: normal;
  }
  .srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab::before {
    position: static;
    display: block;
    transform: none;
    width: auto;
    margin: 0 auto 3px;
  }
  .srm-customer-app-section.srm-tabbook-panel {
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding: 15px;
  }
  .srm-customer-app-rental-list,
  .srm-customer-app-access-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .srm-customer-app-nav.srm-tabbook-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .srm-customer-app-header h2 {
    font-size: 1.18rem;
  }
}


/* 1.0.18.348: panel klienta zbliżony wyglądem do nowego panelu operatora, większy workspace. */
.srm-customer-app-modal {
  padding: clamp(10px, 2.2vh, 22px) clamp(10px, 2.2vw, 24px);
  background: rgba(15, 23, 42, .62);
}
.srm-customer-app-shell {
  width: min(96vw, 1680px);
  height: min(94vh, 980px);
  max-height: none;
  border-radius: 30px;
  background:
    radial-gradient(circle at 7% 8%, rgba(255, 122, 26, .10), transparent 28%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 44%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, .92);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .26);
  overflow: hidden;
}
.srm-customer-app-header {
  min-height: 92px;
  padding: 26px 32px 22px;
  background: transparent;
  color: #111827;
  border-bottom: 1px solid rgba(226, 232, 240, .78);
}
.srm-customer-app-eyebrow {
  color: #f97316;
  letter-spacing: .12em;
  font-weight: 800;
}
.srm-customer-app-header h2 {
  color: #111827;
  font-size: clamp(1.8rem, 2.6vw, 2.65rem);
  line-height: 1.05;
}
.srm-customer-app-close {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(249, 115, 22, .25);
  background: rgba(255, 255, 255, .88);
  color: #f97316;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}
.srm-customer-app-close:hover,
.srm-customer-app-close:focus {
  background: #fff7ed;
  color: #c2410c;
}
.srm-customer-app-content {
  height: calc(100% - 93px);
  padding: 24px 28px 28px;
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  grid-template-areas:
    "notice stats"
    "tabs tabs";
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
}
.srm-customer-app-notice {
  grid-area: notice;
  min-height: 86px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, .88);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}
.srm-customer-app-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.srm-customer-app-stat {
  min-height: 86px;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, .88);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .055);
}
.srm-customer-app-tabbook {
  grid-area: tabs;
  display: grid !important;
  grid-template-columns: 304px minmax(0, 1fr) !important;
  gap: 20px;
  min-height: 0;
  height: 100%;
}
.srm-customer-app-nav.srm-tabbook-tabs {
  align-self: stretch;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 26px;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .065);
}
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab {
  width: 100%;
  min-height: 58px;
  margin: 0 0 10px;
  padding: 16px 18px 16px 54px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, .82);
  background: rgba(255, 255, 255, .94);
  color: #334155;
  font-size: 16px;
  font-weight: 800;
  justify-content: flex-start;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab::before {
  left: 19px;
  color: #f97316;
}
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab:hover,
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab:focus {
  transform: translateX(2px);
  border-color: rgba(249, 115, 22, .36);
  background: #fff7ed;
}
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab.is-active,
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab[aria-selected="true"] {
  color: #ffffff;
  background: linear-gradient(135deg, #ff7a1a 0%, #f97316 58%, #ea580c 100%);
  border-color: rgba(249, 115, 22, .78);
  box-shadow: 0 18px 34px rgba(249, 115, 22, .25);
}
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab.is-active::before,
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab[aria-selected="true"]::before {
  color: #ffffff;
}
.srm-customer-app-tab-panels {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.srm-customer-app-section.srm-tabbook-panel {
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: auto;
  border-radius: 26px;
  border: 1px solid rgba(226, 232, 240, .92);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
  padding: 28px;
}
.srm-customer-app-section h3 {
  color: #111827;
  font-size: clamp(1.45rem, 1.6vw, 2rem);
  text-align: left;
  border-bottom: 0;
  margin-bottom: 20px;
}
.srm-customer-app-rental-card {
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, .88);
  background: rgba(248, 250, 252, .92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}
@media (max-width: 1100px) {
  .srm-customer-app-content {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .srm-customer-app-tabbook {
    grid-template-columns: 260px minmax(0, 1fr) !important;
  }
  .srm-customer-app-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 782px) {
  .srm-customer-app-modal {
    padding: 0;
  }
  .srm-customer-app-shell {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  .srm-customer-app-header {
    min-height: 78px;
    padding: 18px 18px 14px;
  }
  .srm-customer-app-content {
    height: calc(100dvh - 78px);
    display: flex;
    flex-direction: column;
    padding: 14px;
    overflow: auto;
  }
  .srm-customer-app-notice {
    display: none;
  }
  .srm-customer-app-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .srm-customer-app-tabbook {
    display: flex !important;
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 12px;
  }
  .srm-customer-app-nav.srm-tabbook-tabs {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    max-height: none;
    overflow: visible;
    padding: 10px;
    border-radius: 22px;
  }
  .srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab {
    min-height: 54px;
    margin: 0;
    padding: 9px 8px 8px;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    white-space: normal;
  }
  .srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab::before {
    position: static;
    display: block;
    transform: none;
    width: auto;
    margin: 0 auto 4px;
  }
  .srm-customer-app-tab-panels {
    height: auto;
    overflow: visible;
  }
  .srm-customer-app-section.srm-tabbook-panel {
    height: auto;
    min-height: calc(100dvh - 360px);
    overflow: visible;
    padding: 18px;
  }
}

/* 1.0.18.353: bardziej widoczny nagłówek karty klienta z kontaktem. */
.srm-customer-card-header {
  padding: 22px;
}

.srm-customer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.srm-customer-header__eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: #d35400;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.srm-customer-header__main h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
}

.srm-customer-header__main p {
  margin: 0;
  font-size: 15px;
}

.srm-customer-header__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.srm-customer-header__badges span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  font-size: 13px;
}

.srm-customer-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.srm-customer-contact-item {
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  min-width: 0;
}

.srm-customer-contact-item span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.srm-customer-contact-item strong,
.srm-customer-contact-item a {
  color: #1f2937;
  font-size: 15px;
  word-break: break-word;
}

@media (max-width: 960px) {
  .srm-customer-contact-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {
  .srm-customer-card-header {
    padding: 16px;
  }
  .srm-customer-header {
    display: block;
  }
  .srm-customer-header__badges {
    justify-content: flex-start;
    margin-top: 12px;
  }
  .srm-customer-contact-grid {
    grid-template-columns: 1fr;
  }
}


/* 1.0.18.357: dopasowanie graficzne kafelkow Finanse oraz Weryfikacja NIP i PESEL do kafelka Oblozenie magazynow. */
.srm-dashboard-modern .srm-dashboard-finance-card,
.srm-dashboard-modern .srm-dashboard-identity-verifier {
  position: relative;
  isolation: isolate;
  grid-column: span 2;
  min-height: 0;
  padding: 28px !important;
  border: 1px solid rgba(249, 115, 22, 0.20) !important;
  border-left: 1px solid rgba(249, 115, 22, 0.20) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.13), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fffaf6 52%, #ffffff 100%) !important;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.10), 0 2px 12px rgba(249, 115, 22, 0.10) !important;
}

.srm-dashboard-modern .srm-dashboard-finance-card {
  overflow: hidden !important;
}

.srm-dashboard-modern .srm-dashboard-identity-verifier {
  overflow: visible !important;
}

.srm-dashboard-modern .srm-dashboard-finance-card::after,
.srm-dashboard-modern .srm-dashboard-identity-verifier::after {
  content: "";
  position: absolute;
  inset: auto -110px -170px auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.13), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.srm-dashboard-modern .srm-dashboard-finance-card h2,
.srm-dashboard-modern .srm-dashboard-identity-verifier h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px !important;
  color: #111827;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.03em !important;
}

.srm-dashboard-modern .srm-dashboard-finance-card h2::before,
.srm-dashboard-modern .srm-dashboard-identity-verifier h2::before {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 13px;
  background: #fff;
  color: #f97316;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.12);
}

.srm-dashboard-modern .srm-dashboard-finance-card h2::before {
  content: "zł";
  font-size: 18px;
  font-weight: 800;
}

.srm-dashboard-modern .srm-dashboard-identity-verifier h2::before {
  content: "✓";
  font-weight: 800;
}

.srm-dashboard-modern .srm-dashboard-finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 12px;
  margin-top: 18px;
}

.srm-dashboard-modern .srm-dashboard-finance-metric,
.srm-dashboard-modern .srm-dashboard-identity-grid > div {
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05) !important;
}

.srm-dashboard-modern .srm-dashboard-finance-metric .description,
.srm-dashboard-modern .srm-dashboard-identity-grid label {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.srm-dashboard-modern .srm-dashboard-finance-value {
  display: block;
  margin-top: 8px;
  color: #f97316 !important;
  font-size: clamp(18px, 2.7vw, 30px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
}

.srm-dashboard-modern .srm-dashboard-identity-verifier > .description {
  max-width: 720px;
  margin: 0 0 18px !important;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.55;
}

.srm-dashboard-modern .srm-dashboard-identity-grid {
  gap: 12px !important;
}

.srm-dashboard-modern .srm-dashboard-identity-verifier input.regular-text {
  min-height: 42px;
  margin-top: 8px !important;
  border-color: rgba(249, 115, 22, 0.24);
  border-radius: 12px !important;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.srm-dashboard-modern .srm-dashboard-identity-verifier input.regular-text:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18);
}

@media (max-width: 960px) {
  .srm-dashboard-modern .srm-dashboard-finance-card,
  .srm-dashboard-modern .srm-dashboard-identity-verifier {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .srm-dashboard-modern .srm-dashboard-finance-card,
  .srm-dashboard-modern .srm-dashboard-identity-verifier {
    padding: 18px !important;
  }
  .srm-dashboard-modern .srm-dashboard-finance-card h2,
  .srm-dashboard-modern .srm-dashboard-identity-verifier h2 {
    align-items: flex-start;
  }
  .srm-dashboard-modern .srm-dashboard-finance-card h2::before,
  .srm-dashboard-modern .srm-dashboard-identity-verifier h2::before {
    display: none;
  }
  .srm-dashboard-modern .srm-dashboard-finance-value {
    font-size: clamp(17px, 8vw, 26px) !important;
  }
}

/* 1.0.18.358: finanse na pulpicie - mniejsze kwoty, bez zawijania waluty. */
.srm-dashboard-modern .srm-dashboard-finance-value {
  display: block;
  width: 100%;
  max-width: 100%;
  color: #f97316 !important;
  font-size: clamp(18px, 1.9vw, 24px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
  white-space: nowrap !important;
  overflow: visible;
}

.srm-dashboard-modern .srm-dashboard-finance-value *,
.srm-dashboard-modern .srm-dashboard-finance-value .woocommerce-Price-amount,
.srm-dashboard-modern .srm-dashboard-finance-value .woocommerce-Price-currencySymbol,
.srm-dashboard-modern .srm-dashboard-finance-value bdi {
  white-space: nowrap !important;
}

.srm-dashboard-modern .srm-dashboard-finance-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

@media (max-width: 600px) {
  .srm-dashboard-modern .srm-dashboard-finance-value {
    font-size: clamp(17px, 6.8vw, 23px) !important;
  }
}


/* 1.0.18.359: pulpit - obłożenie magazynów mieści zawartość w kafelku.
   Kafelek zajmuje pełny rząd, a lista grup rozmiarowych układa się responsywnie,
   żeby ostatnie pozycje nie wychodziły poza prawą krawędź karty. */
.srm-dashboard-modern .srm-dashboard-occupancy-card,
.srm-dashboard-occupancy-card {
  grid-column: 1 / -1 !important;
  min-height: 0;
  padding: clamp(18px, 2vw, 26px) !important;
  overflow: hidden !important;
}

.srm-dashboard-occupancy-card *,
.srm-dashboard-occupancy-card *::before,
.srm-dashboard-occupancy-card *::after {
  box-sizing: border-box;
}

.srm-dashboard-occupancy-head {
  min-width: 0;
  margin-bottom: 10px;
}

.srm-dashboard-occupancy-head > div {
  min-width: 0;
}

.srm-dashboard-occupancy-head h2 {
  font-size: clamp(24px, 2.6vw, 36px);
}

.srm-dashboard-occupancy-main {
  margin: 14px 0 20px;
}

.srm-dashboard-occupancy-ring {
  width: min(300px, 58vw);
}

.srm-dashboard-occupancy-ring::before {
  inset: 16px;
}

.srm-dashboard-occupancy-ring::after {
  inset: -8px;
}

.srm-dashboard-occupancy-ring__percent {
  font-size: clamp(50px, 6vw, 78px) !important;
}

.srm-dashboard-occupancy-free {
  min-width: 0;
}

.srm-dashboard-occupancy-size-grid {
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.srm-dashboard-occupancy-size {
  min-width: 0;
  padding: 12px 8px;
}

.srm-dashboard-occupancy-size span {
  width: 100%;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.srm-dashboard-occupancy-size strong {
  font-size: clamp(22px, 2.4vw, 30px);
}

.srm-dashboard-occupancy-summary {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .srm-dashboard-occupancy-size-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .srm-dashboard-occupancy-ring {
    width: min(240px, 72vw);
  }
  .srm-dashboard-occupancy-ring__percent {
    font-size: clamp(44px, 15vw, 60px) !important;
  }
  .srm-dashboard-occupancy-size-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* 1.0.18.362: stabilizacja głównego menu na zawężonym ekranie desktop.
   Przy szerokościach pośrednich (desktop/laptop z zawężonym oknem) menu nie przechodzi już
   w chowany panel mobilny, żeby po wejściu w „Projekt Self Storage” nie znikało poza ekranem. */
@media (min-width: 783px) and (max-width: 1179px) {
  body.srm-mobile-menu-is-open {
    overflow: auto !important;
    touch-action: auto !important;
  }

  .srm-mobile-menu-toggle,
  .srm-mobile-menu-backdrop,
  body.wp-admin .srm-app-shell .srm-app-shell__topbar .srm-mobile-menu-toggle.button {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .srm-app-shell {
    display: grid !important;
    grid-template-columns: minmax(188px, 220px) minmax(0, 1fr) !important;
    grid-template-rows: auto auto 1fr !important;
    grid-template-areas:
      "topbar topbar"
      "primary secondary"
      "primary content" !important;
    gap: 16px !important;
    margin: 0 !important;
    min-height: 100vh !important;
    padding: 18px !important;
    border: 0 !important;
    border-radius: 22px !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.11), transparent 30%),
      linear-gradient(135deg, #ffffff 0%, #fff7ed 42%, #f8fafc 100%) !important;
    box-shadow: 0 20px 56px rgba(15, 23, 42, 0.10) !important;
  }

  .srm-app-shell:not(:has(> .srm-app-tabs--secondary)) {
    grid-template-rows: auto 1fr !important;
    grid-template-areas:
      "topbar topbar"
      "primary content" !important;
  }

  .srm-app-shell__topbar,
  body.wp-admin .srm-app-shell .srm-app-shell__topbar {
    grid-area: topbar !important;
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.07) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06) !important;
    backdrop-filter: blur(10px);
    z-index: 1 !important;
  }

  .srm-app-shell__topbar .srm-app-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    width: min(220px, 100%) !important;
    min-width: 0 !important;
  }

  .srm-app-tabs--primary,
  .srm-app-tabs--primary.srm-app-tabs--tree,
  body.srm-mobile-menu-is-open .srm-app-tabs--primary,
  .srm-app-shell.is-mobile-menu-open .srm-app-tabs--primary {
    grid-area: primary !important;
    align-self: start !important;
    /* 1.1.70.19.14: position static zamiast sticky — menu rośnie razem z treścią.
       Sticky z max-height powodowało że rozwinięte podmenu Ustawień
       ukrywało pozycje poniżej (Diagnostyka) bez scrollbara. */
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
    backdrop-filter: blur(10px);
    overflow-y: visible !important;
    overflow-x: hidden !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .srm-app-tabs--primary::before,
  .srm-app-tabs--primary::after {
    display: none !important;
    content: none !important;
  }

  .srm-app-tabs--primary .srm-app-tab {
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 11px 12px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: transparent !important;
    color: #374151 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    white-space: normal !important;
  }

  .srm-app-tabs--primary .srm-app-tab:hover {
    transform: translateX(2px);
    background: #fff7ed !important;
    color: #f97316 !important;
  }

  .srm-app-tabs--primary .srm-app-tab.is-active,
  .srm-app-tabs--tree .srm-app-tab--tree.is-active,
  .srm-app-tabs--tree .srm-app-tab--level-2.is-active,
  .srm-app-tabs--tree .srm-app-tab--level-3.is-active {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%) !important;
    color: #f97316 !important;
    box-shadow: inset 4px 0 0 #f97316, 0 10px 22px rgba(249, 115, 22, 0.10) !important;
  }

  .srm-app-tabs--tree .srm-app-menu-branch--level-2,
  .srm-app-tabs--tree .srm-app-menu-branch[data-srm-menu-branch-level="2"] {
    padding-left: 12px !important;
  }

  .srm-app-tabs--tree .srm-app-menu-branch--level-3,
  .srm-app-tabs--tree .srm-app-menu-branch[data-srm-menu-branch-level="3"] {
    padding-left: 20px !important;
  }

  .srm-app-tabs--tree .srm-app-menu-node.is-open > .srm-app-menu-branch {
    overflow: visible !important;
  }

  .srm-app-tabs--primary .srm-app-tab--exit,
  body.wp-admin .srm-app-shell .srm-app-tabs--primary .srm-app-tab--exit {
    position: static !important;
    bottom: auto !important;
    z-index: auto !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    order: 999 !important;
    background: rgba(255, 255, 255, 0.78) !important;
    color: #374151 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04) !important;
  }

  .srm-app-tabs--secondary {
    grid-area: secondary !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(15, 23, 42, 0.07) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .srm-app-shell__content {
    grid-area: content !important;
    position: relative !important;
    z-index: 1 !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }
}


/* 1.0.18.370: końcowe wzmocnienie układu liczb w wykresie obłożenia. */
.srm-dashboard-occupancy-ring__core .srm-dashboard-occupancy-ring__counts {
  display: grid !important;
  gap: 2px !important;
  justify-items: center !important;
  max-width: min(210px, 62vw) !important;
  line-height: 1.22 !important;
  text-align: center !important;
}
.srm-dashboard-occupancy-ring__core .srm-dashboard-occupancy-ring__counts span {
  display: block !important;
  width: 100% !important;
  color: #646970 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.22 !important;
  white-space: normal !important;
}
@media (max-width: 600px) {
  .srm-dashboard-occupancy-ring__core .srm-dashboard-occupancy-ring__counts span {
    font-size: 12px !important;
  }
}


/* 1.0.18.371: nowoczesne przyciski i okienka podpowiedzi w aplikacji. */
.srm-app-shell .button:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss),
.srm-settings-embedded-page .button:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss),
.srm-app-shell button.button:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss),
.srm-settings-embedded-page button.button:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss),
.srm-app-shell input.button:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss),
.srm-settings-embedded-page input.button:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 10px 18px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(249, 115, 22, 0.34) !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,247,237,0.94)) !important;
  color: #c2410c !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255,255,255,0.74) !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease !important;
  white-space: nowrap !important;
}

.srm-app-shell .button:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss):hover,
.srm-settings-embedded-page .button:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss):hover,
.srm-app-shell .button:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss):focus,
.srm-settings-embedded-page .button:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss):focus {
  transform: translateY(-1px) !important;
  border-color: rgba(249, 115, 22, 0.62) !important;
  background: linear-gradient(135deg, #fff7ed, #ffffff) !important;
  color: #9a3412 !important;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.16), 0 6px 14px rgba(15, 23, 42, 0.08) !important;
  outline: none !important;
}

.srm-app-shell .button-primary:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss),
.srm-settings-embedded-page .button-primary:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss),
.srm-app-shell input.button-primary:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss),
.srm-settings-embedded-page input.button-primary:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss) {
  border-color: rgba(234, 88, 12, 0.95) !important;
  background: linear-gradient(135deg, #ff8a2a 0%, #f97316 45%, #ea580c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28), inset 0 1px 0 rgba(255,255,255,0.26) !important;
}

.srm-app-shell .button-primary:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss):hover,
.srm-settings-embedded-page .button-primary:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss):hover,
.srm-app-shell .button-primary:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss):focus,
.srm-settings-embedded-page .button-primary:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss):focus {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 42%, #c2410c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.34), 0 8px 18px rgba(15, 23, 42, 0.12) !important;
}

.srm-app-shell .button-secondary:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss),
.srm-settings-embedded-page .button-secondary:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss) {
  border-color: rgba(249, 115, 22, 0.45) !important;
  background: rgba(255,255,255,0.86) !important;
  color: #c2410c !important;
}

.srm-app-shell .button[disabled],
.srm-settings-embedded-page .button[disabled],
.srm-app-shell .button.disabled,
.srm-settings-embedded-page .button.disabled,
.srm-app-shell .button:disabled,
.srm-settings-embedded-page .button:disabled {
  transform: none !important;
  opacity: .58 !important;
  cursor: not-allowed !important;
  filter: grayscale(.12) !important;
  box-shadow: none !important;
}

.srm-app-shell .notice:not(.srm-customer-app-notice),
.srm-settings-embedded-page .notice,
.srm-notice-stack > .notice,
.srm-email-notifications-page > .notice,
.srm-fullscreen-modal__panel .notice,
.srm-inline-modal__dialog .notice,
.srm-bank-notice,
.srm-connected-history-hint,
.srm-gateway-provider-hint {
  position: relative !important;
  padding: 16px 18px 16px 58px !important;
  border: 1px solid rgba(249, 115, 22, 0.18) !important;
  border-left: 0 !important;
  border-radius: 18px !important;
  background: radial-gradient(circle at top left, rgba(255, 237, 213, 0.78), rgba(255, 255, 255, 0.96) 44%, rgba(255, 247, 237, 0.78)) !important;
  color: #374151 !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255,255,255,0.78) !important;
}

.srm-app-shell .notice:not(.srm-customer-app-notice)::before,
.srm-settings-embedded-page .notice::before,
.srm-notice-stack > .notice::before,
.srm-email-notifications-page > .notice::before,
.srm-fullscreen-modal__panel .notice::before,
.srm-inline-modal__dialog .notice::before,
.srm-bank-notice::before,
.srm-connected-history-hint::before,
.srm-gateway-provider-hint::before {
  content: "i";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffedd5, #fdba74);
  color: #9a3412;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.18);
}

.srm-app-shell .notice.notice-success::before,
.srm-settings-embedded-page .notice.notice-success::before,
.srm-notice-stack > .notice.notice-success::before,
.srm-email-notifications-page > .notice.notice-success::before {
  content: "✓";
  background: linear-gradient(135deg, #dcfce7, #86efac);
  color: #166534;
}

.srm-app-shell .notice.notice-warning::before,
.srm-settings-embedded-page .notice.notice-warning::before,
.srm-notice-stack > .notice.notice-warning::before,
.srm-email-notifications-page > .notice.notice-warning::before {
  content: "!";
  background: linear-gradient(135deg, #ffedd5, #fb923c);
  color: #9a3412;
}

.srm-app-shell .notice.notice-error::before,
.srm-settings-embedded-page .notice.notice-error::before,
.srm-notice-stack > .notice.notice-error::before,
.srm-email-notifications-page > .notice.notice-error::before {
  content: "×";
  background: linear-gradient(135deg, #fee2e2, #fca5a5);
  color: #991b1b;
}

.srm-app-shell .notice p,
.srm-settings-embedded-page .notice p,
.srm-bank-notice p,
.srm-connected-history-hint p,
.srm-gateway-provider-hint {
  color: #374151 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.srm-app-shell .notice strong,
.srm-settings-embedded-page .notice strong,
.srm-bank-notice strong,
.srm-connected-history-hint strong {
  color: #111827 !important;
}

.srm-app-shell .notice.is-dismissible,
.srm-settings-embedded-page .notice.is-dismissible {
  padding-right: 48px !important;
}

.srm-app-shell .notice .notice-dismiss,
.srm-settings-embedded-page .notice .notice-dismiss {
  top: 10px !important;
  right: 10px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.74) !important;
  box-shadow: 0 6px 14px rgba(15,23,42,0.08) !important;
}

.srm-app-shell .notice .button,
.srm-settings-embedded-page .notice .button,
.srm-bank-notice .button {
  margin-top: 8px !important;
}

@media (max-width: 782px) {
  .srm-app-shell .button:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss),
  .srm-settings-embedded-page .button:not(.srm-storage-map-unit):not(.srm-map-layer-button):not(.wp-color-result):not(.notice-dismiss) {
    min-height: 44px !important;
    padding: 10px 14px !important;
    white-space: normal !important;
  }

  .srm-app-shell .notice:not(.srm-customer-app-notice),
  .srm-settings-embedded-page .notice,
  .srm-bank-notice,
  .srm-connected-history-hint,
  .srm-gateway-provider-hint {
    padding: 14px 14px 14px 50px !important;
    border-radius: 16px !important;
  }

  .srm-app-shell .notice:not(.srm-customer-app-notice)::before,
  .srm-settings-embedded-page .notice::before,
  .srm-bank-notice::before,
  .srm-connected-history-hint::before,
  .srm-gateway-provider-hint::before {
    left: 14px;
    top: 14px;
    width: 24px;
    height: 24px;
  }
}


/* 1.0.18.372: desktop hamburger regression fix after global button refresh.
   The mobile menu toggle is still a WordPress .button, so the global button styling
   introduced in 1.0.18.371 could make it visible again on desktop. */
@media (min-width: 783px) {
  body.wp-admin .srm-app-shell .srm-app-shell__topbar .srm-mobile-menu-toggle,
  body.wp-admin .srm-app-shell .srm-app-shell__topbar .srm-mobile-menu-toggle.button,
  .srm-app-shell .srm-mobile-menu-toggle,
  .srm-app-shell .srm-mobile-menu-toggle.button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }
}

/* 1.0.18.373: decision-style view for manual/semi-automatic bank transfer analysis. */
.srm-bank-analysis-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1500px;
  margin-top: 14px;
}

.srm-bank-analysis-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(420px, 2fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 112, 31, 0.20);
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 7%, rgba(255, 112, 31, 0.12), transparent 30%),
    linear-gradient(135deg, #fff 0%, #fffaf4 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.srm-bank-analysis-card--high {
  border-color: rgba(22, 163, 74, 0.28);
}

.srm-bank-analysis-card--medium {
  border-color: rgba(255, 112, 31, 0.28);
}

.srm-bank-analysis-card--low {
  border-color: rgba(239, 68, 68, 0.22);
}

.srm-bank-analysis-transfer,
.srm-bank-analysis-decision,
.srm-bank-candidate {
  min-width: 0;
  border: 1px solid rgba(209, 213, 219, 0.74);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.srm-bank-analysis-transfer,
.srm-bank-analysis-decision {
  padding: 18px;
}

.srm-bank-analysis-kicker {
  color: #c2410c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.srm-bank-analysis-transfer h4,
.srm-bank-analysis-decision h4 {
  margin: 6px 0 10px;
  color: #111827;
  font-size: 20px;
  line-height: 1.18;
}

.srm-bank-analysis-amount {
  margin: 10px 0 14px;
  color: #ff6b12;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.srm-bank-analysis-amount .woocommerce-Price-amount,
.srm-bank-analysis-amount bdi,
.srm-bank-analysis-amount .woocommerce-Price-currencySymbol {
  white-space: nowrap !important;
}

.srm-bank-analysis-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.srm-bank-analysis-facts > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.srm-bank-analysis-facts dt {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.srm-bank-analysis-facts dd {
  margin: 0;
  color: #374151;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.srm-bank-analysis-decision-head,
.srm-bank-candidate-top,
.srm-bank-analysis-secondary-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.srm-bank-confidence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.srm-bank-confidence--high {
  background: #dcfce7;
  color: #166534;
}

.srm-bank-confidence--medium {
  background: #ffedd5;
  color: #c2410c;
}

.srm-bank-confidence--low {
  background: #fee2e2;
  color: #991b1b;
}

.srm-bank-candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.srm-bank-candidate {
  padding: 14px;
  border-left: 5px solid rgba(255, 112, 31, 0.35);
}

.srm-bank-candidate--high {
  border-left-color: #22c55e;
}

.srm-bank-candidate--medium {
  border-left-color: #f97316;
}

.srm-bank-candidate--low {
  border-left-color: #ef4444;
}

.srm-bank-candidate-rank {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.srm-bank-candidate h5 {
  margin: 12px 0 4px;
  color: #111827;
  font-size: 16px;
  line-height: 1.22;
}

.srm-bank-candidate-company {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.srm-bank-reasons {
  margin: 12px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.srm-bank-reasons li {
  position: relative;
  padding-left: 20px;
  color: #374151;
  font-size: 13px;
  line-height: 1.35;
}

.srm-bank-reasons li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #f97316;
  font-weight: 900;
}

.srm-bank-rentals-mini {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 237, 213, 0.74);
  color: #374151;
  font-size: 13px;
  line-height: 1.35;
}

.srm-bank-rentals-mini--warning {
  background: #fef2f2;
  color: #991b1b;
}

.srm-bank-candidate-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.srm-bank-candidate-actions select {
  width: 100%;
  max-width: 100%;
}

.srm-bank-analysis-secondary-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.srm-bank-analysis-secondary-actions form {
  margin: 0;
}

.srm-bank-empty-suggestion {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px dashed rgba(249, 115, 22, 0.42);
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.84);
}

.srm-bank-empty-suggestion p {
  margin: 6px 0 0;
  color: #4b5563;
}

@media (max-width: 1100px) {
  .srm-bank-analysis-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .srm-bank-analysis-card,
  .srm-bank-analysis-transfer,
  .srm-bank-analysis-decision,
  .srm-bank-candidate {
    border-radius: 18px;
  }

  .srm-bank-analysis-card {
    padding: 12px;
    gap: 12px;
  }

  .srm-bank-analysis-transfer h4,
  .srm-bank-analysis-decision h4 {
    font-size: 18px;
  }

  .srm-bank-analysis-amount {
    font-size: 26px;
  }

  .srm-bank-analysis-facts > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* 1.0.18.374/378: explicit manual choice for semi-automatic bank transfer analysis. */
.srm-bank-manual-choice {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(249, 115, 22, 0.32);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  max-width: 100%;
  overflow: hidden;
}

.srm-bank-manual-choice summary {
  cursor: pointer;
  color: #9a3412;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

.srm-bank-manual-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
  max-width: 100%;
}

.srm-bank-manual-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  color: #374151;
  font-weight: 800;
}

.srm-bank-manual-form select,
.srm-bank-manual-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.srm-bank-manual-form textarea {
  resize: vertical;
}

.srm-bank-manual-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  max-width: 100%;
}

.srm-bank-manual-actions .button,
.srm-bank-manual-actions input[type="submit"] {
  max-width: 100%;
  white-space: normal !important;
  line-height: 1.25 !important;
  text-align: center;
}

.srm-bank-manual-choice .description {
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  .srm-bank-analysis-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .srm-bank-manual-actions .button,
  .srm-bank-manual-actions input[type="submit"] {
    width: 100%;
  }
}

/* 1.0.18.380: przebudowana karta klienta z zakładkami. */
.srm-customer-detail-page .srm-customer-detail-header-card {
  margin-top: 14px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

.srm-customer-detail-header-actions {
  margin: 14px 0 0;
}

.srm-customer-details-tabbook {
  margin-top: 18px;
}

.srm-customer-details-tabs {
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 4px;
}

.srm-customer-details-tabs .srm-tabbook-tab {
  border-color: rgba(249, 115, 22, .26);
  background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
  color: #9a3412;
  box-shadow: 0 8px 18px rgba(249, 115, 22, .08);
}

.srm-customer-details-tabs .srm-tabbook-tab:hover,
.srm-customer-details-tabs .srm-tabbook-tab:focus {
  border-color: rgba(249, 115, 22, .45);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .14), 0 10px 24px rgba(249, 115, 22, .12);
}

.srm-customer-details-tabs .srm-tabbook-tab.is-active,
.srm-customer-details-tabs .srm-tabbook-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  border-color: #f97316;
  color: #fff;
}

.srm-customer-details-panels > .srm-client-details-card {
  border-color: rgba(249, 115, 22, .18);
  border-radius: 18px;
  background: radial-gradient(circle at 96% 0%, rgba(249, 115, 22, .08), transparent 28%), #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  padding: 22px;
}

.srm-customer-details-panels h2 {
  margin-top: 0;
}

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

.srm-customer-access-policy-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .9fr) minmax(220px, 1.1fr) auto;
  align-items: end;
  justify-content: stretch;
  width: 100%;
  max-width: none;
  margin: 16px 0 22px;
  padding: 16px;
  border: 1px solid rgba(249, 115, 22, .20);
  border-radius: 16px;
  background: linear-gradient(135deg, #fffaf6 0%, #fff 100%);
  box-sizing: border-box;
}

.srm-customer-access-policy-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.srm-customer-access-policy-form label > span {
  color: #7c2d12;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.srm-customer-access-policy-form select {
  max-width: 100%;
}

.srm-customer-access-policy-form .srm-checkbox-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  color: #1f2937;
  font-weight: 700;
}

.srm-customer-access-policy-form .srm-checkbox-inline span {
  text-transform: none;
  letter-spacing: 0;
  color: inherit;
  font-size: inherit;
}

.srm-customer-access-policy-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.srm-customer-access-policy-form .button {
  min-height: 38px;
  white-space: nowrap;
}

.srm-customer-detail-page .srm-table-scroll {
  width: 100%;
  overflow-x: auto;
}

@media (max-width: 1180px) {
  .srm-customer-access-summary-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }
  .srm-customer-access-policy-form {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  .srm-customer-details-panels > .srm-client-details-card {
    padding: 16px;
  }
  .srm-customer-access-summary-grid,
  .srm-customer-access-policy-form {
    grid-template-columns: 1fr;
  }
  .srm-customer-access-policy-form__actions {
    width: 100%;
  }
  .srm-customer-access-policy-form .button {
    width: 100%;
    white-space: normal;
  }
}

/* 1.0.18.386: globalne dopasowanie tabel i zakładek do nowej szaty graficznej aplikacji. */
:root {
  --srm-ui-orange: #f97316;
  --srm-ui-orange-dark: #c2410c;
  --srm-ui-orange-soft: rgba(249, 115, 22, .12);
  --srm-ui-orange-border: rgba(249, 115, 22, .22);
  --srm-ui-border: rgba(15, 23, 42, .10);
  --srm-ui-shadow: 0 16px 36px rgba(15, 23, 42, .08);
  --srm-ui-soft-bg: radial-gradient(circle at 96% 0%, rgba(249, 115, 22, .10), transparent 30%), linear-gradient(135deg, #fff 0%, #fff7ed 100%);
}

.srm-app-shell table.widefat,
.srm-settings-embedded-page table.widefat,
.srm-fullscreen-modal table.widefat,
.srm-inline-modal table.widefat,
.srm-app-shell .wp-list-table,
.srm-settings-embedded-page .wp-list-table,
.srm-fullscreen-modal .wp-list-table,
.srm-inline-modal .wp-list-table,
.srm-app-shell .srm-price-editor-table,
.srm-settings-embedded-page .srm-price-editor-table,
.srm-fullscreen-modal .srm-price-editor-table,
.srm-inline-modal .srm-price-editor-table,
.srm-app-shell .srm-rate-history-table,
.srm-settings-embedded-page .srm-rate-history-table,
.srm-app-shell .srm-client-details-table,
.srm-app-shell .srm-client-access-table,
.srm-customer-app-shell table,
.woocommerce-account .srm-myaccount-period-table,
.woocommerce-account .srm-door-control .shop_table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--srm-ui-orange-border) !important;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--srm-ui-shadow);
  overflow: hidden;
}

.srm-app-shell table.widefat thead th,
.srm-settings-embedded-page table.widefat thead th,
.srm-fullscreen-modal table.widefat thead th,
.srm-inline-modal table.widefat thead th,
.srm-app-shell .wp-list-table thead th,
.srm-settings-embedded-page .wp-list-table thead th,
.srm-fullscreen-modal .wp-list-table thead th,
.srm-inline-modal .wp-list-table thead th,
.srm-app-shell .srm-price-editor-table thead th,
.srm-settings-embedded-page .srm-price-editor-table thead th,
.srm-fullscreen-modal .srm-price-editor-table thead th,
.srm-inline-modal .srm-price-editor-table thead th,
.srm-app-shell .srm-rate-history-table thead th,
.srm-settings-embedded-page .srm-rate-history-table thead th,
.srm-app-shell .srm-client-details-table thead th,
.srm-app-shell .srm-client-access-table thead th,
.srm-customer-app-shell table thead th,
.woocommerce-account .srm-myaccount-period-table thead th,
.woocommerce-account .srm-door-control .shop_table thead th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--srm-ui-orange-border) !important;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  color: #7c2d12;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1.25;
  text-transform: uppercase;
}

.srm-app-shell table.widefat tbody td,
.srm-settings-embedded-page table.widefat tbody td,
.srm-fullscreen-modal table.widefat tbody td,
.srm-inline-modal table.widefat tbody td,
.srm-app-shell .wp-list-table tbody td,
.srm-settings-embedded-page .wp-list-table tbody td,
.srm-fullscreen-modal .wp-list-table tbody td,
.srm-inline-modal .wp-list-table tbody td,
.srm-app-shell .srm-price-editor-table tbody td,
.srm-settings-embedded-page .srm-price-editor-table tbody td,
.srm-fullscreen-modal .srm-price-editor-table tbody td,
.srm-inline-modal .srm-price-editor-table tbody td,
.srm-app-shell .srm-rate-history-table tbody td,
.srm-settings-embedded-page .srm-rate-history-table tbody td,
.srm-app-shell .srm-client-details-table tbody td,
.srm-app-shell .srm-client-access-table tbody td,
.srm-customer-app-shell table tbody td,
.woocommerce-account .srm-myaccount-period-table tbody td,
.woocommerce-account .srm-door-control .shop_table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(249, 115, 22, .10) !important;
  color: #374151;
  line-height: 1.45;
  vertical-align: top;
}

.srm-app-shell table.widefat tbody tr:nth-child(even) td,
.srm-settings-embedded-page table.widefat tbody tr:nth-child(even) td,
.srm-fullscreen-modal table.widefat tbody tr:nth-child(even) td,
.srm-inline-modal table.widefat tbody tr:nth-child(even) td,
.srm-app-shell .wp-list-table tbody tr:nth-child(even) td,
.srm-settings-embedded-page .wp-list-table tbody tr:nth-child(even) td,
.srm-fullscreen-modal .wp-list-table tbody tr:nth-child(even) td,
.srm-inline-modal .wp-list-table tbody tr:nth-child(even) td,
.srm-app-shell .srm-price-editor-table tbody tr:nth-child(even) td,
.srm-settings-embedded-page .srm-price-editor-table tbody tr:nth-child(even) td,
.srm-fullscreen-modal .srm-price-editor-table tbody tr:nth-child(even) td,
.srm-inline-modal .srm-price-editor-table tbody tr:nth-child(even) td,
.srm-app-shell .srm-rate-history-table tbody tr:nth-child(even) td,
.srm-settings-embedded-page .srm-rate-history-table tbody tr:nth-child(even) td,
.srm-app-shell .srm-client-details-table tbody tr:nth-child(even) td,
.srm-app-shell .srm-client-access-table tbody tr:nth-child(even) td,
.srm-customer-app-shell table tbody tr:nth-child(even) td,
.woocommerce-account .srm-myaccount-period-table tbody tr:nth-child(even) td,
.woocommerce-account .srm-door-control .shop_table tbody tr:nth-child(even) td {
  background: rgba(255, 247, 237, .45);
}

.srm-app-shell table.widefat tbody tr:hover td,
.srm-settings-embedded-page table.widefat tbody tr:hover td,
.srm-fullscreen-modal table.widefat tbody tr:hover td,
.srm-inline-modal table.widefat tbody tr:hover td,
.srm-app-shell .wp-list-table tbody tr:hover td,
.srm-settings-embedded-page .wp-list-table tbody tr:hover td,
.srm-fullscreen-modal .wp-list-table tbody tr:hover td,
.srm-inline-modal .wp-list-table tbody tr:hover td,
.srm-app-shell .srm-price-editor-table tbody tr:hover td,
.srm-settings-embedded-page .srm-price-editor-table tbody tr:hover td,
.srm-fullscreen-modal .srm-price-editor-table tbody tr:hover td,
.srm-inline-modal .srm-price-editor-table tbody tr:hover td,
.srm-app-shell .srm-rate-history-table tbody tr:hover td,
.srm-settings-embedded-page .srm-rate-history-table tbody tr:hover td,
.srm-app-shell .srm-client-details-table tbody tr:hover td,
.srm-app-shell .srm-client-access-table tbody tr:hover td,
.srm-customer-app-shell table tbody tr:hover td,
.woocommerce-account .srm-myaccount-period-table tbody tr:hover td,
.woocommerce-account .srm-door-control .shop_table tbody tr:hover td {
  background: rgba(255, 237, 213, .72);
}

.srm-app-shell table.widefat tbody tr:last-child td,
.srm-settings-embedded-page table.widefat tbody tr:last-child td,
.srm-fullscreen-modal table.widefat tbody tr:last-child td,
.srm-inline-modal table.widefat tbody tr:last-child td,
.srm-app-shell .wp-list-table tbody tr:last-child td,
.srm-settings-embedded-page .wp-list-table tbody tr:last-child td,
.srm-fullscreen-modal .wp-list-table tbody tr:last-child td,
.srm-inline-modal .wp-list-table tbody tr:last-child td,
.srm-app-shell .srm-price-editor-table tbody tr:last-child td,
.srm-settings-embedded-page .srm-price-editor-table tbody tr:last-child td,
.srm-fullscreen-modal .srm-price-editor-table tbody tr:last-child td,
.srm-inline-modal .srm-price-editor-table tbody tr:last-child td,
.srm-app-shell .srm-rate-history-table tbody tr:last-child td,
.srm-settings-embedded-page .srm-rate-history-table tbody tr:last-child td,
.srm-app-shell .srm-client-details-table tbody tr:last-child td,
.srm-app-shell .srm-client-access-table tbody tr:last-child td,
.srm-customer-app-shell table tbody tr:last-child td,
.woocommerce-account .srm-myaccount-period-table tbody tr:last-child td,
.woocommerce-account .srm-door-control .shop_table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.srm-app-shell table code,
.srm-settings-embedded-page table code,
.srm-fullscreen-modal table code,
.srm-inline-modal table code,
.srm-customer-app-shell table code,
.woocommerce-account .srm-rental-card table code,
.woocommerce-account .srm-door-control table code {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .06);
  color: #374151;
  font-size: .94em;
  overflow-wrap: anywhere;
}

.srm-app-shell .form-table,
.srm-settings-embedded-page .form-table,
.srm-fullscreen-modal .form-table,
.srm-inline-modal .form-table {
  border: 1px solid rgba(249, 115, 22, .16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.srm-app-shell .form-table th,
.srm-settings-embedded-page .form-table th,
.srm-fullscreen-modal .form-table th,
.srm-inline-modal .form-table th {
  padding: 17px 16px;
  color: #7c2d12;
  font-weight: 900;
  letter-spacing: .01em;
}

.srm-app-shell .form-table td,
.srm-settings-embedded-page .form-table td,
.srm-fullscreen-modal .form-table td,
.srm-inline-modal .form-table td {
  padding: 16px;
}

.srm-app-shell .form-table tr:not(:last-child) th,
.srm-app-shell .form-table tr:not(:last-child) td,
.srm-settings-embedded-page .form-table tr:not(:last-child) th,
.srm-settings-embedded-page .form-table tr:not(:last-child) td,
.srm-fullscreen-modal .form-table tr:not(:last-child) th,
.srm-fullscreen-modal .form-table tr:not(:last-child) td,
.srm-inline-modal .form-table tr:not(:last-child) th,
.srm-inline-modal .form-table tr:not(:last-child) td {
  border-bottom: 1px solid rgba(249, 115, 22, .10);
}

.srm-app-shell .srm-table-scroll,
.srm-customer-detail-page .srm-table-scroll,
.srm-myaccount-table-scroll {
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
}

.srm-responsive-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  background: transparent;
}

.srm-responsive-table-scroll > table {
  min-width: 100%;
}

.srm-app-tabs:not(.srm-app-tabs--primary),
.srm-app-shell__content .srm-app-tabs--tertiary,
.srm-app-shell__content .srm-maintenance-tabs,
.srm-app-shell__content .srm-admin-settings-tabs,
.srm-app-shell__content .srm-self-storage-project-tabs,
.srm-app-shell__content .srm-location-tabs,
.srm-customer-details-tabs,
.srm-myaccount-tabs,
.srm-customer-app-nav.srm-tabbook-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(249, 115, 22, .16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .88) 0%, rgba(255, 247, 237, .74) 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.srm-app-tabs:not(.srm-app-tabs--primary) .srm-app-tab,
.srm-app-shell__content .srm-app-tabs--tertiary .srm-app-tab,
.srm-myaccount-tab,
.srm-customer-details-tabs .srm-tabbook-tab,
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab {
  min-height: 38px;
  padding: 10px 15px;
  border: 1px solid rgba(249, 115, 22, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #7c2d12;
  box-shadow: 0 8px 18px rgba(249, 115, 22, .07);
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.srm-app-tabs:not(.srm-app-tabs--primary) .srm-app-tab:hover,
.srm-app-tabs:not(.srm-app-tabs--primary) .srm-app-tab:focus,
.srm-app-shell__content .srm-app-tabs--tertiary .srm-app-tab:hover,
.srm-app-shell__content .srm-app-tabs--tertiary .srm-app-tab:focus,
.srm-myaccount-tab:hover,
.srm-myaccount-tab:focus,
.srm-customer-details-tabs .srm-tabbook-tab:hover,
.srm-customer-details-tabs .srm-tabbook-tab:focus,
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab:hover,
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab:focus {
  border-color: rgba(249, 115, 22, .44);
  color: #c2410c;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .12), 0 12px 24px rgba(249, 115, 22, .12);
  outline: none;
  transform: translateY(-1px);
}

.srm-app-tabs:not(.srm-app-tabs--primary) .srm-app-tab.is-active,
.srm-app-shell__content .srm-app-tabs--tertiary .srm-app-tab.is-active,
.srm-myaccount-tab.is-active,
.srm-customer-details-tabs .srm-tabbook-tab.is-active,
.srm-customer-details-tabs .srm-tabbook-tab[aria-selected="true"],
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab.is-active,
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab[aria-selected="true"] {
  border-color: #f97316;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 58%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(249, 115, 22, .24);
}

@media (max-width: 960px) {
  .srm-app-tabs:not(.srm-app-tabs--primary),
  .srm-app-shell__content .srm-app-tabs--tertiary,
  .srm-customer-details-tabs,
  .srm-myaccount-tabs,
  .srm-customer-app-nav.srm-tabbook-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .srm-app-tabs:not(.srm-app-tabs--primary) .srm-app-tab,
  .srm-app-shell__content .srm-app-tabs--tertiary .srm-app-tab,
  .srm-myaccount-tab,
  .srm-customer-details-tabs .srm-tabbook-tab,
  .srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }
}

@media (max-width: 960px) {
  .srm-responsive-table-scroll {
    padding-bottom: 8px;
  }

  .srm-responsive-table-scroll > table.widefat,
  .srm-responsive-table-scroll > table.wp-list-table,
  .srm-responsive-table-scroll > table.srm-filter-table {
    display: table !important;
    width: 100% !important;
    min-width: var(--srm-table-mobile-min-width, 920px) !important;
    max-width: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 782px) {
  .srm-responsive-table-scroll {
    padding-bottom: 8px;
  }

  .srm-responsive-table-scroll > table.widefat,
  .srm-responsive-table-scroll > table.wp-list-table,
  .srm-responsive-table-scroll > table.srm-filter-table {
    display: table !important;
    width: 100% !important;
    min-width: var(--srm-table-mobile-min-width, 920px) !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .srm-app-shell table.widefat,
  .srm-settings-embedded-page table.widefat,
  .srm-fullscreen-modal table.widefat,
  .srm-inline-modal table.widefat,
  .srm-app-shell .wp-list-table,
  .srm-settings-embedded-page .wp-list-table,
  .srm-fullscreen-modal .wp-list-table,
  .srm-inline-modal .wp-list-table,
  .srm-app-shell .srm-price-editor-table,
  .srm-settings-embedded-page .srm-price-editor-table,
  .srm-fullscreen-modal .srm-price-editor-table,
  .srm-inline-modal .srm-price-editor-table,
  .srm-app-shell .srm-rate-history-table,
  .srm-settings-embedded-page .srm-rate-history-table,
  .srm-app-shell .srm-client-details-table,
  .srm-app-shell .srm-client-access-table,
  .srm-customer-app-shell table,
  .woocommerce-account .srm-myaccount-period-table,
  .woocommerce-account .srm-door-control .shop_table,
  .srm-app-shell .form-table,
  .srm-settings-embedded-page .form-table,
  .srm-fullscreen-modal .form-table,
  .srm-inline-modal .form-table {
    border-radius: 16px;
  }

  .srm-app-shell table.widefat tbody td,
  .srm-settings-embedded-page table.widefat tbody td,
  .srm-fullscreen-modal table.widefat tbody td,
  .srm-inline-modal table.widefat tbody td,
  .srm-app-shell .wp-list-table tbody td,
  .srm-settings-embedded-page .wp-list-table tbody td,
  .srm-fullscreen-modal .wp-list-table tbody td,
  .srm-inline-modal .wp-list-table tbody td,
  .srm-customer-app-shell table tbody td,
  .woocommerce-account .srm-myaccount-period-table tbody td,
  .woocommerce-account .srm-door-control .shop_table tbody td {
    padding: 12px 13px;
  }
}

/* 1.0.18.388: WooCommerce login/register screens in SRM application style. */
.woocommerce-account:not(.logged-in) .woocommerce,
.woocommerce-lost-password .woocommerce,
.woocommerce-checkout form.woocommerce-form-login {
  max-width: 1120px;
  margin: 28px auto;
}

.woocommerce-account:not(.logged-in) #customer_login,
.woocommerce-account:not(.logged-in) .woocommerce #customer_login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
.woocommerce-account:not(.logged-in) #customer_login > .u-column2,
.woocommerce-account:not(.logged-in) .woocommerce-form-login,
.woocommerce-account:not(.logged-in) .woocommerce-form-register,
.woocommerce-lost-password .woocommerce-ResetPassword,
.woocommerce-checkout form.woocommerce-form-login {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(249, 115, 22, .18) !important;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,247,237,.74));
  box-shadow: 0 20px 48px rgba(15, 23, 42, .10);
  overflow: hidden;
}

.woocommerce-account:not(.logged-in) #customer_login > .u-column1:before,
.woocommerce-account:not(.logged-in) #customer_login > .u-column2:before,
.woocommerce-account:not(.logged-in) .woocommerce-form-login:before,
.woocommerce-account:not(.logged-in) .woocommerce-form-register:before,
.woocommerce-lost-password .woocommerce-ResetPassword:before,
.woocommerce-checkout form.woocommerce-form-login:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #fb923c 0%, #f97316 58%, #ea580c 100%);
}

.woocommerce-account:not(.logged-in) #customer_login h2,
.woocommerce-account:not(.logged-in) .woocommerce h2,
.woocommerce-lost-password .woocommerce h2,
.woocommerce-lost-password .woocommerce h3 {
  margin: 0 0 18px;
  color: #7c2d12;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 950;
  letter-spacing: -.025em;
}

.woocommerce-account:not(.logged-in) form.login,
.woocommerce-account:not(.logged-in) form.register,
.woocommerce-lost-password form.woocommerce-ResetPassword,
.woocommerce-checkout form.woocommerce-form-login {
  border: 0 !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-form-row,
.woocommerce-account:not(.logged-in) .form-row,
.woocommerce-lost-password .form-row,
.woocommerce-checkout form.woocommerce-form-login .form-row {
  margin-bottom: 15px;
}

.woocommerce-account:not(.logged-in) label,
.woocommerce-lost-password label,
.woocommerce-checkout form.woocommerce-form-login label {
  color: #7c2d12;
  font-weight: 850;
  letter-spacing: .01em;
}

.woocommerce-account:not(.logged-in) input.input-text,
.woocommerce-account:not(.logged-in) input[type="text"],
.woocommerce-account:not(.logged-in) input[type="email"],
.woocommerce-account:not(.logged-in) input[type="password"],
.woocommerce-lost-password input.input-text,
.woocommerce-lost-password input[type="text"],
.woocommerce-lost-password input[type="email"],
.woocommerce-checkout form.woocommerce-form-login input.input-text,
.woocommerce-checkout form.woocommerce-form-login input[type="text"],
.woocommerce-checkout form.woocommerce-form-login input[type="password"] {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(249, 115, 22, .20);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  color: #1f2937;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.04);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.woocommerce-account:not(.logged-in) input.input-text:focus,
.woocommerce-account:not(.logged-in) input[type="text"]:focus,
.woocommerce-account:not(.logged-in) input[type="email"]:focus,
.woocommerce-account:not(.logged-in) input[type="password"]:focus,
.woocommerce-lost-password input.input-text:focus,
.woocommerce-lost-password input[type="text"]:focus,
.woocommerce-lost-password input[type="email"]:focus,
.woocommerce-checkout form.woocommerce-form-login input.input-text:focus,
.woocommerce-checkout form.woocommerce-form-login input[type="text"]:focus,
.woocommerce-checkout form.woocommerce-form-login input[type="password"]:focus {
  border-color: #f97316;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .14);
  outline: none;
}

.woocommerce-account:not(.logged-in) .woocommerce-button.button,
.woocommerce-account:not(.logged-in) button.button,
.woocommerce-lost-password button.button,
.woocommerce-checkout form.woocommerce-form-login button.button {
  min-height: 42px;
  padding: 10px 22px;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 58%, #ea580c 100%) !important;
  box-shadow: 0 14px 28px rgba(249, 115, 22, .24);
  color: #fff !important;
  font-weight: 950;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.woocommerce-account:not(.logged-in) .woocommerce-button.button:hover,
.woocommerce-account:not(.logged-in) .woocommerce-button.button:focus,
.woocommerce-account:not(.logged-in) button.button:hover,
.woocommerce-account:not(.logged-in) button.button:focus,
.woocommerce-lost-password button.button:hover,
.woocommerce-lost-password button.button:focus,
.woocommerce-checkout form.woocommerce-form-login button.button:hover,
.woocommerce-checkout form.woocommerce-form-login button.button:focus {
  box-shadow: 0 18px 34px rgba(249, 115, 22, .32), 0 0 0 4px rgba(249, 115, 22, .14);
  color: #fff !important;
  transform: translateY(-1px);
  filter: saturate(1.04);
}

.woocommerce-account:not(.logged-in) .woocommerce-LostPassword a,
.woocommerce-account:not(.logged-in) .lost_password a,
.woocommerce-lost-password .woocommerce a,
.woocommerce-checkout form.woocommerce-form-login a {
  color: #c2410c;
  font-weight: 850;
  text-decoration: none;
}

.woocommerce-account:not(.logged-in) .woocommerce-LostPassword a:hover,
.woocommerce-account:not(.logged-in) .lost_password a:hover,
.woocommerce-lost-password .woocommerce a:hover,
.woocommerce-checkout form.woocommerce-form-login a:hover {
  color: #ea580c;
  text-decoration: underline;
}

.woocommerce-account:not(.logged-in) .woocommerce-privacy-policy-text,
.woocommerce-account:not(.logged-in) .woocommerce-form__label-for-checkbox,
.woocommerce-lost-password .woocommerce p,
.woocommerce-checkout form.woocommerce-form-login p {
  color: #475569;
  line-height: 1.55;
}

.woocommerce-account:not(.logged-in) .woocommerce-error,
.woocommerce-account:not(.logged-in) .woocommerce-info,
.woocommerce-account:not(.logged-in) .woocommerce-message,
.woocommerce-lost-password .woocommerce-error,
.woocommerce-lost-password .woocommerce-info,
.woocommerce-lost-password .woocommerce-message,
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
  border: 1px solid rgba(249, 115, 22, .18);
  border-left: 5px solid #f97316;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,247,237,.82));
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  color: #1f2937;
}

.woocommerce-account:not(.logged-in) .woocommerce-error {
  border-color: rgba(220, 38, 38, .20);
  border-left-color: #dc2626;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(254,242,242,.90));
}

@media (max-width: 860px) {
  .woocommerce-account:not(.logged-in) #customer_login,
  .woocommerce-account:not(.logged-in) .woocommerce #customer_login {
    grid-template-columns: 1fr;
  }

  .woocommerce-account:not(.logged-in) #customer_login > .u-column1,
  .woocommerce-account:not(.logged-in) #customer_login > .u-column2,
  .woocommerce-account:not(.logged-in) .woocommerce-form-login,
  .woocommerce-account:not(.logged-in) .woocommerce-form-register,
  .woocommerce-lost-password .woocommerce-ResetPassword,
  .woocommerce-checkout form.woocommerce-form-login {
    padding: 24px 18px;
    border-radius: 24px;
  }
}


/* 1.0.18.389: Fix WooCommerce login/register layout after visual refresh. */
.woocommerce-account:not(.logged-in) .woocommerce,
.woocommerce-lost-password .woocommerce {
  width: min(1120px, calc(100vw - 32px));
  max-width: 1120px;
  box-sizing: border-box;
}

.woocommerce-account:not(.logged-in) #customer_login,
.woocommerce-account:not(.logged-in) .woocommerce #customer_login {
  width: 100% !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
.woocommerce-account:not(.logged-in) #customer_login > .u-column2,
.woocommerce-account:not(.logged-in) #customer_login .col-1,
.woocommerce-account:not(.logged-in) #customer_login .col-2 {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.woocommerce-account:not(.logged-in) #customer_login > .u-column1 form.login,
.woocommerce-account:not(.logged-in) #customer_login > .u-column2 form.register,
.woocommerce-account:not(.logged-in) .woocommerce-form-login,
.woocommerce-account:not(.logged-in) .woocommerce-form-register,
.woocommerce-lost-password form.woocommerce-ResetPassword,
.woocommerce-checkout form.woocommerce-form-login {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.woocommerce-account:not(.logged-in) #customer_login > .u-column1 form.login,
.woocommerce-account:not(.logged-in) #customer_login > .u-column2 form.register {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.woocommerce-account:not(.logged-in) #customer_login > .u-column1 form.login:before,
.woocommerce-account:not(.logged-in) #customer_login > .u-column2 form.register:before {
  display: none !important;
}

.woocommerce-account:not(.logged-in) #customer_login h2,
.woocommerce-account:not(.logged-in) .woocommerce h2,
.woocommerce-lost-password .woocommerce h2,
.woocommerce-lost-password .woocommerce h3 {
  font-size: clamp(25px, 2.3vw, 32px) !important;
  line-height: 1.12 !important;
}

.woocommerce-account:not(.logged-in) label,
.woocommerce-lost-password label,
.woocommerce-checkout form.woocommerce-form-login label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px !important;
  line-height: 1.3 !important;
  word-break: normal !important;
}

.woocommerce-account:not(.logged-in) input.input-text,
.woocommerce-account:not(.logged-in) input[type="text"],
.woocommerce-account:not(.logged-in) input[type="email"],
.woocommerce-account:not(.logged-in) input[type="password"],
.woocommerce-lost-password input.input-text,
.woocommerce-lost-password input[type="text"],
.woocommerce-lost-password input[type="email"],
.woocommerce-checkout form.woocommerce-form-login input.input-text,
.woocommerce-checkout form.woocommerce-form-login input[type="text"],
.woocommerce-checkout form.woocommerce-form-login input[type="password"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  font-size: 16px !important;
}

.woocommerce-account:not(.logged-in) .password-input,
.woocommerce-account:not(.logged-in) .woocommerce-password-input,
.woocommerce-lost-password .password-input,
.woocommerce-checkout form.woocommerce-form-login .password-input {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce-account:not(.logged-in) .show-password-input,
.woocommerce-checkout form.woocommerce-form-login .show-password-input {
  top: 50% !important;
  transform: translateY(-50%);
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme,
.woocommerce-account:not(.logged-in) .woocommerce-form__label-for-checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: auto !important;
  margin: 2px 0 14px !important;
  font-size: 14px !important;
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login__submit,
.woocommerce-account:not(.logged-in) .woocommerce-button.button,
.woocommerce-account:not(.logged-in) button.button,
.woocommerce-lost-password button.button,
.woocommerce-checkout form.woocommerce-form-login button.button {
  max-width: 100% !important;
  white-space: normal !important;
}

.woocommerce-account:not(.logged-in) #customer_login .nsl-container,
.woocommerce-account:not(.logged-in) #customer_login .nsl-container-buttons,
.woocommerce-account:not(.logged-in) #customer_login .nsl-button,
.woocommerce-account:not(.logged-in) #customer_login .mo-openid-app-icons,
.woocommerce-account:not(.logged-in) #customer_login .the_champ_login_container,
.woocommerce-account:not(.logged-in) #customer_login .woocommerce-social-login {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce-account:not(.logged-in) .lost_password,
.woocommerce-account:not(.logged-in) .woocommerce-LostPassword {
  margin-top: 12px;
}

@media (max-width: 860px) {
  .woocommerce-account:not(.logged-in) .woocommerce,
  .woocommerce-lost-password .woocommerce {
    width: min(640px, calc(100vw - 24px));
  }
}

@media (max-width: 520px) {
  .woocommerce-account:not(.logged-in) #customer_login > .u-column1,
  .woocommerce-account:not(.logged-in) #customer_login > .u-column2,
  .woocommerce-account:not(.logged-in) .woocommerce-form-login,
  .woocommerce-account:not(.logged-in) .woocommerce-form-register,
  .woocommerce-lost-password .woocommerce-ResetPassword,
  .woocommerce-checkout form.woocommerce-form-login {
    padding: 22px 16px !important;
    border-radius: 22px !important;
  }
}

/* 1.0.18.390: Stabilize WooCommerce login/register layout in Elementor/custom account pages. */
body.woocommerce-account:not(.logged-in) .woocommerce,
body.woocommerce-lost-password .woocommerce {
  width: min(1040px, calc(100vw - 32px)) !important;
  max-width: 1040px !important;
  margin: 32px auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce #customer_login,
body.woocommerce-account:not(.logged-in) #customer_login,
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns#customer_login,
body.woocommerce-account:not(.logged-in) .woocommerce .col2-set#customer_login {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)) !important;
  gap: 26px !important;
  align-items: start !important;
  justify-items: stretch !important;
  width: 100% !important;
  max-width: 1040px !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
body.woocommerce-account:not(.logged-in) #customer_login > .u-column2,
body.woocommerce-account:not(.logged-in) #customer_login > .col-1,
body.woocommerce-account:not(.logged-in) #customer_login > .col-2 {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  float: none !important;
  clear: none !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 28px !important;
  box-sizing: border-box !important;
  align-self: start !important;
  justify-self: stretch !important;
}

body.woocommerce-account:not(.logged-in) #customer_login > .u-column1 form.login,
body.woocommerce-account:not(.logged-in) #customer_login > .u-column2 form.register,
body.woocommerce-account:not(.logged-in) #customer_login > .col-1 form.login,
body.woocommerce-account:not(.logged-in) #customer_login > .col-2 form.register {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .form-row,
body.woocommerce-lost-password .woocommerce .form-row,
body.woocommerce-checkout form.woocommerce-form-login .form-row {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in) #customer_login input.input-text,
body.woocommerce-account:not(.logged-in) #customer_login input[type="text"],
body.woocommerce-account:not(.logged-in) #customer_login input[type="email"],
body.woocommerce-account:not(.logged-in) #customer_login input[type="password"],
body.woocommerce-lost-password .woocommerce input.input-text,
body.woocommerce-lost-password .woocommerce input[type="text"],
body.woocommerce-lost-password .woocommerce input[type="email"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .password-input,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-password-input {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body.woocommerce-account:not(.logged-in) #customer_login h2 {
  margin-top: 0 !important;
  text-align: center;
}

body.woocommerce-account:not(.logged-in) #customer_login .lost_password,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-LostPassword {
  margin: 12px 0 0 !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login__rememberme,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form__label-for-checkbox {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login__submit,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-button.button,
body.woocommerce-account:not(.logged-in) #customer_login button.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 100% !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .nsl-container,
body.woocommerce-account:not(.logged-in) #customer_login .nsl-container-buttons,
body.woocommerce-account:not(.logged-in) #customer_login .nsl-button,
body.woocommerce-account:not(.logged-in) #customer_login .mo-openid-app-icons,
body.woocommerce-account:not(.logged-in) #customer_login .the_champ_login_container,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-social-login {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 760px) {
  body.woocommerce-account:not(.logged-in) .woocommerce,
  body.woocommerce-lost-password .woocommerce {
    width: min(620px, calc(100vw - 24px)) !important;
    margin: 22px auto !important;
  }

  body.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
  body.woocommerce-account:not(.logged-in) #customer_login > .u-column2,
  body.woocommerce-account:not(.logged-in) #customer_login > .col-1,
  body.woocommerce-account:not(.logged-in) #customer_login > .col-2 {
    padding: 22px 18px !important;
    border-radius: 24px !important;
  }
}

/* 1.0.18.391: Hard reset WooCommerce My Account login/register layout inside Elementor/theme wrappers. */
body.woocommerce-account:not(.logged-in) .woocommerce,
body.woocommerce-lost-password .woocommerce {
  display: block !important;
  width: min(980px, calc(100vw - 28px)) !important;
  max-width: 980px !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 28px auto !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce #customer_login,
body.woocommerce-account:not(.logged-in) #customer_login,
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns,
body.woocommerce-account:not(.logged-in) .woocommerce .col2-set,
body.woocommerce-page.woocommerce-account:not(.logged-in) .col2-set {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 26px !important;
  width: 100% !important;
  max-width: 980px !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce #customer_login:before,
body.woocommerce-account:not(.logged-in) .woocommerce #customer_login:after,
body.woocommerce-account:not(.logged-in) #customer_login:before,
body.woocommerce-account:not(.logged-in) #customer_login:after,
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns:before,
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns:after,
body.woocommerce-account:not(.logged-in) .woocommerce .col2-set:before,
body.woocommerce-account:not(.logged-in) .woocommerce .col2-set:after {
  content: none !important;
  display: none !important;
}

body.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
body.woocommerce-account:not(.logged-in) #customer_login > .u-column2,
body.woocommerce-account:not(.logged-in) #customer_login > .col-1,
body.woocommerce-account:not(.logged-in) #customer_login > .col-2,
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns > .u-column1,
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns > .u-column2,
body.woocommerce-account:not(.logged-in) .woocommerce .col2-set > .col-1,
body.woocommerce-account:not(.logged-in) .woocommerce .col2-set > .col-2,
body.woocommerce-page.woocommerce-account:not(.logged-in) .col2-set .col-1,
body.woocommerce-page.woocommerce-account:not(.logged-in) .col2-set .col-2 {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: auto !important;
  transform: none !important;
  float: none !important;
  clear: none !important;
  display: block !important;
  flex: 1 1 390px !important;
  width: auto !important;
  max-width: 460px !important;
  min-width: min(100%, 320px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .u-column1:before,
body.woocommerce-account:not(.logged-in) #customer_login .u-column2:before,
body.woocommerce-account:not(.logged-in) #customer_login .col-1:before,
body.woocommerce-account:not(.logged-in) #customer_login .col-2:before {
  content: none !important;
  display: none !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login,
body.woocommerce-account:not(.logged-in) #customer_login form.login,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-register,
body.woocommerce-account:not(.logged-in) #customer_login form.register,
body.woocommerce-lost-password form.woocommerce-ResetPassword,
body.woocommerce-lost-password .woocommerce-ResetPassword,
body.woocommerce-checkout form.woocommerce-form-login {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  display: block !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 30px 30px 28px !important;
  border: 1px solid rgba(249, 115, 22, .20) !important;
  border-radius: 28px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,247,237,.84)) !important;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .10) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login:before,
body.woocommerce-account:not(.logged-in) #customer_login form.login:before,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-register:before,
body.woocommerce-account:not(.logged-in) #customer_login form.register:before,
body.woocommerce-lost-password form.woocommerce-ResetPassword:before,
body.woocommerce-lost-password .woocommerce-ResetPassword:before,
body.woocommerce-checkout form.woocommerce-form-login:before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  height: 6px !important;
  background: linear-gradient(90deg, #fb923c 0%, #f97316 58%, #ea580c 100%) !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login > *,
body.woocommerce-account:not(.logged-in) #customer_login form.login > *,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-register > *,
body.woocommerce-account:not(.logged-in) #customer_login form.register > *,
body.woocommerce-lost-password form.woocommerce-ResetPassword > *,
body.woocommerce-checkout form.woocommerce-form-login > * {
  position: relative !important;
  z-index: 1 !important;
}

body.woocommerce-account:not(.logged-in) #customer_login h2,
body.woocommerce-lost-password .woocommerce h2,
body.woocommerce-lost-password .woocommerce h3 {
  width: 100% !important;
  margin: 0 0 18px !important;
  color: #7c2d12 !important;
  font-size: clamp(24px, 2.4vw, 32px) !important;
  line-height: 1.12 !important;
  text-align: center !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .form-row,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-row,
body.woocommerce-lost-password .woocommerce .form-row,
body.woocommerce-checkout form.woocommerce-form-login .form-row {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 15px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in) #customer_login label,
body.woocommerce-lost-password label,
body.woocommerce-checkout form.woocommerce-form-login label {
  display: block !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  color: #7c2d12 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  letter-spacing: .01em !important;
  white-space: normal !important;
  word-break: normal !important;
}

body.woocommerce-account:not(.logged-in) #customer_login input.input-text,
body.woocommerce-account:not(.logged-in) #customer_login input[type="text"],
body.woocommerce-account:not(.logged-in) #customer_login input[type="email"],
body.woocommerce-account:not(.logged-in) #customer_login input[type="password"],
body.woocommerce-lost-password .woocommerce input.input-text,
body.woocommerce-lost-password .woocommerce input[type="text"],
body.woocommerce-lost-password .woocommerce input[type="email"],
body.woocommerce-checkout form.woocommerce-form-login input.input-text,
body.woocommerce-checkout form.woocommerce-form-login input[type="text"],
body.woocommerce-checkout form.woocommerce-form-login input[type="password"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 46px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .password-input,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-password-input {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .show-password-input {
  position: absolute !important;
  top: 50% !important;
  right: 14px !important;
  transform: translateY(-50%) !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login__rememberme,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form__label-for-checkbox {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 0 14px !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .lost_password,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-LostPassword,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-privacy-policy-text {
  display: block !important;
  width: 100% !important;
  margin: 12px 0 0 !important;
  clear: both !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-button.button,
body.woocommerce-account:not(.logged-in) #customer_login button.button,
body.woocommerce-lost-password .woocommerce button.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
}

body.woocommerce-account:not(.logged-in) #customer_login .nsl-container,
body.woocommerce-account:not(.logged-in) #customer_login .nsl-container-buttons,
body.woocommerce-account:not(.logged-in) #customer_login .nsl-button,
body.woocommerce-account:not(.logged-in) #customer_login .mo-openid-app-icons,
body.woocommerce-account:not(.logged-in) #customer_login .the_champ_login_container,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-social-login {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

@media (max-width: 920px) {
  body.woocommerce-account:not(.logged-in) .woocommerce #customer_login,
  body.woocommerce-account:not(.logged-in) #customer_login,
  body.woocommerce-account:not(.logged-in) .woocommerce .u-columns,
  body.woocommerce-account:not(.logged-in) .woocommerce .col2-set {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
  body.woocommerce-account:not(.logged-in) #customer_login > .u-column2,
  body.woocommerce-account:not(.logged-in) #customer_login > .col-1,
  body.woocommerce-account:not(.logged-in) #customer_login > .col-2,
  body.woocommerce-account:not(.logged-in) .woocommerce .u-columns > .u-column1,
  body.woocommerce-account:not(.logged-in) .woocommerce .u-columns > .u-column2,
  body.woocommerce-account:not(.logged-in) .woocommerce .col2-set > .col-1,
  body.woocommerce-account:not(.logged-in) .woocommerce .col2-set > .col-2 {
    flex: 0 1 auto !important;
    width: 100% !important;
    max-width: 620px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 520px) {
  body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login,
  body.woocommerce-account:not(.logged-in) #customer_login form.login,
  body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-register,
  body.woocommerce-account:not(.logged-in) #customer_login form.register,
  body.woocommerce-lost-password form.woocommerce-ResetPassword,
  body.woocommerce-lost-password .woocommerce-ResetPassword {
    padding: 24px 18px !important;
    border-radius: 24px !important;
  }
}

/* 1.0.18.399: układ-only dla modalu „Szczegóły najmu i ceny”. */
.srm-rental-detail-modal .srm-fullscreen-modal__panel {
  background: #f8fafc;
  padding: 22px;
}

.srm-rental-detail-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  align-items: flex-start;
  margin: -4px -2px 22px;
  padding: 18px 20px;
  border: 1px solid var(--srm-ui-orange-border, rgba(249, 115, 22, .22));
  border-radius: 22px;
  background: radial-gradient(circle at 100% 0%, rgba(249, 115, 22, .16), transparent 30%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

.srm-rental-detail-topbar__main {
  display: grid;
  flex: 1 1 760px;
  gap: 8px;
  min-width: 0;
}

.srm-rental-detail-eyebrow {
  margin: 0;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.srm-rental-detail-topbar h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.srm-rental-detail-title {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.srm-rental-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 2px;
}

.srm-rental-detail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #374151;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.srm-rental-detail-chip.is-price {
  border-color: rgba(249, 115, 22, .28);
  background: rgba(255, 247, 237, .95);
  color: #9a3412;
}

.srm-rental-detail-chip.is-success {
  border-color: rgba(22, 163, 74, .24);
  background: rgba(240, 253, 244, .95);
  color: #166534;
}

.srm-rental-detail-chip.is-warning {
  border-color: rgba(220, 38, 38, .25);
  background: rgba(254, 242, 242, .95);
  color: #991b1b;
}

/* 1.2.25: „Najem oczekujący" — aktywny, ale start w przyszłości. */
.srm-rental-detail-chip-pending {
  border-color: rgba(217, 119, 6, .30);
  background: rgba(254, 243, 199, .95);
  color: #92400e;
}

.srm-rental-pending-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 9px;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}

/* 1.2.26: „Do zwolnienia" — stary box zamiany magazynu (zwalniany z końcem okresu); indygo, by odróżnić od „Oczekujący". */
.srm-rental-detail-chip-release {
  border-color: rgba(79, 70, 229, .28);
  background: rgba(224, 231, 255, .95);
  color: #3730a3;
}

.srm-rental-release-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 9px;
  border: 1px solid #a5b4fc;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}

.srm-rental-detail-contact {
  display: grid;
  gap: 3px;
  margin-top: 5px;
  color: #4b5563;
}

.srm-rental-detail-contact p,
.srm-rental-detail-topbar__main > p {
  margin-top: 0;
  margin-bottom: 0;
}

.srm-rental-detail-topbar .srm-exit-fullscreen {
  align-self: flex-start;
  white-space: nowrap;
}

.srm-rental-detail-modal .srm-detail-grid {
  margin-bottom: 18px;
}

.srm-rental-detail-overview-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr);
  align-items: start;
}

.srm-rental-detail-modal .srm-detail-card {
  min-width: 0;
  border-color: rgba(249, 115, 22, .18);
  border-radius: 20px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

.srm-rental-detail-modal .srm-detail-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(249, 115, 22, .16);
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
}

.srm-rental-detail-modal .srm-detail-card h3::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--srm-ui-orange, #f97316);
  box-shadow: 0 0 0 5px rgba(249, 115, 22, .12);
}

.srm-detail-card--summary > p {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  background: #fff;
}

.srm-detail-card--summary > p strong {
  color: #111827;
  font-weight: 850;
}

.srm-detail-card--summary > .srm-summary-contract-start-line,
.srm-detail-card--summary > .srm-summary-billing-start-line {
  display: flex;
  justify-content: space-between;
}

.srm-detail-card--summary > form.srm-inline-form,
.srm-rental-detail-modal .srm-connected-warehouses-card > form.srm-inline-form,
.srm-rental-detail-modal .srm-detail-card--rate-history > form.srm-inline-form {
  border-radius: 16px !important;
  border-color: rgba(249, 115, 22, .18) !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 247, 237, .75);
}

.srm-rental-detail-modal .srm-inline-form {
  gap: 12px;
}

.srm-rental-detail-modal .srm-inline-form p {
  margin-top: 0;
  margin-bottom: 0;
}

.srm-rental-detail-modal .srm-connected-status-panel {
  border-radius: 16px;
}

.srm-rental-detail-workspace {
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr);
  grid-template-areas:
    "rate rate"
    "periods ksef";
  align-items: start;
}

.srm-rental-detail-workspace .srm-detail-card--rate-history {
  grid-area: rate;
}

.srm-rental-detail-workspace .srm-detail-card--periods {
  grid-area: periods;
}

.srm-rental-detail-workspace .srm-detail-card--ksef {
  grid-area: ksef;
}

.srm-rental-detail-workspace .srm-detail-card--rate-history,
.srm-rental-detail-workspace .srm-detail-card--periods,
.srm-rental-detail-workspace .srm-detail-card--ksef {
  overflow-x: auto;
}

.srm-rental-detail-workspace .srm-rate-history-table {
  margin-bottom: 12px;
}

.srm-rental-detail-workspace .srm-rate-history-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.srm-rental-detail-workspace .srm-rate-history-add-row td,
.srm-rental-detail-workspace .srm-rate-history-switch-row td {
  background: rgba(255, 247, 237, .62) !important;
}

.srm-rental-detail-workspace .srm-rate-history-add-row strong {
  color: #9a3412;
}

.srm-rental-detail-workspace .srm-rate-history-modal__dialog {
  border-radius: 22px;
}

.srm-rental-detail-workspace .srm-detail-card--ksef textarea.large-text {
  min-height: 220px;
  border-radius: 14px;
  background: #111827;
  color: #f9fafb;
}

.srm-rental-detail-workspace .srm-detail-card--periods form > p:last-child {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1280px) {
  .srm-rental-detail-overview-grid,
  .srm-rental-detail-workspace {
    grid-template-columns: 1fr;
  }

  .srm-rental-detail-workspace {
    grid-template-areas:
      "rate"
      "periods"
      "ksef";
  }
}

@media (max-width: 782px) {
  .srm-rental-detail-modal .srm-fullscreen-modal__panel {
    padding: 14px;
  }

  .srm-rental-detail-topbar {
    position: static;
    margin: 0 0 16px;
    padding: 16px;
    border-radius: 18px;
  }

  .srm-rental-detail-topbar .srm-exit-fullscreen,
  .srm-rental-detail-modal .button {
    white-space: normal;
  }

  .srm-detail-card--summary > p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .srm-detail-card--summary > .srm-summary-contract-start-line,
  .srm-detail-card--summary > .srm-summary-billing-start-line {
    align-items: flex-start;
  }

  .srm-rental-detail-modal .srm-detail-card {
    padding: 16px;
    border-radius: 16px;
  }
}

/* 1.0.18.401: wszystkie sekcje w zakładkach; domyślnie otwarte „Okresy najmu”. */
.srm-rental-detail-overview-grid--summary-only {
  grid-template-columns: minmax(0, 1fr);
}

.srm-rental-detail-tabs {
  margin: 4px 0 20px;
}

.srm-rental-detail-tab-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.srm-rental-detail-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid rgba(249, 115, 22, .18);
  border-radius: 20px;
  background: rgba(255, 247, 237, .82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.srm-rental-detail-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #374151;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.srm-rental-detail-tab:hover {
  border-color: rgba(249, 115, 22, .34);
  background: #fff;
  color: #9a3412;
}

.srm-rental-detail-tabs > .srm-rental-detail-tab-radio--periods:checked ~ .srm-rental-detail-tab-list .srm-rental-detail-tab--periods,
.srm-rental-detail-tabs > .srm-rental-detail-tab-radio--details:checked ~ .srm-rental-detail-tab-list .srm-rental-detail-tab--details,
.srm-rental-detail-tabs > .srm-rental-detail-tab-radio--documents:checked ~ .srm-rental-detail-tab-list .srm-rental-detail-tab--documents,
.srm-rental-detail-tabs > .srm-rental-detail-tab-radio--rate-history:checked ~ .srm-rental-detail-tab-list .srm-rental-detail-tab--rate-history,
.srm-rental-detail-tabs > .srm-rental-detail-tab-radio--ksef:checked ~ .srm-rental-detail-tab-list .srm-rental-detail-tab--ksef,
.srm-rental-detail-tabs > .srm-rental-detail-tab-radio--connected:checked ~ .srm-rental-detail-tab-list .srm-rental-detail-tab--connected {
  border-color: rgba(249, 115, 22, .58);
  background: #f97316;
  color: #fff;
  box-shadow: 0 8px 18px rgba(249, 115, 22, .25);
}

.srm-rental-detail-tab-panels.srm-rental-detail-workspace {
  display: block;
  grid-template-columns: none;
  grid-template-areas: none;
  margin-bottom: 0;
}

.srm-rental-detail-tab-panel {
  display: none;
}

.srm-rental-detail-tabs > .srm-rental-detail-tab-radio--periods:checked ~ .srm-rental-detail-tab-panels .srm-rental-detail-tab-panel--periods,
.srm-rental-detail-tabs > .srm-rental-detail-tab-radio--details:checked ~ .srm-rental-detail-tab-panels .srm-rental-detail-tab-panel--details,
.srm-rental-detail-tabs > .srm-rental-detail-tab-radio--documents:checked ~ .srm-rental-detail-tab-panels .srm-rental-detail-tab-panel--documents,
.srm-rental-detail-tabs > .srm-rental-detail-tab-radio--rate-history:checked ~ .srm-rental-detail-tab-panels .srm-rental-detail-tab-panel--rate-history,
.srm-rental-detail-tabs > .srm-rental-detail-tab-radio--ksef:checked ~ .srm-rental-detail-tab-panels .srm-rental-detail-tab-panel--ksef,
.srm-rental-detail-tabs > .srm-rental-detail-tab-radio--connected:checked ~ .srm-rental-detail-tab-panels .srm-rental-detail-tab-panel--connected {
  display: block;
}

.srm-rental-detail-tab-panel .srm-detail-card {
  margin: 0;
  overflow-x: auto;
}

.srm-rental-detail-tab-panel--details .srm-rental-detail-overview-grid {
  margin-bottom: 0;
}

.srm-rental-detail-tab-panel .srm-detail-card--periods form > p:last-child {
  display: flex;
  justify-content: flex-end;
}


/* 1.0.18.402: moduł dokumentów w karcie najmu. */
.srm-rental-documents-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.srm-rental-documents-card__header h3 {
  margin-top: 0;
}

.srm-rental-documents-list,
.srm-rental-document-new-rows {
  display: grid;
  gap: 10px;
}

.srm-rental-documents-list {
  margin-top: 12px;
}

.srm-rental-contract-generator {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(249, 115, 22, .28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 247, 237, .82), #fff);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.srm-rental-contract-generator__intro {
  display: grid;
  gap: 4px;
}

.srm-rental-contract-generator__intro strong {
  color: #111827;
  font-size: 16px;
}

.srm-rental-contract-generator__intro span {
  color: #4b5563;
}

.srm-rental-contract-generator__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.srm-rental-contract-generator__fields .srm-rental-document-meta {
  grid-column: auto;
}

.srm-rental-document-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(130px, .7fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.srm-rental-document-row--new {
  border-style: dashed;
  background: rgba(255, 247, 237, .55);
}

.srm-rental-document-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 700;
  color: #1f2937;
}

.srm-rental-document-field span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #6b7280;
}

.srm-rental-document-field input[type="text"],
.srm-rental-document-field select,
.srm-rental-document-field input[type="file"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.srm-rental-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.srm-rental-document-delete-button {
  color: #b42318 !important;
  border-color: rgba(180, 35, 24, .40) !important;
  background: #fff !important;
}

.srm-rental-document-delete-button:hover,
.srm-rental-document-delete-button:focus {
  color: #7f1d1d !important;
  border-color: rgba(127, 29, 29, .65) !important;
  background: #fff5f5 !important;
}

.srm-rental-document-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #64748b;
  font-size: 12px;
}

.srm-rental-document-empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px dashed rgba(249, 115, 22, .32);
  border-radius: 16px;
  background: rgba(255, 247, 237, .65);
}

.srm-rental-document-empty strong {
  color: #9a3412;
}

.srm-signature-summary-card {
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(249, 115, 22, .20);
  border-radius: 16px;
  background: rgba(255, 247, 237, .70);
}

.srm-signature-summary-card p {
  margin: 0 0 8px;
}

.srm-signature-summary-card p:last-child {
  margin-bottom: 0;
}

.srm-rental-detail-tab-panel--documents .srm-inline-modal__dialog {
  border-top: 4px solid #f97316;
}

@media (max-width: 1180px) {
  .srm-rental-document-row {
    grid-template-columns: 1fr 1fr;
  }

  .srm-rental-document-actions {
    justify-content: flex-start;
  }

  .srm-rental-document-field--file,
  .srm-rental-document-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 782px) {
  .srm-rental-documents-card__header {
    display: grid;
  }

  .srm-rental-document-row {
    grid-template-columns: 1fr;
  }

  .srm-rental-document-field--file,
  .srm-rental-document-actions {
    grid-column: auto;
  }

  .srm-rental-document-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .srm-rental-document-meta {
    display: grid;
  }

  .srm-rental-contract-generator__fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  .srm-rental-detail-tab-list {
    display: grid;
    grid-template-columns: 1fr;
    padding: 8px;
    border-radius: 16px;
  }

  .srm-rental-detail-tab {
    width: 100%;
    border-radius: 14px;
  }
}

/* 1.0.18.403: EU DSS w module dokumentów najmu. */
.srm-signature-validator-card {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
}

.srm-signature-validator-preview {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(249, 115, 22, .18);
  border-radius: 16px;
  background: rgba(255, 247, 237, .72);
}

.srm-signature-validator-preview h3 {
  margin: 0 0 10px;
}

.srm-signature-validator-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.srm-signature-validator-preview__grid span {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(249, 115, 22, .20);
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
}

.srm-rental-document-signature-dialog {
  max-width: 1180px;
}

.srm-signature-summary-card__headline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.srm-signature-status-pill,
.srm-signature-source-pill,
.srm-signature-result-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
}

.srm-signature-source-pill {
  color: #9a3412;
  border-color: rgba(249, 115, 22, .25);
  background: rgba(255, 247, 237, .95);
}

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

.srm-signature-summary-grid > div,
.srm-signature-detail-grid > div {
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
}

.srm-signature-summary-grid span,
.srm-signature-detail-grid span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.srm-signature-details-list {
  display: grid;
  gap: 14px;
}

.srm-signature-detail-card {
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.srm-signature-detail-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.srm-signature-detail-card h4,
.srm-signature-detail-card p {
  margin-top: 0;
}

.srm-signature-detail-card h4 {
  margin-bottom: 4px;
}

.srm-signature-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.srm-signature-certificate-box,
.srm-signature-scope-box,
.srm-signature-message-box {
  margin-top: 12px;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(248, 250, 252, .92);
}

.srm-signature-certificate-box h5 {
  margin: 0 0 10px;
}

.srm-signature-certificate-box dl {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 6px 10px;
  margin: 0;
}

.srm-signature-certificate-box dt {
  color: #64748b;
  font-weight: 800;
}

.srm-signature-certificate-box dd {
  margin: 0;
  word-break: break-word;
}

.srm-signature-message-box ul,
.srm-signature-scope-box ul {
  margin: 8px 0 0 18px;
}

.srm-signature-message-box--warning {
  border-color: rgba(245, 158, 11, .28);
  background: rgba(255, 251, 235, .82);
}

.srm-signature-message-box--error {
  border-color: rgba(239, 68, 68, .28);
  background: rgba(254, 242, 242, .82);
}

.srm-signature-summary-card--valid .srm-signature-status-pill {
  color: #065f46;
  border-color: rgba(16, 185, 129, .28);
  background: rgba(209, 250, 229, .78);
}

.srm-signature-summary-card--invalid .srm-signature-status-pill,
.srm-signature-summary-card--error .srm-signature-status-pill {
  color: #991b1b;
  border-color: rgba(239, 68, 68, .28);
  background: rgba(254, 226, 226, .80);
}

.srm-signature-summary-card--warning .srm-signature-status-pill,
.srm-signature-summary-card--indeterminate .srm-signature-status-pill {
  color: #92400e;
  border-color: rgba(245, 158, 11, .32);
  background: rgba(254, 243, 199, .85);
}

@media (max-width: 782px) {
  .srm-signature-detail-card__head {
    display: grid;
  }

  .srm-signature-certificate-box dl {
    grid-template-columns: 1fr;
  }
}

.srm-rental-documents-validator-note {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(248, 250, 252, .92);
  color: #475569;
  font-size: 12px;
}

.srm-rental-documents-validator-note span {
  max-width: 460px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srm-rental-documents-validator-note.is-active {
  color: #065f46;
  border-color: rgba(16, 185, 129, .24);
  background: rgba(209, 250, 229, .60);
}

.srm-rental-documents-validator-note.is-inactive {
  color: #92400e;
  border-color: rgba(245, 158, 11, .26);
  background: rgba(254, 243, 199, .58);
}

/* 1.0.18.403: integracja walidatora EU DSS w module dokumentów. */
.srm-rental-documents-validator-note {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(248, 250, 252, .95);
  color: #475569;
  font-size: 12px;
}

.srm-rental-documents-validator-note.is-active {
  border-color: rgba(22, 163, 74, .26);
  background: rgba(240, 253, 244, .95);
  color: #166534;
}

.srm-rental-documents-validator-note.is-inactive {
  border-color: rgba(249, 115, 22, .24);
  background: rgba(255, 247, 237, .95);
  color: #9a3412;
}

.srm-rental-documents-validator-note span {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srm-signature-validator-settings-form .srm-settings-card {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.srm-signature-validator-preview {
  margin: 14px 0 4px;
  padding: 14px;
  border: 1px solid rgba(249, 115, 22, .18);
  border-radius: 16px;
  background: rgba(255, 247, 237, .62);
}

.srm-signature-validator-preview h3 {
  margin: 0 0 10px;
}

.srm-signature-validator-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.srm-signature-validator-preview__grid span {
  padding: 9px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.srm-signature-summary-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.srm-signature-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.srm-signature-result-badge--valid,
.srm-signature-result-badge--passed,
.srm-signature-result-badge--total_passed {
  border-color: rgba(22, 163, 74, .28);
  background: rgba(240, 253, 244, .96);
  color: #166534;
}

.srm-signature-result-badge--warning,
.srm-signature-result-badge--indeterminate,
.srm-signature-result-badge--total_indeterminate {
  border-color: rgba(217, 119, 6, .30);
  background: rgba(255, 251, 235, .96);
  color: #92400e;
}

.srm-signature-result-badge--invalid,
.srm-signature-result-badge--failed,
.srm-signature-result-badge--total_failed,
.srm-signature-result-badge--error {
  border-color: rgba(220, 38, 38, .30);
  background: rgba(254, 242, 242, .96);
  color: #991b1b;
}

.srm-signature-validator-name {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.srm-signature-report-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.srm-signature-report-meta span,
.srm-signature-report-messages > div {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(15, 23, 42, .07);
  color: #475569;
  font-size: 12px;
}

.srm-signature-report-messages {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.srm-signature-details-list {
  display: grid;
  gap: 12px;
}

.srm-signature-detail-card {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.srm-signature-detail-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.srm-signature-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.srm-signature-detail-grid > div {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(248, 250, 252, .8);
  border: 1px solid rgba(15, 23, 42, .06);
}

.srm-signature-detail-grid__wide {
  grid-column: 1 / -1;
}

.srm-signature-detail-grid dt {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.srm-signature-detail-grid dd {
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.srm-signature-scope-chip {
  display: inline-flex;
  margin: 2px 4px 2px 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(239, 246, 255, .96);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 782px) {
  .srm-rental-documents-validator-note {
    border-radius: 14px;
  }

  .srm-rental-documents-validator-note span {
    max-width: 100%;
    white-space: normal;
  }

  .srm-signature-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* 1.0.18.405: Panel klienta w układzie administracyjnym — desktop + telefon. */
body.srm-customer-app-page .woocommerce-MyAccount-navigation,
.woocommerce:has(.srm-customer-app-account) .woocommerce-MyAccount-navigation {
  display: none !important;
}

.woocommerce:has(.srm-customer-app-account) .woocommerce-MyAccount-content,
body.srm-customer-app-page .woocommerce-MyAccount-content.srm-customer-app-account,
.srm-customer-app-account {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.srm-customer-app-page .woocommerce,
.woocommerce:has(.srm-customer-app-account) {
  max-width: none !important;
}

.srm-customer-app-admin-shell,
.srm-customer-app-admin-shell * {
  box-sizing: border-box;
}

.srm-customer-app-admin-shell {
  display: grid !important;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "topbar topbar"
    "primary content";
  gap: 18px;
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100vh - 64px);
  max-height: none !important;
  margin: 0 !important;
  padding: 24px !important;
  border: 0 !important;
  border-radius: 24px !important;
  color: #1d2327;
  background:
    radial-gradient(circle at 100% 0%, rgba(249, 115, 22, .11), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fff7ed 42%, #f8fafc 100%) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .11) !important;
  overflow: visible !important;
}

.srm-customer-app-admin-topbar,
.srm-customer-app-admin-shell .srm-customer-app-header {
  grid-area: topbar;
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(15, 23, 42, .07) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .88) !important;
  color: #1d2327 !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06) !important;
  backdrop-filter: blur(10px);
}

.srm-customer-app-admin-topbar .srm-customer-mobile-menu-toggle {
  display: none !important;
}

.srm-customer-app-brand,
.srm-customer-app-admin-topbar .srm-app-brand {
  justify-self: start;
  width: min(220px, 100%) !important;
  max-width: 100% !important;
  margin: 0 !important;
  color: #1d2327;
}

.srm-customer-app-brand .srm-app-brand__subtitle {
  color: #1d2327 !important;
  font-size: .9em !important;
}

.srm-customer-app-topbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.srm-customer-app-topbar-actions [hidden] {
  display: none !important;
}


.srm-customer-app-admin-layout {
  display: contents !important;
}

.srm-customer-app-primary-menu,
.srm-customer-app-admin-shell .srm-customer-app-primary-menu.srm-app-tabs--primary {
  grid-area: primary;
  align-self: start;
  position: sticky;
  top: 42px;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08) !important;
  backdrop-filter: blur(10px);
  overflow: visible !important;
}

.srm-customer-app-primary-menu .srm-app-tab,
.srm-customer-app-primary-menu .srm-tabbook-tab,
.srm-customer-app-admin-shell .srm-customer-app-primary-menu .srm-app-tab {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 46px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  color: #374151 !important;
  font: inherit;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: normal !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.srm-customer-app-primary-menu .srm-app-tab:hover,
.srm-customer-app-primary-menu .srm-app-tab:focus {
  transform: translateX(2px);
  background: #fff7ed !important;
  color: #f97316 !important;
  outline: none;
}

.srm-customer-app-primary-menu .srm-app-tab.is-active,
.srm-customer-app-primary-menu .srm-app-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%) !important;
  color: #f97316 !important;
  box-shadow: inset 4px 0 0 #f97316, 0 10px 24px rgba(249, 115, 22, .10) !important;
}

.srm-customer-app-primary-menu .srm-customer-app-exit {
  margin-top: auto;
  background: rgba(255, 255, 255, .78) !important;
}

.srm-customer-app-admin-content,
.srm-customer-app-admin-shell .srm-customer-app-content {
  grid-area: content;
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  width: 100%;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.srm-customer-app-page-title {
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px solid rgba(249, 115, 22, .16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(249, 115, 22, .16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .96) 0%, rgba(255, 247, 237, .92) 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
}

.srm-customer-app-page-title .srm-customer-app-eyebrow {
  display: block;
  margin: 0;
  color: #ea580c !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.srm-customer-app-page-title h2 {
  margin: 0;
  color: #111827 !important;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.04em;
}

.srm-customer-app-page-title p {
  max-width: 760px;
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}

.srm-customer-app-admin-shell .srm-customer-app-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 !important;
}

.srm-customer-app-admin-shell .srm-customer-app-stat,
.srm-customer-app-admin-shell .srm-customer-app-rental-card,
.srm-customer-app-admin-shell .srm-customer-app-section,
.srm-customer-app-admin-shell .srm-customer-app-link-card {
  border: 1px solid rgba(249, 115, 22, .16) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06) !important;
}

.srm-customer-app-admin-shell .srm-customer-app-stat {
  position: relative;
  overflow: hidden;
  padding: 16px !important;
}

.srm-customer-app-admin-shell .srm-customer-app-stat::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #fb923c, #f97316);
}

.srm-customer-app-admin-shell .srm-customer-app-stat span,
.srm-customer-app-admin-shell .srm-customer-app-access-grid span,
.srm-customer-app-admin-shell .srm-customer-app-payment-summary span {
  color: #9a3412;
  font-weight: 800;
}

.srm-customer-app-admin-shell .srm-customer-app-stat strong {
  color: #111827;
  font-size: 1.35rem;
}

.srm-customer-app-admin-shell .srm-customer-app-tab-panels {
  min-height: 0;
  overflow: visible !important;
}

.srm-customer-app-admin-shell .srm-customer-app-section.srm-tabbook-panel {
  max-height: none !important;
  margin: 0 !important;
  padding: 22px !important;
  overflow: visible !important;
}

.srm-customer-app-admin-shell .srm-customer-app-section h3 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.02em;
}

.srm-customer-app-admin-shell .srm-customer-app-rental-list,
.srm-customer-app-admin-shell .srm-customer-app-order-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}

.srm-customer-app-admin-shell .srm-customer-app-rental-card {
  padding: 16px !important;
}

.srm-customer-app-admin-shell .srm-customer-app-rental-card h4 {
  margin: 0 0 12px;
  color: #9a3412;
  font-weight: 900;
}

.srm-customer-app-admin-shell .srm-customer-app-rental-card dl {
  margin: 0;
}

.srm-customer-app-admin-shell .srm-customer-app-rental-card dl > div {
  border-top-color: #ffedd5;
}

.srm-customer-app-admin-shell .srm-customer-app-rental-card dt {
  color: #7c2d12;
}

.srm-customer-app-admin-shell .srm-customer-app-rental-card dd {
  color: #111827;
}

.srm-customer-app-admin-shell .srm-customer-app-access-grid,
.srm-customer-app-admin-shell .srm-customer-app-payment-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.srm-customer-app-admin-shell .srm-customer-app-access-grid > div,
.srm-customer-app-admin-shell .srm-customer-app-payment-summary > div {
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
}

.srm-customer-mobile-menu-backdrop {
  display: none;
}

@media (max-width: 1179px) and (min-width: 783px) {
  .srm-customer-app-admin-shell {
    grid-template-columns: minmax(188px, 220px) minmax(0, 1fr);
    padding: 18px !important;
    border-radius: 22px !important;
  }

  .srm-customer-app-brand,
  .srm-customer-app-admin-topbar .srm-app-brand {
    width: min(220px, 100%) !important;
  }

  .srm-customer-app-primary-menu .srm-app-tab {
    min-height: 44px !important;
    padding: 11px 12px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 782px) {
  body.srm-customer-mobile-menu-is-open {
    overflow: hidden;
    touch-action: none;
  }

  body.srm-customer-app-page .woocommerce,
  body.srm-customer-app-page .woocommerce-account,
  body.srm-customer-app-page .entry-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }

  .srm-customer-app-admin-shell {
    position: relative;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto 1fr !important;
    grid-template-areas:
      "topbar"
      "content" !important;
    gap: 14px !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 14px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(249, 115, 22, .13), transparent 34%),
      linear-gradient(135deg, #ffffff 0%, #fff7ed 46%, #f8fafc 100%) !important;
  }

  .srm-customer-app-admin-topbar,
  .srm-customer-app-admin-shell .srm-customer-app-header {
    position: sticky;
    top: 0;
    z-index: 99990;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 10px;
    padding: 10px 10px 10px 4px !important;
    border-radius: 18px !important;
  }

  .srm-customer-app-admin-topbar .srm-customer-mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 0 0 2px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%) !important;
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(249, 115, 22, .24);
  }

  .srm-customer-app-admin-topbar .srm-customer-mobile-menu-toggle[aria-expanded="true"] {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  }

  .srm-customer-app-brand,
  .srm-customer-app-admin-topbar .srm-app-brand {
    width: min(185px, 100%) !important;
    min-width: 0;
    justify-self: start;
  }

  .srm-customer-app-brand .srm-app-brand__subtitle {
    font-size: .78em !important;
    line-height: 1.15 !important;
  }

  .srm-customer-app-topbar-actions {
    min-width: 40px;
  }


  .srm-customer-mobile-menu-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 100000;
    width: 100vw;
    height: 100vh;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, .46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
  }

  body.srm-customer-mobile-menu-is-open .srm-customer-mobile-menu-backdrop,
  .srm-customer-app-admin-shell.is-mobile-menu-open .srm-customer-mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .srm-customer-app-primary-menu,
  .srm-customer-app-admin-shell .srm-customer-app-primary-menu.srm-app-tabs--primary {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 100001 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: min(86vw, 328px) !important;
    max-width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 90px 16px 22px !important;
    border: 0 !important;
    border-radius: 0 26px 26px 0 !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(249, 115, 22, .17), transparent 36%),
      linear-gradient(180deg, #ffffff 0%, #fff7ed 100%) !important;
    box-shadow: 28px 0 60px rgba(15, 23, 42, .22) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .24s ease, visibility .24s ease;
  }

  .srm-customer-app-primary-menu::before {
    content: "Menu";
    position: absolute;
    top: 24px;
    left: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    min-height: 42px;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.03em;
  }

  .srm-customer-app-primary-menu::after {
    content: "";
    position: absolute;
    top: 68px;
    left: 18px;
    right: 18px;
    height: 1px;
    background: rgba(15, 23, 42, .08);
  }

  body.srm-customer-mobile-menu-is-open .srm-customer-app-primary-menu,
  .srm-customer-app-admin-shell.is-mobile-menu-open .srm-customer-app-primary-menu {
    transform: translateX(0);
    visibility: visible;
  }

  .srm-customer-app-primary-menu .srm-app-tab,
  .srm-customer-app-admin-shell .srm-customer-app-primary-menu .srm-app-tab {
    min-height: 46px !important;
    padding: 12px 14px !important;
    background: rgba(255, 255, 255, .72) !important;
    color: #374151 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
  }

  .srm-customer-app-primary-menu .srm-app-tab.is-active,
  .srm-customer-app-primary-menu .srm-app-tab[aria-selected="true"] {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(249, 115, 22, .24) !important;
  }

  .srm-customer-app-admin-content,
  .srm-customer-app-admin-shell .srm-customer-app-content {
    grid-area: content;
    gap: 12px;
  }

  .srm-customer-app-page-title {
    padding: 18px;
    border-radius: 20px;
  }

  .srm-customer-app-page-title h2 {
    font-size: clamp(26px, 9vw, 34px);
  }

  .srm-customer-app-admin-shell .srm-customer-app-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .srm-customer-app-admin-shell .srm-customer-app-stat {
    padding: 14px !important;
  }

  .srm-customer-app-admin-shell .srm-customer-app-section.srm-tabbook-panel {
    padding: 16px !important;
  }

  .srm-customer-app-admin-shell .srm-customer-app-rental-list,
  .srm-customer-app-admin-shell .srm-customer-app-order-list,
  .srm-customer-app-admin-shell .srm-customer-app-access-grid,
  .srm-customer-app-admin-shell .srm-customer-app-payment-summary {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  .srm-customer-app-admin-shell .srm-customer-app-stats {
    grid-template-columns: 1fr;
  }

  .srm-customer-app-brand,
  .srm-customer-app-admin-topbar .srm-app-brand {
    width: min(155px, 100%) !important;
  }
}

/* 1.0.18.405: dopięcie administracyjnego panelu klienta do widoku WooCommerce. */
body.srm-customer-app-page .woocommerce-MyAccount-navigation,
body.srm-customer-admin-shell-body .woocommerce-MyAccount-navigation {
  display: none !important;
}

body.srm-customer-app-page .woocommerce-MyAccount-content,
body.srm-customer-admin-shell-body .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}


.srm-customer-app-admin-shell .srm-customer-app-admin-section {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.srm-customer-app-admin-shell .srm-customer-app-admin-section > h1:first-child {
  display: block !important;
  margin: 0 0 16px !important;
  color: #111827 !important;
  font-size: clamp(26px, 4vw, 38px) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  letter-spacing: -.04em !important;
}

.srm-customer-app-admin-shell .srm-customer-app-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}

.srm-customer-app-admin-shell table.srm-customer-app-table {
  margin: 0 !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: 16px !important;
  overflow: hidden;
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05) !important;
}

.srm-customer-app-admin-shell table.srm-customer-app-table th {
  background: #fff7ed !important;
  color: #7c2d12 !important;
  font-weight: 900 !important;
}



@media (max-width: 782px) {
  .srm-customer-app-admin-shell table.srm-customer-app-table {
    min-width: 720px;
  }
}


/* 1.0.18.407: pełnoekranowy panel klienta i linki do sklepu / strony lokalizacji. */
body.srm-customer-fullscreen-body,
body.srm-customer-app-page {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100dvh !important;
  background: #f8fafc !important;
  overflow: hidden !important;
}

body.srm-customer-fullscreen-body #wpadminbar,
body.srm-customer-app-page #wpadminbar {
  display: none !important;
}

body.srm-customer-fullscreen-body header.site-header,
body.srm-customer-fullscreen-body footer.site-footer,
body.srm-customer-fullscreen-body .site-header,
body.srm-customer-fullscreen-body .site-footer,
body.srm-customer-fullscreen-body #masthead,
body.srm-customer-fullscreen-body #colophon,
body.srm-customer-fullscreen-body .storefront-primary-navigation,
body.srm-customer-fullscreen-body .wp-site-blocks > header,
body.srm-customer-fullscreen-body .wp-site-blocks > footer,
body.srm-customer-fullscreen-body header.wp-block-template-part,
body.srm-customer-fullscreen-body footer.wp-block-template-part,
body.srm-customer-fullscreen-body .woocommerce-breadcrumb,
body.srm-customer-fullscreen-body .entry-header,
body.srm-customer-fullscreen-body .page-header,
body.srm-customer-fullscreen-body .entry-title,
body.srm-customer-fullscreen-body .page-title,
body.srm-customer-app-page header.site-header,
body.srm-customer-app-page footer.site-footer,
body.srm-customer-app-page .site-header,
body.srm-customer-app-page .site-footer,
body.srm-customer-app-page #masthead,
body.srm-customer-app-page #colophon,
body.srm-customer-app-page .storefront-primary-navigation,
body.srm-customer-app-page .wp-site-blocks > header,
body.srm-customer-app-page .wp-site-blocks > footer,
body.srm-customer-app-page header.wp-block-template-part,
body.srm-customer-app-page footer.wp-block-template-part,
body.srm-customer-app-page .woocommerce-breadcrumb,
body.srm-customer-app-page .entry-header,
body.srm-customer-app-page .page-header,
body.srm-customer-app-page .entry-title,
body.srm-customer-app-page .page-title {
  display: none !important;
}

body.srm-customer-fullscreen-body #page,
body.srm-customer-fullscreen-body .site,
body.srm-customer-fullscreen-body .wp-site-blocks,
body.srm-customer-fullscreen-body .site-content,
body.srm-customer-fullscreen-body .content-area,
body.srm-customer-fullscreen-body .site-main,
body.srm-customer-fullscreen-body article,
body.srm-customer-fullscreen-body .hentry,
body.srm-customer-fullscreen-body .entry-content,
body.srm-customer-fullscreen-body .wp-block-post-content,
body.srm-customer-fullscreen-body .woocommerce,
body.srm-customer-fullscreen-body .woocommerce-account,
body.srm-customer-app-page #page,
body.srm-customer-app-page .site,
body.srm-customer-app-page .wp-site-blocks,
body.srm-customer-app-page .site-content,
body.srm-customer-app-page .content-area,
body.srm-customer-app-page .site-main,
body.srm-customer-app-page article,
body.srm-customer-app-page .hentry,
body.srm-customer-app-page .entry-content,
body.srm-customer-app-page .wp-block-post-content,
body.srm-customer-app-page .woocommerce,
body.srm-customer-app-page .woocommerce-account {
  width: 100% !important;
  max-width: none !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.srm-customer-fullscreen-body .srm-customer-app-account,
body.srm-customer-app-page .srm-customer-app-account {
  min-height: 100dvh !important;
  height: 100dvh !important;
  overflow: hidden !important;
}

body.srm-customer-fullscreen-body .srm-customer-app-fullscreen-shell,
body.srm-customer-app-page .srm-customer-app-fullscreen-shell {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: clamp(12px, 1.6vw, 22px) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.srm-customer-fullscreen-body .srm-customer-app-admin-shell .srm-customer-app-primary-menu,
body.srm-customer-app-page .srm-customer-app-admin-shell .srm-customer-app-primary-menu {
  max-height: calc(100dvh - 112px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

body.srm-customer-fullscreen-body .srm-customer-app-admin-content,
body.srm-customer-fullscreen-body .srm-customer-app-admin-shell .srm-customer-app-content,
body.srm-customer-app-page .srm-customer-app-admin-content,
body.srm-customer-app-page .srm-customer-app-admin-shell .srm-customer-app-content {
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px !important;
}

body.srm-customer-fullscreen-body .srm-customer-app-admin-shell .srm-customer-app-section.srm-tabbook-panel,
body.srm-customer-app-page .srm-customer-app-admin-shell .srm-customer-app-section.srm-tabbook-panel {
  overflow: auto !important;
}

.srm-customer-app-primary-menu .srm-customer-app-menu-node-link {
  flex: 0 0 auto;
}

.srm-customer-app-primary-menu .srm-customer-app-nav-link {
  gap: 10px !important;
}

.srm-customer-app-primary-menu .srm-customer-app-nav-link .srm-app-tab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-radius: 9px;
  background: #fff7ed;
  color: #f97316;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.srm-customer-app-primary-menu .srm-customer-app-nav-link:hover .srm-app-tab__icon,
.srm-customer-app-primary-menu .srm-customer-app-nav-link:focus .srm-app-tab__icon {
  background: #f97316;
  color: #ffffff;
}

.srm-customer-app-primary-menu .srm-customer-app-nav-link--rent {
  margin-top: 10px !important;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%) !important;
  box-shadow: inset 4px 0 0 rgba(249, 115, 22, .55), 0 10px 24px rgba(249, 115, 22, .08) !important;
}

.srm-customer-app-primary-menu .srm-customer-app-nav-link--rent:hover,
.srm-customer-app-primary-menu .srm-customer-app-nav-link--rent:focus {
  box-shadow: inset 4px 0 0 #f97316, 0 10px 24px rgba(249, 115, 22, .12) !important;
}

@media (max-width: 782px) {
  body.srm-customer-fullscreen-body,
  body.srm-customer-app-page {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  body.srm-customer-fullscreen-body .srm-customer-app-fullscreen-shell,
  body.srm-customer-app-page .srm-customer-app-fullscreen-shell {
    padding: 10px !important;
  }

  body.srm-customer-fullscreen-body .srm-customer-app-admin-shell .srm-customer-app-primary-menu,
  body.srm-customer-app-page .srm-customer-app-admin-shell .srm-customer-app-primary-menu {
    max-height: none !important;
  }

  body.srm-customer-fullscreen-body .srm-customer-app-admin-content,
  body.srm-customer-fullscreen-body .srm-customer-app-admin-shell .srm-customer-app-content,
  body.srm-customer-app-page .srm-customer-app-admin-content,
  body.srm-customer-app-page .srm-customer-app-admin-shell .srm-customer-app-content {
    height: auto !important;
    max-height: calc(100dvh - 76px) !important;
    overflow-y: auto !important;
    padding-right: 0 !important;
  }
}

/* 1.0.18.408: panel klienta renderowany jako niezależna pełnoekranowa strona, bez nagłówka/sklepu/motywu. */
html.srm-customer-standalone-html,
html:has(body.srm-customer-standalone-body) {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  background: #f8fafc !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.srm-customer-standalone-body,
body.srm-customer-standalone-body.srm-customer-fullscreen-body,
body.srm-customer-standalone-body.srm-customer-app-page {
  position: fixed !important;
  inset: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  background: #f8fafc !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  -webkit-text-size-adjust: 100%;
}

.srm-customer-standalone-root {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483600 !important;
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f8fafc !important;
}

body.srm-customer-standalone-body .srm-customer-app-account,
body.srm-customer-fullscreen-body .srm-customer-app-account--admin-shell,
body.srm-customer-app-page .srm-customer-app-account--admin-shell {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483601 !important;
  display: block !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.srm-customer-standalone-body .srm-customer-app-fullscreen-shell,
body.srm-customer-fullscreen-body .srm-customer-app-fullscreen-shell,
body.srm-customer-app-page .srm-customer-app-fullscreen-shell {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483602 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.srm-customer-standalone-body .srm-customer-app-admin-topbar,
body.srm-customer-fullscreen-body .srm-customer-app-admin-topbar,
body.srm-customer-app-page .srm-customer-app-admin-topbar {
  flex: 0 0 auto !important;
}

body.srm-customer-standalone-body .srm-customer-app-admin-content,
body.srm-customer-standalone-body .srm-customer-app-admin-shell .srm-customer-app-content,
body.srm-customer-fullscreen-body .srm-customer-app-admin-content,
body.srm-customer-fullscreen-body .srm-customer-app-admin-shell .srm-customer-app-content,
body.srm-customer-app-page .srm-customer-app-admin-content,
body.srm-customer-app-page .srm-customer-app-admin-shell .srm-customer-app-content {
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

body.srm-customer-standalone-body > :not(#srm-customer-standalone-root):not(script):not(style):not(link):not(svg),
body.srm-customer-fullscreen-body > header,
body.srm-customer-fullscreen-body > footer,
body.srm-customer-fullscreen-body > .site-header,
body.srm-customer-fullscreen-body > .site-footer,
body.srm-customer-fullscreen-body .header,
body.srm-customer-fullscreen-body .main-header,
body.srm-customer-fullscreen-body .mobile-header,
body.srm-customer-fullscreen-body .site-header-main,
body.srm-customer-fullscreen-body .header-wrapper,
body.srm-customer-fullscreen-body .main-navigation,
body.srm-customer-fullscreen-body .woocommerce-store-notice,
body.srm-customer-fullscreen-body .widget_shopping_cart,
body.srm-customer-app-page > header,
body.srm-customer-app-page > footer,
body.srm-customer-app-page > .site-header,
body.srm-customer-app-page > .site-footer,
body.srm-customer-app-page .header,
body.srm-customer-app-page .main-header,
body.srm-customer-app-page .mobile-header,
body.srm-customer-app-page .site-header-main,
body.srm-customer-app-page .header-wrapper,
body.srm-customer-app-page .main-navigation,
body.srm-customer-app-page .woocommerce-store-notice,
body.srm-customer-app-page .widget_shopping_cart {
  display: none !important;
}

@supports (height: 100svh) {
  body.srm-customer-standalone-body,
  .srm-customer-standalone-root,
  body.srm-customer-standalone-body .srm-customer-app-account,
  body.srm-customer-fullscreen-body .srm-customer-app-account--admin-shell,
  body.srm-customer-app-page .srm-customer-app-account--admin-shell,
  body.srm-customer-standalone-body .srm-customer-app-fullscreen-shell,
  body.srm-customer-fullscreen-body .srm-customer-app-fullscreen-shell,
  body.srm-customer-app-page .srm-customer-app-fullscreen-shell {
    height: 100svh !important;
    min-height: 100svh !important;
  }
}

@media (max-width: 782px) {
  body.srm-customer-standalone-body .srm-customer-app-fullscreen-shell,
  body.srm-customer-fullscreen-body .srm-customer-app-fullscreen-shell,
  body.srm-customer-app-page .srm-customer-app-fullscreen-shell {
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)) !important;
  }

  body.srm-customer-standalone-body .srm-customer-app-admin-content,
  body.srm-customer-standalone-body .srm-customer-app-admin-shell .srm-customer-app-content,
  body.srm-customer-fullscreen-body .srm-customer-app-admin-content,
  body.srm-customer-fullscreen-body .srm-customer-app-admin-shell .srm-customer-app-content,
  body.srm-customer-app-page .srm-customer-app-admin-content,
  body.srm-customer-app-page .srm-customer-app-admin-shell .srm-customer-app-content {
    height: auto !important;
    max-height: calc(100svh - 76px) !important;
  }
}

/* 1.0.18.419: panel klienta - kafelek najbliższej płatności i szybka płatność. */
.srm-customer-app-dashboard-card--payment[data-srm-customer-app-open-payments] {
  cursor: pointer;
}

.srm-customer-app-dashboard-card--payment[data-srm-customer-app-open-payments]:focus,
.srm-customer-app-dashboard-card--payment[data-srm-customer-app-open-payments]:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
}

.srm-customer-app-payment-deadline {
  margin-top: 10px !important;
}

.srm-customer-app-payment-rental {
  margin: 18px 0 24px;
}

.srm-customer-app-payment-rental > h3 {
  margin: 18px 0 12px;
}

.srm-customer-app-period-table .srm-period-checkbox,
.srm-customer-app-period-table .srm-customer-app-period-checkbox {
  min-width: 18px;
  min-height: 18px;
}

.srm-customer-app-quick-payment-summary {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.srm-customer-app-quick-payment-summary .srm-payment-summary-value {
  font-weight: 800;
}

.srm-customer-app-quick-pay-button {
  text-transform: uppercase;
  font-weight: 800;
}

/* 1.0.18.420: konto klienta - wejście do panelu, auth WooCommerce i zmiana hasła. */
.srm-customer-auth-root {
  align-items: center;
  justify-content: center;
}

.srm-customer-auth-shell {
  width: min(1040px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.35fr);
  gap: 22px;
  align-items: stretch;
}

.srm-customer-auth-header,
.srm-customer-auth-card,
.srm-customer-app-password-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.srm-customer-auth-header {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.srm-customer-auth-header .srm-customer-app-brand {
  margin: 0;
}

.srm-customer-auth-copy h1 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.02;
}

.srm-customer-auth-copy p {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}

.srm-customer-auth-card {
  padding: 28px;
  overflow: auto;
}

.srm-customer-auth-woocommerce .woocommerce-notices-wrapper,
.srm-customer-app-password-panel .woocommerce-notices-wrapper {
  margin-bottom: 16px;
}

.srm-customer-auth-woocommerce form.login,
.srm-customer-auth-woocommerce form.register,
.srm-customer-auth-woocommerce form.lost_reset_password,
.srm-customer-app-change-password-form {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.srm-customer-auth-woocommerce .u-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.srm-customer-auth-woocommerce .u-column1,
.srm-customer-auth-woocommerce .u-column2 {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.srm-customer-auth-woocommerce h2 {
  margin-top: 0;
}

.srm-customer-auth-woocommerce label,
.srm-customer-app-change-password-form label {
  font-weight: 700;
  color: #0f172a;
}

.srm-customer-auth-woocommerce input.input-text,
.srm-customer-app-change-password-form input.input-text {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  box-sizing: border-box;
}

.srm-customer-auth-woocommerce .button,
.srm-customer-app-password-submit {
  min-height: 44px;
  border-radius: 12px !important;
  font-weight: 800 !important;
}

.srm-customer-auth-woocommerce .lost_password {
  margin-bottom: 0;
}

.srm-customer-app-password-panel {
  padding: 24px;
  max-width: 720px;
}

.srm-customer-app-password-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.srm-customer-app-password-fieldset legend {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.srm-customer-app-password-help {
  margin: 0 0 18px !important;
}

.srm-customer-app-change-password-form .form-row {
  margin-bottom: 16px !important;
}

@media (max-width: 860px) {
  .srm-customer-auth-shell {
    grid-template-columns: 1fr;
  }

  .srm-customer-auth-woocommerce .u-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .srm-customer-auth-header,
  .srm-customer-auth-card,
  .srm-customer-app-password-panel {
    border-radius: 18px;
    padding: 18px;
  }
}


/* 1.0.18.421: kompaktowe okno logowania/rejestracji z logo nad formularzami. */
html.srm-customer-auth-html,
html.srm-customer-auth-html body,
body.srm-customer-auth-body {
  overflow-x: hidden !important;
}

#srm-customer-auth-root.srm-customer-auth-root {
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.srm-customer-auth-root .srm-customer-auth-shell {
  width: min(1120px, calc(100vw - 24px)) !important;
  max-width: 1120px !important;
  min-width: 0 !important;
  margin: auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto !important;
  gap: 14px !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

.srm-customer-auth-root .srm-customer-auth-header {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 14px 18px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

.srm-customer-auth-root .srm-customer-auth-header .srm-customer-app-brand {
  flex: 0 1 270px !important;
  width: min(270px, 42vw) !important;
  max-width: 100% !important;
  min-width: 160px !important;
  margin: 0 !important;
}

.srm-customer-auth-root .srm-customer-auth-header .srm-customer-app-brand .srm-app-brand__logo {
  width: auto !important;
  max-width: 100% !important;
  max-height: 58px !important;
  object-fit: contain !important;
}

.srm-customer-auth-root .srm-customer-auth-copy {
  min-width: 0 !important;
  max-width: 620px !important;
  text-align: right !important;
}

.srm-customer-auth-root .srm-customer-auth-copy .srm-dashboard-modern-kicker {
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
}

.srm-customer-auth-root .srm-customer-auth-copy h1 {
  margin: 3px 0 2px !important;
  color: #7c2d12 !important;
  font-size: clamp(22px, 2.8vw, 34px) !important;
  line-height: 1.06 !important;
}

.srm-customer-auth-root .srm-customer-auth-copy p {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.srm-customer-auth-root .srm-customer-auth-card {
  width: 100% !important;
  min-width: 0 !important;
  padding: 18px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  border-radius: 24px !important;
}

body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce.woocommerce,
.srm-customer-auth-root .srm-customer-auth-woocommerce.woocommerce,
.srm-customer-auth-root .srm-customer-auth-woocommerce {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login,
.srm-customer-auth-root .srm-customer-auth-woocommerce .u-columns,
.srm-customer-auth-root .srm-customer-auth-woocommerce .col2-set {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login > .u-column1,
body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login > .u-column2,
body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login > .col-1,
body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login > .col-2,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login > .u-column1,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login > .u-column2,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login > .col-1,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login > .col-2 {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(249, 115, 22, .18) !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,247,237,.66)) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login form.login,
body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login form.register,
body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login .woocommerce-form-login,
body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login .woocommerce-form-register,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login form.login,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login form.register,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .woocommerce-form-login,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .woocommerce-form-register {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login form.login:before,
body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login form.register:before,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login form.login:before,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login form.register:before {
  display: none !important;
  content: none !important;
}

.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login h2 {
  width: 100% !important;
  margin: 0 0 12px !important;
  color: #7c2d12 !important;
  font-size: clamp(24px, 2.6vw, 36px) !important;
  line-height: 1.08 !important;
  text-align: center !important;
}

.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .form-row,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .woocommerce-form-row,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login p {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login label {
  margin: 0 0 6px !important;
  color: #7c2d12 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login input.input-text,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login input[type="text"],
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login input[type="email"],
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login input[type="password"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 9px 12px !important;
  box-sizing: border-box !important;
}

.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .password-input,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .woocommerce-password-input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .woocommerce-form-login__rememberme,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .woocommerce-form__label-for-checkbox {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: auto !important;
  margin: 0 0 10px !important;
  font-size: 13px !important;
}

.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .woocommerce-privacy-policy-text,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .lost_password,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .woocommerce-LostPassword {
  margin: 8px 0 0 !important;
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .button,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login button.button,
.srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .woocommerce-button.button {
  min-height: 42px !important;
  padding: 9px 22px !important;
  border-radius: 999px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

@media (max-width: 860px) {
  #srm-customer-auth-root.srm-customer-auth-root {
    align-items: flex-start !important;
  }

  .srm-customer-auth-root .srm-customer-auth-header {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .srm-customer-auth-root .srm-customer-auth-header .srm-customer-app-brand {
    width: min(260px, 76vw) !important;
    min-width: 0 !important;
  }

  .srm-customer-auth-root .srm-customer-auth-copy {
    text-align: center !important;
  }

  body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login,
  .srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login,
  .srm-customer-auth-root .srm-customer-auth-woocommerce .u-columns,
  .srm-customer-auth-root .srm-customer-auth-woocommerce .col2-set {
    grid-template-columns: 1fr !important;
  }
}

@media (max-height: 760px) and (min-width: 861px) {
  .srm-customer-auth-root .srm-customer-auth-shell {
    gap: 10px !important;
  }

  .srm-customer-auth-root .srm-customer-auth-header {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .srm-customer-auth-root .srm-customer-auth-header .srm-customer-app-brand .srm-app-brand__logo {
    max-height: 48px !important;
  }

  .srm-customer-auth-root .srm-customer-auth-copy p {
    display: none !important;
  }

  .srm-customer-auth-root .srm-customer-auth-card,
  body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login > .u-column1,
  body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login > .u-column2,
  body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login > .col-1,
  body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login > .col-2 {
    padding: 14px !important;
  }

  .srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login h2 {
    margin-bottom: 9px !important;
    font-size: clamp(22px, 2.4vw, 30px) !important;
  }

  .srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .form-row,
  .srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login .woocommerce-form-row,
  .srm-customer-auth-root .srm-customer-auth-woocommerce #customer_login p {
    margin-bottom: 8px !important;
  }
}

@media (max-width: 520px) {
  .srm-customer-auth-root .srm-customer-auth-shell {
    width: min(100%, calc(100vw - 16px)) !important;
    gap: 10px !important;
  }

  .srm-customer-auth-root .srm-customer-auth-card,
  .srm-customer-auth-root .srm-customer-auth-header,
  body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login > .u-column1,
  body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login > .u-column2,
  body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login > .col-1,
  body.srm-customer-auth-body.woocommerce-account:not(.logged-in) .srm-customer-auth-woocommerce #customer_login > .col-2 {
    border-radius: 18px !important;
    padding: 14px !important;
  }
}

/* 1.0.18.421: dopasowanie formularza przypomnienia hasła w tym samym oknie auth. */
.srm-customer-auth-root .srm-customer-auth-woocommerce form.lost_reset_password,
.srm-customer-auth-root .srm-customer-auth-woocommerce form.woocommerce-ResetPassword,
.srm-customer-auth-root .srm-customer-auth-woocommerce .woocommerce-ResetPassword {
  position: relative !important;
  display: block !important;
  width: min(560px, 100%) !important;
  max-width: 560px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 20px !important;
  border: 1px solid rgba(249, 115, 22, .18) !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,247,237,.66)) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.srm-customer-auth-root .srm-customer-auth-woocommerce form.lost_reset_password:before,
.srm-customer-auth-root .srm-customer-auth-woocommerce form.woocommerce-ResetPassword:before,
.srm-customer-auth-root .srm-customer-auth-woocommerce .woocommerce-ResetPassword:before {
  display: none !important;
  content: none !important;
}

.srm-customer-auth-root .srm-customer-auth-woocommerce form.lost_reset_password .form-row,
.srm-customer-auth-root .srm-customer-auth-woocommerce form.woocommerce-ResetPassword .form-row,
.srm-customer-auth-root .srm-customer-auth-woocommerce .woocommerce-ResetPassword .form-row {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 12px !important;
}

/* 1.0.18.421a: osobna sekcja logo w nagłówku auth. */
.srm-customer-auth-root .srm-customer-auth-logo-section {
  flex: 0 1 280px !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

@media (max-width: 860px) {
  .srm-customer-auth-root .srm-customer-auth-logo-section {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* 1.0.18.422: tabela Najmy klienta — zaległości i koniec umowy. */
.srm-customer-app-overdue-total {
  display: inline-block;
  font-weight: 800;
  white-space: nowrap;
}

.srm-customer-app-overdue-empty {
  color: #64748b;
}

.srm-customer-app-overdue-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: .88em;
  line-height: 1.35;
}

.srm-customer-app-overdue-list li {
  margin: 3px 0;
}

.srm-customer-app-overdue-list strong {
  white-space: nowrap;
}

/* 1.0.18.424: saldo klienta — rozróżnienie zaległości i nadpłat przed terminem. */
.srm-customer-app-balance-total.is-overpayment,
.srm-customer-app-balance-value.is-overpayment {
  color: #15803d;
}

.srm-customer-app-balance-total.is-overdue,
.srm-customer-app-balance-value.is-overdue {
  color: #b91c1c;
}

/* 1.0.18.428: Nagłówki sekcji Panelu klienta w tym samym stylu co pulpit. */
.srm-customer-app-admin-section .srm-customer-app-section-hero {
  margin: 0 0 22px !important;
}

.srm-customer-app-section-hero .srm-dashboard-modern-hero__copy {
  min-width: 0;
}

.srm-customer-app-section-hero .srm-dashboard-modern-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.srm-customer-app-section-hero .srm-dashboard-modern-kicker::before {
  content: '';
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 6px 6px, #fb923c 0 5px, transparent 6px),
    radial-gradient(circle at 18px 6px, #fed7aa 0 5px, transparent 6px),
    radial-gradient(circle at 6px 18px, #ffedd5 0 5px, transparent 6px),
    radial-gradient(circle at 18px 18px, #fdba74 0 5px, transparent 6px);
}

.srm-customer-app-section-hero .srm-dashboard-modern-hero__meta > div {
  min-width: 210px;
}

@media (max-width: 782px) {
  .srm-customer-app-section-hero.srm-dashboard-modern-hero {
    grid-template-columns: 1fr !important;
    padding: 24px !important;
  }

  .srm-customer-app-section-hero .srm-dashboard-modern-hero__meta {
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .srm-customer-app-section-hero .srm-dashboard-modern-hero__meta > div {
    min-width: 0;
  }
}

/* 1.0.18.429 / 1.1.10: Panel klienta - szybka płatność online. CTA pod opisem, bez ściskania tekstu. */
.srm-customer-app-payment-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  margin: 22px 0;
  padding: 22px 24px;
  border: 1px solid rgba(249, 115, 22, 0.20);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 18%, rgba(249, 115, 22, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fff7ed 58%, #ffffff 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08), 0 2px 14px rgba(249, 115, 22, 0.10);
}

.srm-customer-app-payment-cta h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.srm-customer-app-payment-cta p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.55;
}

.srm-customer-app-payment-cta-button,
.srm-customer-app-payment-cta .button.srm-customer-app-payment-cta-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  width: min(100%, 560px);
  max-width: 100%;
  white-space: normal;
  text-align: center;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28) !important;
}

.srm-customer-app-quick-pay-button {
  min-height: 50px;
  padding-inline: 24px !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.25) !important;
}

@media (max-width: 782px) {
  .srm-customer-app-payment-cta {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .srm-customer-app-payment-cta-button,
  .srm-customer-app-payment-cta .button.srm-customer-app-payment-cta-button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* 1.0.18.432: Panel klienta - status dostępu z live System KD, bez zmiany układu sekcji. */
.srm-customer-app-access-status--active,
.srm-customer-app-admin-section .srm-text-success {
    color: #15803d !important;
}
.srm-customer-app-access-status--blocked,
.srm-customer-app-admin-section .srm-text-danger {
    color: #b91c1c !important;
}
.srm-customer-app-admin-section .srm-access-status-unknown {
    color: #92400e !important;
}


/* 1.0.18.435: Panel klienta - kafelek statusu dostępu jako przycisk odświeżający System KD. */
.srm-customer-app-access-status-form {
    border: 0;
    margin: 0;
    min-width: 0;
}
.srm-customer-app-access-status-button,
.srm-customer-app-access-status-form .srm-customer-app-access-status-button {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.15;
}
.srm-customer-app-access-status-button:hover,
.srm-customer-app-access-status-button:focus {
    text-decoration: underline;
    outline: none;
}
.srm-customer-app-access-status-button:focus-visible {
    outline: 2px solid rgba(249, 115, 22, 0.45);
    outline-offset: 4px;
    border-radius: 10px;
}
.srm-customer-app-access-status-hint {
    display: block;
    margin-top: 8px;
    max-width: 100%;
    line-height: 1.35;
}
@media (max-width: 782px) {
    .srm-customer-app-access-status-button,
    .srm-customer-app-access-status-hint {
        width: 100%;
    }
}


/* 1.0.18.437: Panel klienta - cały kafelek statusu dostępu jest przyciskiem, z tłem zależnym od statusu. */
.srm-customer-app-access-status-card,
.srm-customer-app-access-status-form.srm-dashboard-finance-metric {
    position: relative;
    display: block;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10), 0 1px 4px rgba(15, 23, 42, 0.08) !important;
}
.srm-customer-app-access-status-card.srm-customer-app-access-status--active {
    border-color: rgba(22, 163, 74, 0.72) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 55%, #ecfdf5 100%) !important;
    box-shadow: 0 16px 32px rgba(21, 128, 61, 0.12), 0 1px 5px rgba(22, 163, 74, 0.20) !important;
}
.srm-customer-app-access-status-card.srm-customer-app-access-status--blocked {
    border-color: rgba(220, 38, 38, 0.72) !important;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 55%, #fff1f2 100%) !important;
    box-shadow: 0 16px 32px rgba(185, 28, 28, 0.12), 0 1px 5px rgba(220, 38, 38, 0.20) !important;
}
.srm-customer-app-access-status-card.srm-access-status-unknown {
    border-color: rgba(245, 158, 11, 0.62) !important;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 58%, #fff7ed 100%) !important;
}
.srm-customer-app-access-status-card-button,
.srm-customer-app-access-status-form .srm-customer-app-access-status-card-button {
    appearance: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title icon"
        "value icon"
        "hint icon";
    align-items: center;
    column-gap: 16px;
    width: 100%;
    min-height: 100%;
    padding: 24px 28px !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    text-align: left;
    cursor: pointer;
    box-shadow: none !important;
    text-decoration: none !important;
}
.srm-customer-app-access-status-card-button:hover,
.srm-customer-app-access-status-card-button:focus {
    text-decoration: none !important;
    outline: none;
}
.srm-customer-app-access-status-card-button:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.42);
    outline-offset: -5px;
    border-radius: 18px;
}
.srm-customer-app-access-status-title {
    grid-area: title;
    margin: 0 0 4px !important;
    color: #475569 !important;
    font-size: clamp(18px, 1.5vw, 24px) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: -0.02em !important;
}
.srm-customer-app-access-status-value {
    grid-area: value;
    display: block;
    margin: 0 0 10px !important;
    font-size: clamp(24px, 2.1vw, 34px) !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    white-space: normal;
    overflow-wrap: anywhere;
}
.srm-customer-app-access-status-hint {
    grid-area: hint;
    display: block;
    margin: 0 !important;
    color: #64748b !important;
    font-size: clamp(14px, 1vw, 18px) !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
}
.srm-customer-app-access-status-refresh {
    grid-area: icon;
    align-self: center;
    justify-self: end;
    color: currentColor;
    font-size: clamp(34px, 3vw, 48px);
    line-height: 1;
    opacity: 0.95;
}
.srm-customer-app-access-status-card.srm-customer-app-access-status--active .srm-customer-app-access-status-refresh,
.srm-customer-app-access-status-card.srm-customer-app-access-status--active .srm-customer-app-access-status-value {
    color: #15803d !important;
}
.srm-customer-app-access-status-card.srm-customer-app-access-status--blocked .srm-customer-app-access-status-refresh,
.srm-customer-app-access-status-card.srm-customer-app-access-status--blocked .srm-customer-app-access-status-value {
    color: #b91c1c !important;
}
.srm-customer-app-access-status-card.srm-access-status-unknown .srm-customer-app-access-status-refresh,
.srm-customer-app-access-status-card.srm-access-status-unknown .srm-customer-app-access-status-value {
    color: #92400e !important;
}
.srm-customer-app-access-status-card:hover {
    transform: translateY(-1px);
    transition: transform 140ms ease, box-shadow 140ms ease;
}
@media (max-width: 782px) {
    .srm-customer-app-access-status-card-button,
    .srm-customer-app-access-status-form .srm-customer-app-access-status-card-button {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 20px !important;
        column-gap: 10px;
    }
    .srm-customer-app-access-status-title,
    .srm-customer-app-access-status-value,
    .srm-customer-app-access-status-hint {
        max-width: 100%;
        min-width: 0;
    }
    .srm-customer-app-access-status-refresh {
        font-size: 34px;
    }
}


/* 1.0.18.478: optional hiding of static informational hint boxes, controlled by Ustawienia -> Operatorzy systemu -> Włącz/Wyłącz funkcje aplikacji. */
body.srm-hide-info-notices .srm-app-shell .notice.notice-info:not(.is-dismissible),
body.srm-hide-info-notices .srm-settings-embedded-page .notice.notice-info:not(.is-dismissible),
body.srm-hide-info-notices .srm-app-shell .notice.inline.notice-info:not(.is-dismissible),
body.srm-hide-info-notices .srm-bank-notice:not(.is-dismissible),
body.srm-hide-info-notices .srm-bank-notices .notice.srm-bank-notice:not(.is-dismissible),
body.srm-hide-info-notices .srm-email-notifications-main-hint {
    display: none !important;
}


/* 1.0.18.482: customer table column correction after 1.0.18.481.
   Keep client column compact, reduce company width, and reserve room for 2 action buttons per row. */
@media (min-width: 783px) {
  .srm-app-shell table.srm-clients-table,
  .srm-settings-embedded-page table.srm-clients-table {
    table-layout: fixed !important;
    width: 100% !important;
  }

  .srm-clients-table th,
  .srm-clients-table td {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  .srm-clients-table th:nth-child(1),
  .srm-clients-table td:nth-child(1) {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
  }

  .srm-clients-table th:nth-child(2),
  .srm-clients-table td:nth-child(2) {
    width: 190px !important;
    min-width: 160px !important;
    max-width: 210px !important;
  }

  .srm-clients-table th:nth-child(3),
  .srm-clients-table td:nth-child(3) {
    width: 200px !important;
    min-width: 150px !important;
    max-width: 220px !important;
  }

  .srm-clients-table th:nth-child(4),
  .srm-clients-table td:nth-child(4) {
    width: 92px !important;
    min-width: 84px !important;
    max-width: 96px !important;
    text-align: left !important;
  }

  .srm-clients-table th:nth-child(5),
  .srm-clients-table td:nth-child(5) {
    width: 155px !important;
    min-width: 140px !important;
    max-width: 165px !important;
  }

  .srm-clients-table th:nth-child(6),
  .srm-clients-table td:nth-child(6) {
    width: 122px !important;
    min-width: 112px !important;
    max-width: 132px !important;
  }

  .srm-clients-table th:nth-child(7),
  .srm-clients-table td:nth-child(7),
  .srm-clients-table td:last-child,
  .srm-clients-table th:last-child {
    width: 380px !important;
    min-width: 360px !important;
    max-width: 400px !important;
  }

  .srm-clients-table th:nth-child(4),
  .srm-clients-table th:nth-child(5),
  .srm-clients-table th:nth-child(6),
  .srm-clients-table th:nth-child(7) {
    white-space: normal !important;
    line-height: 1.15 !important;
  }

  .srm-clients-table .srm-client-row-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .srm-clients-table .srm-client-row-actions .button,
  .srm-clients-table .srm-client-row-actions button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: center !important;
  }
}


/* 1.0.18.491: customer lists – surname-first layout, left search, tighter columns. */
.srm-table-search-wrap {
  justify-content: flex-start;
  text-align: left;
}
.srm-table-search-wrap label {
  justify-content: flex-start;
}

@media (min-width: 783px) {
  .srm-app-shell table.srm-clients-table,
  .srm-settings-embedded-page table.srm-clients-table {
    table-layout: fixed;
    width: 100%;
  }

  .srm-clients-table th,
  .srm-clients-table td {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }

  .srm-clients-table th:nth-child(1),
  .srm-clients-table td:nth-child(1) {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
  }

  .srm-clients-table th:nth-child(2),
  .srm-clients-table td:nth-child(2) {
    width: 150px !important;
    min-width: 130px !important;
    max-width: 170px !important;
  }

  .srm-clients-table th:nth-child(3),
  .srm-clients-table td:nth-child(3) {
    width: 95px !important;
    min-width: 85px !important;
    max-width: 110px !important;
  }

  .srm-clients-table th:nth-child(4),
  .srm-clients-table td:nth-child(4) {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
  }

  .srm-clients-table th:nth-child(5),
  .srm-clients-table td:nth-child(5) {
    width: 104px !important;
    min-width: 96px !important;
    max-width: 112px !important;
  }

  .srm-clients-table th:nth-child(6),
  .srm-clients-table td:nth-child(6) {
    width: 88px !important;
    min-width: 84px !important;
    max-width: 92px !important;
  }

  .srm-clients-table th:nth-child(4),
  .srm-clients-table th:nth-child(5),
  .srm-clients-table th:nth-child(6) {
    white-space: normal !important;
    line-height: 1.15;
  }

  .srm-clients-table th:nth-child(7),
  .srm-clients-table td:nth-child(7) {
    width: 330px !important;
    min-width: 310px !important;
  }

  .srm-clients-table .srm-client-row-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    align-items: stretch;
    width: 100%;
  }

  .srm-clients-table .srm-client-row-actions .button,
  .srm-clients-table .srm-client-row-actions button {
    width: 100%;
    min-width: 0;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
    padding: 5px 7px;
  }
}

/* 1.0.18.502 - customer payment history allocation details */
.srm-payment-history-allocation-details{padding:10px 12px;margin:0 0 8px;border-left:4px solid #fb923c;background:#fff7ed;border-radius:10px;color:#334155;font-size:13px;line-height:1.45}
.srm-payment-history-allocation-details ul{margin:8px 0 0 0;padding:0;list-style:none;display:grid;gap:6px}
.srm-payment-history-allocation-details li{display:flex;flex-wrap:wrap;gap:8px 18px;padding:6px 8px;background:#fff;border-radius:8px;border:1px solid rgba(251,146,60,.25)}
.srm-payment-history-allocation-details-row td{padding-top:0!important;background:#fffaf3!important}

/* Customer panel contracts / agreements documents */
.srm-customer-app-documents-section {
  display: grid;
  gap: 18px;
}

.srm-customer-app-documents-section h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.srm-customer-app-contracts-note {
  margin: 0 0 10px;
}

.srm-customer-app-contract-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.srm-customer-app-contract-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 18px;
  background: #fffaf4;
  text-decoration: none;
  color: #1f2937;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.srm-customer-app-contract-card:hover,
.srm-customer-app-contract-card:focus {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.14);
  color: #111827;
}

.srm-customer-app-contract-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 58px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6a00, #fb923c);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.srm-customer-app-contract-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.srm-customer-app-contract-content strong,
.srm-customer-app-contract-content span,
.srm-customer-app-contract-content small {
  overflow-wrap: anywhere;
}

.srm-customer-app-contract-content strong {
  font-size: 15px;
  color: #111827;
}

.srm-customer-app-contract-content span,
.srm-customer-app-contract-content small {
  color: #6b7280;
}

.srm-customer-app-contract-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #c2410c;
  font-weight: 800;
  white-space: nowrap;
  background: #fff;
}

@media (max-width: 700px) {
  .srm-customer-app-contract-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .srm-customer-app-contract-download {
    grid-column: 1 / -1;
  }
}

/* 1.0.18.519: zdalne otwieranie przejść w panelu klienta. */
.srm-customer-remote-open-panel {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #fffaf4 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.srm-customer-remote-open-panel__head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.srm-customer-remote-open-panel__head h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  color: #111827;
}

.srm-customer-remote-open-panel__head p {
  max-width: 820px;
  margin: 0;
  color: #5f6b7a;
}

.srm-customer-remote-open-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.srm-customer-remote-open-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.16);
}

.srm-customer-remote-open-status {
  margin: 14px 0 18px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid rgba(249, 115, 22, 0.2);
  background: rgba(255, 255, 255, 0.82);
  color: #475569;
  font-weight: 700;
}

.srm-customer-remote-open-status p {
  margin: 0 0 6px;
}

.srm-customer-remote-open-status p:last-child {
  margin-bottom: 0;
}

.srm-customer-remote-open-status--working {
  border-color: rgba(249, 115, 22, 0.36);
  background: #fff7ed;
  color: #9a3412;
}

.srm-customer-remote-open-status--success {
  border-color: rgba(34, 197, 94, 0.32);
  background: #f0fdf4;
  color: #166534;
}

.srm-customer-remote-open-status--error {
  border-color: rgba(239, 68, 68, 0.28);
  background: #fef2f2;
  color: #991b1b;
}

.srm-customer-remote-open-status--notice {
  border-color: rgba(245, 158, 11, 0.32);
  background: #fffbeb;
  color: #92400e;
}

.srm-customer-remote-door-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.srm-customer-remote-door-button {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 20px;
  background: #ffffff;
  color: #111827;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.srm-customer-remote-door-button:hover,
.srm-customer-remote-door-button:focus {
  border-color: rgba(249, 115, 22, 0.68);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.srm-customer-remote-door-button:disabled {
  opacity: .66;
  cursor: wait;
  transform: none;
}

.srm-customer-remote-door-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6a00, #fb923c);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.srm-customer-remote-door-button__content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.srm-customer-remote-door-button__content strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.srm-customer-remote-door-button__content small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .srm-customer-remote-open-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .srm-customer-remote-door-grid {
    grid-template-columns: 1fr;
  }

  .srm-customer-remote-door-button {
    min-height: 84px;
    padding: 14px;
  }
}

/* 1.0.18.521: graficzne ustawienia napisów wewnątrz BOX-ów i dopasowanie renderu do stylu aplikacji. */
.srm-map-label-settings,
.srm-map-plan-settings,
.srm-map-snap-settings,
.srm-map-shape-editor {
  border: 1px solid rgba(124, 45, 18, 0.14);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,237,0.55));
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.srm-map-label-settings legend,
.srm-map-plan-settings legend,
.srm-map-snap-settings legend,
.srm-map-shape-editor h4,
.srm-map-color-settings legend {
  color: #7c2d12;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.srm-map-label-settings__grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) repeat(2, minmax(240px, 1fr));
  gap: 14px;
  align-items: start;
}

.srm-map-label-settings__section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(124, 45, 18, 0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
}

.srm-map-label-settings__section > strong {
  color: #1f2937;
  font-size: 14px;
}

.srm-map-label-settings__section label {
  display: grid;
  gap: 6px;
  margin: 0;
  font-weight: 650;
}

.srm-map-label-settings__section label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.srm-map-label-settings input[type="color"] {
  width: 100%;
  min-height: 38px;
  padding: 2px;
  border-radius: 10px;
}

.srm-map-label-settings input[type="range"] {
  width: 100%;
}

.srm-map-builder__canvas-wrap,
.srm-map-builder__sidebar,
.srm-map-editor-meta,
.srm-storage-map-frontend,
.srm-storage-map-details {
  border-radius: 18px;
  border-color: rgba(124, 45, 18, 0.13);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.srm-storage-map-stage {
  border-radius: 18px;
  border-color: rgba(124, 45, 18, 0.18);
  background-color: #fff7ed;
}

.srm-storage-map-unit {
  padding: 6px;
}

.srm-storage-map-unit__content {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: var(--srm-plan-label-justify, center);
  justify-content: var(--srm-plan-label-align, center);
  gap: 2px;
  padding: 6px;
  box-sizing: border-box;
  transform: translate(var(--srm-plan-label-offset-x, 0px), var(--srm-plan-label-offset-y, 0px));
  pointer-events: none;
  text-align: var(--srm-plan-label-text-align, center);
  color: var(--srm-plan-label-color, #111827);
  font-family: var(--srm-plan-label-font-family, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  line-height: 1.12;
  overflow: hidden;
}

.srm-storage-map-unit__content .srm-storage-map-unit__label,
.srm-storage-map-unit__content .srm-storage-map-unit__meta {
  position: static;
  z-index: auto;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit !important;
  text-shadow: var(--srm-plan-label-shadow, 0 1px 2px rgba(255,255,255,.95));
}

.srm-storage-map-unit__content .srm-storage-map-unit__label {
  font-size: var(--srm-plan-label-font-size, 14px);
  font-weight: var(--srm-plan-label-font-weight, 700);
  font-style: var(--srm-plan-label-font-style, normal);
}

.srm-storage-map-unit__content .srm-storage-map-unit__meta {
  font-size: max(10px, calc(var(--srm-plan-label-font-size, 14px) * .72));
  font-weight: 650;
  opacity: .9;
}

.srm-storage-map-unit.has-custom-shape .srm-storage-map-unit__content {
  margin: 0;
  inset: 0;
}

.srm-map-color-settings {
  border-color: rgba(124, 45, 18, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,237,0.50));
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

@media (max-width: 1100px) {
  .srm-map-label-settings__grid {
    grid-template-columns: 1fr;
  }
}
.srm-storage-map-unit__content .srm-storage-map-unit__label,
.srm-storage-map-unit__content .srm-storage-map-unit__meta {
  margin: 0 !important;
}

/* 1.0.18.559: status dostępu klienta z live odczytu PersonNonGrata w System KD. */
.srm-customer-app-access-status-card.srm-customer-app-access-status--unknown {
    border-color: rgba(245, 158, 11, 0.62) !important;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 58%, #fff7ed 100%) !important;
}
.srm-customer-app-access-status-card:not(.srm-customer-app-access-status--blocked) .srm-customer-app-access-status-refresh {
    display: none;
}
.srm-customer-app-access-status-refresh[hidden] {
    display: none !important;
}
.srm-customer-app-access-status-card-button.is-working {
    opacity: 0.72;
    cursor: progress;
}
.srm-customer-app-access-status-card.srm-customer-app-access-status--blocked .srm-customer-app-access-status-hint {
    color: #991b1b !important;
    font-weight: 700 !important;
}
.srm-customer-app-access-status-card.srm-customer-app-access-status--active .srm-customer-app-access-status-hint {
    color: #166534 !important;
}

/* 1.0.18.560: panel klienta / Dostęp - prosty status, ikony przejść i komunikaty w popupie. */
.srm-customer-app-access-status-card,
.srm-customer-app-access-status-form.srm-dashboard-finance-metric {
  border: 0 !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12) !important;
}

.srm-customer-app-access-status-card.srm-customer-app-access-status--active {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  border-color: transparent !important;
}

.srm-customer-app-access-status-card.srm-customer-app-access-status--blocked {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border-color: transparent !important;
}

.srm-customer-app-access-status-card.srm-customer-app-access-status--unknown,
.srm-customer-app-access-status-card.srm-access-status-unknown {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border-color: transparent !important;
}

.srm-customer-app-access-status-card-button,
.srm-customer-app-access-status-form .srm-customer-app-access-status-card-button {
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "value icon"
    "hint icon" !important;
  min-height: 100% !important;
  padding: 22px 24px !important;
  color: #fff !important;
}

.srm-customer-app-access-status-title {
  display: none !important;
}

.srm-customer-app-access-status-value,
.srm-customer-app-access-status-card.srm-customer-app-access-status--active .srm-customer-app-access-status-value,
.srm-customer-app-access-status-card.srm-customer-app-access-status--blocked .srm-customer-app-access-status-value,
.srm-customer-app-access-status-card.srm-access-status-unknown .srm-customer-app-access-status-value {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(26px, 3vw, 42px) !important;
  letter-spacing: -0.04em !important;
}

.srm-customer-app-access-status-hint,
.srm-customer-app-access-status-card.srm-customer-app-access-status--blocked .srm-customer-app-access-status-hint,
.srm-customer-app-access-status-card.srm-customer-app-access-status--active .srm-customer-app-access-status-hint {
  margin-top: 7px !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: clamp(14px, 1.1vw, 17px) !important;
  font-weight: 700 !important;
}

.srm-customer-app-access-status-hint:empty {
  display: none !important;
}

.srm-customer-app-access-status-refresh,
.srm-customer-app-access-status-card.srm-customer-app-access-status--active .srm-customer-app-access-status-refresh,
.srm-customer-app-access-status-card.srm-customer-app-access-status--blocked .srm-customer-app-access-status-refresh,
.srm-customer-app-access-status-card.srm-access-status-unknown .srm-customer-app-access-status-refresh {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
  font-size: 34px;
  line-height: 1;
}

.srm-customer-app-access-status-refresh[hidden] {
  display: inline-flex !important;
}

.srm-customer-remote-open-panel {
  margin-top: 22px !important;
  padding: 22px !important;
  border: 1px solid rgba(249, 115, 22, 0.14) !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
}

.srm-customer-remote-open-panel__head {
  margin-bottom: 16px !important;
}

.srm-customer-remote-open-panel__head h3 {
  margin: 0 !important;
  color: #111827 !important;
  font-size: clamp(22px, 2.4vw, 30px) !important;
}

.srm-customer-remote-open-panel__head p,
.srm-customer-remote-open-meta,
.srm-customer-remote-open-status {
  display: none !important;
}

.srm-customer-remote-door-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)) !important;
  gap: 14px !important;
}

.srm-customer-remote-door-button {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  gap: 9px !important;
  min-height: 126px !important;
  padding: 16px 12px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(249, 115, 22, 0.28) !important;
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%) !important;
  text-align: center !important;
}

.srm-customer-remote-door-button:hover,
.srm-customer-remote-door-button:focus {
  border-color: rgba(249, 115, 22, 0.72) !important;
  box-shadow: 0 20px 34px rgba(249, 115, 22, 0.16) !important;
}

.srm-customer-remote-door-button__icon {
  width: 58px !important;
  height: 58px !important;
  border-radius: 20px !important;
  font-size: 30px !important;
}

.srm-customer-remote-door-button__content {
  display: block !important;
  min-width: 0 !important;
}

.srm-customer-remote-door-button__content strong {
  display: block !important;
  color: #111827 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}

.srm-customer-remote-open-empty {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.srm-customer-remote-open-modal[hidden] {
  display: none !important;
}

.srm-customer-remote-open-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.srm-customer-remote-open-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.52);
  cursor: pointer;
}

.srm-customer-remote-open-modal__dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 26px;
  border-radius: 26px;
  background: #fff;
  color: #111827;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
  text-align: center;
}

.srm-customer-remote-open-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 36px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
}

.srm-customer-remote-open-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: 12px auto 16px;
  border-radius: 22px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 34px;
  font-weight: 900;
}

.srm-customer-remote-open-modal__dialog h4 {
  margin: 0 0 10px;
  color: #111827;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.12;
}

.srm-customer-remote-open-modal__dialog p {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.srm-customer-remote-open-modal--success .srm-customer-remote-open-modal__icon {
  background: #dcfce7;
  color: #15803d;
}

.srm-customer-remote-open-modal--error .srm-customer-remote-open-modal__icon {
  background: #fee2e2;
  color: #b91c1c;
}

.srm-customer-remote-open-modal--working .srm-customer-remote-open-modal__icon {
  background: #ffedd5;
  color: #c2410c;
}

@media (max-width: 700px) {
  .srm-customer-remote-open-panel {
    padding: 16px !important;
  }

  .srm-customer-remote-door-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .srm-customer-remote-door-button {
    min-height: 112px !important;
  }

  .srm-customer-remote-open-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .srm-customer-remote-open-modal__dialog {
    border-radius: 24px;
  }
}

/* 1.0.18.562: popup zdalnego otwierania pozostawia jako tło panel klienta, a nie stronę pod aplikacją. */
.srm-customer-app-shell {
  position: relative;
}

.srm-customer-remote-open-modal__backdrop {
  background: rgba(248, 250, 252, 0.34) !important;
  -webkit-backdrop-filter: blur(6px) saturate(1.08);
  backdrop-filter: blur(6px) saturate(1.08);
}

.srm-customer-remote-open-modal--inside-app {
  position: absolute !important;
  inset: 0 !important;
  z-index: 80 !important;
  padding: clamp(14px, 2.2vw, 28px) !important;
  overflow: hidden;
}

.srm-customer-remote-open-modal--inside-app .srm-customer-remote-open-modal__backdrop {
  background: rgba(248, 250, 252, 0.30) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.06);
  backdrop-filter: blur(8px) saturate(1.06);
}

.srm-customer-remote-open-modal__dialog {
  z-index: 2;
}

.srm-customer-app-shell--remote-open-modal {
  isolation: isolate;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .srm-customer-remote-open-modal__backdrop,
  .srm-customer-remote-open-modal--inside-app .srm-customer-remote-open-modal__backdrop {
    background: rgba(248, 250, 252, 0.82) !important;
  }
}

@media (max-width: 700px) {
  .srm-customer-remote-open-modal--inside-app {
    padding: 12px !important;
  }
}

/* 1.0.18.563: popup ładowania płatności na rozmytym tle aplikacji klienta. */
.srm-customer-app-loading-popup[hidden] {
  display: none !important;
}

.srm-customer-app-loading-popup {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.4vw, 32px);
  overflow: hidden;
  /* 1.1.3: popup ładowania nie może przechwycić kliknięcia/tapnięcia,
     bo na smartfonie mógł przykryć link zanim przeglądarka wykonała nawigację. */
  pointer-events: none;
}

.srm-customer-app-loading-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.30);
  -webkit-backdrop-filter: blur(8px) saturate(1.06);
  backdrop-filter: blur(8px) saturate(1.06);
}

.srm-customer-app-loading-popup__dialog {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100vw - 32px));
  border: 1px solid rgba(251, 146, 60, 0.26);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.20);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  color: #0f172a;
}

.srm-customer-app-loading-popup__dialog strong {
  display: block;
  margin: 14px 0 6px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.16;
}

.srm-customer-app-loading-popup__dialog span:not(.srm-customer-app-loading-popup__spinner) {
  display: block;
  color: #475569;
  font-size: 16px;
  font-weight: 700;
}

.srm-customer-app-loading-popup__spinner {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 5px solid rgba(251, 146, 60, 0.24);
  border-top-color: #f97316;
  animation: srm-customer-app-loading-spin 0.82s linear infinite;
}

.srm-customer-app-shell--loading-popup {
  isolation: isolate;
}

@keyframes srm-customer-app-loading-spin {
  to { transform: rotate(360deg); }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .srm-customer-app-loading-popup__backdrop {
    background: rgba(248, 250, 252, 0.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  .srm-customer-app-loading-popup__spinner {
    animation: none;
  }
}

@media (max-width: 700px) {
  .srm-customer-app-loading-popup {
    align-items: flex-end;
    padding: 12px;
  }

  .srm-customer-app-loading-popup__dialog {
    width: 100%;
    border-radius: 24px;
  }
}

/* 1.0.18.565: lepsze ikony bram w panelu klienta i podpisy mieszczące się w kafelkach. */
.srm-customer-app-shell .srm-customer-remote-door-grid {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)) !important;
  align-items: stretch !important;
}

.srm-customer-app-shell .srm-customer-remote-door-button {
  overflow: hidden !important;
  min-width: 0 !important;
  min-height: 142px !important;
  align-content: start !important;
  justify-content: center !important;
  gap: 11px !important;
  padding: 18px 10px 14px !important;
}

.srm-customer-app-shell .srm-customer-remote-door-button__icon {
  position: relative !important;
  width: 66px !important;
  height: 66px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #ff6a00 0%, #fb923c 58%, #f97316 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28), 0 12px 22px rgba(249, 115, 22, 0.24) !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.srm-customer-app-shell .srm-customer-remote-door-button__content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.srm-customer-app-shell .srm-customer-remote-door-button__content strong {
  display: -webkit-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  color: #111827 !important;
  font-size: clamp(11px, 3.05vw, 13px) !important;
  line-height: 1.17 !important;
  font-weight: 900 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  text-wrap: balance;
}

.srm-customer-app-shell .srm-customer-remote-door-visual,
.srm-customer-app-shell .srm-customer-remote-door-visual * {
  box-sizing: border-box;
}

.srm-customer-app-shell .srm-customer-remote-door-visual {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 42px;
  transform: translate(-50%, -50%);
}

.srm-customer-app-shell .srm-customer-remote-door-visual__gate-post {
  position: absolute;
  bottom: 8px;
  width: 4px;
  height: 29px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16);
}

.srm-customer-app-shell .srm-customer-remote-door-visual__gate-post--left { left: 4px; }
.srm-customer-app-shell .srm-customer-remote-door-visual__gate-post--right { right: 4px; }

.srm-customer-app-shell .srm-customer-remote-door-visual__sliding-gate {
  position: absolute;
  left: 10px;
  bottom: 12px;
  width: 28px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.94) 0 2px, rgba(255,255,255,0.16) 2px 7px);
  transform-origin: left center;
  transition: transform .22s ease;
}

.srm-customer-app-shell .srm-customer-remote-door-visual__gate-rail {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
}

.srm-customer-app-shell .srm-customer-remote-door-visual__garage-frame {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 30px;
  height: 32px;
  border: 4px solid #ffffff;
  border-bottom-width: 3px;
  border-radius: 6px 6px 3px 3px;
}

.srm-customer-app-shell .srm-customer-remote-door-visual__garage-panel {
  position: absolute;
  left: 12px;
  top: 9px;
  width: 22px;
  height: 22px;
  border: 2px solid #ffffff;
  border-radius: 3px;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.18) 0 4px, rgba(255,255,255,0.96) 4px 6px);
  transition: transform .22s ease, height .22s ease;
  transform-origin: top center;
}

.srm-customer-app-shell .srm-customer-remote-door-visual__garage-floor {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
}

.srm-customer-app-shell .srm-customer-remote-door-visual__door-leaf {
  position: absolute;
  left: 13px;
  top: 5px;
  width: 24px;
  height: 32px;
  border: 3px solid #ffffff;
  border-radius: 5px;
  background: rgba(255,255,255,0.12);
  transition: transform .22s ease;
  transform-origin: left center;
}

.srm-customer-app-shell .srm-customer-remote-door-visual__door-knob {
  position: absolute;
  right: 12px;
  top: 21px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ffffff;
}

.srm-customer-app-shell .srm-customer-remote-door-button--entry-gate:hover .srm-customer-remote-door-visual__sliding-gate,
.srm-customer-app-shell .srm-customer-remote-door-button--entry-gate:focus .srm-customer-remote-door-visual__sliding-gate {
  transform: translateX(6px);
}

.srm-customer-app-shell .srm-customer-remote-door-button--storage-gate:hover .srm-customer-remote-door-visual__garage-panel,
.srm-customer-app-shell .srm-customer-remote-door-button--storage-gate:focus .srm-customer-remote-door-visual__garage-panel {
  transform: translateY(-6px) scaleY(.72);
}

.srm-customer-app-shell .srm-customer-remote-door-button--door:hover .srm-customer-remote-door-visual__door-leaf,
.srm-customer-app-shell .srm-customer-remote-door-button--door:focus .srm-customer-remote-door-visual__door-leaf {
  transform: perspective(70px) rotateY(-20deg);
}

.srm-customer-app-shell .srm-customer-remote-door-button.is-working .srm-customer-remote-door-button__icon {
  animation: srm-customer-door-icon-pulse 1s ease-in-out infinite;
}

.srm-customer-app-shell .srm-customer-remote-door-button--entry-gate.is-working .srm-customer-remote-door-visual__sliding-gate {
  animation: srm-customer-sliding-gate-open .9s ease-in-out infinite alternate;
}

.srm-customer-app-shell .srm-customer-remote-door-button--storage-gate.is-working .srm-customer-remote-door-visual__garage-panel {
  animation: srm-customer-garage-gate-open .9s ease-in-out infinite alternate;
}

@keyframes srm-customer-door-icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes srm-customer-sliding-gate-open {
  from { transform: translateX(0); }
  to { transform: translateX(8px); }
}

@keyframes srm-customer-garage-gate-open {
  from { transform: translateY(0) scaleY(1); }
  to { transform: translateY(-7px) scaleY(.68); }
}

@media (max-width: 700px) {
  .srm-customer-app-shell .srm-customer-remote-door-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .srm-customer-app-shell .srm-customer-remote-door-button {
    min-height: 138px !important;
    padding: 16px 8px 12px !important;
  }

  .srm-customer-app-shell .srm-customer-remote-door-button__icon {
    width: 62px !important;
    height: 62px !important;
  }
}

@media (max-width: 360px) {
  .srm-customer-app-shell .srm-customer-remote-door-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .srm-customer-app-shell .srm-customer-remote-door-button.is-working .srm-customer-remote-door-button__icon,
  .srm-customer-app-shell .srm-customer-remote-door-button--entry-gate.is-working .srm-customer-remote-door-visual__sliding-gate,
  .srm-customer-app-shell .srm-customer-remote-door-button--storage-gate.is-working .srm-customer-remote-door-visual__garage-panel {
    animation: none !important;
  }

  .srm-customer-app-shell .srm-customer-remote-door-visual__sliding-gate,
  .srm-customer-app-shell .srm-customer-remote-door-visual__garage-panel,
  .srm-customer-app-shell .srm-customer-remote-door-visual__door-leaf {
    transition: none !important;
  }
}

/* 1.0.18.566: poprawka ikon zdalnego otwierania — bez pomarańczowych plam, czytelne SVG i podpisy bez wychodzenia poza kafelek. */
.srm-customer-remote-door-grid,
.srm-customer-app-shell .srm-customer-remote-door-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.srm-customer-remote-door-button,
.srm-customer-app-shell .srm-customer-remote-door-button {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 152px !important;
  padding: 14px 8px 12px !important;
  gap: 10px !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  text-align: center !important;
}

.srm-customer-remote-door-button__icon,
.srm-customer-app-shell .srm-customer-remote-door-button__icon {
  box-sizing: border-box !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 82px !important;
  height: 68px !important;
  padding: 3px !important;
  border: 1px solid rgba(249, 115, 22, 0.34) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%) !important;
  color: #c2410c !important;
  font-size: 28px !important;
  line-height: 1 !important;
  overflow: visible !important;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.9) !important;
}

.srm-customer-remote-door-svg,
.srm-customer-app-shell .srm-customer-remote-door-svg {
  display: block !important;
  width: 74px !important;
  height: 58px !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.srm-customer-remote-door-svg *,
.srm-customer-app-shell .srm-customer-remote-door-svg * {
  box-sizing: border-box;
  vector-effect: non-scaling-stroke;
}

.srm-customer-remote-door-button__content,
.srm-customer-app-shell .srm-customer-remote-door-button__content {
  box-sizing: border-box !important;
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}

.srm-customer-remote-door-button__content strong,
.srm-customer-app-shell .srm-customer-remote-door-button__content strong {
  box-sizing: border-box !important;
  display: -webkit-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  color: #0f172a !important;
  font-size: clamp(10px, 2.7vw, 12px) !important;
  line-height: 1.12 !important;
  font-weight: 900 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
}

.srm-customer-remote-door-button:hover .srm-customer-remote-door-svg__slide-leaf,
.srm-customer-remote-door-button:focus .srm-customer-remote-door-svg__slide-leaf,
.srm-customer-app-shell .srm-customer-remote-door-button:hover .srm-customer-remote-door-svg__slide-leaf,
.srm-customer-app-shell .srm-customer-remote-door-button:focus .srm-customer-remote-door-svg__slide-leaf {
  transform: translateX(8px);
}

.srm-customer-remote-door-button:hover .srm-customer-remote-door-svg__garage-door,
.srm-customer-remote-door-button:focus .srm-customer-remote-door-svg__garage-door,
.srm-customer-app-shell .srm-customer-remote-door-button:hover .srm-customer-remote-door-svg__garage-door,
.srm-customer-app-shell .srm-customer-remote-door-button:focus .srm-customer-remote-door-svg__garage-door {
  transform: translateY(-7px) scaleY(.72);
}

.srm-customer-remote-door-button:hover .srm-customer-remote-door-svg__door-leaf,
.srm-customer-remote-door-button:focus .srm-customer-remote-door-svg__door-leaf,
.srm-customer-app-shell .srm-customer-remote-door-button:hover .srm-customer-remote-door-svg__door-leaf,
.srm-customer-app-shell .srm-customer-remote-door-button:focus .srm-customer-remote-door-svg__door-leaf {
  transform: translateX(-3px) skewY(-4deg);
}

.srm-customer-remote-door-svg__slide-leaf,
.srm-customer-remote-door-svg__garage-door,
.srm-customer-remote-door-svg__door-leaf {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .2s ease;
}

.srm-customer-remote-door-button.is-working .srm-customer-remote-door-button__icon,
.srm-customer-app-shell .srm-customer-remote-door-button.is-working .srm-customer-remote-door-button__icon {
  animation: srm-customer-door-card-working .9s ease-in-out infinite alternate !important;
}

.srm-customer-remote-door-button--entry-gate.is-working .srm-customer-remote-door-svg__slide-leaf,
.srm-customer-app-shell .srm-customer-remote-door-button--entry-gate.is-working .srm-customer-remote-door-svg__slide-leaf {
  animation: srm-customer-svg-sliding-gate-working .8s ease-in-out infinite alternate !important;
}

.srm-customer-remote-door-button--storage-gate.is-working .srm-customer-remote-door-svg__garage-door,
.srm-customer-app-shell .srm-customer-remote-door-button--storage-gate.is-working .srm-customer-remote-door-svg__garage-door {
  animation: srm-customer-svg-garage-gate-working .8s ease-in-out infinite alternate !important;
}

@keyframes srm-customer-door-card-working {
  from { transform: scale(1); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07); }
  to { transform: scale(1.035); box-shadow: 0 14px 28px rgba(249, 115, 22, 0.18); }
}

@keyframes srm-customer-svg-sliding-gate-working {
  from { transform: translateX(0); }
  to { transform: translateX(12px); }
}

@keyframes srm-customer-svg-garage-gate-working {
  from { transform: translateY(0) scaleY(1); }
  to { transform: translateY(-9px) scaleY(.64); }
}

@media (max-width: 430px) {
  .srm-customer-remote-door-grid,
  .srm-customer-app-shell .srm-customer-remote-door-grid {
    gap: 10px !important;
  }

  .srm-customer-remote-door-button,
  .srm-customer-app-shell .srm-customer-remote-door-button {
    min-height: 150px !important;
    padding: 13px 6px 11px !important;
  }

  .srm-customer-remote-door-button__icon,
  .srm-customer-app-shell .srm-customer-remote-door-button__icon {
    width: 76px !important;
    height: 64px !important;
  }

  .srm-customer-remote-door-svg,
  .srm-customer-app-shell .srm-customer-remote-door-svg {
    width: 68px !important;
    height: 54px !important;
  }

  .srm-customer-remote-door-button__content strong,
  .srm-customer-app-shell .srm-customer-remote-door-button__content strong {
    font-size: clamp(9px, 2.6vw, 11px) !important;
    line-height: 1.08 !important;
  }
}

@media (max-width: 330px) {
  .srm-customer-remote-door-grid,
  .srm-customer-app-shell .srm-customer-remote-door-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .srm-customer-remote-door-button.is-working .srm-customer-remote-door-button__icon,
  .srm-customer-app-shell .srm-customer-remote-door-button.is-working .srm-customer-remote-door-button__icon,
  .srm-customer-remote-door-button--entry-gate.is-working .srm-customer-remote-door-svg__slide-leaf,
  .srm-customer-app-shell .srm-customer-remote-door-button--entry-gate.is-working .srm-customer-remote-door-svg__slide-leaf,
  .srm-customer-remote-door-button--storage-gate.is-working .srm-customer-remote-door-svg__garage-door,
  .srm-customer-app-shell .srm-customer-remote-door-button--storage-gate.is-working .srm-customer-remote-door-svg__garage-door {
    animation: none !important;
  }
}


/* 1.0.18.567: wariant 1 — pełnoekranowy panel klienta w dostępnym oknie przeglądarki na smartfonie. */
@media (max-width: 782px) {
  html.srm-customer-fullscreen-html,
  html:has(body.srm-customer-app-page),
  html:has(.srm-customer-app-account--admin-shell) {
    width: 100% !important;
    min-width: 100% !important;
    height: var(--srm-customer-viewport-height, 100dvh) !important;
    min-height: var(--srm-customer-viewport-height, 100dvh) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    background: #f8fafc !important;
  }

  body.srm-customer-app-page,
  body.srm-customer-fullscreen-body,
  body.srm-customer-standalone-body,
  body:has(.srm-customer-app-account--admin-shell) {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: var(--srm-customer-viewport-height, 100dvh) !important;
    min-height: var(--srm-customer-viewport-height, 100dvh) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    background: #f8fafc !important;
    -webkit-text-size-adjust: 100%;
  }

  body.srm-customer-app-page #page,
  body.srm-customer-app-page .site,
  body.srm-customer-app-page .wp-site-blocks,
  body.srm-customer-app-page .site-content,
  body.srm-customer-app-page .content-area,
  body.srm-customer-app-page .site-main,
  body.srm-customer-app-page article,
  body.srm-customer-app-page .hentry,
  body.srm-customer-app-page .entry-content,
  body.srm-customer-app-page .wp-block-post-content,
  body.srm-customer-app-page .woocommerce,
  body.srm-customer-app-page .woocommerce-account,
  body:has(.srm-customer-app-account--admin-shell) #page,
  body:has(.srm-customer-app-account--admin-shell) .site,
  body:has(.srm-customer-app-account--admin-shell) .wp-site-blocks,
  body:has(.srm-customer-app-account--admin-shell) .site-content,
  body:has(.srm-customer-app-account--admin-shell) .content-area,
  body:has(.srm-customer-app-account--admin-shell) .site-main,
  body:has(.srm-customer-app-account--admin-shell) article,
  body:has(.srm-customer-app-account--admin-shell) .hentry,
  body:has(.srm-customer-app-account--admin-shell) .entry-content,
  body:has(.srm-customer-app-account--admin-shell) .wp-block-post-content,
  body:has(.srm-customer-app-account--admin-shell) .woocommerce,
  body:has(.srm-customer-app-account--admin-shell) .woocommerce-account {
    width: 100vw !important;
    max-width: none !important;
    height: var(--srm-customer-viewport-height, 100dvh) !important;
    min-height: var(--srm-customer-viewport-height, 100dvh) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .srm-customer-standalone-root,
  body.srm-customer-app-page .srm-customer-app-account--admin-shell,
  body.srm-customer-fullscreen-body .srm-customer-app-account--admin-shell,
  body.srm-customer-standalone-body .srm-customer-app-account,
  body:has(.srm-customer-app-account--admin-shell) .srm-customer-app-account--admin-shell {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483601 !important;
    width: 100vw !important;
    max-width: none !important;
    height: var(--srm-customer-viewport-height, 100dvh) !important;
    min-height: var(--srm-customer-viewport-height, 100dvh) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f8fafc !important;
  }

  body.srm-customer-app-page .srm-customer-app-fullscreen-shell,
  body.srm-customer-fullscreen-body .srm-customer-app-fullscreen-shell,
  body.srm-customer-standalone-body .srm-customer-app-fullscreen-shell,
  body:has(.srm-customer-app-account--admin-shell) .srm-customer-app-fullscreen-shell {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483602 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    grid-template-areas: "topbar" "content" !important;
    gap: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: var(--srm-customer-viewport-height, 100dvh) !important;
    min-height: var(--srm-customer-viewport-height, 100dvh) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(249, 115, 22, .13), transparent 34%),
      linear-gradient(135deg, #ffffff 0%, #fff7ed 46%, #f8fafc 100%) !important;
  }

  body.srm-customer-app-page .srm-customer-app-admin-topbar,
  body.srm-customer-fullscreen-body .srm-customer-app-admin-topbar,
  body.srm-customer-standalone-body .srm-customer-app-admin-topbar,
  body:has(.srm-customer-app-account--admin-shell) .srm-customer-app-admin-topbar {
    grid-area: topbar !important;
    position: relative !important;
    top: auto !important;
    z-index: 2147483603 !important;
    margin: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left)) !important;
    min-height: 64px !important;
  }

  body.srm-customer-app-page .srm-customer-app-admin-content,
  body.srm-customer-app-page .srm-customer-app-admin-shell .srm-customer-app-content,
  body.srm-customer-fullscreen-body .srm-customer-app-admin-content,
  body.srm-customer-fullscreen-body .srm-customer-app-admin-shell .srm-customer-app-content,
  body.srm-customer-standalone-body .srm-customer-app-admin-content,
  body.srm-customer-standalone-body .srm-customer-app-admin-shell .srm-customer-app-content,
  body:has(.srm-customer-app-account--admin-shell) .srm-customer-app-admin-content,
  body:has(.srm-customer-app-account--admin-shell) .srm-customer-app-admin-shell .srm-customer-app-content {
    grid-area: content !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 0 max(8px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)) !important;
    scroll-padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
  }

  body.srm-customer-app-page .srm-customer-app-page-title,
  body.srm-customer-fullscreen-body .srm-customer-app-page-title,
  body.srm-customer-standalone-body .srm-customer-app-page-title,
  body:has(.srm-customer-app-account--admin-shell) .srm-customer-app-page-title {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
  }
}


/* 1.0.18.568: stała animacja ikon bram oraz czytelniejsze podpisy bez dzielenia wyrazów. */
.srm-customer-remote-door-button,
.srm-customer-app-shell .srm-customer-remote-door-button {
  min-height: 178px !important;
  padding: 15px 10px 14px !important;
  gap: 12px !important;
  overflow: hidden !important;
}

.srm-customer-remote-door-button__icon,
.srm-customer-app-shell .srm-customer-remote-door-button__icon {
  width: 92px !important;
  height: 78px !important;
  padding: 4px !important;
  border-radius: 24px !important;
}

.srm-customer-remote-door-svg,
.srm-customer-app-shell .srm-customer-remote-door-svg {
  width: 84px !important;
  height: 66px !important;
}

.srm-customer-remote-door-svg__slide-leaf,
.srm-customer-app-shell .srm-customer-remote-door-svg__slide-leaf {
  transform-box: fill-box !important;
  transform-origin: center center !important;
  animation: srm-customer-gate-open-close-568 4s ease-in-out infinite !important;
  transition: none !important;
}

.srm-customer-remote-door-svg__garage-door,
.srm-customer-app-shell .srm-customer-remote-door-svg__garage-door {
  transform-box: fill-box !important;
  transform-origin: 50% 0% !important;
  animation: srm-customer-storage-gate-open-close-568 4s ease-in-out infinite !important;
  transition: none !important;
}

.srm-customer-remote-door-svg__door-leaf,
.srm-customer-app-shell .srm-customer-remote-door-svg__door-leaf {
  transform-box: fill-box !important;
  transform-origin: 0% 50% !important;
  animation: srm-customer-door-open-close-568 4s ease-in-out infinite !important;
  transition: none !important;
}

.srm-customer-remote-door-button--entry-gate.is-working .srm-customer-remote-door-svg__slide-leaf,
.srm-customer-app-shell .srm-customer-remote-door-button--entry-gate.is-working .srm-customer-remote-door-svg__slide-leaf {
  animation: srm-customer-gate-open-close-568 4s ease-in-out infinite !important;
}

.srm-customer-remote-door-button--storage-gate.is-working .srm-customer-remote-door-svg__garage-door,
.srm-customer-app-shell .srm-customer-remote-door-button--storage-gate.is-working .srm-customer-remote-door-svg__garage-door {
  animation: srm-customer-storage-gate-open-close-568 4s ease-in-out infinite !important;
}

.srm-customer-remote-door-button--door.is-working .srm-customer-remote-door-svg__door-leaf,
.srm-customer-app-shell .srm-customer-remote-door-button--door.is-working .srm-customer-remote-door-svg__door-leaf {
  animation: srm-customer-door-open-close-568 4s ease-in-out infinite !important;
}

@keyframes srm-customer-gate-open-close-568 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(22px); }
}

@keyframes srm-customer-storage-gate-open-close-568 {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-24px) scaleY(.38); }
}

@keyframes srm-customer-door-open-close-568 {
  0%, 100% { transform: translateX(0) skewY(0deg); }
  50% { transform: translateX(-8px) skewY(-7deg); }
}

.srm-customer-remote-door-button__content,
.srm-customer-app-shell .srm-customer-remote-door-button__content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 3.4em !important;
  overflow: visible !important;
  padding: 0 4px !important;
}

.srm-customer-remote-door-button__content strong,
.srm-customer-app-shell .srm-customer-remote-door-button__content strong {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  color: #0f172a !important;
  font-size: clamp(14px, 3.45vw, 16px) !important;
  line-height: 1.13 !important;
  font-weight: 900 !important;
  text-align: center !important;
  white-space: normal !important;
  text-wrap: balance !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  overflow: visible !important;
  -webkit-line-clamp: initial !important;
  -webkit-box-orient: initial !important;
}

@media (max-width: 430px) {
  .srm-customer-remote-door-button,
  .srm-customer-app-shell .srm-customer-remote-door-button {
    min-height: 176px !important;
    padding: 14px 7px 13px !important;
  }

  .srm-customer-remote-door-button__icon,
  .srm-customer-app-shell .srm-customer-remote-door-button__icon {
    width: 86px !important;
    height: 74px !important;
  }

  .srm-customer-remote-door-svg,
  .srm-customer-app-shell .srm-customer-remote-door-svg {
    width: 78px !important;
    height: 62px !important;
  }

  .srm-customer-remote-door-button__content strong,
  .srm-customer-app-shell .srm-customer-remote-door-button__content strong {
    font-size: clamp(13px, 3.55vw, 15px) !important;
    line-height: 1.14 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .srm-customer-remote-door-svg__slide-leaf,
  .srm-customer-app-shell .srm-customer-remote-door-svg__slide-leaf,
  .srm-customer-remote-door-svg__garage-door,
  .srm-customer-app-shell .srm-customer-remote-door-svg__garage-door,
  .srm-customer-remote-door-svg__door-leaf,
  .srm-customer-app-shell .srm-customer-remote-door-svg__door-leaf {
    animation: none !important;
  }
}

/* 1.0.18.569: typy bram z nazwy przejścia, przewijane menu mobilne i poprawione miejsce linków. */
#srm-customer-app-tab-password::before {
  content: '🔑';
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 782px) {
  body.srm-customer-mobile-menu-is-open {
    overflow: hidden !important;
  }

  .srm-customer-app-primary-menu,
  .srm-customer-app-admin-shell .srm-customer-app-primary-menu.srm-app-tabs--primary {
    top: 0 !important;
    bottom: auto !important;
    height: var(--srm-customer-viewport-height, 100dvh) !important;
    max-height: var(--srm-customer-viewport-height, 100dvh) !important;
    padding-top: max(90px, calc(72px + env(safe-area-inset-top))) !important;
    padding-bottom: max(118px, calc(82px + env(safe-area-inset-bottom))) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    scroll-padding-bottom: max(118px, calc(82px + env(safe-area-inset-bottom))) !important;
  }

  .srm-customer-app-primary-menu .srm-customer-app-exit {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
  }
}

/* 1.0.18.569: animację SVG wykonuje animateTransform w samym SVG, bo iOS Safari bywa kapryśny przy CSS transform-box na grupach SVG. */
.srm-customer-remote-door-svg__slide-leaf,
.srm-customer-app-shell .srm-customer-remote-door-svg__slide-leaf,
.srm-customer-remote-door-svg__garage-door,
.srm-customer-app-shell .srm-customer-remote-door-svg__garage-door {
  animation: none !important;
  transition: none !important;
}

/* 1.0.18.570: Wyloguj jako zwykła ostatnia pozycja przewijanego menu klienta. */
.srm-customer-app-primary-menu .srm-customer-app-menu-node-logout {
  flex: 0 0 auto;
  margin-top: 8px;
  margin-bottom: 0;
  order: 999;
}

.srm-customer-app-primary-menu .srm-customer-app-nav-link--logout {
  color: #374151 !important;
  background: rgba(255, 255, 255, .72) !important;
}

.srm-customer-app-primary-menu .srm-customer-app-nav-link--logout .srm-app-tab__icon {
  color: #dc2626;
  background: #fff1f2;
}

.srm-customer-app-primary-menu .srm-customer-app-nav-link--logout:hover,
.srm-customer-app-primary-menu .srm-customer-app-nav-link--logout:focus {
  color: #dc2626 !important;
  background: #fff1f2 !important;
}

.srm-customer-app-primary-menu .srm-customer-app-nav-link--logout:hover .srm-app-tab__icon,
.srm-customer-app-primary-menu .srm-customer-app-nav-link--logout:focus .srm-app-tab__icon {
  color: #ffffff;
  background: #dc2626;
}

/* 1.1.70.18: menu panelu klienta bez ikon przed etykietami. */
.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab,
.srm-customer-app-primary-menu .srm-app-tab,
.srm-customer-app-admin-shell .srm-customer-app-primary-menu .srm-app-tab {
  padding-left: 18px !important;
}

.srm-customer-app-nav.srm-tabbook-tabs .srm-tabbook-tab::before,
.srm-customer-app-primary-menu .srm-app-tab::before,
.srm-customer-app-primary-menu .srm-customer-app-nav-link .srm-app-tab__icon {
  display: none !important;
  content: none !important;
}

@media (max-width: 782px) {
  .srm-customer-app-primary-menu,
  .srm-customer-app-admin-shell .srm-customer-app-primary-menu.srm-app-tabs--primary {
    box-sizing: border-box !important;
    height: var(--srm-customer-viewport-height, 100dvh) !important;
    max-height: var(--srm-customer-viewport-height, 100dvh) !important;
    min-height: 0 !important;
    padding-top: max(90px, calc(72px + env(safe-area-inset-top))) !important;
    padding-bottom: max(180px, calc(150px + env(safe-area-inset-bottom))) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
  }

  .srm-customer-app-primary-menu .srm-customer-app-menu-node-logout {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
  }

  .srm-customer-app-primary-menu .srm-customer-app-nav-link--logout,
  .srm-customer-app-admin-shell .srm-customer-app-primary-menu .srm-customer-app-nav-link--logout {
    position: static !important;
    bottom: auto !important;
    z-index: auto !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
    backdrop-filter: none !important;
  }
}

/* 1.0.18.570: mobilne menu klienta zawsze nad nagłówkiem aplikacji. */
@media (max-width: 782px) {
  body.srm-customer-mobile-menu-is-open .srm-customer-app-admin-topbar,
  body.srm-customer-mobile-menu-is-open .srm-customer-app-admin-shell .srm-customer-app-header,
  .srm-customer-app-admin-shell.is-mobile-menu-open .srm-customer-app-admin-topbar,
  .srm-customer-app-admin-shell.is-mobile-menu-open .srm-customer-app-header {
    z-index: 10 !important;
  }

  body.srm-customer-mobile-menu-is-open .srm-customer-mobile-menu-backdrop,
  .srm-customer-app-admin-shell.is-mobile-menu-open .srm-customer-mobile-menu-backdrop {
    z-index: 2147483000 !important;
  }

  body.srm-customer-mobile-menu-is-open .srm-customer-app-primary-menu,
  .srm-customer-app-admin-shell.is-mobile-menu-open .srm-customer-app-primary-menu,
  body.srm-customer-mobile-menu-is-open .srm-customer-app-admin-shell .srm-customer-app-primary-menu.srm-app-tabs--primary,
  .srm-customer-app-admin-shell.is-mobile-menu-open .srm-customer-app-primary-menu.srm-app-tabs--primary {
    z-index: 2147483001 !important;
    top: 0 !important;
    bottom: 0 !important;
    height: var(--srm-customer-viewport-height, 100dvh) !important;
    max-height: var(--srm-customer-viewport-height, 100dvh) !important;
    padding-top: max(90px, calc(72px + env(safe-area-inset-top))) !important;
    padding-bottom: max(180px, calc(150px + env(safe-area-inset-bottom))) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
  }
}


/* 1.1.11: produkcyjna, ostrożna poprawka tła za mobilnym menu panelu klienta.
   Nie rusza układu menu ani logiki JS — tylko nadpisuje tło przycisku/backdropu,
   aby po prawej stronie menu było widać stronę/aplikację pod delikatnym rozmyciem,
   zamiast jednolitej różowej warstwy odziedziczonej z tła/przycisku. */
@media (max-width: 782px) {
  .srm-customer-mobile-menu-backdrop,
  button.srm-customer-mobile-menu-backdrop,
  .srm-customer-app-admin-shell .srm-customer-mobile-menu-backdrop {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  body.srm-customer-mobile-menu-is-open .srm-customer-mobile-menu-backdrop,
  body.srm-customer-mobile-menu-is-open button.srm-customer-mobile-menu-backdrop,
  .srm-customer-app-admin-shell.is-mobile-menu-open .srm-customer-mobile-menu-backdrop,
  .srm-customer-app-admin-shell.is-mobile-menu-open button.srm-customer-mobile-menu-backdrop {
    background: rgba(255, 255, 255, .16) !important;
    background-color: rgba(255, 255, 255, .16) !important;
    background-image: none !important;
    -webkit-backdrop-filter: blur(5px) saturate(1.02);
    backdrop-filter: blur(5px) saturate(1.02);
  }
}

/* 1.1.13: zakładki nad treścią, edytor graficzny na dole i kompaktowa sekcja powiązań. */
.srm-map-builder--tabbed {
  display: block;
  width: 100%;
  min-width: 0;
}

.srm-map-editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid rgba(124, 45, 18, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,237,0.72));
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.srm-map-editor-tab {
  border-radius: 999px !important;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 5px 12px !important;
  min-height: 34px;
}

.srm-map-editor-tab.is-active,
.srm-map-editor-tab[aria-selected="true"] {
  color: #fff !important;
  border-color: #c2410c !important;
  background: #c2410c !important;
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.20);
}

.srm-map-editor-tabpanels {
  display: block;
  min-width: 0;
  margin: 0 0 10px;
}

.srm-map-editor-tab-panel {
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 10px 12px;
  border: 1px solid rgba(124, 45, 18, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,247,237,0.42));
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.srm-map-editor-tab-panel[hidden] {
  display: none !important;
}

.srm-map-editor-tab-panel > .srm-map-editor-meta,
.srm-map-editor-tab-panel .srm-map-editor-meta,
.srm-map-editor-tab-panel .srm-map-color-settings,
.srm-map-editor-tab-panel .srm-map-label-settings,
.srm-map-editor-tab-panel .srm-map-plan-settings,
.srm-map-editor-tab-panel .srm-map-editor-tools,
.srm-map-editor-tab-panel .srm-map-builder__sidebar {
  margin: 0;
}

.srm-map-editor-tab-panel .srm-map-editor-meta {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.srm-map-editor-tab-panel .srm-map-label-settings + .srm-map-color-settings,
.srm-map-editor-tab-panel .srm-map-color-settings + .srm-map-label-settings,
.srm-map-editor-tab-panel .srm-map-plan-settings + .srm-map-plan-settings,
.srm-map-editor-tab-panel .srm-map-editor-meta__wide + .srm-map-plan-settings {
  margin-top: 8px;
}

.srm-map-builder--tabbed input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
.srm-map-builder--tabbed select,
.srm-map-builder--tabbed textarea {
  min-height: 32px;
}

.srm-map-builder--tabbed textarea {
  min-height: 54px;
}

.srm-map-editor-meta--file {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 8px;
  align-items: end;
}

.srm-map-editor-meta--file label {
  gap: 4px;
}

.srm-map-editor-meta--background {
  grid-template-columns: minmax(320px, 1.5fr) minmax(360px, 1fr);
  gap: 10px;
  align-items: start;
}

.srm-map-editor-meta--background .srm-map-editor-meta__wide {
  grid-column: auto;
}

.srm-map-editor-meta--background .srm-map-editor-meta__media-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.srm-map-editor-meta--background .srm-map-editor-meta__media-row input {
  width: 100%;
  min-width: 0;
  flex-basis: auto;
}

.srm-map-editor-meta--background .srm-map-background-preview-wrap {
  margin-top: 6px;
}

.srm-map-editor-meta--background .srm-map-background-preview {
  max-width: 180px;
  max-height: 86px;
  object-fit: contain;
}

.srm-map-editor-meta--background .srm-map-plan-settings {
  padding: 10px 12px;
}

.srm-map-editor-meta--background .srm-map-plan-settings__grid {
  grid-template-columns: minmax(160px, 1.4fr) repeat(3, minmax(95px, 1fr));
  gap: 8px;
}

.srm-map-editor-tab-panel .srm-map-color-settings,
.srm-map-editor-tab-panel .srm-map-label-settings,
.srm-map-editor-tab-panel .srm-map-snap-settings,
.srm-map-editor-tab-panel .srm-map-shape-editor {
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.srm-map-editor-tab-panel .srm-map-color-settings p.description,
.srm-map-editor-tab-panel .srm-map-label-settings p.description,
.srm-map-editor-tab-panel .srm-map-shape-editor p.description {
  margin: 0 0 8px;
}

.srm-map-editor-tab-panel .srm-map-color-settings__grid {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  align-items: end;
}

.srm-map-editor-tab-panel .srm-map-color-settings label {
  gap: 4px;
}

.srm-map-editor-tab-panel .srm-map-color-settings input[type="color"] {
  min-height: 32px;
}

.srm-map-editor-tab-panel .srm-map-color-settings__border-width,
.srm-map-editor-tab-panel .srm-map-color-settings__transparency {
  grid-column: span 2;
}

.srm-map-editor-tab-panel .srm-map-label-settings__grid {
  grid-template-columns: minmax(210px, 0.78fr) minmax(280px, 1.05fr) minmax(260px, 1fr);
  gap: 10px;
}

.srm-map-editor-tab-panel .srm-map-label-settings__section {
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
}

.srm-map-editor-tab-panel .srm-map-label-settings__section label {
  gap: 4px;
}

.srm-map-editor-tab-panel .srm-map-label-settings input[type="color"] {
  min-height: 32px;
}

.srm-map-editor-tab-panel .srm-map-editor-tools {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(520px, 1.65fr);
  gap: 10px;
  width: 100%;
  align-items: start;
}

.srm-map-editor-tab-panel .srm-map-snap-settings {
  display: grid;
  gap: 5px;
}

.srm-map-editor-tab-panel .srm-map-shape-editor__header {
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1fr);
  gap: 8px;
  align-items: end;
}

.srm-map-editor-tab-panel .srm-map-shape-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.srm-map-editor-tab-panel .srm-map-shape-actions .button {
  min-height: 30px;
  padding: 3px 10px;
}

.srm-map-builder--tabbed .srm-map-builder__sidebar {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.srm-map-builder--tabbed .srm-map-builder__fields {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(150px, 0.6fr) minmax(260px, 1.4fr) minmax(110px, 0.45fr) minmax(230px, 1fr) minmax(130px, 0.55fr);
  gap: 8px;
  align-items: end;
}

.srm-map-builder--tabbed .srm-map-builder__fields[hidden] {
  display: none !important;
}

.srm-map-builder--tabbed .srm-map-builder__fields label {
  gap: 4px;
}

.srm-map-builder--tabbed .srm-map-product-rental-info {
  grid-column: 1 / -1;
  padding: 8px 10px;
  gap: 3px;
  font-size: 12px;
}

.srm-map-builder--tabbed .srm-map-position-grid {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 6px;
}

.srm-map-builder--tabbed .srm-map-delete-unit {
  grid-column: span 2;
  min-height: 32px;
}

.srm-map-builder--tabbed .srm-map-builder__empty {
  padding: 10px 12px;
  border: 1px dashed rgba(124, 45, 18, 0.25);
  border-radius: 12px;
  background: rgba(255,255,255,0.78);
}

.srm-map-builder--tabbed .srm-map-builder__unit-list {
  margin-top: 8px;
  max-height: clamp(132px, 18vh, 220px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 3px;
}

.srm-map-builder--tabbed .srm-map-unit-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
  margin-top: 0;
  max-height: none;
  overflow: visible;
}

.srm-map-builder--tabbed .srm-map-unit-list__item {
  width: auto;
  flex: 0 1 auto;
  min-width: 118px;
  max-width: 220px;
  padding: 6px 8px;
  gap: 2px;
  border-radius: 8px;
  line-height: 1.2;
}

.srm-map-builder--tabbed .srm-map-unit-list__item strong,
.srm-map-builder--tabbed .srm-map-unit-list__item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srm-map-builder--tabbed .srm-map-unit-list__item strong {
  font-size: 12px;
}

.srm-map-builder--tabbed .srm-map-unit-list__item span {
  font-size: 11px;
}

.srm-map-builder--tabbed .srm-map-unit-list__status,
.srm-map-builder--tabbed .srm-map-unit-list__group {
  padding: 1px 6px;
  font-size: 10px;
  line-height: 1.25;
}

.srm-map-builder--tabbed .srm-map-multi-selection {
  margin: 0 0 6px;
  padding: 6px 8px;
}

.srm-map-editor-bottom {
  position: relative;
  z-index: 3;
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid rgba(124, 45, 18, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, rgba(255,247,237,0.48));
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.srm-map-editor-actionbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(124, 45, 18, 0.12);
}

.srm-map-editor-actionbar__title {
  display: grid;
  gap: 2px;
  min-width: min(100%, 260px);
}

.srm-map-editor-actionbar__title strong {
  color: #1f2937;
  font-size: 15px;
}

.srm-map-editor-actionbar__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.srm-map-builder--tabbed .srm-map-builder__canvas-wrap {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.srm-map-builder--tabbed .srm-map-builder__toolbar {
  margin-bottom: 8px;
  gap: 8px;
}

.srm-map-builder--tabbed .srm-map-builder__toolbar .description {
  flex-basis: 320px;
  font-size: 12px;
}

@media (max-width: 1280px) {
  .srm-map-editor-meta--file {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .srm-map-editor-meta--background {
    grid-template-columns: 1fr;
  }

  .srm-map-editor-meta--background .srm-map-editor-meta__wide {
    grid-column: 1 / -1;
  }

  .srm-map-builder--tabbed .srm-map-builder__fields {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .srm-map-builder--tabbed .srm-map-position-grid,
  .srm-map-builder--tabbed .srm-map-delete-unit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .srm-map-editor-tab-panel .srm-map-label-settings__grid,
  .srm-map-editor-tab-panel .srm-map-editor-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .srm-map-editor-meta--file,
  .srm-map-builder--tabbed .srm-map-builder__fields {
    grid-template-columns: 1fr;
  }

  .srm-map-editor-meta--background .srm-map-editor-meta__media-row,
  .srm-map-editor-meta--background .srm-map-plan-settings__grid,
  .srm-map-builder--tabbed .srm-map-position-grid {
    grid-template-columns: 1fr;
  }

  .srm-map-editor-tab-panel .srm-map-color-settings__grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .srm-map-editor-tab-panel .srm-map-color-settings__border-width,
  .srm-map-editor-tab-panel .srm-map-color-settings__transparency {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .srm-map-editor-tab,
  .srm-map-editor-actionbar__buttons .button {
    width: 100%;
    text-align: center;
  }

  .srm-map-editor-actionbar__buttons {
    width: 100%;
  }

  .srm-map-editor-tab-panel .srm-map-color-settings__grid {
    grid-template-columns: 1fr;
  }

  .srm-map-builder--tabbed .srm-map-unit-list__item {
    flex: 1 1 118px;
  }
}

/* 1.1.14: kompaktowe wyświetlanie funkcji edytora układu BOX-ów. */
.srm-map-builder--compact-controls {
  --srm-compact-field-height: 28px;
  --srm-compact-gap: 6px;
  --srm-compact-label-size: 11px;
}

.srm-map-builder--compact-controls .srm-map-editor-tabs {
  gap: 4px;
  margin-bottom: 6px;
  padding: 6px;
  border-radius: 12px;
}

.srm-map-builder--compact-controls .srm-map-editor-tab {
  min-height: 30px;
  padding: 3px 10px !important;
  font-size: 12px;
  line-height: 1.15;
}

.srm-map-builder--compact-controls .srm-map-editor-tabpanels {
  margin-bottom: 8px;
}

.srm-map-builder--compact-controls .srm-map-editor-tab-panel {
  padding: 8px;
  border-radius: 12px;
}

.srm-map-builder--compact-controls .srm-map-editor-tab-panel p.description {
  display: none;
}

.srm-map-builder--compact-controls input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
.srm-map-builder--compact-controls select,
.srm-map-builder--compact-controls textarea {
  width: 100% !important;
  min-height: var(--srm-compact-field-height) !important;
  height: auto;
  padding: 2px 7px !important;
  font-size: 12px;
  line-height: 1.25;
}

.srm-map-builder--compact-controls textarea {
  min-height: 44px !important;
  resize: vertical;
}

.srm-map-builder--compact-controls input[type="color"] {
  min-height: 26px !important;
  height: 28px !important;
  padding: 1px !important;
}

.srm-map-builder--compact-controls input[type="range"] {
  height: 18px;
  min-height: 18px;
}

.srm-map-builder--compact-controls label,
.srm-map-builder--compact-controls .srm-map-label-settings__section label,
.srm-map-builder--compact-controls .srm-map-plan-settings label,
.srm-map-builder--compact-controls .srm-map-color-settings label,
.srm-map-builder--compact-controls .srm-map-builder__fields label {
  gap: 3px;
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
}

.srm-map-builder--compact-controls label > span,
.srm-map-builder--compact-controls .srm-map-editor-meta label span,
.srm-map-builder--compact-controls .srm-map-builder__fields label span,
.srm-map-builder--compact-controls .srm-map-label-settings__section > strong {
  font-size: var(--srm-compact-label-size);
  line-height: 1.15;
}

.srm-map-builder--compact-controls .srm-map-editor-meta--file {
  grid-template-columns: minmax(160px, 1.1fr) minmax(120px, .7fr) minmax(220px, 1.35fr) minmax(125px, .72fr) minmax(125px, .72fr);
  gap: var(--srm-compact-gap);
}

.srm-map-builder--compact-controls .srm-map-editor-meta--background {
  grid-template-columns: minmax(460px, 1.2fr) minmax(440px, 1fr);
  gap: var(--srm-compact-gap);
}

.srm-map-builder--compact-controls .srm-map-editor-meta--background .srm-map-editor-meta__media-row {
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: var(--srm-compact-gap);
}

.srm-map-builder--compact-controls .srm-map-editor-meta--background .srm-map-editor-meta__media-row .button {
  min-height: var(--srm-compact-field-height);
  padding: 2px 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.srm-map-builder--compact-controls .srm-map-background-preview-wrap {
  margin-top: 4px;
  min-height: 0;
}

.srm-map-builder--compact-controls .srm-map-background-preview {
  max-width: 132px;
  max-height: 52px;
  object-fit: contain;
}

.srm-map-builder--compact-controls .srm-map-plan-settings,
.srm-map-builder--compact-controls .srm-map-color-settings,
.srm-map-builder--compact-controls .srm-map-label-settings,
.srm-map-builder--compact-controls .srm-map-snap-settings,
.srm-map-builder--compact-controls .srm-map-shape-editor {
  padding: 7px 8px;
  border-radius: 10px;
  box-shadow: none;
}

.srm-map-builder--compact-controls .srm-map-plan-settings legend,
.srm-map-builder--compact-controls .srm-map-color-settings legend,
.srm-map-builder--compact-controls .srm-map-label-settings legend,
.srm-map-builder--compact-controls .srm-map-snap-settings legend,
.srm-map-builder--compact-controls .srm-map-shape-editor h4 {
  font-size: 13px;
  line-height: 1.15;
}

.srm-map-builder--compact-controls .srm-map-plan-settings__grid {
  grid-template-columns: minmax(150px, 1.1fr) repeat(3, minmax(82px, .72fr));
  gap: var(--srm-compact-gap);
}

.srm-map-builder--compact-controls .srm-map-color-settings__grid {
  grid-template-columns: repeat(5, minmax(92px, .7fr)) minmax(150px, 1fr) minmax(180px, 1.25fr);
  gap: var(--srm-compact-gap);
  align-items: end;
}

.srm-map-builder--compact-controls .srm-map-color-settings__border-width,
.srm-map-builder--compact-controls .srm-map-color-settings__transparency {
  grid-column: auto;
}

.srm-map-builder--compact-controls .srm-map-label-settings__grid {
  grid-template-columns: minmax(360px, 1.05fr) minmax(420px, 1.15fr) minmax(300px, .95fr);
  gap: var(--srm-compact-gap);
}

.srm-map-builder--compact-controls .srm-map-label-settings__section {
  gap: 5px;
  padding: 7px;
  border-radius: 10px;
  box-shadow: none;
}

.srm-map-builder--compact-controls .srm-map-label-settings__section:first-child {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  gap: 5px;
}

.srm-map-builder--compact-controls .srm-map-label-settings__section:first-child > strong {
  flex: 0 0 100%;
}

.srm-map-builder--compact-controls .srm-map-label-settings__section:first-child label {
  display: inline-flex;
  align-items: center;
  width: auto;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid rgba(124, 45, 18, 0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  white-space: nowrap;
}

.srm-map-builder--compact-controls .srm-map-label-settings__section:nth-child(2),
.srm-map-builder--compact-controls .srm-map-label-settings__section:nth-child(3) {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  align-items: end;
}

.srm-map-builder--compact-controls .srm-map-label-settings__section:nth-child(2) > strong,
.srm-map-builder--compact-controls .srm-map-label-settings__section:nth-child(3) > strong {
  grid-column: 1 / -1;
}

.srm-map-builder--compact-controls .srm-map-label-settings__section label:has(input[type="range"]),
.srm-map-builder--compact-controls .srm-map-snap-settings__strength {
  min-width: 170px;
}

.srm-map-builder--compact-controls .srm-map-editor-tools {
  grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.4fr);
  gap: var(--srm-compact-gap);
}

.srm-map-builder--compact-controls .srm-map-snap-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.srm-map-builder--compact-controls .srm-map-snap-settings legend {
  flex: 0 0 100%;
  margin-bottom: 0;
}

.srm-map-builder--compact-controls .srm-map-snap-settings label:not(.srm-map-snap-settings__strength) {
  display: inline-flex;
  align-items: center;
  width: auto;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid rgba(124, 45, 18, 0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  white-space: nowrap;
}

.srm-map-builder--compact-controls .srm-map-snap-settings__strength {
  display: grid;
  flex: 1 1 240px;
  max-width: 360px;
}

.srm-map-builder--compact-controls .srm-map-shape-editor {
  gap: 5px;
}

.srm-map-builder--compact-controls .srm-map-shape-editor__header {
  grid-template-columns: minmax(120px, .45fr) minmax(190px, .7fr) minmax(320px, 1.25fr);
  gap: var(--srm-compact-gap);
  align-items: end;
}

.srm-map-builder--compact-controls .srm-map-shape-actions {
  gap: 4px;
}

.srm-map-builder--compact-controls .srm-map-shape-actions .button {
  min-height: 28px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.srm-map-builder--compact-controls .srm-map-shape-points,
.srm-map-builder--compact-controls .srm-map-shape-edges {
  max-height: 150px;
}

.srm-map-builder--compact-controls .srm-map-shape-point-row,
.srm-map-builder--compact-controls .srm-map-shape-edge-row {
  gap: 4px;
  padding: 4px;
}

.srm-map-builder--compact-controls .srm-map-builder__empty {
  padding: 7px 9px;
  border-radius: 9px;
  font-size: 12px;
}

.srm-map-builder--compact-controls .srm-map-builder__fields {
  grid-template-columns: minmax(140px, .72fr) minmax(95px, .45fr) minmax(280px, 1.3fr) minmax(90px, .45fr) minmax(220px, .95fr) minmax(112px, .48fr) minmax(280px, 1.1fr) minmax(120px, .55fr);
  gap: var(--srm-compact-gap);
  align-items: end;
}

.srm-map-builder--compact-controls .srm-map-builder__fields > label:nth-of-type(3) {
  grid-column: span 2;
}

.srm-map-builder--compact-controls .srm-map-builder__fields > label:nth-of-type(5) {
  grid-column: span 2;
}

.srm-map-builder--compact-controls .srm-map-inline-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid rgba(124, 45, 18, 0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  min-height: var(--srm-compact-field-height);
  white-space: nowrap;
}

.srm-map-builder--compact-controls .srm-map-product-rental-info {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 8px;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.2;
  border-radius: 9px;
}

.srm-map-builder--compact-controls .srm-map-product-rental-info strong {
  font-size: 11px;
  min-width: max-content;
}

.srm-map-builder--compact-controls .srm-map-product-rental-info span {
  display: inline-block;
  max-width: min(38ch, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srm-map-builder--compact-controls .srm-map-position-grid {
  grid-column: span 2;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  gap: 4px;
}

.srm-map-builder--compact-controls .srm-map-delete-unit {
  grid-column: span 1;
  min-height: var(--srm-compact-field-height);
  padding: 2px 8px;
  line-height: 1.15;
}

.srm-map-builder--compact-controls .srm-map-builder__unit-list {
  margin-top: 6px;
  max-height: clamp(105px, 15vh, 174px);
  overflow: auto;
  padding-right: 2px;
}

.srm-map-builder--compact-controls .srm-map-unit-list {
  gap: 4px;
}

.srm-map-builder--compact-controls .srm-map-unit-list__item {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  width: auto;
  min-width: 78px;
  max-width: 184px;
  gap: 3px;
  padding: 4px 6px;
  border-radius: 7px;
  line-height: 1.1;
}

.srm-map-builder--compact-controls .srm-map-unit-list__item strong,
.srm-map-builder--compact-controls .srm-map-unit-list__item span {
  display: inline-block;
  max-width: 72px;
  font-size: 11px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srm-map-builder--compact-controls .srm-map-unit-list__item span {
  max-width: 52px;
  font-size: 10px;
  opacity: .82;
}

.srm-map-builder--compact-controls .srm-map-unit-list__status,
.srm-map-builder--compact-controls .srm-map-unit-list__group {
  padding: 1px 5px;
  font-size: 9px;
  line-height: 1.15;
}

.srm-map-builder--compact-controls .srm-map-multi-selection {
  margin-bottom: 4px;
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 11px;
}

.srm-map-builder--compact-controls .srm-map-editor-bottom {
  margin-top: 8px;
  padding: 9px;
  border-radius: 14px;
}

.srm-map-builder--compact-controls .srm-map-editor-actionbar {
  margin-bottom: 7px;
  padding-bottom: 6px;
}

.srm-map-builder--compact-controls .srm-map-editor-actionbar__title strong {
  font-size: 14px;
}

.srm-map-builder--compact-controls .srm-map-editor-actionbar__title .description {
  font-size: 11px;
  line-height: 1.25;
}

.srm-map-builder--compact-controls .srm-map-editor-actionbar__buttons .button {
  min-height: 28px;
  padding: 2px 10px;
  line-height: 1.15;
}

.srm-map-builder--compact-controls .srm-map-builder__toolbar {
  gap: 5px;
  margin-bottom: 6px;
}

.srm-map-builder--compact-controls .srm-map-builder__toolbar .button,
.srm-map-builder--compact-controls .srm-map-zoom-controls .button {
  min-height: 28px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.srm-map-builder--compact-controls .srm-map-zoom-controls {
  gap: 4px;
  padding: 2px 5px;
  border-radius: 7px;
}

.srm-map-builder--compact-controls .srm-map-zoom-range {
  width: 96px;
}

.srm-map-builder--compact-controls .srm-map-size-group-filter-wrap {
  min-width: 126px;
  gap: 2px;
}

.srm-map-builder--compact-controls .srm-map-builder__toolbar .description {
  display: none;
}

@media (max-width: 1480px) {
  .srm-map-builder--compact-controls .srm-map-color-settings__grid,
  .srm-map-builder--compact-controls .srm-map-label-settings__grid,
  .srm-map-builder--compact-controls .srm-map-editor-tools,
  .srm-map-builder--compact-controls .srm-map-builder__fields {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .srm-map-builder--compact-controls .srm-map-color-settings__border-width,
  .srm-map-builder--compact-controls .srm-map-color-settings__transparency,
  .srm-map-builder--compact-controls .srm-map-builder__fields > label:nth-of-type(3),
  .srm-map-builder--compact-controls .srm-map-builder__fields > label:nth-of-type(5),
  .srm-map-builder--compact-controls .srm-map-position-grid,
  .srm-map-builder--compact-controls .srm-map-delete-unit {
    grid-column: auto;
  }
}

@media (max-width: 1180px) {
  .srm-map-builder--compact-controls .srm-map-editor-meta--file,
  .srm-map-builder--compact-controls .srm-map-editor-meta--background,
  .srm-map-builder--compact-controls .srm-map-plan-settings__grid,
  .srm-map-builder--compact-controls .srm-map-color-settings__grid,
  .srm-map-builder--compact-controls .srm-map-label-settings__grid,
  .srm-map-builder--compact-controls .srm-map-editor-tools,
  .srm-map-builder--compact-controls .srm-map-builder__fields {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .srm-map-builder--compact-controls .srm-map-editor-meta--background .srm-map-editor-meta__wide,
  .srm-map-builder--compact-controls .srm-map-product-rental-info,
  .srm-map-builder--compact-controls .srm-map-position-grid,
  .srm-map-builder--compact-controls .srm-map-shape-editor__header {
    grid-column: 1 / -1;
  }

  .srm-map-builder--compact-controls .srm-map-shape-editor__header,
  .srm-map-builder--compact-controls .srm-map-position-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 782px) {
  .srm-map-builder--compact-controls .srm-map-editor-meta--file,
  .srm-map-builder--compact-controls .srm-map-editor-meta--background,
  .srm-map-builder--compact-controls .srm-map-editor-meta--background .srm-map-editor-meta__media-row,
  .srm-map-builder--compact-controls .srm-map-plan-settings__grid,
  .srm-map-builder--compact-controls .srm-map-color-settings__grid,
  .srm-map-builder--compact-controls .srm-map-label-settings__grid,
  .srm-map-builder--compact-controls .srm-map-label-settings__section:nth-child(2),
  .srm-map-builder--compact-controls .srm-map-label-settings__section:nth-child(3),
  .srm-map-builder--compact-controls .srm-map-editor-tools,
  .srm-map-builder--compact-controls .srm-map-builder__fields,
  .srm-map-builder--compact-controls .srm-map-shape-editor__header,
  .srm-map-builder--compact-controls .srm-map-position-grid {
    grid-template-columns: 1fr;
  }

  .srm-map-builder--compact-controls .srm-map-unit-list__item {
    flex: 1 1 96px;
  }
}

/* 1.1.17: automatyczna budowa bez blokady walidacji pól pomocniczych + Shift/zaznacz wiele. */
.srm-map-builder--compact-controls .srm-map-auto-build-panel {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(330px, 1fr) minmax(280px, .86fr);
  gap: var(--srm-compact-gap, 8px);
  align-items: stretch;
}

.srm-map-builder--compact-controls .srm-map-auto-build-detect,
.srm-map-builder--compact-controls .srm-map-auto-build-adjust,
.srm-map-builder--compact-controls .srm-map-auto-build-select {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(124, 45, 18, 0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.srm-map-builder--compact-controls .srm-map-auto-build-detect legend,
.srm-map-builder--compact-controls .srm-map-auto-build-adjust legend,
.srm-map-builder--compact-controls .srm-map-auto-build-select legend {
  padding: 0 5px;
  color: #7c2d12;
  font-weight: 800;
  font-size: 12px;
}

.srm-map-builder--compact-controls .srm-map-auto-build-grid,
.srm-map-builder--compact-controls .srm-map-auto-adjust-grid,
.srm-map-builder--compact-controls .srm-map-auto-align-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 6px;
  align-items: end;
}

.srm-map-builder--compact-controls .srm-map-auto-build-grid label,
.srm-map-builder--compact-controls .srm-map-auto-adjust-grid label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.srm-map-builder--compact-controls .srm-map-auto-build-grid input[type="range"] {
  width: 100%;
  margin: 0;
}

.srm-map-builder--compact-controls .srm-map-auto-build-grid input[type="number"],
.srm-map-builder--compact-controls .srm-map-auto-build-grid input[type="text"],
.srm-map-builder--compact-controls .srm-map-auto-build-grid select,
.srm-map-builder--compact-controls .srm-map-auto-adjust-grid input[type="number"],
.srm-map-builder--compact-controls .srm-map-auto-adjust-grid input[type="text"] {
  width: 100%;
  min-width: 0;
}

.srm-map-builder--compact-controls .srm-map-auto-actions,
.srm-map-builder--compact-controls .srm-map-auto-edge-tools,
.srm-map-builder--compact-controls .srm-map-auto-select-actions,
.srm-map-builder--compact-controls .srm-map-auto-nudge-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 7px;
}

.srm-map-builder--compact-controls .srm-map-auto-actions .button,
.srm-map-builder--compact-controls .srm-map-auto-adjust-grid .button,
.srm-map-builder--compact-controls .srm-map-auto-align-grid .button,
.srm-map-builder--compact-controls .srm-map-auto-edge-tools .button,
.srm-map-builder--compact-controls .srm-map-auto-select-actions .button,
.srm-map-builder--compact-controls .srm-map-auto-nudge-tools .button {
  min-height: 28px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.srm-map-builder--compact-controls .srm-map-auto-edge-tools {
  padding: 5px 6px;
  border: 1px dashed rgba(124,45,18,.18);
  border-radius: 9px;
  background: rgba(255,247,237,.42);
  font-size: 12px;
}

.srm-map-builder--compact-controls .srm-map-auto-edge-tools label {
  display: inline-flex;
  align-items: center;
  width: auto;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  white-space: nowrap;
}

.srm-map-builder--compact-controls .srm-map-auto-build-select {
  display: grid;
  gap: 6px;
}

.srm-map-builder--compact-controls .srm-map-auto-selection-summary {
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .04);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.srm-map-builder--compact-controls .srm-map-auto-select-actions,
.srm-map-builder--compact-controls .srm-map-auto-nudge-tools {
  margin-top: 0;
}

.srm-map-builder--compact-controls .srm-map-auto-nudge-tools label {
  flex: 1 1 130px;
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}

.srm-map-builder--compact-controls .srm-map-auto-nudge-tools input[type="number"],
.srm-map-builder--compact-controls .srm-map-auto-nudge-tools input[type="text"] {
  width: 100%;
  min-width: 0;
}

.srm-map-builder--compact-controls .srm-map-auto-multi-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 2px 8px;
  border: 1px solid rgba(124,45,18,.18);
  border-radius: 999px;
  background: rgba(255,247,237,.72);
  color: #7c2d12;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.srm-map-builder--compact-controls .srm-map-auto-multi-toggle input {
  margin: 0;
}

.srm-map-builder--compact-controls .srm-map-auto-nudge-tools .button {
  min-width: 34px;
  font-weight: 800;
}

.srm-map-builder--compact-controls .srm-map-auto-build-status {
  grid-column: 1 / -1;
  padding: 7px 9px;
  border: 1px solid rgba(30, 64, 175, .14);
  border-radius: 10px;
  background: rgba(239, 246, 255, .72);
  color: #1e3a8a;
  font-size: 12px;
  line-height: 1.3;
}

.srm-map-builder--compact-controls .srm-map-auto-build-status.is-success {
  border-color: rgba(22, 101, 52, .18);
  background: rgba(240, 253, 244, .78);
  color: #166534;
}

.srm-map-builder--compact-controls .srm-map-auto-build-status.is-warning {
  border-color: rgba(180, 83, 9, .2);
  background: rgba(255, 251, 235, .86);
  color: #92400e;
}

.srm-map-builder--compact-controls .srm-map-auto-build-status.is-error {
  border-color: rgba(185, 28, 28, .22);
  background: rgba(254, 242, 242, .88);
  color: #991b1b;
}

@media (max-width: 1180px) {
  .srm-map-builder--compact-controls .srm-map-auto-build-panel,
  .srm-map-builder--compact-controls .srm-map-auto-build-select,
  .srm-map-builder--compact-controls .srm-map-auto-build-grid,
  .srm-map-builder--compact-controls .srm-map-auto-adjust-grid,
  .srm-map-builder--compact-controls .srm-map-auto-align-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 782px) {
  .srm-map-builder--compact-controls .srm-map-auto-build-panel,
  .srm-map-builder--compact-controls .srm-map-auto-build-select,
  .srm-map-builder--compact-controls .srm-map-auto-build-grid,
  .srm-map-builder--compact-controls .srm-map-auto-adjust-grid,
  .srm-map-builder--compact-controls .srm-map-auto-align-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Desktop: ukryj tekst i chevron gdy menu zwinięte ─────────────────── */
@media (min-width: 1180px) {
  .srm-app-tabs--primary:not(.is-desktop-open) .srm-app-tab__label,
  .srm-app-tabs--primary:not(.is-desktop-open) .srm-app-tab__chevron {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .srm-app-tabs--primary.is-desktop-open .srm-app-tab__label,
  .srm-app-tabs--primary.is-desktop-open .srm-app-tab__chevron {
    opacity: 1;
    transition: opacity 0.22s ease 0.06s;
  }

  /* Przyciski menu — zwinięte: wyśrodkuj ikonkę */
  .srm-app-tabs--primary:not(.is-desktop-open) .srm-app-tab {
    justify-content: center !important;
    padding: 12px 0 !important;
  }

  .srm-app-tabs--primary.is-desktop-open .srm-app-tab {
    justify-content: flex-start !important;
    padding: 12px 14px !important;
  }

  /* Gałęzie submenu ukryte gdy menu zwinięte */
  .srm-app-tabs--primary:not(.is-desktop-open) .srm-app-menu-branch {
    display: none !important;
  }

  /* Podgląd aktywnej pozycji — pomarańczowa kreska na ikonce gdy zwinięte */
  .srm-app-tabs--primary:not(:hover):not(.is-desktop-open) .srm-app-tab.is-active {
    box-shadow: inset 0 -3px 0 #f97316 !important;
  }

  /* Treść przesuwa się o szerokość zwiniętego paska */
  .srm-app-shell__content {
    /* margin-left przeniesiony na srm-app-shell */
  }

  /* Hotspot — niewidoczna strefa na prawej krawędzi zwiniętego menu,
     przedłuża obszar hover żeby przejście kursor→treść nie zamykało menu zbyt wcześnie */
  #srm-desktop-menu-hotspot {
    position: fixed;
    top: 0;
    left: 56px;
    width: 16px;
    height: 100vh;
    z-index: 9998;
    cursor: default;
  }
}

/* 1.1.70.19.24: blok :has(level-3) usunięty — powodował że menu
   pozostawało trwale otwarte gdy aktywna była pozycja 3. poziomu.
   Problem z wysokością menu rozwiązany przez top:0;bottom:0 (jak mobile). */

/* ── 1.1.70.19.27: tabele list na desktopie — pełna szerokość, proporcjonalne kolumny ── */
@media (min-width: 1180px) {
  /* Ogólne tabele widefat — pełna szerokość */
  .srm-app-shell table.widefat {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Tabela listy najmu — table-layout:fixed, kolumny w % dostosowują się do szerokości sekcji */
  .srm-app-shell .srm-filter-table.srm-bulk-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }

  /* Stałe kolumny (px) */
  .srm-app-shell .srm-filter-table.srm-bulk-table th:nth-child(1),
  .srm-app-shell .srm-filter-table.srm-bulk-table td:nth-child(1) { width: 36px !important; }

  .srm-app-shell .srm-filter-table.srm-bulk-table th:nth-child(2),
  .srm-app-shell .srm-filter-table.srm-bulk-table td:nth-child(2) { width: 56px !important; }

  .srm-app-shell .srm-filter-table.srm-bulk-table th:last-child,
  .srm-app-shell .srm-filter-table.srm-bulk-table td:last-child { width: 130px !important; }

  /* Kolumny procentowe — sumują się do ~94% reszty szerokości */
  .srm-app-shell .srm-filter-table.srm-bulk-table th:nth-child(3),
  .srm-app-shell .srm-filter-table.srm-bulk-table td:nth-child(3) { width: 18% !important; } /* magazyn */

  .srm-app-shell .srm-filter-table.srm-bulk-table th:nth-child(4),
  .srm-app-shell .srm-filter-table.srm-bulk-table td:nth-child(4) { width: 11% !important; } /* klient */

  .srm-app-shell .srm-filter-table.srm-bulk-table th:nth-child(5),
  .srm-app-shell .srm-filter-table.srm-bulk-table td:nth-child(5) { width: 18% !important; } /* firma */

  .srm-app-shell .srm-filter-table.srm-bulk-table th:nth-child(6),
  .srm-app-shell .srm-filter-table.srm-bulk-table td:nth-child(6) { width: 10% !important; } /* wariant */

  .srm-app-shell .srm-filter-table.srm-bulk-table th:nth-child(7),
  .srm-app-shell .srm-filter-table.srm-bulk-table td:nth-child(7) { width: 8% !important; }  /* start */

  .srm-app-shell .srm-filter-table.srm-bulk-table th:nth-child(8),
  .srm-app-shell .srm-filter-table.srm-bulk-table td:nth-child(8) { width: 8% !important; }  /* kolejna płatność */

  .srm-app-shell .srm-filter-table.srm-bulk-table th:nth-child(9),
  .srm-app-shell .srm-filter-table.srm-bulk-table td:nth-child(9) { width: 8% !important; }  /* stawka */

  .srm-app-shell .srm-filter-table.srm-bulk-table th:nth-child(10),
  .srm-app-shell .srm-filter-table.srm-bulk-table td:nth-child(10) { width: 9% !important; } /* saldo */

  /* Padding i zawijanie tekstu */
  .srm-app-shell .srm-filter-table td,
  .srm-app-shell .srm-filter-table th {
    padding: 8px 6px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Daty i akcje — nie zawijaj */
  .srm-app-shell .srm-filter-table.srm-bulk-table td:nth-child(7),
  .srm-app-shell .srm-filter-table.srm-bulk-table td:nth-child(8),
  .srm-app-shell .srm-filter-table.srm-bulk-table td:last-child,
  .srm-app-shell .srm-filter-table.srm-bulk-table th:last-child { white-space: nowrap !important; }
}

/* ── 1.1.70.19.30: tabele w scroll wrapperze — identyczny widok jak desktop, przewijany poziomo ──
   Nadpisuje card layout dla WSZYSTKICH tabel w srm-responsive-table-scroll.
   Działa na mobile i tablecie (max-width: 1179px).
──────────────────────────────────────────────────────────────────────────────────────────── */

/* Użyj wysokiego specificity żeby bić !important z card layoutu */
@media (max-width: 1179px) {
  body .srm-responsive-table-scroll > table.srm-clients-table,
  body .srm-responsive-table-scroll > table.srm-filter-table,
  body .srm-responsive-table-scroll > table.srm-bulk-table,
  body .srm-responsive-table-scroll > table.widefat {
    display: table !important;
    width: auto !important;
    min-width: var(--srm-table-mobile-min-width, 820px) !important;
    max-width: none !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    overflow: visible !important;
    border: 1px solid #dcdcde !important;
    border-radius: 0 !important;
  }

  body .srm-responsive-table-scroll > table.srm-clients-table thead,
  body .srm-responsive-table-scroll > table.srm-filter-table thead,
  body .srm-responsive-table-scroll > table.srm-bulk-table thead,
  body .srm-responsive-table-scroll > table.widefat thead {
    display: table-header-group !important;
    visibility: visible !important;
  }

  body .srm-responsive-table-scroll > table.srm-clients-table tbody,
  body .srm-responsive-table-scroll > table.srm-filter-table tbody,
  body .srm-responsive-table-scroll > table.srm-bulk-table tbody,
  body .srm-responsive-table-scroll > table.widefat tbody {
    display: table-row-group !important;
  }

  body .srm-responsive-table-scroll > table.srm-clients-table tr,
  body .srm-responsive-table-scroll > table.srm-filter-table tr,
  body .srm-responsive-table-scroll > table.srm-bulk-table tr,
  body .srm-responsive-table-scroll > table.widefat tr {
    display: table-row !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f1 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body .srm-responsive-table-scroll > table.srm-clients-table th,
  body .srm-responsive-table-scroll > table.srm-filter-table th,
  body .srm-responsive-table-scroll > table.srm-bulk-table th,
  body .srm-responsive-table-scroll > table.widefat th {
    display: table-cell !important;
    width: auto !important;
    max-width: none !important;
    padding: 8px 10px !important;
    white-space: nowrap !important;
    text-align: left !important;
  }

  body .srm-responsive-table-scroll > table.srm-clients-table td,
  body .srm-responsive-table-scroll > table.srm-filter-table td,
  body .srm-responsive-table-scroll > table.srm-bulk-table td,
  body .srm-responsive-table-scroll > table.widefat td {
    display: table-cell !important;
    width: auto !important;
    max-width: none !important;
    padding: 6px 8px !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f1 !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    min-width: 0 !important;
    vertical-align: middle !important;
  }

  /* Ukryj pseudo-etykiety z card layoutu */
  body .srm-responsive-table-scroll > table td::before {
    display: none !important;
    content: none !important;
  }

  /* Nagłówki — zawijają się (dopasowują do szerokości treści w kolumnie) */
  body .srm-responsive-table-scroll > table th {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    min-width: 0 !important;
  }

  /* Dane w komórkach — nie zawijaj */
  body .srm-responsive-table-scroll > table td {
    white-space: nowrap !important;
  }

  /* Kolumna firma (5. td) — zawijaj po wyrazie bez obcinania */
  body .srm-responsive-table-scroll > table.srm-filter-table td:nth-child(5),
  body .srm-responsive-table-scroll > table.srm-bulk-table td:nth-child(5) {
    display: table-cell !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    min-width: 180px !important;
    max-width: 240px !important;
  }

  /* Kolumna akcje — stała szerokość, nigdy nie zawijaj */
  body .srm-responsive-table-scroll > table td:last-child,
  body .srm-responsive-table-scroll > table th:last-child {
    display: table-cell !important;
    white-space: nowrap !important;
    min-width: 110px !important;
    width: 110px !important;
  }

  /* Przycisk Szczegóły — nigdy nie zawijaj */
  body .srm-responsive-table-scroll .srm-client-row-actions .button,
  body .srm-responsive-table-scroll .srm-client-row-actions button,
  body .srm-responsive-table-scroll > table td:last-child .button,
  body .srm-responsive-table-scroll > table td:last-child a.button {
    white-space: nowrap !important;
    display: inline-block !important;
    min-width: 100px !important;
    padding: 4px 10px !important;
    text-align: center !important;
  }
}


/* ============================================================
 * 1.1.70.19.55+ — Admin SRM sidebar: czysty zwinięty stan
 * ============================================================
 * Wcześniej w zwiniętym (56px) stanie wystawały: pojedyncze
 * chevron-strzałki rozwijania, przycisk „Wyjście" — wyglądało
 * jak losowe śmieci. Tu wszystko w zwiniętym ukrywamy całkowicie.
 * Pozostaje subtelna pionowa kreska po środku jako hint, że
 * tam jest menu do rozwinięcia po najechaniu myszką.
 * Hover-to-expand mechanizm nietknięty.
 *
 * 19.56: SCOPE do body.wp-admin tylko — customer-app standalone
 * używa tej samej klasy .srm-app-tabs--primary ale NIE ma
 * .is-desktop-open, więc poprzednia reguła hide'owała mu
 * też wszystkie pozycje menu (regresja). Prefix body.wp-admin
 * gwarantuje że tylko admin SRM jest dotknięty.
 * ============================================================ */
@media (min-width: 1180px) {
    /* Schowaj wszystkie taby, chevrony, submenu i Wyjście w zwiniętym stanie */
    body.wp-admin .srm-app-tabs--primary:not(.is-desktop-open) .srm-app-tab,
    body.wp-admin .srm-app-tabs--primary:not(.is-desktop-open) .srm-app-tab__label,
    body.wp-admin .srm-app-tabs--primary:not(.is-desktop-open) .srm-app-tab__chevron,
    body.wp-admin .srm-app-tabs--primary:not(.is-desktop-open) .srm-app-menu-branch,
    body.wp-admin .srm-app-tabs--primary:not(.is-desktop-open) a.srm-app-tab--exit,
    body.wp-admin .srm-app-tabs--primary:not(.is-desktop-open) .srm-app-tab--exit {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Subtelna pionowa kreska po środku jako wizualny hint */
    body.wp-admin .srm-app-tabs--primary:not(.is-desktop-open)::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 3px;
        height: 36px;
        border-radius: 2px;
        background: rgba(15, 23, 42, 0.16);
        opacity: 1;
        visibility: visible;
        pointer-events: none;
    }
    /* Po najechaniu na sidebar kreska znika (sidebar i tak się rozwija) */
    body.wp-admin .srm-app-tabs--primary:not(.is-desktop-open):hover::before {
        opacity: 0;
    }
}

/* ===== 84.4.56: operatorska tabela „Aktywne najmy" — czytelność na wąskim ekranie (mobile). Poziomy scroll tabeli ZOSTAJE. ===== */
@media (max-width: 782px) {
  /* Nr magazynu — nagłówek na 2 wiersze (NR / MAGAZYNU), kolumna dopasowana do nagłówka */
  .srm-rentals-list-table thead th:nth-child(2) { white-space: normal !important; width: 102px !important; min-width: 102px !important; max-width: 102px !important; }
  /* Magazyn — wartości łamane (po „-") na ~2 wiersze, kolumna dopasowana do zawiniętego tekstu */
  .srm-rentals-list-table th:nth-child(3),
  .srm-rentals-list-table td:nth-child(3) { white-space: normal !important; width: 225px !important; min-width: 225px !important; max-width: 225px !important; overflow-wrap: break-word !important; word-break: normal !important; }
  /* Aktualna stawka brutto — nagłówek na 3 wiersze (AKTUALNA / STAWKA / BRUTTO) */
  .srm-rentals-list-table thead th:nth-child(9) { white-space: normal !important; width: 102px !important; min-width: 102px !important; max-width: 102px !important; }
  /* Akcje — szersza kolumna, przycisk „Szczegóły" bez łamania w środku słowa (WP ma word-break:break-word) */
  .srm-rentals-list-table th:nth-child(11),
  .srm-rentals-list-table td:nth-child(11) { white-space: nowrap !important; width: 150px !important; min-width: 150px !important; }
  .srm-rentals-list-table td:nth-child(11) .button,
  .srm-rentals-list-table td:nth-child(11) a { white-space: nowrap !important; word-break: normal !important; overflow-wrap: normal !important; }
  /* Pasek akcji zbiorczych („Przenieś do archiwum") — WordPress chowa .actions na ≤782px; pokazujemy dla naszego paska */
  .tablenav.srm-bulk-actions .alignleft.actions { display: block !important; }
}

/* =========================================================================
   1.2.43: Render planu magazynów (front-end) w szacie graficznej strony
   pojedynczego produktu — białe/kremowe karty, pomarańcz #F97316, slate,
   zaokrąglenia, miękkie cienie, kolorowane liczniki, pomarańczowe podświetlenie
   wybranego boksu. Selektory tylko `.srm-storage-map-frontend` — edytor i
   strona produktu nietknięte.
   ========================================================================= */
.srm-storage-map-frontend {
  background: #fff;
  border: 1px solid #e9eef5;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
  padding: 22px 24px;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #334155;
}
.srm-storage-map-frontend .srm-storage-map-frontend__header h2,
.srm-storage-map-frontend .srm-storage-map-frontend__header h3 {
  color: #1f2937 !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
  margin: 0;
}
.srm-storage-map-frontend .srm-storage-map-frontend__header h2::after,
.srm-storage-map-frontend .srm-storage-map-frontend__header h3::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: #F97316;
  margin-top: 9px;
}
.srm-storage-map-frontend .srm-storage-map-frontend__header p {
  color: #94a3b8 !important;
  margin: .55rem 0 0;
  font-size: 13px;
}
.srm-storage-map-frontend .srm-storage-map-legend span {
  color: #475569 !important;
  font-weight: 600;
  font-size: 13px;
}
/* 1.2.44: wyszukiwarka („Szukaj magazynu") zbędna na froncie — chowamy całą sekcję (etykieta + input). */
.srm-storage-map-frontend .srm-storage-map-controls__search { display: none !important; }
.srm-storage-map-frontend .srm-storage-map-controls__group > span,
.srm-storage-map-frontend .srm-storage-map-controls__toggle span {
  color: #475569 !important;
  font-weight: 600;
  font-size: 13px;
}
.srm-storage-map-frontend .srm-storage-map-search,
.srm-storage-map-frontend .srm-storage-map-size-group {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 11px 14px !important;
  color: #1f2937 !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s;
}
.srm-storage-map-frontend .srm-storage-map-search:focus,
.srm-storage-map-frontend .srm-storage-map-size-group:focus {
  border-color: #F97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .15) !important;
  outline: none !important;
}
.srm-storage-map-frontend .srm-storage-map-summary span {
  color: #475569 !important;
  font-weight: 600;
}
.srm-storage-map-frontend .srm-storage-map-summary strong {
  color: #1f2937 !important;
  font-weight: 800;
}
.srm-storage-map-frontend .srm-storage-map-summary strong[data-role="available-count"] { color: #16a34a !important; }
.srm-storage-map-frontend .srm-storage-map-summary strong[data-role="occupied-count"] { color: #dc2626 !important; }
.srm-storage-map-frontend .srm-storage-map-summary strong[data-role="unavailable-count"] { color: #94a3b8 !important; }
.srm-storage-map-frontend .srm-storage-map-details {
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  border-radius: 14px !important;
}
.srm-storage-map-frontend .srm-storage-map-details__empty { color: #6b7280 !important; }
.srm-storage-map-frontend .srm-storage-map-details__badge {
  background: #F97316 !important;
  color: #fff !important;
  border-radius: 999px !important;
}
/* 1.2.46: front-end — klik boksu prowadzi do strony produktu (JS). Bez ramki na hover.
   Najechanie = kolor „wybrany" (wolny→ciemnozielony, zajęty→ciemnoczerwony). Panel szczegółów
   pod planem usunięty. Tooltip w szacie strony (jasnopomarańczowe tło, zaokrąglone rogi). */
.srm-storage-map-frontend .srm-storage-map-unit--front { cursor: pointer; }
.srm-storage-map-frontend .srm-storage-map-unit--front.is-available:hover {
  background: var(--srm-plan-free-selected-bg, #16a34a) !important;
  border-color: var(--srm-plan-free-selected-border, #15803d) !important;
  z-index: 6;
}
.srm-storage-map-frontend .srm-storage-map-unit--front.is-occupied:hover {
  background: var(--srm-plan-rented-selected-bg, #dc2626) !important;
  border-color: var(--srm-plan-rented-selected-border, #b91c1c) !important;
  z-index: 6;
}
.srm-storage-map-frontend .srm-storage-map-unit--front.is-unavailable:hover {
  background: var(--srm-plan-unavailable-selected-bg, rgba(100, 108, 118, .34)) !important;
  z-index: 6;
}
.srm-storage-map-frontend .srm-storage-map-details { display: none !important; }

.srm-storage-map-tooltip {
  position: fixed;
  z-index: 2147483000;
  max-width: 260px;
  padding: 10px 13px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
  color: #1f2937;
  font: 600 12.5px/1.4 -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  white-space: pre-line;
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .12s ease, transform .12s ease;
}
.srm-storage-map-tooltip.is-visible { opacity: 1; transform: translateY(0); }

/* 1.2.45: na małych boksach numer + grupa rozmiarowa (np. „XS") nie mieściły się wygodnie
   (ściśnięte, grupa przy krawędzi). Każdy boks na froncie = kontener rozmiarowy; przy małej
   WYSOKOŚCI boksu zmniejszamy czcionkę etykiety/grupy i ścieśniamy padding, by numer + grupa
   siedziały z zapasem. Tylko front-end (`--front` jest kontenerem; edytor nietknięty). Bez
   wsparcia container queries (stare przeglądarki) boksy wracają do czcionki domyślnej — bez regresji. */
.srm-storage-map-frontend .srm-storage-map-unit--front { container-type: size; }
@container (max-height: 46px) {
  .srm-storage-map-unit__content { padding: 1px 2px !important; gap: 0 !important; line-height: 1.04 !important; }
  .srm-storage-map-unit__label { font-size: 11px !important; }
  .srm-storage-map-unit__meta { font-size: 9px !important; font-weight: 600 !important; }
}
@container (max-height: 34px) {
  .srm-storage-map-unit__label { font-size: 10px !important; }
  .srm-storage-map-unit__meta { font-size: 8px !important; }
}
