/* Minimal bridge for legacy fakturyPRO screens using Bulma.
   Keep this small: Bulma provides the visual system; this file only maps old markup where classes cannot be added easily yet. */
@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Code:wght@400;500;600;700&display=swap");
@import url("fontawesome-pro-5.0.0/css/fontawesome-all.min.css");

:root {
  color-scheme: light;
  --bulma-scheme-main: #ffffff;
  --bulma-scheme-main-bis: #f8fafc;
  --bulma-scheme-main-ter: #f1f5f9;
  --bulma-background: #f8fafc;
  --bulma-border: #dbe3ef;
  --bulma-border-hover: #b8c4d6;
  --bulma-text: #1f2937;
  --bulma-text-weak: #51637d;
  --bulma-text-strong: #111827;
  --bulma-body-color: #1f2937;
  --bulma-body-background-color: #ffffff;
  --bulma-label-color: #1f2937;
  --bulma-title-color: #111827;
  --bulma-subtitle-color: #51637d;
  --bulma-input-color: #111827;
  --bulma-input-background-color: #ffffff;
  --bulma-input-border-color: #cfd8e6;
  --bulma-input-placeholder-color: #94a3b8;
}

html {
  color-scheme: light;
  background: #eef9fb;
  max-width: 100%;
  overflow-x: hidden;
}

.fp-package-usage-card {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 1rem;
}

.fp-package-usage-card span,
.fp-package-usage-card small {
  color: #667085;
  display: block;
}

.fp-package-usage-card strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0.25rem 0;
  text-align: right;
}

.fp-package-plan-card {
  height: 100%;
}

.fp-package-plan-card.is-current {
  border-color: #48c78e;
  box-shadow: inset 0 0 0 1px #48c78e;
}

.fp-package-plan-head {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  min-height: 4rem;
}

.fp-package-price {
  align-items: baseline;
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
  margin: 1rem 0;
}

.fp-package-price .fp-money {
  font-size: 1.8rem;
  font-weight: 700;
}

.fp-package-list {
  color: #475467;
  margin: 0 0 1rem 1rem;
  min-height: 6rem;
}

.fp-package-list li {
  margin-bottom: 0.35rem;
}

.fp-package-code-result,
.fp-package-code-status {
  border-radius: 8px;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  margin-top: -0.25rem;
}

.fp-package-code-result {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(15, 31, 51, 0.07);
  padding: 0.7rem 0.8rem;
}

.fp-package-code-result.is-ok,
.fp-package-code-status.is-ok {
  color: #116044;
}

.fp-package-code-status.is-error {
  color: #9f1239;
}

@media (max-width: 900px) {
  .fp-package-plan-card,
  .fp-package-list {
    min-height: 0;
  }
}
body.fp-panel {
  --fp-amount-font: "Google Sans Code", "Roboto Mono", "Cascadia Mono", "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", monospace;
  --fp-panel-text: #111827;
  --fp-panel-muted: #51637d;
  --fp-panel-blue: #08aeea;
  --fp-panel-border: rgba(15, 31, 51, 0.1);
  --fp-panel-glass: rgba(255, 255, 255, 0.76);
  --fp-panel-glass-strong: rgba(255, 255, 255, 0.9);
  --fp-panel-shadow: 0 24px 70px rgba(15, 31, 51, 0.12);
  font-family: "Google Sans", "Google Sans Flex", Arial, sans-serif;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(220, 255, 247, 0.85) 0%, rgba(243, 251, 255, 0.92) 34%, rgba(232, 247, 255, 0.96) 100%);
  color: var(--fp-panel-text);
  max-width: 100%;
  overflow-x: hidden;
}
body.fp-panel *,
body.fp-panel *::before,
body.fp-panel *::after {
  box-sizing: border-box;
}
a.przycisk,
.przycisk,
.buttonsy,
.btn_logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  background: #48c78e;
  color: #fff !important;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
}
.btn_logout { background: #f14668; }
input[type="text"],
input[type="password"],
input[type="date"],
input[type="file"],
select,
textarea,
.pole {
  color-scheme: light;
  max-width: 100%;
  border: 1px solid rgba(102, 124, 153, 0.28);
  border-radius: 0.5rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--fp-panel-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
textarea { min-height: 6rem; }
input:focus,
select:focus,
textarea:focus,
.pole:focus {
  border-color: #485fc7;
  box-shadow: 0 0 0 0.125em rgba(8, 174, 234, 0.22), 0 10px 30px rgba(8, 174, 234, 0.08);
  outline: none;
}
.top_user_bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.top_user_name { font-weight: 700; }
.fp-panel .navbar, .fp-panel .button, .fp-panel input, .fp-panel select, .fp-panel textarea { font-family: "Google Sans", "Google Sans Flex", Arial, sans-serif; }

.fp-panel,
.fp-panel .box,
.fp-panel .card,
.fp-panel .panel,
.fp-panel .table,
.fp-panel .modal-card,
.fp-panel .navbar,
.fp-panel .dropdown-content,
.fp-panel .menu,
.fp-panel .notification,
.fp-panel .input,
.fp-panel .textarea,
.fp-panel .select select,
.fp-panel .button {
  color-scheme: light;
}

.fp-panel .title,
.fp-panel .subtitle,
.fp-panel .label,
.fp-panel .content,
.fp-panel .table,
.fp-panel .box,
.fp-panel .card,
.fp-panel .panel,
.fp-panel .navbar-item,
.fp-panel .navbar-link,
.fp-panel .dropdown-item,
.fp-panel .menu-label,
.fp-panel .menu-list a:not(.is-active),
.fp-panel .input,
.fp-panel .textarea,
.fp-panel .select select {
  color: #1f2937;
}

.fp-panel .title,
.fp-panel .label,
.fp-panel strong,
.fp-panel th {
  color: #111827;
}

.fp-panel .help,
.fp-panel .subtitle,
.fp-panel small,
.fp-panel .menu-label,
.fp-panel .table thead th {
  color: #51637d;
}

.fp-panel .input::placeholder,
.fp-panel .textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.fp-panel input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.fp-panel textarea,
.fp-panel .input,
.fp-panel .textarea,
.fp-panel .pole {
  -webkit-appearance: none;
  appearance: none;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827;
  caret-color: #111827;
  border-color: #cfd8e6;
  color-scheme: light;
}

.fp-panel input[readonly]:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.fp-panel textarea[readonly],
.fp-panel .input[readonly],
.fp-panel .textarea[readonly],
.fp-panel .pole[readonly] {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827;
}

.fp-panel input:disabled:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.fp-panel textarea:disabled,
.fp-panel .input:disabled,
.fp-panel .textarea:disabled,
.fp-panel .pole:disabled {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8;
  opacity: 1;
}

.fp-panel input::placeholder,
.fp-panel textarea::placeholder,
.fp-panel .input::placeholder,
.fp-panel .textarea::placeholder,
.fp-panel .pole::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8;
  opacity: 1;
}

.fp-panel select,
.fp-panel .select select,
.fp-panel select option,
.fp-panel .select select option,
.fp-panel select optgroup,
.fp-panel .select select optgroup {
  background-color: #ffffff !important;
  color: #111827 !important;
}

.fp-panel select,
.fp-panel .select select {
  -webkit-text-fill-color: #111827;
  border-color: #cfd8e6;
}

.fp-panel select:disabled,
.fp-panel .select select:disabled {
  background-color: #f8fafc !important;
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8;
}

.fp-panel input[type="file"] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827;
  border-color: #cfd8e6;
  color-scheme: light;
}

.fp-panel input[type="file"]::file-selector-button {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  color: #111827 !important;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-right: 0.75rem;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
}

.fp-panel input[type="file"]::-webkit-file-upload-button {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  color: #111827 !important;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-right: 0.75rem;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
}

.fp-panel input[type="file"]::file-selector-button:hover,
.fp-panel input[type="file"]::file-selector-button:focus,
.fp-panel input[type="file"]::-webkit-file-upload-button:hover,
.fp-panel input[type="file"]::-webkit-file-upload-button:focus {
  background: #eef9fb !important;
  background-color: #eef9fb !important;
  color: #111827 !important;
}

.fp-panel .button:not(.is-primary):not(.is-link):not(.is-info):not(.is-success):not(.is-warning):not(.is-danger):not(.is-dark):not(.fp-user-avatar):not(.fp-notification-button):not(.fp-nav-icon-action),
.fp-panel .pagination-previous,
.fp-panel .pagination-next,
.fp-panel .pagination-link {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #cfd8e6 !important;
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937;
  color-scheme: light;
}

.fp-panel .button:not(.is-primary):not(.is-link):not(.is-info):not(.is-success):not(.is-warning):not(.is-danger):not(.is-dark):not(.fp-user-avatar):not(.fp-notification-button):not(.fp-nav-icon-action):hover,
.fp-panel .button:not(.is-primary):not(.is-link):not(.is-info):not(.is-success):not(.is-warning):not(.is-danger):not(.is-dark):not(.fp-user-avatar):not(.fp-notification-button):not(.fp-nav-icon-action):focus,
.fp-panel .pagination-previous:hover,
.fp-panel .pagination-previous:focus,
.fp-panel .pagination-next:hover,
.fp-panel .pagination-next:focus,
.fp-panel .pagination-link:hover,
.fp-panel .pagination-link:focus {
  background: #eef9fb !important;
  background-color: #eef9fb !important;
  border-color: #b8c4d6 !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827;
}

.fp-panel .navbar-brand > .navbar-item,
.fp-panel .navbar-brand > .navbar-item:hover,
.fp-panel .navbar-brand > .navbar-item:focus,
.fp-panel .navbar-brand > .navbar-item:focus-within,
.fp-panel .navbar-brand > .navbar-item:active {
  background-color: transparent !important;
  color: #111827 !important;
}

.fp-panel .navbar .navbar-item:hover,
.fp-panel .navbar .navbar-item:focus,
.fp-panel .navbar .navbar-link:hover,
.fp-panel .navbar .navbar-link:focus,
.fp-panel .navbar .has-dropdown.is-active > .navbar-link,
.fp-panel .navbar .has-dropdown.is-hoverable:hover > .navbar-link,
.fp-panel .navbar .has-dropdown.is-hoverable:hover > .fp-navbar-link-button {
  background-color: rgba(8, 174, 234, 0.08) !important;
  color: #111827 !important;
}

.fp-panel .navbar-dropdown,
.fp-panel .navbar-dropdown .navbar-item,
.fp-panel .dropdown-content,
.fp-panel .dropdown-item {
  background-color: #ffffff !important;
  color: #1f2937 !important;
}

.fp-panel .navbar-dropdown .navbar-item:hover,
.fp-panel .navbar-dropdown .navbar-item:focus,
.fp-panel .dropdown-item:hover,
.fp-panel .dropdown-item:focus {
  background-color: #eef9fb !important;
  color: #111827 !important;
}

.fp-panel .has-text-white { color: #fff !important; }
.fp-panel .has-text-light { color: #f5f5f5 !important; }
.fp-panel .has-text-grey { color: #7a7a7a !important; }
.fp-panel .has-text-grey-light { color: #b5b5b5 !important; }
.fp-panel .has-text-grey-lighter { color: #dbdbdb !important; }
.fp-panel .has-text-grey-dark { color: #4a4a4a !important; }
.fp-panel .has-text-dark { color: #111827 !important; }
.fp-panel .has-text-primary { color: #00d1b2 !important; }
.fp-panel .has-text-link { color: #485fc7 !important; }
.fp-panel .has-text-info { color: #3e8ed0 !important; }
.fp-panel .has-text-success { color: #257953 !important; }
.fp-panel .has-text-warning { color: #946c00 !important; }
.fp-panel .has-text-danger { color: #cc0f35 !important; }

.fp-panel .fp-label-spacer {
  visibility: hidden;
}

.fp-panel .fp-amount,
.fp-panel .fp-money,
.fp-panel .fp-mono-number,
.fp-panel .table td.has-text-right,
.fp-panel .table td[align="right"],
.fp-panel .summary,
.fp-panel .fp-dashboard-stat strong,
.fp-panel .fp-cost-total-box strong,
.fp-panel .fp-cost-detail-row strong,
.fp-panel .fp-bank-stat strong,
.fp-panel input.has-text-right,
.fp-panel input[type="number"] {
  font-family: var(--fp-amount-font);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
  letter-spacing: 0;
}
.fp-panel .table th,
.fp-panel .table th.has-text-right,
.fp-panel .table th[align="right"] {
  font-family: "Google Sans", "Google Sans Flex", Arial, sans-serif;
  font-variant-numeric: normal;
  font-feature-settings: normal;
}
.fp-panel .dropdown-menu,
.fp-panel .dropdown-content,
.fp-panel .dropdown-item {
  font-family: "Google Sans", "Google Sans Flex", Arial, sans-serif;
}

.fp-panel .box,
.fp-panel .card,
.fp-panel .notification.is-light,
.fp-panel .table-container,
.fp-panel .fp-page-actions {
  border: 1px solid var(--fp-panel-border);
  background: var(--fp-panel-glass);
  box-shadow: var(--fp-panel-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.fp-panel .box,
.fp-panel .card,
.fp-panel .notification {
  border-radius: 12px;
}

.fp-panel .table,
.fp-panel .table thead,
.fp-panel .table tbody,
.fp-panel .table tr,
.fp-panel .table td,
.fp-panel .table th {
  background: transparent;
}

.fp-panel .table th {
  color: #1f2a3d;
}

.fp-panel .table td {
  color: #314158;
}

.fp-panel .navbar {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(15, 31, 51, 0.08);
  box-shadow: 0 10px 30px rgba(15, 31, 51, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.fp-panel .hero,
.fp-panel .fp-hero,
.fp-panel .section:first-of-type {
  background: transparent;
}

.fp-panel .box,
.fp-panel .card,
.fp-panel .column,
.fp-panel .columns,
.fp-panel .level,
.fp-panel .level-left,
.fp-panel .level-right,
.fp-panel .notification,
.fp-panel .content,
.fp-panel .field,
.fp-panel .control {
  min-width: 0;
}

.fp-panel .level-left,
.fp-panel .level-right {
  max-width: 100%;
  flex-shrink: 1;
}

.fp-panel .level-left > *,
.fp-panel .level-right > * {
  min-width: 0;
  max-width: 100%;
}

.fp-panel .subtitle,
.fp-panel .content,
.fp-panel .notification,
.fp-panel .box p,
.fp-panel .card p,
.fp-panel .help,
.fp-panel small {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.fp-break-token {
  display: inline-block;
  line-height: 1.45;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.fp-panel .box ul,
.fp-panel .box ol,
.fp-panel .card ul,
.fp-panel .card ol,
.fp-panel .content ul,
.fp-panel .content ol,
.fp-panel ul.content,
.fp-panel ol.content {
  box-sizing: border-box;
  margin-left: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding-left: 1.25rem;
  word-break: normal;
}

.fp-panel .box li,
.fp-panel .card li,
.fp-panel .content li {
  max-width: 100%;
  padding-left: 0.15rem;
}

.fp-panel .box li + li,
.fp-panel .card li + li,
.fp-panel .content li + li {
  margin-top: 0.35rem;
}

.fp-panel .navbar ul,
.fp-panel .tabs ul,
.fp-panel .pagination-list,
.fp-panel .dropdown-content {
  padding-left: 0;
}

.fp-panel .buttons {
  flex-wrap: wrap;
}

.fp-panel .button {
  height: auto;
  line-height: 1.2;
  max-width: 100%;
  min-height: 2.5rem;
  white-space: normal;
}

.fp-panel .button.is-small {
  min-height: 2rem;
}

.fp-panel .notification.is-info,
.fp-panel .notification.is-success,
.fp-panel .notification.is-warning,
.fp-panel .notification.is-danger,
.fp-panel .notification.is-link,
.fp-panel .notification.is-primary {
  --fp-alert-accent: #3e8ed0;
  --fp-alert-glow: rgba(95, 211, 243, 0.38);
  --fp-alert-icon-bg: #ffffff;
  --fp-alert-icon-border: #bfeaff;
  --fp-alert-text: #0f1f33;
  --fp-alert-muted: #60708a;
  position: relative;
  display: block;
  padding: 1.4rem 1.5rem 1.4rem 4.75rem;
  border: 1px solid rgba(15, 31, 51, 0.08);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 31, 51, 0.16);
  color: var(--fp-alert-text);
  overflow: hidden;
}

.fp-panel .notification.is-info::after,
.fp-panel .notification.is-success::after,
.fp-panel .notification.is-warning::after,
.fp-panel .notification.is-danger::after,
.fp-panel .notification.is-link::after,
.fp-panel .notification.is-primary::after {
  content: "";
  position: absolute;
  left: -2.1rem;
  top: 34%;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: var(--fp-alert-glow);
  filter: blur(48px);
  opacity: 1;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 0;
}

.fp-panel .notification.is-info::before,
.fp-panel .notification.is-success::before,
.fp-panel .notification.is-warning::before,
.fp-panel .notification.is-danger::before,
.fp-panel .notification.is-link::before,
.fp-panel .notification.is-primary::before {
  content: "\f05a";
  display: inline-grid;
  left: 1.5rem;
  place-items: center;
  position: absolute;
  top: 1.35rem;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--fp-alert-icon-border);
  border-radius: 999px;
  background: var(--fp-alert-icon-bg);
  color: var(--fp-alert-accent);
  font-family: "Font Awesome 5 Pro";
  font-size: 1rem;
  font-weight: 300;
  line-height: 1;
  z-index: 1;
  box-shadow: 0 8px 18px rgba(15, 31, 51, 0.08);
}

.fp-panel .notification.is-info > *:not(.delete),
.fp-panel .notification.is-success > *:not(.delete),
.fp-panel .notification.is-warning > *:not(.delete),
.fp-panel .notification.is-danger > *:not(.delete),
.fp-panel .notification.is-link > *:not(.delete),
.fp-panel .notification.is-primary > *:not(.delete) {
  grid-column: 2;
  position: relative;
  z-index: 1;
}

.fp-panel .notification.is-info .delete,
.fp-panel .notification.is-success .delete,
.fp-panel .notification.is-warning .delete,
.fp-panel .notification.is-danger .delete,
.fp-panel .notification.is-link .delete,
.fp-panel .notification.is-primary .delete {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: transparent;
  z-index: 2;
}

.fp-panel .notification.is-info p,
.fp-panel .notification.is-success p,
.fp-panel .notification.is-warning p,
.fp-panel .notification.is-danger p,
.fp-panel .notification.is-link p,
.fp-panel .notification.is-primary p,
.fp-panel .notification.is-info .help,
.fp-panel .notification.is-success .help,
.fp-panel .notification.is-warning .help,
.fp-panel .notification.is-danger .help,
.fp-panel .notification.is-link .help,
.fp-panel .notification.is-primary .help {
  color: var(--fp-alert-muted);
}

.fp-panel .notification.is-info strong,
.fp-panel .notification.is-success strong,
.fp-panel .notification.is-warning strong,
.fp-panel .notification.is-danger strong,
.fp-panel .notification.is-link strong,
.fp-panel .notification.is-primary strong {
  color: var(--fp-alert-text);
}

.fp-panel .notification.is-success {
  --fp-alert-accent: #2fbf78;
  --fp-alert-glow: rgba(47, 191, 120, 0.31);
  --fp-alert-icon-border: #bbefd5;
}

.fp-panel .notification.is-success::before {
  content: "\f058";
}

.fp-panel .notification.is-warning {
  --fp-alert-accent: #f0a42d;
  --fp-alert-glow: rgba(240, 164, 45, 0.36);
  --fp-alert-icon-border: #ffe0a3;
}

.fp-panel .notification.is-warning::before {
  content: "\f071";
}

.fp-panel .notification.is-danger {
  --fp-alert-accent: #ef4f6d;
  --fp-alert-glow: rgba(239, 79, 109, 0.34);
  --fp-alert-icon-border: #ffc7d1;
}

.fp-panel .notification.is-danger::before {
  content: "\f06a";
}

.fp-panel .notification.is-link,
.fp-panel .notification.is-primary {
  --fp-alert-accent: #2463eb;
  --fp-alert-glow: rgba(36, 99, 235, 0.3);
  --fp-alert-icon-border: #bfd4ff;
}

.fp-panel .notification.is-link::before,
.fp-panel .notification.is-primary::before {
  content: "\f0eb";
}

.fp-onboarding-welcome {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  align-items: stretch;
  border: 1px solid #bfe8ff;
  background: linear-gradient(135deg, #f5fcff 0%, #ffffff 48%, #eef8ff 100%);
}

.fp-onboarding-welcome-copy {
  min-width: 0;
}

.fp-onboarding-steps {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-onboarding-step {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #ffffff;
  color: #0f1f33;
}

.fp-onboarding-step:hover,
.fp-onboarding-step:focus {
  border-color: #58c7f3;
  box-shadow: 0 8px 24px rgba(62, 142, 208, 0.12);
  color: #0f1f33;
}

.fp-onboarding-step span {
  color: #60708a;
  font-size: 0.9rem;
  line-height: 1.35;
}

.fp-account-legal-row {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(96, 112, 138, 0.18);
}

.fp-account-legal-row small {
  grid-column: 1 / -1;
  color: #60708a;
}

.fp-panel .fp-account-legal-box {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 58px rgba(15, 31, 51, 0.12);
}

.fp-panel .fp-account-legal-box > .notification.is-warning {
  --fp-alert-glow: rgba(240, 164, 45, 0.18);
  background: linear-gradient(135deg, rgba(255, 252, 245, 0.98), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(240, 164, 45, 0.34);
  box-shadow: 0 14px 34px rgba(128, 86, 24, 0.12);
}

.fp-panel .fp-account-legal-box > .notification.is-warning p,
.fp-panel .fp-account-legal-box > .notification.is-warning .help {
  color: #4f5f75;
}

.fp-panel .fp-account-legal-box > .notification.is-warning strong,
.fp-panel .fp-account-legal-box > .notification.is-warning .has-text-weight-bold {
  color: #172033;
}

@media (max-width: 1100px) {
  .fp-onboarding-welcome {
    grid-template-columns: 1fr;
  }

  .fp-onboarding-steps {
    grid-template-columns: 1fr;
  }

  .fp-panel .columns:not(.is-mobile) {
    flex-wrap: wrap;
  }
  .fp-panel .columns:not(.is-mobile) > .column {
    flex: 1 1 20rem;
    min-width: min(100%, 20rem);
  }
  .fp-panel .columns:not(.is-mobile) > .column.is-3,
  .fp-panel .columns:not(.is-mobile) > .column.is-4,
  .fp-panel .columns:not(.is-mobile) > .column.is-6,
  .fp-panel .columns:not(.is-mobile) > .column.is-8,
  .fp-panel .columns:not(.is-mobile) > .column.is-one-third,
  .fp-panel .columns:not(.is-mobile) > .column.is-two-thirds {
    flex: 1 1 20rem;
    width: auto;
  }
  .fp-panel .level:not(.is-mobile) {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .fp-panel .field.is-grouped {
    flex-wrap: wrap;
  }
  .fp-panel .field.is-grouped > .control {
    max-width: 100%;
  }
}

.fp-panel .navbar { font-size: 1rem; }
.fp-panel .navbar {
  max-width: 100vw;
  width: 100%;
}
.fp-panel .navbar .navbar-item, .fp-panel .navbar .navbar-link { font-size: 1rem; font-weight: 700; }
.fp-panel .navbar .button, .fp-panel .navbar .tag { font-size: 0.95rem; font-weight: 700; }
.fp-panel .navbar-brand {
  flex-shrink: 0;
}
.fp-panel .navbar-brand .navbar-item {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.fp-panel .navbar-start > .navbar-item,
.fp-panel .navbar-start > .has-dropdown > .navbar-link,
.fp-panel .navbar-start > .has-dropdown > .fp-navbar-link-button {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}
.fp-panel .navbar-start > .has-dropdown {
  position: relative;
  z-index: 1;
}
.fp-panel .navbar .has-dropdown > .navbar-link,
.fp-panel .navbar .has-dropdown > .fp-navbar-link-button {
  padding-right: 2.15rem;
}
.fp-panel .navbar .has-dropdown > .navbar-link::after,
.fp-panel .navbar .has-dropdown > .fp-navbar-link-button::after {
  right: 0.85rem;
}
body.fp-lock-navbar-hover .navbar .has-dropdown.is-hoverable:hover .navbar-dropdown {
  display: none;
}
body.fp-lock-navbar-hover .navbar .has-dropdown.is-hoverable.is-active .navbar-dropdown {
  display: block;
}
.fp-panel .navbar-burger {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d6deea;
  border-radius: 10px;
  box-shadow: 0 0.35rem 0.9rem rgba(31, 41, 51, 0.08);
  color: #1f2933;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 3rem;
  justify-content: center;
  margin-right: 0.65rem;
  width: 3rem;
}
.fp-panel .navbar-burger span {
  background-color: #1f2933;
  display: block;
  height: 2px !important;
  left: auto !important;
  opacity: 1 !important;
  position: static !important;
  top: auto !important;
  transform: none !important;
  transform-origin: center !important;
  transition: transform 0.15s ease, opacity 0.15s ease;
  width: 1.45rem !important;
}
.fp-panel .navbar-burger span:nth-child(4) {
  display: none;
}
.fp-panel .navbar-burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg) !important;
}
.fp-panel .navbar-burger.is-active span:nth-child(2) {
  opacity: 0 !important;
}
.fp-panel .navbar-burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg) !important;
}
.fp-panel .fp-navbar-link-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}
.fp-panel .navbar-dropdown .fp-navbar-group-label {
  color: #64748b;
  cursor: default;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  min-height: auto;
  padding-bottom: 0.25rem;
  padding-top: 0.55rem;
  text-transform: uppercase;
}
.fp-panel .navbar-dropdown .fp-navbar-group-label:hover,
.fp-panel .navbar-dropdown .fp-navbar-group-label:focus {
  background: transparent;
  color: #64748b;
}
.fp-panel .navbar-start > .fp-nav-icon-action {
  align-items: center;
  background: #effaf5;
  border-radius: 999px;
  color: #0f6b45;
  display: inline-flex;
  flex: 0 0 1.9rem;
  height: 1.9rem;
  justify-content: center;
  margin: 0.65rem -0.62rem 0.65rem 0.05rem;
  min-height: 1.9rem;
  padding: 0;
  position: relative;
  width: 1.9rem;
  z-index: 8;
}
.fp-panel .navbar-start > .fp-nav-icon-action:hover,
.fp-panel .navbar-start > .fp-nav-icon-action:focus {
  background: #dff6eb;
  color: #0b5a39;
}
.fp-nav-icon-action-plus {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  margin-top: -0.08rem;
}
.fp-nav-icon-action-label {
  display: none !important;
}
.fp-navbar-notifications {
  align-items: center;
  display: flex;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}
.fp-notification-dropdown {
  position: relative;
}
.fp-notification-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d6deea;
  border-radius: 999px;
  box-shadow: 0 0.3rem 0.85rem rgba(31, 41, 51, 0.08);
  color: #1f2933;
  display: inline-flex;
  height: 2.65rem;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0;
  position: relative;
  width: 2.65rem;
}
.fp-notification-button:hover,
.fp-notification-button:focus {
  border-color: #b7c4d8;
  color: #111827;
}
.fp-notification-bell {
  display: inline-flex;
  font-size: 1.02rem;
  line-height: 1;
}
.fp-notification-badge {
  align-items: center;
  background: #dc2626 !important;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0.2rem 0.5rem rgba(220, 38, 38, 0.3);
  color: #ffffff !important;
  display: inline-flex;
  font-family: var(--fp-amount-font);
  font-size: 0.64rem !important;
  height: 1.12rem;
  justify-content: center;
  line-height: 1;
  min-width: 1.12rem;
  padding: 0 0.24rem;
  position: absolute;
  right: -0.32rem;
  top: -0.24rem;
}
.fp-account-navbar-item {
  align-items: center;
  display: flex;
  padding-left: 0.35rem;
}
.fp-account-dropdown {
  position: relative;
}
.fp-user-avatar {
  align-items: center;
  background: var(--fp-avatar-bg, #f59f00) !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  box-shadow: 0 0.35rem 0.9rem color-mix(in srgb, var(--fp-avatar-bg, #f59f00) 28%, transparent);
  color: #ffffff !important;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.72rem !important;
  font-weight: 800;
  height: 2.3rem;
  justify-content: center;
  min-height: 2.3rem !important;
  min-width: 2.3rem;
  padding: 0 !important;
  position: relative;
  width: 2.3rem;
}
.fp-user-avatar:hover,
.fp-user-avatar:focus {
  background: color-mix(in srgb, var(--fp-avatar-bg, #f59f00) 88%, #000000) !important;
  box-shadow: 0 0.45rem 1rem color-mix(in srgb, var(--fp-avatar-bg, #f59f00) 34%, transparent);
  color: #ffffff !important;
}
.fp-user-avatar-initials {
  line-height: 1;
}
.fp-user-avatar-pro {
  align-items: center;
  background: #111827;
  border: 1px solid #ffffff;
  border-radius: 999px;
  bottom: -0.42rem;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.46rem;
  font-weight: 900;
  height: 0.86rem;
  justify-content: center;
  letter-spacing: 0.02em;
  min-width: 1.55rem;
  padding: 0 0.24rem;
  position: absolute;
  right: -0.42rem;
}
.fp-account-dropdown-menu {
  min-width: 12.5rem;
  padding-top: 0.55rem;
  right: 0;
}
.fp-account-dropdown .dropdown-content {
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  box-shadow: 0 1rem 2.5rem rgba(31, 41, 51, 0.16);
  overflow: hidden;
  padding: 0.35rem;
}
.fp-account-dropdown .dropdown-item {
  border-radius: 6px;
  font-weight: 700;
}
.fp-notification-dropdown-menu {
  min-width: 24rem;
  padding-top: 0.55rem;
  right: 0;
}
.fp-notification-menu {
  border: 1px solid #e1e7f0;
  border-radius: 10px;
  box-shadow: 0 1rem 2.5rem rgba(31, 41, 51, 0.16);
  overflow: hidden;
  padding: 0;
}
.fp-notification-head {
  align-items: flex-start;
  border-bottom: 1px solid #edf1f7;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.85rem 0.95rem;
}
.fp-notification-head strong {
  display: block;
  font-size: 1rem;
}
.fp-notification-head p,
.fp-notification-empty span,
.fp-notification-item small {
  color: #66758f;
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0.15rem 0 0;
}
.fp-notification-empty {
  display: block;
  padding: 1rem;
}
.fp-notification-empty strong {
  display: block;
  margin-bottom: 0.15rem;
}
.fp-notification-item {
  align-items: flex-start;
  display: grid;
  column-gap: 0.55rem;
  grid-template-columns: 0.55rem minmax(0, 1fr);
  padding: 0.78rem 3.45rem 0.78rem 0.95rem;
  position: relative;
  white-space: normal;
}
.fp-notification-item:hover {
  background: #f7fafc;
}
.fp-notification-dot {
  border-radius: 999px;
  height: 0.55rem;
  margin-top: 0.32rem;
  width: 0.55rem;
}
.fp-notification-copy {
  grid-column: 2;
  min-width: 0;
  padding-right: 0.25rem;
}
.fp-notification-copy strong {
  color: #1f2933;
  display: block;
  font-size: 0.9rem;
  line-height: 1.25;
}
.fp-notification-copy strong,
.fp-notification-copy small {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.fp-notification-item > .tag {
  align-self: center;
  border-radius: 6px;
  font-family: var(--fp-amount-font);
  font-size: 0.66rem;
  height: 1.16rem;
  justify-self: end;
  line-height: 1;
  min-height: 1.16rem;
  min-width: 1.65rem;
  padding: 0 0.32rem;
  position: absolute;
  right: 0.95rem;
  text-align: right;
  top: 50%;
  transform: translateY(-50%);
}
.fp-notification-danger .fp-notification-dot { background: #f14668; }
.fp-notification-warning .fp-notification-dot { background: #ffb84d; }
.fp-notification-info .fp-notification-dot { background: #3e8ed0; }
.fp-notification-success .fp-notification-dot { background: #48c78e; }
.fp-notification-footer {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1fr 1fr;
  padding: 0.75rem 0.95rem 0.9rem;
}
.fp-notification-footer a {
  align-items: center;
  background: #f3f4f6;
  border-radius: 6px;
  color: #1f2933;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}
.fp-notification-footer a:hover {
  background: #e8f7ff;
}
@media (max-width: 1215px) {
  .fp-panel .navbar {
    box-shadow: 0 0.35rem 1rem rgba(31, 41, 51, 0.08);
    display: block;
    min-width: 0;
    max-width: 100vw;
    overflow: visible;
    position: relative;
    z-index: 30;
  }
  .fp-panel .navbar-brand {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 3.5rem;
    max-width: 100vw;
    width: 100%;
  }
  .fp-panel .navbar-brand > .navbar-item {
    flex: 0 0 auto;
    max-width: calc(100% - 4rem);
    width: auto !important;
  }
  .fp-panel .navbar-brand .navbar-item img {
    max-height: 2.1rem;
  }
  .fp-panel .navbar-burger {
    align-items: center;
    display: flex !important;
    flex: 0 0 3rem;
    justify-content: center;
    margin-left: auto;
  }
  .fp-panel .navbar > .navbar-brand .navbar-burger,
  .fp-panel .navbar .navbar-brand > .navbar-burger {
    display: flex !important;
  }
  .fp-panel .navbar-menu {
    display: none !important;
  }
  .fp-panel .navbar-menu.is-active {
    display: block !important;
    left: 0;
    max-height: calc(100vh - 3.5rem);
    overflow-y: auto;
    padding: 0.45rem 0.75rem 0.9rem;
    position: absolute;
    right: 0;
    top: 100%;
    width: 100vw;
    z-index: 40;
  }
  .fp-panel .navbar-menu .navbar-item,
  .fp-panel .navbar-menu .navbar-link,
  .fp-panel .navbar-menu .button {
    align-items: center;
    min-height: 2.75rem;
    width: 100%;
  }
  .fp-panel .navbar-menu .fp-nav-icon-action {
    border-radius: 999px;
    flex: 0 0 1.9rem;
    height: 1.9rem;
    justify-content: center;
    margin: 0.45rem -0.42rem 0.2rem 0.35rem;
    min-height: 1.9rem;
    padding: 0;
    position: relative;
    width: 1.9rem;
    z-index: 8;
  }
  .fp-panel .navbar-menu .fp-nav-icon-action-plus {
    background: transparent;
    color: inherit;
    display: inline;
    height: auto;
    width: auto;
  }
  .fp-panel .navbar-menu .navbar-item .buttons,
  .fp-panel .navbar-menu .navbar-item .buttons .button {
    width: 100%;
  }
  .fp-panel .navbar-menu .fp-navbar-notifications {
    display: flex;
    justify-content: flex-start;
    padding: 0.45rem 0 0.25rem;
    width: 100%;
  }
  .fp-panel .navbar-menu .fp-notification-button {
    border-radius: 999px;
    flex: 0 0 2.65rem;
    height: 2.65rem;
    min-height: 2.65rem;
    width: 2.65rem;
  }
  .fp-panel .navbar-menu .fp-notification-dropdown {
    width: auto;
  }
  .fp-panel .navbar-menu .fp-notification-dropdown-menu {
    left: 0;
    min-width: min(24rem, calc(100vw - 1.5rem));
    right: auto;
  }
  .fp-panel .navbar-menu .fp-account-navbar-item {
    display: flex;
    justify-content: flex-start;
    padding: 0.45rem 0 0.25rem;
    width: 100%;
  }
  .fp-panel .navbar-menu .fp-user-avatar {
    border-radius: 999px;
    flex: 0 0 2.3rem;
    height: 2.3rem;
    min-height: 2.3rem !important;
    width: 2.3rem;
  }
  .fp-panel .navbar-menu .fp-account-dropdown {
    width: auto;
  }
  .fp-panel .navbar-menu .fp-account-dropdown-menu {
    left: 0;
    min-width: min(14rem, calc(100vw - 1.5rem));
    right: auto;
  }
  .fp-panel .navbar .has-dropdown .navbar-dropdown {
    background: #fff;
    border: 0;
    box-shadow: none;
    display: none;
    padding: 0.15rem 0 0.45rem 0.75rem;
  }
  .fp-panel .navbar .has-dropdown.is-active .navbar-dropdown {
    display: block;
  }
  .fp-panel .navbar .has-dropdown.is-active > .navbar-link {
    background: #f3f4f6;
  }
  .fp-panel .navbar .navbar-dropdown .navbar-item {
    font-weight: 600;
    min-height: 2.4rem;
  }
  .fp-panel .navbar-menu.is-active,
  .fp-panel .navbar-menu.is-active .navbar-dropdown,
  .fp-panel .navbar-menu.is-active .has-dropdown .navbar-dropdown,
  .fp-panel .navbar-menu.is-active .dropdown-content {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
  }
  .fp-panel .navbar-menu.is-active .navbar-dropdown .navbar-item,
  .fp-panel .navbar-menu.is-active .navbar-dropdown .navbar-link,
  .fp-panel .navbar-menu.is-active .dropdown-item {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
  }
  .fp-panel .navbar-menu.is-active .navbar-dropdown .navbar-item:hover,
  .fp-panel .navbar-menu.is-active .navbar-dropdown .navbar-item:focus,
  .fp-panel .navbar-menu.is-active .dropdown-item:hover,
  .fp-panel .navbar-menu.is-active .dropdown-item:focus {
    background: #eef9fb !important;
    background-color: #eef9fb !important;
    color: #111827 !important;
  }
  .fp-panel .hero.is-small .hero-body {
    padding: 1.1rem 1rem;
  }
  .fp-panel .hero .title {
    font-size: 1.65rem;
    line-height: 1.15;
  }
  .fp-panel .hero .subtitle {
    font-size: 1rem;
    line-height: 1.25;
  }
  .fp-panel .section {
    padding: 1rem 0.75rem;
  }
  .fp-panel .container {
    max-width: 100%;
    width: 100%;
  }
  .fp-panel .box {
    padding: 1rem;
  }
  .fp-panel .tabs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .fp-panel .tabs ul {
    flex-wrap: nowrap;
    min-width: max-content;
  }
  .fp-panel .table-container {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    max-width: calc(100vw - 1rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fp-panel .table-container > .table {
    min-width: 46rem;
  }
  .fp-panel .buttons {
    gap: 0.35rem;
  }
  .fp-panel .buttons .button {
    margin-bottom: 0;
  }
}
@media (max-width: 900px) {
  .fp-panel {
    font-size: 0.94rem;
  }
  .fp-panel .title.is-3 {
    font-size: 1.55rem;
  }
  .fp-panel .title.is-4 {
    font-size: 1.35rem;
  }
  .fp-panel .title.is-5 {
    font-size: 1.15rem;
  }
  .fp-panel .subtitle.is-5,
  .fp-panel .subtitle.is-6,
  .fp-panel .subtitle {
    font-size: 0.98rem;
    line-height: 1.35;
  }
  .fp-panel .level:not(.is-mobile),
  .fp-panel .level.is-mobile {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }
  .fp-panel .level-left,
  .fp-panel .level-right {
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }
  .fp-panel .level-right .buttons,
  .fp-panel .level-right .button,
  .fp-panel .level-right form {
    max-width: 100%;
  }
  .fp-panel .level-right .buttons {
    justify-content: flex-start;
  }
  .fp-panel .field.is-grouped,
  .fp-panel .field.has-addons {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .fp-panel .field.is-grouped > .control,
  .fp-panel .field.has-addons > .control {
    flex: 1 1 12rem;
    min-width: min(100%, 12rem);
  }
  .fp-panel .field.is-grouped > .control .input,
  .fp-panel .field.is-grouped > .control .select,
  .fp-panel .field.is-grouped > .control select,
  .fp-panel .field.is-grouped > .control .button,
  .fp-panel .field.has-addons > .control .input,
  .fp-panel .field.has-addons > .control .select,
  .fp-panel .field.has-addons > .control select,
  .fp-panel .field.has-addons > .control .button {
    width: 100%;
  }
  .fp-panel .box > table.table,
  .fp-panel .content > table.table,
  .fp-panel form > table.table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fp-panel .box > table.table > thead,
  .fp-panel .box > table.table > tbody,
  .fp-panel form > table.table > thead,
  .fp-panel form > table.table > tbody {
    min-width: 42rem;
  }
  .fp-panel .table-container {
    max-width: 100%;
  }
  .fp-panel .table {
    font-size: 0.78rem;
  }
  .fp-panel .table th,
  .fp-panel .table td {
    padding: 0.45rem 0.5rem;
  }
  .fp-panel .table th {
    white-space: nowrap;
    word-break: normal;
  }
  .fp-panel .table td {
    word-break: normal;
  }
  .fp-panel .table .button,
  .fp-panel .table .tag {
    white-space: nowrap;
  }
  .fp-panel .dropdown-menu {
    max-width: min(19rem, calc(100vw - 2rem));
  }
  .fp-panel .dropdown-content {
    max-height: min(70vh, 32rem);
    overflow-y: auto;
  }
  .fp-panel .fp-mini-dropdown.is-active .dropdown-menu {
    display: block;
  }
  .fp-panel .fp-mini-dropdown .dropdown-menu {
    left: auto;
    max-width: min(20rem, calc(100vw - 1rem));
    position: absolute;
    right: 0;
    z-index: 60;
  }
  .fp-panel .fp-document-menu .dropdown-menu {
    left: 0;
    right: auto;
  }
  .fp-panel .fp-mini-dropdown .dropdown-item {
    min-height: 2.45rem;
    white-space: normal;
  }
  .fp-panel .table td,
  .fp-panel .table th {
    position: relative;
  }
  .fp-panel .pagination {
    align-items: stretch;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr 1fr;
  }
  .fp-panel .pagination-previous,
  .fp-panel .pagination-next {
    margin: 0;
    width: 100%;
  }
  .fp-panel .pagination-list {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }
  .fp-panel .modal-card {
    max-height: calc(100vh - 1rem);
    width: calc(100vw - 1rem);
  }
  .fp-panel .modal-card-title {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }
  .fp-panel .modal-card-foot {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .fp-panel .modal-card-foot .button,
  .fp-panel .modal-card-foot form {
    flex: 1 1 10rem;
  }
  .fp-invoice-form .columns.is-mobile,
  .fp-form-card .columns.is-mobile {
    flex-wrap: wrap;
  }
  .fp-invoice-form .columns.is-mobile > .column,
  .fp-form-card .columns.is-mobile > .column {
    flex: 1 1 12rem;
    min-width: min(100%, 12rem);
  }
  .fp-payment-term-buttons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }
  .fp-payment-term-buttons .button {
    width: 100%;
  }
  .fp-checkbox-grid .checkbox,
  .fp-panel .box > .field > .checkbox,
  .fp-panel form > .field > .checkbox {
    align-items: flex-start;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    display: flex;
    gap: 0.55rem;
    line-height: 1.35;
    padding: 0.65rem 0.75rem;
  }
  .fp-payment-settings-table,
  .fp-products-table,
  .fp-invoice-types-table,
  .fp-users-table {
    min-width: 56rem;
  }
}
@media (max-width: 640px) {
  .fp-panel .container {
    width: 100%;
  }
  .fp-tax-verification-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .fp-tax-verification-row .tag {
    justify-self: start;
  }
  .fp-panel .section {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }
  .fp-panel .box {
    border-radius: 8px;
    padding: 0.85rem;
  }
  .fp-panel input,
  .fp-panel select,
  .fp-panel textarea,
  .fp-panel .input,
  .fp-panel .select select,
  .fp-panel .textarea {
    font-size: 16px;
  }
  .fp-panel .title.is-3,
  .fp-panel .title.is-4,
  .fp-panel .title.is-5 {
    line-height: 1.18;
  }
  .fp-panel .field.is-grouped,
  .fp-panel .field.has-addons {
    flex-wrap: wrap;
  }
  .fp-panel .field.is-grouped > .control,
  .fp-panel .field.has-addons > .control {
    flex: 1 1 100%;
    min-width: 100%;
  }
  .fp-panel .field.is-grouped > .control .button,
  .fp-panel .field.has-addons > .control .button,
  .fp-panel .field.is-grouped > .control .input,
  .fp-panel .field.has-addons > .control .input {
    width: 100%;
  }
  .fp-panel .buttons:not(.are-small) .button {
    min-height: 2.6rem;
  }
  .fp-panel .button,
  .fp-panel input[type="submit"],
  .fp-panel input[type="button"] {
    min-height: 2.75rem;
  }
  .fp-panel .button.is-small,
  .fp-panel .buttons.are-small .button {
    min-height: 2.35rem;
  }
  .fp-panel input[type="checkbox"],
  .fp-panel input[type="radio"] {
    min-height: 1.15rem;
    min-width: 1.15rem;
  }
  .fp-panel .label {
    font-size: 0.92rem;
    line-height: 1.25;
  }
  .fp-panel .field {
    margin-bottom: 0.75rem;
  }
  .fp-panel .field.has-addons,
  .fp-panel .field.is-grouped {
    display: grid;
    grid-template-columns: 1fr;
  }
  .fp-panel .field.has-addons > .control,
  .fp-panel .field.is-grouped > .control {
    width: 100%;
  }
  .fp-panel .field.has-addons > .control .button,
  .fp-panel .field.is-grouped > .control .button,
  .fp-panel .field.has-addons > .control .input,
  .fp-panel .field.is-grouped > .control .input,
  .fp-panel .field.has-addons > .control .select,
  .fp-panel .field.is-grouped > .control .select,
  .fp-panel .field.has-addons > .control select,
  .fp-panel .field.is-grouped > .control select {
    width: 100%;
  }
  .fp-payment-term-buttons {
    grid-template-columns: 1fr 1fr;
  }
  .fp-payment-term-buttons .button:last-child {
    grid-column: 1 / -1;
  }
  .fp-invoice-form .columns.is-mobile > .column,
  .fp-form-card .columns.is-mobile > .column {
    flex-basis: 100%;
    min-width: 100%;
  }
  .fp-panel .notification:not(.is-info):not(.is-success):not(.is-warning):not(.is-danger):not(.is-link):not(.is-primary) {
    padding: 0.9rem 1rem;
  }
  .fp-panel .navbar-menu.is-active {
    max-height: calc(100vh - 3.5rem);
  }
  .fp-panel .navbar .navbar-item,
  .fp-panel .navbar .navbar-link,
  .fp-panel .navbar .button {
    min-height: 2.6rem;
  }
  .fp-invoice-form .columns.is-mobile {
    flex-wrap: wrap;
  }
  .fp-invoice-form .columns.is-mobile > .column {
    flex: 1 1 12rem;
  }
}

.fp-panel .notification.fp-notification-fixed {
  position: fixed;
  top: var(--fp-toast-top, 4.25rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(680px, calc(100% - 2rem));
  cursor: pointer;
  box-shadow: 0 1.35rem 3rem rgba(10, 10, 10, 0.22);
}

.fp-panel .notification.fp-notification-fixed .fp-toast-content,
.fp-panel .notification.fp-notification-labelled .fp-toast-content {
  min-width: 0;
  padding-right: 2rem;
}

.fp-panel .notification.fp-notification-fixed .fp-toast-label,
.fp-panel .notification.fp-notification-labelled .fp-toast-label {
  color: var(--fp-alert-text);
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.fp-panel .notification.fp-notification-fixed .fp-toast-message,
.fp-panel .notification.fp-notification-labelled .fp-toast-message {
  color: var(--fp-alert-muted);
  line-height: 1.4;
}

.fp-panel .notification.fp-notification-fixed .fp-toast-close,
.fp-panel .notification.fp-notification-labelled .fp-toast-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: #98a2b3;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.45rem;
  height: 1.75rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 1.75rem;
  z-index: 3;
}

.fp-panel .notification.fp-notification-fixed .fp-toast-close:hover,
.fp-panel .notification.fp-notification-fixed .fp-toast-close:focus,
.fp-panel .notification.fp-notification-labelled .fp-toast-close:hover,
.fp-panel .notification.fp-notification-labelled .fp-toast-close:focus {
  color: #475467;
}

@media (max-width: 640px) {
  .fp-panel .notification.fp-notification-fixed {
    width: calc(100% - 1rem);
  }
}

.fp-page-actions {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
}
.fp-page-actions > div:first-child {
  flex: 1 1 18rem;
  min-width: 0;
}
.fp-page-actions > div:first-child p {
  overflow-wrap: anywhere;
}
.fp-page-actions .buttons {
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 0;
  min-width: 0;
}
.fp-page-actions .button {
  margin-bottom: 0;
  max-width: 100%;
  min-height: 2.65rem;
  white-space: normal;
}
@media (max-width: 768px) {
  .fp-page-actions {
    align-items: stretch;
    display: block;
  }
  .fp-page-actions .buttons {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr;
    justify-content: stretch;
    margin-top: 0.75rem;
  }
  .fp-page-actions .button {
    flex: 0 0 auto;
    min-height: 2.75rem;
    width: 100%;
  }
}
@media (max-width: 1215px) {
  .fp-page-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .fp-page-actions .buttons {
    justify-content: flex-start;
    width: 100%;
  }
  .fp-page-actions .buttons .button {
    flex: 1 1 9rem;
  }
}
@media (max-width: 900px) {
  .fp-page-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .fp-page-actions .buttons {
    justify-content: flex-start;
    width: 100%;
  }
  .fp-page-actions .buttons .button {
    flex: 1 1 auto;
    min-height: 2.75rem;
    padding-bottom: 0.65rem;
    padding-top: 0.65rem;
  }
}
@media (max-width: 640px) {
  .fp-page-actions {
    padding: 0.85rem;
  }
  .fp-page-actions .buttons {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: 1fr;
  }
  .fp-page-actions .buttons .button {
    min-height: 2.75rem;
    padding-bottom: 0.55rem;
    padding-top: 0.55rem;
  }
  .fp-compact-mobile-buttons {
    align-items: stretch;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .fp-compact-mobile-buttons .button {
    justify-content: center;
    min-height: 2.45rem;
    width: 100%;
  }
}

.fp-mobile-filter-tabs {
  max-width: 100%;
}
@media (max-width: 900px) {
  .fp-mobile-filter-tabs {
    overflow: visible;
    width: 100%;
  }
  .fp-mobile-filter-tabs ul {
    border: 0;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0 !important;
    width: 100%;
  }
  .fp-mobile-filter-tabs li,
  .fp-mobile-filter-tabs li a {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .fp-mobile-filter-tabs.is-toggle li:first-child a,
  .fp-mobile-filter-tabs.is-toggle li:last-child a,
  .fp-mobile-filter-tabs.is-toggle li a {
    border-radius: 8px;
  }
  .fp-mobile-filter-tabs a {
    align-items: center;
    display: flex !important;
    font-size: 0.78rem;
    justify-content: space-between;
    min-height: 2.55rem;
    padding: 0.55rem 0.65rem;
    white-space: normal;
  }
  .fp-mobile-filter-tabs .tag {
    flex: 0 0 auto;
    margin-left: 0.35rem !important;
  }
}
@media (max-width: 420px) {
  .fp-mobile-filter-tabs ul {
    grid-template-columns: 1fr;
  }
}

.fp-panel .navbar .fp-nav-active,
.fp-panel .navbar .fp-nav-active > .navbar-link {
  background: #f3f4f6;
}

.fp-test-env-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 99999;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.85rem;
  background: #d90429;
  color: #fff;
  box-shadow: 0 1rem 2.5rem rgba(85, 0, 14, 0.28);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}
body.fp-panel.fp-has-test-env-banner {
  padding-bottom: 4.75rem;
}
@media (max-width: 768px) {
  .fp-test-env-banner {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.6rem;
    font-size: 0.86rem;
  }
  body.fp-panel.fp-has-test-env-banner {
    padding-bottom: 5.5rem;
  }
}


.fp-list-search {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}
.fp-list-search .field.is-grouped {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: nowrap;
  width: 100%;
}
.fp-list-search-query {
  flex: 1 1 26rem;
  max-width: 34rem;
  min-width: 16rem;
}
.fp-list-filter-form .fp-list-search-query-compact {
  flex: 1 1 20rem;
  max-width: 28rem;
  min-width: 14rem;
}
.fp-list-search .input[type="date"] {
  width: 9.5rem;
}
.fp-date-control {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  min-width: 0;
}
.fp-date-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #253044;
  flex: 0 0 auto;
  white-space: nowrap;
}
.fp-list-search .button {
  height: 2.5rem;
}
@media (max-width: 768px) {
  .fp-list-search,
  .fp-list-search .field.is-grouped {
    justify-content: stretch;
  }
  .fp-list-search .control,
  .fp-list-search .fp-date-control,
  .fp-list-search-query,
  .fp-list-search .input[type="date"],
  .fp-list-search .button {
    width: 100%;
  }
}
@media (max-width: 900px) {
  .fp-list-search {
    display: block;
  }
  .fp-list-search .field.is-grouped {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .fp-list-search-query,
  .fp-list-filter-form .fp-list-search-query-compact {
    grid-column: 1 / -1;
    max-width: none;
    min-width: 0;
  }
  .fp-list-search .control:last-child {
    grid-column: auto;
  }
}
@media (max-width: 560px) {
  .fp-list-search .field.is-grouped {
    grid-template-columns: 1fr;
  }
  .fp-date-control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
}

/* lista-f.css */
#tabela {
	font-size: 0.75rem;
	table-layout: fixed;
}
.fp-invoice-list-table-wrap {
  max-width: 100%;
  position: relative;
  z-index: 30;
}
.fp-invoice-list-table-wrap .fp-mini-dropdown {
  position: relative;
  z-index: 20;
}
.fp-invoice-list-table-wrap .fp-mini-dropdown:hover,
.fp-invoice-list-table-wrap .fp-mini-dropdown:focus-within,
.fp-invoice-list-table-wrap .fp-mini-dropdown.is-active {
  z-index: 120;
}
.fp-invoice-list-table-wrap .fp-mini-dropdown .dropdown-menu {
  z-index: 130;
}
.fp-floating-invoice-menu {
  display: block;
  max-width: min(20rem, calc(100vw - 1rem));
  min-width: 12rem;
  padding-top: 0.35rem;
  position: fixed !important;
  z-index: 10020 !important;
}
.fp-floating-invoice-menu .dropdown-content {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(180, 196, 216, 0.78);
  border-radius: 10px;
  box-shadow: 0 1.25rem 3rem rgba(15, 31, 51, 0.22);
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  padding: 0.35rem;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.fp-floating-invoice-menu .dropdown-item {
  background: transparent;
  border-radius: 7px;
  color: #1f2933;
  display: block;
  font-family: "Google Sans", "Google Sans Flex", Arial, sans-serif;
  font-size: 0.86rem;
  line-height: 1.25;
  min-height: 2.25rem;
  padding: 0.55rem 0.7rem;
  position: relative;
  white-space: normal;
  z-index: 1;
}
.fp-floating-invoice-menu .dropdown-item:hover,
.fp-floating-invoice-menu .dropdown-item:focus {
  background: rgba(226, 246, 255, 0.94);
  color: #0478a6;
}
.fp-floating-invoice-menu .dropdown-divider {
  background-color: rgba(180, 196, 216, 0.6);
  margin: 0.35rem 0;
}
.fp-invoice-list-table-wrap #tabela {
  min-width: 62rem;
  table-layout: auto;
}
.fp-invoice-list-summary {
  position: relative;
  z-index: 1;
}
@media (min-width: 901px) {
  .fp-invoice-list-table-wrap {
    overflow: visible;
  }
  .fp-invoice-list-table-wrap:has(.fp-mini-dropdown:hover),
  .fp-invoice-list-table-wrap:has(.fp-mini-dropdown:focus-within),
  .fp-invoice-list-table-wrap:has(.fp-mini-dropdown.is-active) {
    padding-bottom: 13rem;
  }
}
@media (max-width: 900px) {
  .fp-invoice-list-table-wrap #tabela {
    min-width: 58rem;
  }
  #tabela {
    font-size: 0.72rem;
  }
}
.fp-help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.3rem;
  border-radius: 999px;
  background: #e8f3ff;
  color: #2563a8;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  vertical-align: text-top;
  z-index: 120;
}
.fp-help-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 0.65rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(24rem, 70vw);
  padding: 0.7rem 0.8rem;
  border: 1px solid #dbe7f4;
  border-radius: 0.65rem;
  background: #fff;
  color: #243044;
  box-shadow: 0 1rem 2.25rem rgba(23, 32, 51, 0.16);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.42;
  white-space: normal;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.fp-payment-settings-box,
.fp-payment-settings-box .table-container,
.fp-payment-settings-table,
.fp-payment-settings-table thead,
.fp-payment-settings-table tr,
.fp-payment-settings-table th {
  overflow: visible;
}
.fp-payment-settings-table .fp-help-tip::after {
  left: auto;
  right: 0;
  top: calc(100% + 0.65rem);
  transform: none;
  z-index: 999;
}
.fp-payment-settings-table .fp-help-tip::before {
  display: none;
}
.fp-help-tip::before {
  content: "";
  position: absolute;
  left: calc(100% + 0.32rem);
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  transform: translateY(-50%) rotate(45deg);
  background: #fff;
  border-left: 1px solid #dbe7f4;
  border-bottom: 1px solid #dbe7f4;
  z-index: 81;
  opacity: 0;
  visibility: hidden;
}
.fp-help-tip:hover::after,
.fp-help-tip:hover::before,
.fp-help-tip:focus::after,
.fp-help-tip:focus::before {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 768px) {
  .fp-help-tip::after {
    left: auto;
    right: 0;
    top: calc(100% + 0.6rem);
    transform: none;
  }
  .fp-help-tip::before {
    display: none;
  }
}

/* wystaw.php */
#szukarka_klientow { display: none; }
.fp-invoice-form {
  position: relative;
}
.fp-form-card,
.fp-help-card {
  border: 1px solid #e7edf5;
  box-shadow: 0 0.75rem 2rem rgba(23, 32, 51, 0.06);
}
.fp-form-card .subtitle,
.fp-help-card .content {
  line-height: 1.5;
}
.fp-help-card {
  background: #f8fbff;
  position: sticky;
  top: 5rem;
}
.fp-invoice-number {
  width: 10.5rem;
  min-width: 10.5rem;
}
.fp-client-select {
  width: 100%;
  min-height: 9rem;
  border: 1px solid #dbdbdb;
  border-radius: 0.5rem;
  padding: 0.45rem;
  background: #fff;
  font-family: "Google Sans", "Google Sans Flex", Arial, sans-serif;
}
.fp-client-summary {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid #b8e6cf;
  border-radius: 0.75rem;
  background: #f1fcf6;
}
.fp-tax-verification {
  display: grid;
  gap: 0.45rem;
  color: #1f2933;
}
.fp-tax-id-lookup {
  width: 100%;
}
.fp-tax-verification-title {
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.fp-tax-verification-row {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) auto 1fr;
  align-items: center;
  gap: 0.45rem 0.7rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(103, 119, 144, 0.18);
}
.fp-tax-verification-row:first-of-type {
  border-top: 0;
}
.fp-tax-verification-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #5c6f8a;
}
.fp-tax-verification-message {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}
.fp-payment-term-select {
  display: none;
  margin-bottom: 0.5rem;
}
@media (min-width: 761px) {
  .fp-tax-verification {
    width: 100%;
  }
  .fp-tax-verification-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 0.45rem 0.85rem;
    width: 100%;
  }
  .fp-tax-verification-row .tag {
    justify-self: start;
    white-space: nowrap;
  }
  .fp-tax-verification-message {
    grid-column: 1 / -1;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}
@media (max-width: 760px) {
  .fp-payment-term-buttons {
    display: none !important;
  }
  .fp-payment-term-select {
    display: block;
  }
  .fp-tax-verification {
    gap: 0.7rem;
  }
  .fp-tax-verification-title {
    font-size: 1.05rem;
    line-height: 1.25;
  }
  .fp-tax-verification-row {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(180, 215, 230, 0.7);
    border-radius: 8px;
    box-shadow: 0 0.45rem 1.35rem rgba(31, 41, 51, 0.05);
    display: grid;
    gap: 0.4rem 0.65rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.72rem 0.78rem;
  }
  .fp-tax-verification-row:first-of-type {
    border-top: 1px solid rgba(180, 215, 230, 0.7);
  }
  .fp-tax-verification-row .tag {
    justify-self: end;
    white-space: nowrap;
  }
  .fp-tax-verification-label {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
  }
  .fp-tax-verification-message {
    grid-column: 1 / -1;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}
.fp-client-history {
  margin-top: 1rem;
}
#podmiot3_box {
  display: none;
  padding-top: 0.75rem;
  border-top: 1px solid #edf1f7;
}
.fp-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem 1rem;
}
.fp-items-card {
  overflow: visible;
}
.fp-invoice-items-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fp-invoice-items-scroll .fp-invoice-items-table {
  min-width: 58rem;
}
.tab_wystaw {
  table-layout: fixed;
  font-size: 0.82rem;
}
.tab_wystaw th,
.tab_wystaw td {
  vertical-align: middle;
  padding: 0.35rem 0.35rem;
}
.tab_wystaw th:first-child,
.tab_wystaw td:first-child {
  width: 3rem;
  text-align: center;
}
.tab_wystaw th:nth-child(2),
.tab_wystaw td:nth-child(2) {
  width: auto;
}
.tab_wystaw th:nth-child(3),
.tab_wystaw td:nth-child(3) {
  width: 5.75rem;
}
.tab_wystaw th:nth-child(4),
.tab_wystaw td:nth-child(4) {
  width: 7rem;
}
.tab_wystaw th:nth-child(5),
.tab_wystaw td:nth-child(5) {
  width: 4.75rem;
}
.tab_wystaw th:nth-child(6),
.tab_wystaw td:nth-child(6) {
  width: 5rem;
}
.tab_wystaw th:nth-child(7),
.tab_wystaw td:nth-child(7) {
  width: 5rem;
}
.tab_wystaw th:nth-child(8),
.tab_wystaw td:nth-child(8),
.tab_wystaw th:nth-child(9),
.tab_wystaw td:nth-child(9) {
  width: 7rem;
  font-weight: 700;
}
.tab_wystaw .input {
  min-height: 2rem;
  height: 2rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.82rem;
}
.fp-invoice-items-table .select,
.fp-invoice-items-table .select select {
  width: 100%;
}
.fp-invoice-items-table .js-item-name {
  min-width: 18rem;
}
.fp-invoice-items-table .js-pkwiu {
  min-width: 4.5rem;
}
.fp-invoice-items-table .js-net-price,
.fp-invoice-items-table .js-qty,
.fp-invoice-items-table .js-vat-rate {
  min-width: 4.4rem;
}
#lista_pozycji {
  position: absolute;
  top: 0;
  left: 0;
  max-height: 18rem;
  min-width: 18rem;
  max-width: min(100%, 56rem);
  overflow: auto;
  background: #fff;
  color: #273244;
  border: 1px solid #dbe4f0;
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2.5rem rgba(23, 32, 51, 0.18);
  z-index: 50;
}
.d_pozycja {
  background: #fff;
  padding: 0.65rem 0.8rem;
  line-height: 1.3;
  font-size: 0.78rem;
  cursor: pointer;
  border-bottom: 1px solid #edf1f7;
}
.d_pozycja:hover {
  background: #eff6ff;
  color: #1b3a63;
}
.d_pozycja:focus-visible {
  background: #eff6ff;
  color: #1b3a63;
  outline: 2px solid #5bb8e8;
  outline-offset: -2px;
}
.d_pozycja span {
  display: inline-block;
  float: right;
  line-height: 1.25rem;
  font-size: 0.7rem;
  color: #7b8797;
}
.d_pozycja:hover span { color: #485fc7; }
.d_pozycja.fp-suggestion-empty {
  cursor: default;
  color: #6b7890;
  background: rgba(248, 251, 255, 0.96);
}
.d_pozycja.fp-suggestion-empty:hover {
  color: #6b7890;
  background: rgba(248, 251, 255, 0.96);
}
.tr_item[role="button"] {
  cursor: pointer;
}
.tr_item[role="button"]:focus-visible {
  outline: 2px solid #5bb8e8;
  outline-offset: -2px;
}
.tr_ukryte { display: none; }
.fp-items-card .tr_ukryte { display: none; }
.fp-item-order {
  display: grid;
  grid-template-columns: 1.35rem 1.45rem 1.45rem;
  align-items: center;
  gap: 0.15rem;
  min-width: 4.55rem;
}
.fp-item-lp {
  text-align: center;
}
.fp-item-move.button {
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  line-height: 1;
  min-width: 0;
}
.fp-items-summary {
  max-width: 34rem;
  margin: 0.75rem 0 0 auto;
}
.fp-items-summary .table {
  border: 1px solid #e4e9f2;
  border-radius: 0.45rem;
  overflow: hidden;
}
.fp-items-summary th,
.fp-items-summary td {
  padding: 0.45rem 0.65rem;
}
.fp-items-summary-total td {
  border-top: 2px solid #d8e0ec;
  font-weight: 700;
}
.fp-payment-term-buttons {
  gap: 0.35rem;
}
.fp-payment-term-buttons .button {
  margin-bottom: 0;
}
#paymentTermInfo {
  min-height: 1.25rem;
}
#pokaz_ukryte { min-width: 9.5rem; }
@media (max-width: 1023px) {
  .fp-help-card { position: static; }
  #lista_pozycji { width: min(360px, calc(100vw - 2rem)) !important; }
  .fp-invoice-number {
    min-width: 0;
    width: 100%;
  }
  .tab_wystaw {
    min-width: 58rem;
  }
  .fp-items-summary {
    max-width: none;
  }
}
@media (max-width: 640px) {
  .fp-items-card {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .fp-panel .table-container.fp-invoice-items-scroll::before {
    content: "Przesuń pozycje faktury w bok";
  }
  .fp-invoice-items-scroll {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }
  .fp-invoice-items-scroll .fp-invoice-items-table {
    min-width: 54rem;
  }
  .fp-invoice-items-table .input,
  .fp-invoice-items-table .select select {
    font-size: 1rem;
    height: 2.25rem;
    min-height: 2.25rem;
  }
  .fp-invoice-items-table .js-item-name {
    min-width: 16rem;
  }
  .fp-panel .table-container.fp-invoice-items-scroll::before {
    content: "Pozycje faktury";
  }
  .fp-invoice-items-scroll {
    margin-left: 0;
    margin-right: 0;
  }
  .fp-invoice-items-scroll .fp-invoice-items-table {
    min-width: 0;
  }
  .fp-invoice-items-table .js-item-name {
    min-width: 0;
  }
  #pokaz_ukryte {
    min-width: 0;
    width: 100%;
  }
  .fp-items-summary {
    margin-left: 0;
    width: 100%;
  }
  .fp-items-summary .table {
    min-width: 28rem;
  }
  .fp-checkbox-grid {
    grid-template-columns: 1fr;
  }
  .fp-item-order {
    grid-template-columns: 1.2rem 1.35rem 1.35rem;
    min-width: 4rem;
  }
}

/* ustawienia.css */
.pomoc {
  color: #666;
  font-size: 0.8rem;
}
.logo-preview {
  max-width: 250px;
  max-height: 120px;
  margin-top: 0.5rem;
  display: block;
}

/* logowanie.css */
.login-box {
  max-width: 420px;
  margin: 0 auto;
}

.firma-logo-preview-wrap {
  max-width: 320px;
}
.firma-logo-preview {
  max-height: 150px;
  width: auto;
  object-fit: contain;
}

.ksef-token {
  font-family: Consolas, Menlo, Monaco, monospace;
  font-size: 0.85rem;
}

/* index.php login */
.fp-login-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Google Sans", "Google Sans Flex", Arial, sans-serif;
  background:
    linear-gradient(115deg, rgba(210, 252, 240, 0.82) 0%, rgba(229, 248, 255, 0.92) 42%, rgba(244, 248, 252, 0.98) 100%),
    linear-gradient(160deg, #f7fcff 0%, #eef8fb 48%, #f6f9fc 100%);
  color: #172033;
  position: relative;
  overflow: hidden;
}
.fp-login-page::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 45%, rgba(170, 247, 232, 0.68) 0%, transparent 43%),
    radial-gradient(ellipse at 78% 48%, rgba(201, 231, 255, 0.72) 0%, transparent 48%),
    linear-gradient(115deg, rgba(214, 252, 243, 0.72) 0%, rgba(229, 246, 255, 0.7) 50%, transparent 78%);
  filter: blur(32px);
  transform: translate3d(0, 0, 0);
}
.fp-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}
.fp-login-panel {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 2rem;
  align-items: center;
}
.fp-login-copy {
  padding: 2rem;
}
.fp-login-logo img {
  width: 150px;
  height: auto;
  margin-bottom: 2.5rem;
}
.fp-login-copy h1 {
  max-width: 540px;
  font-size: clamp(1.87rem, 4.25vw, 3.91rem);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 900;
  margin: 0 0 1rem;
}
.fp-login-copy p {
  max-width: 480px;
  color: #516174;
  font-size: 1.15rem;
  line-height: 1.55;
}
.fp-login-card {
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.86);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 2rem 5rem rgba(34, 61, 83, 0.12);
  backdrop-filter: blur(16px);
}
.fp-login-card .input {
  background: rgba(232, 241, 255, 0.86);
}
@media (max-width: 860px) {
  .fp-login-shell { padding: 1rem; align-items: flex-start; }
  .fp-login-panel { grid-template-columns: 1fr; gap: 1rem; }
  .fp-login-copy { padding: 1rem 0; }
  .fp-login-logo img { margin-bottom: 1.5rem; }
}

/* superadmin */
.fp-superadmin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(72, 199, 142, 0.22), transparent 28rem),
    radial-gradient(circle at 80% 5%, rgba(62, 142, 208, 0.22), transparent 24rem),
    linear-gradient(135deg, #f7fbff 0%, #eef5ff 100%);
}
.fp-superadmin-login-box {
  width: min(420px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 1.5rem 4rem rgba(23, 32, 51, 0.14);
  backdrop-filter: blur(16px);
}
.fp-superadmin .table code {
  white-space: nowrap;
}

.fp-inline-suggestions {
  display: none;
  max-height: 15rem;
  overflow: auto;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2.5rem rgba(23, 32, 51, 0.12);
  margin-top: 0.35rem;
  position: relative;
  z-index: 20;
}
.fp-inline-suggestions .d_pozycja:last-child {
  border-bottom: 0;
}

.d_pozycja.is-active {
  background: #eff6ff;
  color: #1b3a63;
}
.d_pozycja.is-active span {
  color: #485fc7;
}
.fp-suggestion-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#nabywca_lista,
#podmiot3_lista {
  position: absolute;
  z-index: 80;
  max-height: 18rem;
  min-width: 18rem;
  max-width: min(100%, 56rem);
  overflow: auto;
  margin-top: 0;
  background: #fff;
  color: #273244;
  border: 1px solid #dbe4f0;
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2.5rem rgba(23, 32, 51, 0.18);
}

.fp-client-history {
  font-size: 0.82rem;
}
.fp-client-history .title,
.fp-client-history-title {
  font-size: 0.95rem;
}
.fp-client-history .columns {
  font-size: 0.82rem;
}
.fp-client-history-table {
  font-size: 0.78rem;
}
.fp-client-history-table th,
.fp-client-history-table td {
  padding: 0.45rem 0.55rem;
}
.fp-client-history-total td {
  border-top: 2px solid #d8e0ec;
  background: #fff;
}

.fp-invoice-company-head,
.fp-invoice-company-cell {
  min-width: 13rem;
  width: auto;
  max-width: none;
}
.fp-invoice-company-name {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.35;
}
.fp-company-line {
  min-width: 0;
}
.fp-invoice-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.fp-invoice-tags.tags {
  margin-bottom: 0;
}
.fp-invoice-tags .tag {
  margin: 0;
}
.fp-col-number { width: 8rem; }
.fp-col-company { width: 34%; }
.fp-col-amount { width: 7rem; }
.fp-col-date { width: 6.5rem; }
.fp-col-actions { width: 12rem; }
.fp-col-ksef { width: 10rem; }
.fp-col-paid { width: 6rem; }
#tabela th {
  white-space: nowrap;
  word-break: normal;
}
#tabela tr.fp-mobile-card-header-row td,
#tabela tr.fp-mobile-card-header-row td strong,
#tabela .fp-invoice-company-head,
#tabela .fp-invoice-company-head strong {
  font-family: "Google Sans", "Google Sans Flex", Arial, sans-serif;
  font-variant-numeric: normal;
  font-feature-settings: normal;
}
#tabela td:not(.fp-invoice-company-cell),
#tabela th:not(.fp-invoice-company-head) {
  overflow-wrap: normal;
  word-break: normal;
}
.fp-customer-invoice-number {
  color: #111827;
  font-weight: 400;
}
.fp-customer-invoice-number:hover {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 0.12rem;
}
.fp-customer-paid-tag {
  min-width: 3rem;
  justify-content: center;
  font-weight: 700;
}
.fp-client-name-link {
  color: #111827;
  font-weight: 700;
}
.fp-client-name-link:hover {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 0.12rem;
}
.fp-client-row-actions {
  gap: 0.35rem;
  flex-wrap: wrap;
}
.fp-duplicate-client-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.fp-duplicate-client-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
}
.fp-duplicate-client-row > div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.fp-inline-delete-form {
  display: inline-flex;
  margin: 0;
}

.fp-cost-filter .field.is-grouped {
  gap: 0.5rem;
}
.fp-cost-table td,
.fp-cost-table th {
  vertical-align: middle;
}
.fp-cost-table {
  font-size: 0.88rem;
}
.fp-cost-table .buttons {
  gap: 0.3rem;
}
.fp-cost-number {
  color: #111827;
  font-weight: 700;
}
.fp-cost-number:hover {
  color: #2563eb;
}
.fp-xml-preview {
  max-height: 26rem;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 0.78rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
}
.fp-cost-preview .level {
  align-items: flex-start;
}
.fp-cost-summary-table th,
.fp-cost-summary-table td {
  border-color: #e5eaf1;
  padding: 0.55rem 0.75rem;
}
.fp-cost-summary-table th,
.fp-cost-summary-table td:first-child {
  width: 40%;
  color: #5f6b7a;
  font-weight: 600;
}
.fp-cost-total-box {
  border: 1px solid #e5eaf1;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #fff;
}
.fp-cost-total-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5eaf1;
}
.fp-cost-total-box div:last-child {
  border-bottom: 0;
}
.fp-cost-total-box span {
  color: #5f6b7a;
}
.fp-cost-total-box strong {
  color: #111827;
}
.fp-cost-total-box .is-total {
  background: #f8fafc;
  font-size: 1.05rem;
}
.fp-cost-items-table {
  font-size: 0.88rem;
}
.fp-cost-items-table th,
.fp-cost-items-table td {
  vertical-align: middle;
  padding: 0.55rem 0.65rem;
}
.fp-cost-items-table thead th {
  color: #5f6b7a;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.fp-cost-note-cell {
  min-width: 22rem;
}
.fp-cost-meta-form .field.is-grouped {
  gap: 0.35rem;
  flex-wrap: wrap;
}
.fp-cost-meta-form .input,
.fp-cost-meta-form .select select {
  font-size: 0.78rem;
}
.fp-cost-card-meta {
  padding: 1rem;
  border: 1px solid #e5eaf1;
  border-radius: 0.9rem;
  background: #f8fafc;
}
.fp-cost-card-meta .textarea {
  min-height: 6.4rem;
}
.fp-cost-detail-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.fp-cost-detail-card {
  border: 1px solid #e5eaf1;
  border-radius: 0.9rem;
  background: #fbfdff;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
}
.fp-cost-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid #edf1f6;
}
.fp-cost-detail-row:last-child {
  border-bottom: 0;
}
.fp-cost-detail-row span {
  color: #64748b;
}
.fp-cost-detail-row strong {
  color: #111827;
  text-align: right;
}
.fp-export-card {
  height: 100%;
  border: 1px solid #e5eaf1;
  box-shadow: none;
}
.fp-export-card .title {
  color: #111827;
}
.fp-export-card p {
  overflow-wrap: anywhere;
}
.fp-export-card .button {
  max-width: 100%;
  white-space: normal;
}
.fp-export-card-primary {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.fp-dashboard-stat {
  height: 100%;
  border: 1px solid #e5eaf1;
  box-shadow: none;
}
.fp-dashboard-filter .field.is-grouped {
  gap: 0.65rem;
}
.fp-dashboard-filter .button {
  margin-bottom: 0;
}
.fp-dashboard-period-buttons {
  padding-top: 1.65rem;
}
.fp-dashboard-range-note {
  color: #1f2937;
  margin-top: 0.35rem;
}
.fp-dashboard-mobile-nav {
  display: none;
}
.fp-dashboard-mobile-nav-wrap,
.fp-dashboard-mobile-nav-more,
.fp-dashboard-scroll-top,
.fp-panel-scroll-top,
.fp-panel-mobile-scroll-wrap,
.fp-panel-mobile-scroll-more {
  display: none;
}
.fp-dashboard-anchor {
  scroll-margin-top: 5rem;
}
.fp-dashboard-stat span,
.fp-dashboard-stat small {
  display: block;
  color: #5f6b7a;
}
.fp-dashboard-stat strong {
  display: block;
  margin: 0.35rem 0 0.2rem;
  color: #111827;
  font-size: 1.55rem;
  line-height: 1.15;
}
.fp-dashboard-financial-summary .fp-dashboard-stat strong,
.fp-invoice-list-summary .fp-dashboard-stat strong,
.fp-cost-list-summary .fp-dashboard-stat strong {
  text-align: right;
}
.fp-dashboard-financial-summary .fp-dashboard-stat small,
.fp-invoice-list-summary .fp-dashboard-stat small,
.fp-cost-list-summary .fp-dashboard-stat small {
  text-align: right;
}
.fp-dashboard-stat-warning {
  background: #fff7ed;
  border-color: #fed7aa;
}
.fp-dashboard-stat-danger {
  background: #fff1f2;
  border-color: #fecdd3;
}
.fp-dashboard-stat-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.fp-dashboard-stat-actions a {
  color: #2563eb;
  white-space: nowrap;
}
.fp-dashboard-reminders {
  border: 1px solid #e5eaf1;
  box-shadow: none;
}
.fp-dashboard-reminder {
  display: grid;
  gap: 0.35rem;
  height: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #e5eaf1;
  border-radius: 0.5rem;
  background: #fff;
  color: #1f2937;
  text-decoration: none;
}
.fp-dashboard-reminder:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}
.fp-dashboard-reminder strong,
.fp-dashboard-reminder small {
  display: block;
}
.fp-dashboard-reminder small {
  color: #64748b;
}
.fp-dashboard-reminder-danger {
  border-color: #fecdd3;
}
.fp-dashboard-reminder-warning {
  border-color: #fed7aa;
}
.fp-dashboard-reminder-info {
  border-color: #bfdbfe;
}
.fp-dashboard-suggestions {
  border: 1px solid #dbeafe;
  box-shadow: none;
}
.fp-dashboard-suggestion-card {
  height: 100%;
  padding: 1rem;
  border: 1px solid #e5eaf1;
  border-radius: 0.5rem;
  background: #fbfdff;
}
.fp-dashboard-suggestion-head {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.fp-dashboard-suggestion-card .buttons {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.fp-dashboard-suggestion-card .fp-suggestion-actions {
  margin-bottom: 0;
}
.fp-dashboard-suggestion-card form {
  margin: 0;
}
.fp-dashboard-suggestion-card .buttons .button,
.fp-dashboard-suggestion-card .buttons form {
  flex: 0 1 auto;
}
.fp-dashboard-suggestion-card .buttons form .button {
  width: 100%;
}
.fp-dashboard-table {
  font-size: 0.9rem;
  table-layout: fixed;
  width: 100%;
}
.fp-dashboard-table td,
.fp-dashboard-table th {
  max-width: 0;
  overflow-wrap: anywhere;
  vertical-align: middle;
  white-space: normal;
}
.fp-dashboard-table td a {
  overflow-wrap: anywhere;
}
.fp-panel a.fp-black-link,
.fp-panel a.fp-black-link:visited {
  color: #1f2933;
  text-decoration: none;
}
.fp-panel .has-text-grey a.fp-black-link,
.fp-panel a.fp-black-link.is-muted {
  color: #64748b;
}
.fp-panel a.fp-black-link:hover,
.fp-panel a.fp-black-link:focus {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 0.12rem;
}
.fp-panel .fp-recurring-table td a.fp-black-link,
.fp-panel .fp-recurring-table td a.fp-black-link:visited {
  color: #1f2933 !important;
  text-decoration: none;
}
.fp-panel .table th a,
.fp-panel .table th a:visited {
  color: #1f2933;
  text-decoration: none;
}
.fp-panel .table th a:hover,
.fp-panel .table th a:focus {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 0.12rem;
}
.fp-dashboard-compact-table,
.fp-dashboard-unpaid-table,
.fp-dashboard-costs-table,
.fp-dashboard-top-clients-table,
.fp-dashboard-recurring-table {
  table-layout: auto;
}
.fp-dashboard-table-wrap {
  max-width: 100%;
}
.fp-dashboard-unpaid-table {
  min-width: 52rem;
}
.fp-dashboard-costs-table {
  min-width: 42rem;
}
.fp-dashboard-top-clients-table {
  min-width: 38rem;
}
.fp-dashboard-recurring-table {
  min-width: 28rem;
}
.fp-dashboard-compact-table td,
.fp-dashboard-compact-table th,
.fp-dashboard-unpaid-table td,
.fp-dashboard-unpaid-table th,
.fp-dashboard-costs-table td,
.fp-dashboard-costs-table th,
.fp-dashboard-top-clients-table td,
.fp-dashboard-top-clients-table th,
.fp-dashboard-recurring-table td,
.fp-dashboard-recurring-table th {
  max-width: none;
  overflow-wrap: normal;
  word-break: normal;
}
.fp-dashboard-compact-table td a,
.fp-dashboard-unpaid-table td a,
.fp-dashboard-costs-table td a,
.fp-dashboard-top-clients-table td a,
.fp-dashboard-recurring-table td a {
  overflow-wrap: anywhere;
}
.fp-dashboard-unpaid-table th:nth-child(1),
.fp-dashboard-unpaid-table td:nth-child(1) {
  min-width: 7rem;
}
.fp-dashboard-unpaid-table th:nth-child(2),
.fp-dashboard-unpaid-table td:nth-child(2),
.fp-dashboard-costs-table th:nth-child(2),
.fp-dashboard-costs-table td:nth-child(2),
.fp-dashboard-top-clients-table th:nth-child(1),
.fp-dashboard-top-clients-table td:nth-child(1),
.fp-dashboard-recurring-table th:nth-child(1),
.fp-dashboard-recurring-table td:nth-child(1) {
  min-width: 13rem;
}
.fp-dashboard-costs-table th:nth-child(1),
.fp-dashboard-costs-table td:nth-child(1) {
  min-width: 7.5rem;
}
.fp-dashboard-unpaid-table th:nth-child(3),
.fp-dashboard-unpaid-table td:nth-child(3),
.fp-dashboard-recurring-table th:nth-child(2),
.fp-dashboard-recurring-table td:nth-child(2) {
  min-width: 7.5rem;
}
.fp-dashboard-costs-table th:nth-child(3),
.fp-dashboard-costs-table td:nth-child(3) {
  min-width: 6.5rem;
}
.fp-dashboard-table th.has-text-right,
.fp-dashboard-table td.has-text-right,
.fp-dashboard-table td:last-child,
.fp-dashboard-table th:last-child {
  max-width: none;
  white-space: nowrap;
}
.fp-money,
.fp-dashboard-table .has-text-right,
#tabela td[align="right"],
#tabela th[align="right"],
.table td.has-text-right,
.table th.has-text-right {
  white-space: nowrap;
}
.fp-dashboard-unpaid-actions {
  gap: 0.35rem;
  flex-wrap: nowrap;
}
.fp-dashboard-unpaid-actions form {
  margin: 0;
}
.fp-dashboard-ksef {
  display: grid;
  gap: 0.55rem;
}
.fp-dashboard-ksef div,
.fp-dashboard-ksef a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #eef2f7;
}
.fp-dashboard-ksef a {
  color: inherit;
  text-decoration: none;
}
.fp-dashboard-ksef div:last-child,
.fp-dashboard-ksef a:last-child {
  border-bottom: 0;
}
.fp-dashboard-ksef span {
  color: #5f6b7a;
}
.fp-dashboard-ksef strong {
  color: #111827;
}
.fp-dashboard-activity-box {
  border: 1px solid #e5eaf1;
  box-shadow: none;
}
.fp-dashboard-activity-list {
  max-height: 310px;
  overflow: auto;
  padding-right: 0.25rem;
}
.fp-dashboard-activity-item {
  position: relative;
  display: flex;
  gap: 0.75rem;
  padding: 0.2rem 0 0.85rem;
}
.fp-dashboard-activity-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.36rem;
  top: 0.95rem;
  bottom: 0;
  width: 1px;
  background: #d8e0ea;
}
.fp-dashboard-activity-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 0.75rem;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 3px #eff6ff;
}
.fp-dashboard-activity-content {
  min-width: 0;
  flex: 1;
}
.fp-dashboard-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.fp-dashboard-activity-head time,
.fp-dashboard-activity-content small {
  color: #64748b;
  font-size: 0.75rem;
}
.fp-dashboard-activity-content strong,
.fp-dashboard-activity-content a,
.fp-dashboard-activity-content small {
  display: block;
}
.fp-dashboard-activity-content strong {
  color: #111827;
  font-size: 0.9rem;
  line-height: 1.3;
}
.fp-dashboard-activity-content a {
  margin-top: 0.1rem;
  color: #2563eb;
  font-size: 0.82rem;
}
.fp-dashboard-activity-login .fp-dashboard-activity-dot {
  background: #0ea5e9;
  box-shadow: 0 0 0 3px #e0f2fe;
}
.fp-dashboard-activity-settings .fp-dashboard-activity-dot {
  background: #8b5cf6;
  box-shadow: 0 0 0 3px #f3e8ff;
}
.fp-dashboard-activity-email .fp-dashboard-activity-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px #dcfce7;
}
.fp-dashboard-activity-ksef .fp-dashboard-activity-dot {
  background: #06b6d4;
  box-shadow: 0 0 0 3px #cffafe;
}
.fp-dashboard-activity-bank .fp-dashboard-activity-dot {
  background: #f97316;
  box-shadow: 0 0 0 3px #ffedd5;
}
.fp-dashboard-activity-cost .fp-dashboard-activity-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px #fef3c7;
}
.fp-dashboard-activity-export .fp-dashboard-activity-dot {
  background: #6366f1;
  box-shadow: 0 0 0 3px #e0e7ff;
}
.fp-products-table td,
.fp-products-table th,
.fp-invoice-types-table td,
.fp-invoice-types-table th,
.fp-users-table td,
.fp-users-table th {
  vertical-align: middle;
}
.fp-invoice-types-table {
  min-width: 62rem;
}
.fp-users-table {
  min-width: 54rem;
}
.fp-invoice-types-table th:nth-child(1),
.fp-invoice-types-table td:nth-child(1),
.fp-invoice-types-table th:nth-child(2),
.fp-invoice-types-table td:nth-child(2),
.fp-invoice-types-table th:nth-child(3),
.fp-invoice-types-table td:nth-child(3) {
  white-space: nowrap;
  width: 1%;
}
.fp-invoice-types-table th:nth-child(4),
.fp-invoice-types-table td:nth-child(4) {
  min-width: 14rem;
}
.fp-invoice-types-table th:nth-child(6),
.fp-invoice-types-table td:nth-child(6) {
  min-width: 16rem;
}
.fp-users-table th:nth-child(2),
.fp-users-table td:nth-child(2) {
  min-width: 14rem;
}
.fp-products-header {
  align-items: flex-start;
  gap: 1rem;
}
.fp-products-header-title {
  flex: 1 1 360px;
  min-width: 0;
}
.fp-products-header-actions {
  flex: 0 1 720px;
  min-width: 0;
}
.fp-products-header-actions .buttons {
  justify-content: flex-end;
}
.fp-products-header-actions .button {
  margin-bottom: 0.5rem;
}
.fp-products-table .input,
.fp-products-table .select select {
  font-size: 0.82rem;
}
.fp-products-table th:nth-child(1),
.fp-products-table td:nth-child(1),
.fp-products-table th:nth-child(2),
.fp-products-table td:nth-child(2) {
  white-space: nowrap;
  width: 1%;
}
@media screen and (max-width: 1215px) {
  .fp-products-header {
    display: block !important;
  }
  .fp-products-header-title {
    display: block;
    flex: none;
    width: 100%;
  }
  .fp-products-header-actions {
    display: block;
    flex: none;
    margin-top: 1rem;
    width: 100%;
  }
  .fp-products-header-actions .buttons {
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  .fp-products-header {
    align-items: stretch;
    display: grid !important;
    gap: 0.75rem;
  }
  .fp-products-header-title,
  .fp-products-header-actions {
    display: block !important;
    flex: none !important;
    min-height: 0;
    width: 100%;
  }
  .fp-products-header-actions .buttons,
  .fp-products-header-actions .button {
    width: 100%;
  }
  .fp-products-header-actions .button {
    justify-content: center;
  }
  .fp-products-table {
    min-width: 0;
  }
  .fp-invoice-types-table {
    min-width: 56rem;
  }
  .fp-users-table {
    min-width: 48rem;
  }
}
.fp-recurring-table td,
.fp-recurring-table th,
.fp-recurring-items-table td,
.fp-recurring-items-table th {
  vertical-align: middle;
}
.fp-recurring-table .buttons {
  flex-wrap: wrap;
  gap: 0.35rem;
}
.fp-recurring-table .buttons .button {
  margin-bottom: 0;
}
.fp-recurring-table td:last-child {
  min-width: 18rem;
  max-width: 24rem;
}
@media (max-width: 1200px) {
  .fp-panel .table {
    font-size: 0.82rem;
  }
  .fp-panel .table th {
    font-size: 0.78rem;
    line-height: 1.18;
  }
  .fp-panel .table td {
    line-height: 1.25;
  }
  .fp-panel .table .tag {
    font-size: 0.68rem;
  }
  .fp-panel .table .button {
    font-size: 0.72rem;
    min-height: 1.9rem;
    padding: 0.28rem 0.45rem;
  }
  .fp-recurring-table td,
  .fp-recurring-table th {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
  .fp-recurring-table td:last-child {
    min-width: 9.25rem;
    max-width: 10.5rem;
  }
  .fp-recurring-table .buttons {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
  .fp-recurring-table .buttons .button,
  .fp-recurring-table .buttons form {
    width: 100%;
  }
  .fp-recurring-table .buttons .button {
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  .fp-recurring-table {
    min-width: 54rem;
  }
  .fp-recurring-table td:last-child {
    min-width: 8.75rem;
  }
  .fp-recurring-table .buttons .button {
    font-size: 0.68rem;
    min-height: 1.8rem;
  }
  .fp-recurring-items-table {
    min-width: 46rem;
  }
}
.fp-recurring-filter-row {
  align-items: flex-end;
}
.fp-panel .columns.fp-recurring-filter-row {
  display: block;
}
.fp-panel .columns.fp-recurring-filter-row > .column {
  display: block;
  max-width: 100%;
  width: 100%;
}
.fp-panel .columns.fp-recurring-filter-row > .column + .column {
  margin-top: 0.75rem;
}
.fp-recurring-filter-row .tabs {
  max-width: 100%;
  overflow: visible;
}
.fp-recurring-filter-row .tabs ul {
  flex-wrap: wrap;
}
.fp-recurring-filter-row form {
  max-width: 34rem;
}
@media (max-width: 900px) {
  .fp-recurring-filter-row .tabs {
    overflow: visible;
    width: 100%;
  }
  .fp-recurring-filter-row .tabs ul {
    border: 0;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: 100%;
  }
  .fp-recurring-filter-row .tabs li,
  .fp-recurring-filter-row .tabs li a {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .fp-recurring-filter-row .tabs.is-toggle li:first-child a,
  .fp-recurring-filter-row .tabs.is-toggle li:last-child a,
  .fp-recurring-filter-row .tabs.is-toggle li a {
    border-radius: 8px;
  }
  .fp-recurring-filter-row .tabs a {
    align-items: center;
    display: flex;
    font-size: 0.78rem;
    justify-content: space-between;
    min-height: 2.55rem;
    padding: 0.55rem 0.65rem;
    white-space: normal;
  }
  .fp-recurring-filter-row .tabs .tag {
    flex: 0 0 auto;
    margin-left: 0.35rem !important;
  }
}
@media (max-width: 768px) {
  .fp-recurring-filter-row form {
    max-width: none;
  }
  .fp-recurring-filter-row .tabs {
    margin-bottom: 0;
  }
  .fp-recurring-filter-row .field.has-addons .control,
  .fp-recurring-filter-row .field.has-addons .input,
  .fp-recurring-filter-row .field.has-addons .button {
    width: 100%;
  }
  .fp-recurring-filter-row .field.has-addons {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .fp-recurring-filter-row .tabs ul {
    grid-template-columns: 1fr;
  }
}
.fp-inline-form {
  display: inline-block;
  margin: 0;
}
.fp-invoice-items-table,
.fp-recurring-items-table {
  table-layout: fixed;
}
.fp-invoice-items-scroll {
  margin-bottom: 0.75rem;
}
.fp-invoice-items-table .input,
.fp-invoice-items-table .select select,
.fp-recurring-items-table .input,
.fp-recurring-items-table .select select {
  font-size: 0.86rem;
  width: 100%;
}
.fp-invoice-items-table th:nth-child(1),
.fp-invoice-items-table td:nth-child(1) {
  width: 3rem;
}
.fp-invoice-items-table th:nth-child(2),
.fp-invoice-items-table td:nth-child(2) {
  width: 34%;
}
.fp-invoice-items-table th:nth-child(3),
.fp-invoice-items-table td:nth-child(3) {
  width: 4.5rem;
}
.fp-invoice-items-table th:nth-child(4),
.fp-invoice-items-table td:nth-child(4),
.fp-invoice-items-table th:nth-child(8),
.fp-invoice-items-table td:nth-child(8),
.fp-invoice-items-table th:nth-child(9),
.fp-invoice-items-table td:nth-child(9) {
  width: 6.5rem;
}
.fp-invoice-items-table th:nth-child(5),
.fp-invoice-items-table td:nth-child(5) {
  width: 5rem;
}
.fp-invoice-items-table th:nth-child(6),
.fp-invoice-items-table td:nth-child(6) {
  width: 4.7rem;
}
.fp-invoice-items-table th:nth-child(7),
.fp-invoice-items-table td:nth-child(7) {
  width: 4.5rem;
}
.fp-recurring-items-table th:nth-child(1),
.fp-recurring-items-table td:nth-child(1) {
  width: 44%;
}
.fp-recurring-items-table th:nth-child(2),
.fp-recurring-items-table td:nth-child(2) {
  width: 8rem;
}
.fp-recurring-items-table th:nth-child(2),
.fp-recurring-items-table td:nth-child(2),
.fp-recurring-items-table th:nth-child(3),
.fp-recurring-items-table td:nth-child(3),
.fp-recurring-items-table th:nth-child(4),
.fp-recurring-items-table td:nth-child(4),
.fp-recurring-items-table th:nth-child(5),
.fp-recurring-items-table td:nth-child(5),
.fp-recurring-items-table th:nth-child(6),
.fp-recurring-items-table td:nth-child(6) {
  white-space: nowrap;
}
.fp-recurring-items-table th:nth-child(3),
.fp-recurring-items-table td:nth-child(3) {
  width: 5.4rem;
}
.fp-recurring-items-table th:nth-child(4),
.fp-recurring-items-table td:nth-child(4) {
  width: 6rem;
}
.fp-recurring-items-table th:nth-child(5),
.fp-recurring-items-table td:nth-child(5) {
  width: 7.6rem;
}
.fp-recurring-items-table th:nth-child(6),
.fp-recurring-items-table td:nth-child(6) {
  width: 5.4rem;
}
.fp-invoice-items-table th:nth-child(2),
.fp-invoice-items-table td:nth-child(2),
.fp-recurring-items-table th:nth-child(1),
.fp-recurring-items-table td:nth-child(1) {
  white-space: normal;
}
.fp-history-summary .label {
  color: #64748b;
  font-size: 0.78rem;
  margin-bottom: 0.12rem;
}
.fp-history-summary .value {
  font-weight: 700;
}
.fp-history-list {
  border-left: 2px solid #dbe3ea;
  margin-left: 0.65rem;
  padding-left: 1.2rem;
}
.fp-history-item {
  position: relative;
  padding: 0 0 1.1rem 0;
}
.fp-history-item:before {
  content: "";
  position: absolute;
  left: -1.62rem;
  top: 0.35rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #60a5fa;
}
.fp-history-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fp-history-time {
  color: #64748b;
  font-size: 0.82rem;
  white-space: nowrap;
}
.fp-history-actor {
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.fp-history-meta {
  color: #64748b;
  font-size: 0.78rem;
  margin-top: 0.25rem;
  word-break: break-word;
}
.fp-bank-stat {
  color: inherit;
  display: block;
  min-height: 100%;
  text-decoration: none;
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}
.fp-bank-stat-grid {
  align-items: stretch;
}
.fp-bank-stat:hover {
  box-shadow: 0 0.85rem 1.8rem rgba(15, 23, 42, 0.08);
  color: inherit;
  transform: translateY(-1px);
}
.fp-bank-stat .title {
  margin-bottom: 0.15rem;
  white-space: nowrap;
}
.fp-bank-stat .help {
  color: #64748b;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.fp-bank-import-header {
  gap: 1.5rem;
}
.fp-bank-import-actions {
  align-items: flex-start;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 0;
}
.fp-bank-import-actions .button,
.fp-bank-import-actions form {
  margin: 0;
}
.fp-bank-import-actions .button {
  justify-content: flex-start;
  min-width: 12.5rem;
}
.fp-bank-review-table td {
  vertical-align: top;
}
.fp-bank-review-table-wrap {
  max-width: 100%;
}
.fp-bank-review-table .button {
  height: 2.25rem;
}
.fp-bank-review-table td[style*="min-width"] {
  min-width: 22rem !important;
}
.fp-bank-recent-table:not(.fp-mobile-card-table) {
  font-size: 0.84rem;
  min-width: 58rem;
}
.fp-bank-recent-table th,
.fp-bank-recent-table td {
  vertical-align: top;
}
.fp-bank-recent-table th:nth-child(1),
.fp-bank-recent-table td:nth-child(1) {
  width: 4.3rem;
}
.fp-bank-recent-table th:nth-child(2),
.fp-bank-recent-table td:nth-child(2) {
  width: 13.5rem;
}
.fp-bank-recent-table th:nth-child(3),
.fp-bank-recent-table td:nth-child(3) {
  width: 17rem;
}
.fp-bank-recent-table th:nth-child(4),
.fp-bank-recent-table td:nth-child(4) {
  width: 6.5rem;
  white-space: nowrap;
}
.fp-bank-recent-table th:nth-child(5),
.fp-bank-recent-table td:nth-child(5) {
  width: 8rem;
}
.fp-bank-recent-table th:nth-child(6),
.fp-bank-recent-table td:nth-child(6) {
  width: 7rem;
}
.fp-bank-recent-table th:nth-child(7),
.fp-bank-recent-table td:nth-child(7) {
  width: 7rem;
}
@media (max-width: 1200px) {
  .fp-bank-recent-table:not(.fp-mobile-card-table) {
    font-size: 0.78rem;
    min-width: 52rem;
  }
  .fp-bank-recent-table th,
  .fp-bank-recent-table td {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
@media (max-width: 900px) {
  .fp-bank-import-header {
    align-items: stretch !important;
    flex-direction: column;
  }
  .fp-bank-import-actions {
    width: 100%;
  }
  .fp-bank-import-actions .button,
  .fp-bank-import-actions form {
    width: 100%;
  }
  .fp-bank-recent-table:not(.fp-mobile-card-table) {
    min-width: 48rem;
  }
  .fp-bank-stat {
    min-height: 8rem;
  }
}
.fp-bank-duplicate-table td {
  vertical-align: top;
}
.fp-bank-duplicate-line {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  margin-bottom: 0.45rem;
  padding: 0.55rem 0.65rem;
  overflow-wrap: anywhere;
}
.fp-bank-duplicate-line:last-child {
  margin-bottom: 0;
}
.fp-bank-duplicate-keep {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.fp-bank-duplicate-skip {
  background: #fffbeb;
  border-color: #fde68a;
}
.fp-bank-duplicate-protected {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.fp-bank-duplicate-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.25rem;
}
.fp-bank-duplicate-meta {
  color: #1f2a44;
  margin-bottom: 0.2rem;
}
.fp-bank-duplicate-main {
  color: #0f172a;
  font-weight: 600;
}
.fp-bank-duplicate-line small {
  color: #64748b;
  display: block;
  line-height: 1.35;
  margin-top: 0.12rem;
}
.fp-bank-reason-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.28rem;
  max-width: 12rem;
}
.fp-bank-reason-tags .tag {
  font-size: 0.68rem;
  height: 1.35rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}
.fp-bank-invoice-summary .title {
  white-space: nowrap;
}
.fp-bank-invoice-payments {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}
.fp-bank-invoice-payments table td {
  vertical-align: top;
}
.fp-panel .tabs.is-toggle li.is-active a .tag {
  background: #ffffff !important;
  color: #1f2a44 !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 700;
}
.fp-bank-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.fp-bank-quick-filters .button {
  font-size: 0.72rem;
  height: 1.75rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.fp-paragon-page-head {
  gap: 0.75rem;
}
.fp-paragon-page-head > div:first-child {
  min-width: 0;
}
.fp-paragon-filter .columns {
  margin-bottom: 0;
}
.fp-paragon-list-table {
  min-width: 62rem;
}
.fp-printer-table {
  min-width: 54rem;
}
.fp-paragon-list-table th,
.fp-paragon-list-table td,
.fp-printer-table th,
.fp-printer-table td {
  vertical-align: middle;
}
.fp-paragon-list-table th:nth-child(1),
.fp-paragon-list-table td:nth-child(1) {
  width: 9rem;
}
.fp-paragon-list-table th:nth-child(2),
.fp-paragon-list-table td:nth-child(2) {
  width: 7rem;
}
.fp-paragon-list-table th:nth-child(3),
.fp-paragon-list-table td:nth-child(3) {
  min-width: 14rem;
}
.fp-paragon-list-table th:nth-child(4),
.fp-paragon-list-table td:nth-child(4) {
  width: 7rem;
  white-space: nowrap;
}
.fp-paragon-list-table th:nth-child(8),
.fp-paragon-list-table td:nth-child(8) {
  width: 10rem;
}
.fp-paragon-items-table {
  min-width: 48rem;
}
.fp-paragon-items-view-table {
  min-width: 44rem;
}
.fp-paragon-meta-table {
  min-width: 36rem;
}
.fp-paragon-history-table {
  min-width: 34rem;
}
.fp-customer-bank-table {
  min-width: 38rem;
}
.fp-customer-bank-transfers-row td {
  padding-top: 0;
}
.fp-customer-bank-transfers-row:hover td {
  background: inherit;
}
.fp-customer-bank-transfers {
  display: grid;
  gap: 0.35rem;
}
.fp-customer-bank-transfer {
  border-top: 1px solid #e5eaf1;
  padding-top: 0.35rem;
}
.fp-customer-bank-transfer:first-of-type {
  border-top: 0;
}
.fp-customer-recurring-table {
  min-width: 54rem;
}
.fp-customer-invoices-table {
  min-width: 44rem;
}
.fp-accountant-table {
  min-width: 58rem;
}
.fp-cost-history-table {
  min-width: 48rem;
}
.fp-bank-connections-table {
  min-width: 66rem;
}
.fp-bank-preview-table {
  min-width: 62rem;
}
.fp-bank-providers-table {
  min-width: 54rem;
}
.fp-bank-history-table {
  min-width: 70rem;
}
.fp-bank-sync-history-table {
  min-width: 66rem;
}
.fp-actions-history-table {
  min-width: 56rem;
}
.fp-update-result-table {
  min-width: 34rem;
}
.fp-update-schema-table,
.fp-update-global-table {
  min-width: 54rem;
}
.fp-ksef-selftest-table {
  min-width: 48rem;
}
.fp-ocr-selftest-table {
  min-width: 42rem;
}
.fp-bank-discrepancy-invoices-table {
  min-width: 60rem;
}
.fp-bank-discrepancy-operations-table {
  min-width: 70rem;
}
.fp-bank-connections-table th,
.fp-bank-connections-table td,
.fp-bank-preview-table th,
.fp-bank-preview-table td,
.fp-bank-providers-table th,
.fp-bank-providers-table td,
.fp-bank-history-table th,
.fp-bank-history-table td,
.fp-bank-sync-history-table th,
.fp-bank-sync-history-table td,
.fp-actions-history-table th,
.fp-actions-history-table td,
.fp-update-result-table th,
.fp-update-result-table td,
.fp-update-schema-table th,
.fp-update-schema-table td,
.fp-update-global-table th,
.fp-update-global-table td,
.fp-ksef-selftest-table th,
.fp-ksef-selftest-table td,
.fp-ocr-selftest-table th,
.fp-ocr-selftest-table td,
.fp-bank-discrepancy-invoices-table th,
.fp-bank-discrepancy-invoices-table td,
.fp-bank-discrepancy-operations-table th,
.fp-bank-discrepancy-operations-table td {
  vertical-align: top;
}
.fp-bank-connections-table .buttons,
.fp-bank-preview-table .buttons {
  gap: 0.35rem;
}
.fp-bank-connections-table form,
.fp-bank-preview-table form {
  margin-bottom: 0;
}
.fp-paragon-items-table th:first-child,
.fp-paragon-items-table td:first-child,
.fp-paragon-items-view-table th:nth-child(2),
.fp-paragon-items-view-table td:nth-child(2) {
  min-width: 15rem;
}
.fp-paragon-items-table input,
.fp-paragon-items-table select {
  min-width: 0;
}
.fp-paragon-items-footer {
  gap: 0.75rem;
}

@media (max-width: 1200px) {
  .fp-col-number { width: 7rem; }
  .fp-col-company { width: 30%; }
  .fp-col-actions { width: 10rem; }
  .fp-col-ksef { width: 8rem; }
  .fp-cost-note-cell {
    min-width: 18rem;
  }
}
.fp-invoice-delete-card {
  width: min(1180px, calc(100vw - 32px));
}

.fp-invoice-delete-body {
  padding: 0;
  background: #f3f6fa;
}

.fp-invoice-delete-locked {
  margin: 16px 16px 0;
}

.fp-invoice-delete-preview {
  display: block;
  width: 100%;
  height: min(72vh, 820px);
  border: 0;
  background: #fff;
}

@media (max-width: 900px) {
  .fp-panel-mobile-scroll-wrap,
  .fp-dashboard-mobile-nav-wrap {
    display: block;
    margin: -0.15rem 0 0.9rem;
    position: sticky;
    top: 0.45rem;
    z-index: 20;
  }
  .fp-panel-mobile-scroll-x,
  .fp-dashboard-mobile-nav {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(180, 215, 230, 0.76);
    border-radius: 999px;
    box-shadow: 0 0.75rem 1.8rem rgba(15, 31, 51, 0.1);
    display: flex;
    gap: 0.4rem;
    margin: 0;
    overflow-x: auto;
    padding: 0.38rem 2.25rem 0.38rem 0.38rem;
    position: relative;
    scrollbar-width: none;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .fp-dashboard-mobile-nav-more {
    align-items: center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(240, 251, 255, 0.95) 34%, rgba(255, 255, 255, 0.96));
    border-radius: 0 999px 999px 0;
    color: #08aeea;
    display: inline-flex;
    font-size: 0.9rem;
    height: calc(100% - 0.12rem);
    justify-content: flex-end;
    opacity: 0;
    padding-right: 0.8rem;
    pointer-events: none;
    position: absolute;
    right: 0.08rem;
    top: 0.06rem;
    transition: opacity 0.18s ease;
    width: 3.2rem;
  }
  .fp-dashboard-mobile-nav-more-left {
    background: linear-gradient(270deg, rgba(255, 255, 255, 0), rgba(240, 251, 255, 0.95) 34%, rgba(255, 255, 255, 0.96));
    border-radius: 999px 0 0 999px;
    justify-content: flex-start;
    left: 0.08rem;
    padding-left: 0.8rem;
    padding-right: 0;
    right: auto;
  }
  .fp-dashboard-mobile-nav-wrap.has-more-left .fp-dashboard-mobile-nav-more-left {
    opacity: 1;
  }
  .fp-dashboard-mobile-nav-wrap.has-more-right .fp-dashboard-mobile-nav-more:not(.fp-dashboard-mobile-nav-more-left) {
    opacity: 1;
  }
  .fp-dashboard-mobile-nav::-webkit-scrollbar {
    display: none;
  }
  .fp-panel-mobile-scroll-x::-webkit-scrollbar {
    display: none;
  }
  .fp-dashboard-mobile-nav a {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    color: #1f2937;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 0.56rem 0.78rem;
    text-decoration: none;
    white-space: nowrap;
  }
  .fp-dashboard-mobile-nav a:hover,
  .fp-dashboard-mobile-nav a:focus {
    background: rgba(226, 246, 255, 0.94);
    border-color: rgba(8, 174, 234, 0.35);
    color: #0478a6;
  }
  .fp-dashboard-anchor {
    scroll-margin-top: 4.6rem;
  }
  .fp-dashboard-scroll-top,
  .fp-panel-scroll-top {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(180, 215, 230, 0.82);
    border-radius: 999px;
    bottom: 1rem;
    box-shadow: 0 0.8rem 2rem rgba(15, 31, 51, 0.16);
    color: #0478a6;
    display: inline-flex;
    font-size: 1rem;
    height: 2.75rem;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 1rem;
    transform: translateY(0.5rem);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
    width: 2.75rem;
    z-index: 45;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .fp-dashboard-scroll-top.is-visible,
  .fp-panel-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .fp-dashboard-scroll-top:hover,
  .fp-dashboard-scroll-top:focus,
  .fp-panel-scroll-top:hover,
  .fp-panel-scroll-top:focus {
    background: rgba(226, 246, 255, 0.96);
    color: #03698f;
  }
  .fp-panel .hero.is-small .hero-body {
    padding-bottom: 1rem;
    padding-top: 1rem;
  }
  .fp-panel .box + .box,
  .fp-panel .columns + .box,
  .fp-panel .box + .columns {
    margin-top: 0.85rem;
  }
  .fp-panel .level-right > .button,
  .fp-panel .level-right > form,
  .fp-panel .level-right > .buttons {
    width: 100%;
  }
  .fp-panel .level-right > .button,
  .fp-panel .level-right .buttons .button {
    justify-content: center;
  }
  .fp-panel .buttons.are-small .button,
  .fp-panel .button.is-small {
    min-height: 2.05rem;
  }
  .fp-panel .tag {
    white-space: normal;
  }
  .fp-dashboard-filter .field.is-grouped {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .fp-dashboard-filter .field.is-grouped > .control {
    min-width: 0;
  }
  .fp-dashboard-period-buttons {
    grid-column: 1 / -1;
    padding-top: 0;
  }
  .fp-dashboard-period-buttons .buttons {
    width: 100%;
  }
  .fp-dashboard-period-buttons .button {
    flex: 1 1 8rem;
  }
  .fp-dashboard-stat {
    min-height: 7rem;
  }
  .fp-dashboard-stat strong {
    font-size: 1.3rem;
  }
  .fp-dashboard-unpaid-table {
    min-width: 48rem;
  }
  .fp-dashboard-costs-table {
    min-width: 40rem;
  }
  .fp-dashboard-top-clients-table {
    min-width: 36rem;
  }
  .fp-dashboard-recurring-table {
    min-width: 28rem;
  }
  .fp-dashboard-suggestion-card .buttons .button,
  .fp-dashboard-suggestion-card .buttons form {
    flex: 0 1 auto;
  }
  .fp-dashboard-activity-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .fp-dashboard-activity-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }
  .fp-cost-filter .field.is-grouped {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .fp-cost-filter .field.is-grouped > .control {
    min-width: 0;
  }
  .fp-cost-filter .field.is-grouped > .control:first-child {
    grid-column: 1 / -1;
  }
  .fp-cost-table {
    min-width: 58rem;
  }
  .fp-cost-items-table {
    min-width: 44rem;
  }
  .fp-cost-detail-grid {
    grid-template-columns: 1fr;
  }
  .fp-bank-invoice-summary .columns.is-mobile {
    flex-wrap: wrap;
  }
  .fp-bank-invoice-summary .columns.is-mobile > .column {
    flex: 1 1 10rem;
  }
  .fp-bank-review-table {
    min-width: 56rem;
  }
  .fp-bank-review-table td[style*="min-width"] {
    min-width: 18rem !important;
  }
  .fp-bank-review-table .field.has-addons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .fp-bank-review-table .field.has-addons > .control {
    width: 100%;
  }
  .fp-bank-review-table .bank-invoice-select,
  .fp-bank-review-table .select {
    width: 100%;
  }
  .fp-bank-quick-filters .button {
    flex: 1 1 8rem;
    height: auto;
    min-height: 2rem;
  }
  .fp-paragon-filter .columns {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.42fr);
    margin-left: 0;
    margin-right: 0;
  }
  .fp-paragon-filter .column {
    padding: 0;
    width: auto;
  }
  .fp-paragon-filter .column:first-child {
    grid-column: 1 / -1;
  }
  .fp-paragon-filter .column.is-narrow {
    grid-column: auto;
  }
  .fp-paragon-filter .button {
    width: 100%;
  }
  .fp-paragon-list-table {
    min-width: 56rem;
  }
  .fp-printer-table {
    min-width: 50rem;
  }
  .fp-paragon-items-table,
  .fp-paragon-items-view-table {
    min-width: 42rem;
  }
  .fp-paragon-meta-table,
  .fp-paragon-history-table {
    min-width: 32rem;
  }
  .fp-customer-bank-table {
    min-width: 36rem;
  }
  .fp-customer-recurring-table {
    min-width: 50rem;
  }
  .fp-customer-invoices-table {
    min-width: 42rem;
  }
  .fp-accountant-table {
    min-width: 52rem;
  }
  .fp-cost-history-table {
    min-width: 42rem;
  }
  .fp-bank-connections-table,
  .fp-bank-sync-history-table {
    min-width: 60rem;
  }
  .fp-bank-preview-table {
    min-width: 56rem;
  }
  .fp-bank-providers-table,
  .fp-actions-history-table {
    min-width: 50rem;
  }
  .fp-bank-history-table {
    min-width: 62rem;
  }
  .fp-update-result-table {
    min-width: 32rem;
  }
  .fp-update-schema-table,
  .fp-update-global-table {
    min-width: 48rem;
  }
  .fp-ksef-selftest-table,
  .fp-ocr-selftest-table {
    min-width: 40rem;
  }
  .fp-bank-discrepancy-invoices-table {
    min-width: 54rem;
  }
  .fp-bank-discrepancy-operations-table {
    min-width: 62rem;
  }
  .fp-paragon-form > .columns {
    flex-direction: column;
  }
  .fp-paragon-form > .columns > .column {
    width: 100%;
  }
  .fp-invoice-delete-card {
    width: calc(100vw - 1rem);
  }
  .fp-invoice-delete-preview {
    height: 68vh;
  }
}

@media (max-width: 900px) {
  .fp-dashboard-card-wrap,
  .fp-mobile-card-wrap {
    border: 0 !important;
    overflow: visible;
  }
  .fp-dashboard-card-table,
  .fp-dashboard-card-table thead,
  .fp-dashboard-card-table tbody,
  .fp-dashboard-card-table tr,
  .fp-dashboard-card-table td,
  .fp-mobile-card-table,
  .fp-mobile-card-table thead,
  .fp-mobile-card-table tbody,
  .fp-mobile-card-table tr,
  .fp-mobile-card-table td {
    display: block;
    min-width: 0 !important;
    width: 100% !important;
  }
  .fp-dashboard-card-table,
  .fp-mobile-card-table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
  }
  .fp-bank-review-table.fp-mobile-card-table td[style*="min-width"] {
    min-width: 0 !important;
  }
  .fp-dashboard-card-table thead,
  .fp-mobile-card-table thead,
  .fp-mobile-card-table tr.fp-mobile-card-header-row {
    display: none;
  }
  .fp-mobile-card-table tfoot {
    display: block;
  }
  .fp-mobile-card-table tfoot tr {
    background: transparent !important;
    border: 0;
    box-shadow: none;
    display: block;
    margin-top: 0.35rem;
    padding: 0;
  }
  .fp-mobile-card-table tfoot th {
    border: 0 !important;
    display: block;
    padding: 0.2rem 0 !important;
    text-align: right !important;
    width: 100% !important;
  }
  .fp-mobile-card-table tfoot th[colspan] {
    display: none;
  }
  .fp-dashboard-card-table tr,
  .fp-mobile-card-table tr {
    background: #fff !important;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    box-shadow: 0 0.35rem 1rem rgba(31, 41, 51, 0.05);
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.75rem;
  }
  .fp-dashboard-card-table td,
  .fp-mobile-card-table td {
    align-items: flex-start;
    border: 0 !important;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: minmax(5.75rem, 34%) minmax(0, 1fr);
    max-width: none;
    overflow-wrap: normal;
    padding: 0.35rem 0 !important;
    text-align: left !important;
    white-space: normal !important;
  }
  .fp-dashboard-card-table td + td,
  .fp-mobile-card-table td + td {
    border-top: 1px solid #edf1f6 !important;
  }
  .fp-dashboard-card-table td::before,
  .fp-mobile-card-table td::before {
    color: #64748b;
    content: attr(data-label);
    font-family: "Google Sans", "Google Sans Flex", Arial, sans-serif;
    font-feature-settings: normal;
    font-variant-numeric: normal;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
  }
  .fp-dashboard-card-table td > *,
  .fp-mobile-card-table td > * {
    min-width: 0;
  }
  .fp-dashboard-card-table .has-text-right,
  .fp-mobile-card-table .has-text-right {
    text-align: left !important;
  }
  .fp-dashboard-card-table td[data-label="Akcja"],
  .fp-dashboard-card-table td[data-label="Akcje"],
  .fp-mobile-card-table td[data-label="Akcja"],
  .fp-mobile-card-table td[data-label="Akcje"] {
    grid-template-columns: 1fr;
  }
  .fp-dashboard-card-table td[data-label="Akcja"]::before,
  .fp-dashboard-card-table td[data-label="Akcje"]::before,
  .fp-mobile-card-table td[data-label="Akcja"]::before,
  .fp-mobile-card-table td[data-label="Akcje"]::before {
    margin-bottom: 0.15rem;
  }
  .fp-mobile-card-table tr.fp-customer-bank-transfers-row {
    margin-top: -0.45rem;
  }
  .fp-mobile-card-table tr.fp-customer-bank-transfers-row td {
    display: block;
  }
  .fp-mobile-card-table tr.fp-customer-bank-transfers-row td::before {
    display: block;
    margin-bottom: 0.35rem;
  }
  .fp-mobile-card-table .fp-company-line {
    display: block;
  }
  .fp-mobile-card-table .fp-invoice-company-name {
    display: block;
    max-width: 100%;
    white-space: normal;
  }
  .fp-mobile-card-table .fp-invoice-tags {
    display: flex;
    margin-left: 0;
    margin-top: 0.35rem;
    max-width: 100%;
  }
  .fp-dashboard-card-table .buttons,
  .fp-dashboard-card-table form,
  .fp-dashboard-card-table .button,
  .fp-mobile-card-table .buttons,
  .fp-mobile-card-table form,
  .fp-mobile-card-table .button {
    width: 100%;
  }
  .fp-mobile-card-table .fp-document-menu .dropdown-menu,
  .fp-mobile-card-table .fp-actions-menu .dropdown-menu {
    left: auto;
    right: 0;
  }
  .fp-mobile-card-table .fp-mini-dropdown .dropdown-content {
    min-width: min(16rem, calc(100vw - 2.25rem));
  }
  .fp-dashboard-card-table td[data-label="Akcja"] .buttons,
  .fp-dashboard-card-table td[data-label="Akcje"] .buttons,
  .fp-mobile-card-table td[data-label="Akcja"] .buttons,
  .fp-mobile-card-table td[data-label="Akcje"] .buttons {
    align-items: stretch;
    display: grid;
    gap: 0.4rem;
    grid-template-columns: 1fr;
    justify-self: stretch;
    width: 100%;
  }
  .fp-dashboard-card-table td[data-label="Akcja"] .buttons form,
  .fp-dashboard-card-table td[data-label="Akcje"] .buttons form,
  .fp-mobile-card-table td[data-label="Akcja"] .buttons form,
  .fp-mobile-card-table td[data-label="Akcje"] .buttons form {
    margin: 0;
    width: 100%;
  }
  .fp-dashboard-card-table td[data-label="Akcja"] .buttons .button,
  .fp-dashboard-card-table td[data-label="Akcje"] .buttons .button,
  .fp-mobile-card-table td[data-label="Akcja"] .buttons .button,
  .fp-mobile-card-table td[data-label="Akcje"] .buttons .button {
    justify-content: center;
    min-height: 2.25rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
  .fp-dashboard-card-table td[data-label="Akcja"] .buttons.are-small .button,
  .fp-dashboard-card-table td[data-label="Akcje"] .buttons.are-small .button,
  .fp-mobile-card-table td[data-label="Akcja"] .buttons.are-small .button,
  .fp-mobile-card-table td[data-label="Akcje"] .buttons.are-small .button {
    font-size: 0.78rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .fp-page-actions .buttons {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .fp-page-actions .buttons .button {
    justify-content: center;
    width: 100%;
  }
  .fp-products-header-actions .buttons {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .fp-products-header-actions .button {
    justify-content: center;
    margin-bottom: 0;
    width: 100%;
  }
  .fp-dashboard-card-table td[data-label="Akcja"],
  .fp-dashboard-card-table td[data-label="Akcje"],
  .fp-mobile-card-table td[data-label="Akcja"],
  .fp-mobile-card-table td[data-label="Akcje"] {
    align-items: center;
    grid-template-columns: minmax(5.75rem, 24%) minmax(0, 1fr);
  }
  .fp-dashboard-card-table td[data-label="Akcja"]::before,
  .fp-dashboard-card-table td[data-label="Akcje"]::before,
  .fp-mobile-card-table td[data-label="Akcja"]::before,
  .fp-mobile-card-table td[data-label="Akcje"]::before {
    margin-bottom: 0;
  }
  .fp-dashboard-card-table td[data-label="Akcja"] .buttons,
  .fp-dashboard-card-table td[data-label="Akcje"] .buttons,
  .fp-mobile-card-table td[data-label="Akcja"] .buttons,
  .fp-mobile-card-table td[data-label="Akcje"] .buttons {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .fp-dashboard-card-table td[data-label="Akcja"] .buttons > .button,
  .fp-dashboard-card-table td[data-label="Akcje"] .buttons > .button,
  .fp-mobile-card-table td[data-label="Akcja"] .buttons > .button,
  .fp-mobile-card-table td[data-label="Akcje"] .buttons > .button {
    flex: 1 1 9rem;
    width: auto;
  }
  .fp-dashboard-card-table td[data-label="Akcja"] .buttons form,
  .fp-dashboard-card-table td[data-label="Akcje"] .buttons form,
  .fp-mobile-card-table td[data-label="Akcja"] .buttons form,
  .fp-mobile-card-table td[data-label="Akcje"] .buttons form {
    flex: 1 1 9rem;
    width: auto;
  }
  .fp-dashboard-card-table td[data-label="Akcja"] .buttons form .button,
  .fp-dashboard-card-table td[data-label="Akcje"] .buttons form .button,
  .fp-mobile-card-table td[data-label="Akcja"] .buttons form .button,
  .fp-mobile-card-table td[data-label="Akcje"] .buttons form .button {
    width: 100%;
  }
  .fp-bank-review-table .field.has-addons {
    align-items: stretch;
    display: flex;
  }
  .fp-bank-review-table .field.has-addons > .control {
    width: auto;
  }
  .fp-bank-review-table .field.has-addons > .control.is-expanded {
    flex: 1 1 auto;
  }
  .fp-bank-review-table .field.has-addons .button {
    width: auto;
  }
  .fp-export-card-primary > a.button,
  .fp-export-card-primary > form {
    display: inline-flex;
    margin-right: 0.45rem !important;
    margin-top: 0.45rem !important;
    vertical-align: top;
    width: auto;
  }
  .fp-export-card-primary > form .button {
    width: auto;
  }
}

@media (max-width: 640px) {
  .fp-panel .hero .title {
    font-size: 1.45rem;
  }
  .fp-panel .hero .subtitle {
    font-size: 0.95rem;
  }
  .fp-panel .notification:not(.fp-notification-labelled):not(.fp-notification-fixed).is-info,
  .fp-panel .notification:not(.fp-notification-labelled):not(.fp-notification-fixed).is-success,
  .fp-panel .notification:not(.fp-notification-labelled):not(.fp-notification-fixed).is-warning,
  .fp-panel .notification:not(.fp-notification-labelled):not(.fp-notification-fixed).is-danger,
  .fp-panel .notification:not(.fp-notification-labelled):not(.fp-notification-fixed).is-link,
  .fp-panel .notification:not(.fp-notification-labelled):not(.fp-notification-fixed).is-primary {
    display: block;
    padding: 1.1rem 1rem 1.1rem 4rem;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .fp-panel .notification:not(.fp-notification-labelled):not(.fp-notification-fixed).is-info::before,
  .fp-panel .notification:not(.fp-notification-labelled):not(.fp-notification-fixed).is-success::before,
  .fp-panel .notification:not(.fp-notification-labelled):not(.fp-notification-fixed).is-warning::before,
  .fp-panel .notification:not(.fp-notification-labelled):not(.fp-notification-fixed).is-danger::before,
  .fp-panel .notification:not(.fp-notification-labelled):not(.fp-notification-fixed).is-link::before,
  .fp-panel .notification:not(.fp-notification-labelled):not(.fp-notification-fixed).is-primary::before {
    left: 1rem;
    position: absolute;
    top: 1.05rem;
  }
  .fp-panel .box .title.is-4,
  .fp-panel .box .title.is-5 {
    font-size: 1.12rem;
  }
  .fp-panel .buttons,
  .fp-panel .buttons.are-small {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }
  .fp-panel .buttons .button,
  .fp-panel .buttons form,
  .fp-panel .buttons form .button {
    width: 100%;
  }
  .fp-panel .buttons.are-small:not(.fp-suggestion-actions),
  .fp-panel .level-right .buttons.are-small,
  .fp-products-header-actions .buttons {
    align-items: stretch;
    display: grid;
    flex-direction: initial;
    gap: 0.45rem;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .fp-panel .buttons.are-small:not(.fp-suggestion-actions) .button,
  .fp-panel .level-right .buttons.are-small .button,
  .fp-products-header-actions .button {
    min-height: 2.35rem;
    width: 100%;
  }
  .fp-panel .level-right .buttons {
    align-items: stretch;
  }
  .fp-dashboard-card-table td[data-label="Akcja"] .buttons,
  .fp-dashboard-card-table td[data-label="Akcje"] .buttons,
  .fp-mobile-card-table td[data-label="Akcja"] .buttons,
  .fp-mobile-card-table td[data-label="Akcje"] .buttons {
    flex-direction: initial;
  }
  .fp-dashboard-period-buttons .buttons,
  .fp-panel .fp-dashboard-period-buttons .buttons.are-small {
    align-items: stretch;
    display: grid;
    flex-direction: initial;
    gap: 0.45rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .fp-dashboard-period-buttons .buttons .button,
  .fp-panel .fp-dashboard-period-buttons .buttons.are-small .button {
    flex: 0 0 auto;
    min-height: 2.4rem;
    padding-bottom: 0.55rem;
    padding-top: 0.55rem;
    width: 100%;
  }
  .fp-dashboard-period-buttons .buttons .button:last-child {
    grid-column: 1 / -1;
  }
  .fp-panel .table-container {
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    margin-left: 0;
    margin-right: 0;
  }
  .fp-panel .table-container::before {
    content: "Przesuń tabelę w bok";
    display: block;
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid #e5eaf1;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
  }
  .fp-panel .table-container.fp-items-summary::before,
  .fp-panel .table-container.fp-no-scroll-hint::before,
  .fp-panel .table-container.fp-dashboard-card-wrap::before,
  .fp-panel .table-container.fp-mobile-card-wrap::before {
    display: none;
  }
  .fp-panel .table-container .table {
    margin-bottom: 0;
  }
  .fp-panel .pagination {
    grid-template-columns: 1fr;
  }
  .fp-panel .pagination-list,
  .fp-panel .pagination-next,
  .fp-panel .pagination-previous {
    grid-column: auto;
  }
  .fp-panel .pagination-link,
  .fp-panel .pagination-ellipsis {
    min-width: 2.35rem;
  }
  .fp-dashboard-filter .field.is-grouped,
  .fp-cost-filter .field.is-grouped {
    grid-template-columns: 1fr;
  }
  .fp-dashboard-period-buttons {
    grid-column: auto;
  }
  .fp-dashboard-stat {
    min-height: 0;
  }
  .fp-dashboard-suggestion-card {
    padding: 0.85rem;
  }
  .fp-dashboard-suggestion-card .buttons,
  .fp-panel .fp-dashboard-suggestion-card .buttons.are-small {
    display: grid;
    flex-direction: initial;
    gap: 0.45rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .fp-dashboard-suggestion-card .buttons .button,
  .fp-dashboard-suggestion-card .buttons form,
  .fp-dashboard-suggestion-card .buttons form .button {
    flex: 0 0 auto;
    width: 100%;
  }
  .fp-dashboard-card-wrap {
    border: 0 !important;
    overflow: visible;
  }
  .fp-dashboard-card-table,
  .fp-dashboard-card-table thead,
  .fp-dashboard-card-table tbody,
  .fp-dashboard-card-table tr,
  .fp-dashboard-card-table td {
    display: block;
    min-width: 0 !important;
    width: 100% !important;
  }
  .fp-dashboard-card-table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
  }
  .fp-dashboard-card-table thead {
    display: none;
  }
  .fp-dashboard-card-table tr {
    background: #fff !important;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    box-shadow: 0 0.35rem 1rem rgba(31, 41, 51, 0.05);
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.75rem;
  }
  .fp-dashboard-card-table td {
    align-items: flex-start;
    border: 0 !important;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: minmax(5.75rem, 34%) minmax(0, 1fr);
    max-width: none;
    overflow-wrap: normal;
    padding: 0.35rem 0 !important;
    text-align: left !important;
    white-space: normal !important;
  }
  .fp-dashboard-card-table td + td {
    border-top: 1px solid #edf1f6 !important;
  }
  .fp-dashboard-card-table td::before {
    color: #64748b;
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
  }
  .fp-dashboard-card-table td > * {
    min-width: 0;
  }
  .fp-dashboard-card-table .has-text-right {
    text-align: left !important;
  }
  .fp-dashboard-card-table .buttons,
  .fp-dashboard-card-table form,
  .fp-dashboard-card-table .button {
    width: 100%;
  }
  .fp-dashboard-ksef div,
  .fp-dashboard-ksef a {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }
  .fp-cost-total-box div,
  .fp-cost-detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
  .fp-cost-total-box strong,
  .fp-cost-detail-row strong {
    text-align: left;
  }
  .fp-bank-stat {
    min-height: 0;
  }
  .fp-bank-stat .title,
  .fp-bank-invoice-summary .title {
    white-space: normal;
  }
  .fp-bank-reason-tags {
    max-width: none;
  }
  .fp-paragon-page-head {
    display: block !important;
  }
  .fp-paragon-page-head .buttons {
    margin-top: 0.75rem;
  }
  .fp-paragon-filter .columns {
    grid-template-columns: 1fr;
  }
  .fp-paragon-items-footer {
    align-items: stretch !important;
    flex-direction: column;
  }
  .fp-paragon-items-footer > * {
    width: 100%;
  }
  .fp-paragon-items-footer .has-text-right {
    text-align: left !important;
  }
  .fp-client-list-tools {
    display: grid;
    grid-template-columns: 1fr;
  }
  .fp-client-list-tools > .control,
  .fp-client-list-tools .input,
  .fp-client-list-tools .select,
  .fp-client-list-tools select,
  .fp-client-list-tools .button {
    width: 100%;
  }
  .fp-client-pagination-summary {
    align-items: stretch;
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
  }
  .fp-client-pagination-summary .level-left,
  .fp-client-pagination-summary .level-right,
  .fp-client-pagination-summary .buttons,
  .fp-client-pagination-summary .button {
    width: 100%;
  }
  .fp-client-pagination-summary .buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .fp-clients-table:not(.fp-mobile-card-table) {
    min-width: 54rem;
  }
}
.fp-sa-stack {
  display: grid;
  gap: 1.25rem;
}

.fp-panel details.box > summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
}

.fp-panel details.box > summary::-webkit-details-marker {
  display: none;
}

.fp-panel details.box > summary::before {
  content: ">";
  display: inline-block;
  margin-right: .45rem;
  transition: transform .16s ease;
}

.fp-panel details.box[open] > summary {
  margin-bottom: 1rem;
}

.fp-panel details.box[open] > summary::before {
  transform: rotate(90deg);
}

.fp-integrations-page {
  padding-top: 2rem;
}

.fp-integration-hero,
.fp-integration-box {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(207, 224, 236, 0.92);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(15, 31, 51, 0.1);
}

.fp-integration-hero {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  margin-bottom: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.fp-integration-eyebrow {
  color: #12345a;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.8rem;
}

.fp-integration-hero h1 {
  color: #0f172a;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 1rem;
  max-width: 11ch;
}

.fp-integration-hero p {
  color: #18324f;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 46rem;
}

.fp-integration-api-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(219, 230, 242, 0.95);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(15, 31, 51, 0.14);
  overflow: hidden;
}

.fp-integration-api-card-top {
  align-items: center;
  border-bottom: 1px solid rgba(219, 230, 242, 0.95);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 1rem;
}

.fp-integration-api-card-top strong,
.fp-integration-api-card-top span {
  color: #52627a;
  font-size: 0.8rem;
  font-weight: 800;
}

.fp-integration-api-card-body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.fp-integration-api-card-body article,
.fp-integration-steps article,
.fp-integration-flow article,
.fp-integration-row {
  background: rgba(248, 252, 255, 0.86);
  border: 1px solid rgba(207, 224, 236, 0.92);
  border-radius: 8px;
}

.fp-integration-api-card-body article {
  padding: 0.85rem 0.9rem;
}

.fp-integration-api-card-body strong,
.fp-integration-api-card-body span,
.fp-integration-steps strong,
.fp-integration-steps span,
.fp-integration-flow strong,
.fp-integration-flow span {
  display: block;
}

.fp-integration-api-card-body strong,
.fp-integration-steps strong,
.fp-integration-flow strong {
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.fp-integration-api-card-body span,
.fp-integration-steps span,
.fp-integration-flow span {
  color: #52627a;
  line-height: 1.45;
}

.fp-integration-api-card pre {
  background: #121827;
  color: #f8fbff;
  font-family: var(--fp-amount-font);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
  white-space: pre-wrap;
}

.fp-integration-box {
  margin-bottom: 1.5rem;
}

.fp-integration-steps,
.fp-integration-flow,
.fp-integration-connectors {
  display: grid;
  gap: 0.9rem;
}

.fp-integration-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.fp-integration-steps article,
.fp-integration-flow article {
  min-height: 8.5rem;
  padding: 1rem;
}

.fp-integration-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fp-integration-connectors {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-integration-row {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem;
}

.fp-integration-row details {
  margin-top: auto;
}

.fp-integration-row summary {
  cursor: pointer;
  font-weight: 800;
}

.fp-integration-row ol {
  color: #52627a;
  padding-left: 1.1rem;
}

.fp-integrations-page code {
  background: rgba(232, 247, 255, 0.84);
  border: 1px solid rgba(166, 205, 232, 0.65);
  border-radius: 6px;
  color: #08324d;
  font-family: var(--fp-amount-font);
  font-size: 0.9em;
  padding: 0.08rem 0.28rem;
}

.fp-integrations-page .table code,
.fp-integration-api-card pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

@media (max-width: 1180px) {
  .fp-integration-flow,
  .fp-integration-connectors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .fp-integration-hero,
  .fp-integration-steps,
  .fp-integration-flow,
  .fp-integration-connectors {
    grid-template-columns: 1fr;
  }

  .fp-integration-hero h1 {
    max-width: 100%;
  }

  .fp-integration-steps article,
  .fp-integration-flow article {
    min-height: 0;
  }
}

/* Fakturownia migration wizard */
.fp-migration-page .box {
  border-radius: 8px;
}

.fp-migration-form .label,
.fp-migration-status .title,
.fp-migration-history .title {
  letter-spacing: 0;
}

.fp-migration-checks {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fp-migration-checks .checkbox {
  align-items: center;
  background: rgba(15, 23, 42, .035);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  display: flex;
  gap: .5rem;
  min-height: 42px;
  padding: .6rem .75rem;
}

.fp-migration-status-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.fp-migration-counters {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: .85rem 0 1rem;
}

.fp-migration-counters span {
  background: rgba(15, 23, 42, .035);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  color: #4b5563;
  min-height: 56px;
  padding: .65rem;
}

.fp-migration-counters strong {
  color: #0f172a;
  display: block;
  font-size: 1.1rem;
}

.fp-migration-preview {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.fp-migration-preview-group {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  display: grid;
  gap: .35rem;
  padding: .75rem;
}

.fp-migration-preview-group span {
  color: #4b5563;
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.fp-migration-log {
  display: grid;
  gap: .45rem;
  margin-top: 1rem;
  max-height: 260px;
  overflow: auto;
}

.fp-migration-log-item {
  border-left: 3px solid #44c486;
  color: #334155;
  font-size: .88rem;
  padding: .35rem .5rem;
}

.fp-migration-log-item.is-danger {
  border-left-color: #f14668;
}

.fp-migration-log-item.is-warning {
  border-left-color: #ffdd57;
}

.fp-migration-table td,
.fp-migration-table th {
  vertical-align: middle;
}

@media (max-width: 900px) {
  .fp-migration-checks,
  .fp-migration-counters {
    grid-template-columns: 1fr;
  }

  .fp-migration-status-head {
    align-items: stretch;
    flex-direction: column;
  }
}