/* 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. */
html { background: #f5f7fb; }
body.fp-panel {
  font-family: "Google Sans", "Google Sans Flex", Arial, sans-serif;
  min-height: 100vh;
  background: #f5f7fb;
  color: #1f2933;
}
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 {
  max-width: 100%;
  border: 1px solid #dbdbdb;
  border-radius: 0.375rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.55rem;
  background: #fff;
  color: #363636;
}
textarea { min-height: 6rem; }
input:focus,
select:focus,
textarea:focus,
.pole:focus {
  border-color: #485fc7;
  box-shadow: 0 0 0 0.125em rgba(72,95,199,.25);
  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; }
@media (max-width: 768px) {
    }

.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 .navbar { font-size: 1rem; }
.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-notification-fixed {
  position: fixed;
  top: 4.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(680px, calc(100% - 2rem));
  cursor: pointer;
  box-shadow: 0 1rem 2rem rgba(10, 10, 10, 0.18);
}

.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;
}
.fp-date-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #253044;
}
.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%;
  }
}

/* lista-f.css */
#tabela {
	font-size: 0.75rem;
	table-layout: fixed;
}
.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-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;
}
.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;
}
#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 span {
  display: inline-block;
  float: right;
  line-height: 1.25rem;
  font-size: 0.7rem;
  color: #7b8797;
}
.d_pozycja:hover span { color: #485fc7; }
.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; }
}

/* 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:
    radial-gradient(circle at 18% 20%, rgba(72, 199, 142, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(62, 142, 208, 0.28), transparent 24rem),
    linear-gradient(135deg, #f8fbff 0%, #e9f2ff 45%, #f7fbf7 100%);
  color: #172033;
}
.fp-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.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(2.2rem, 5vw, 4.6rem);
  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.68);
  border-radius: 1rem;
  background: rgba(255,255,255,0.68);
  box-shadow: 0 1.5rem 4rem rgba(23, 32, 51, 0.16);
  backdrop-filter: blur(18px);
}
.fp-login-card .input {
  background: rgba(255,255,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 {
  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-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 td:not(.fp-invoice-company-cell),
#tabela th:not(.fp-invoice-company-head) {
  overflow-wrap: anywhere;
}
.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-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 {
  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-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-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-stat-warning {
  background: #fff7ed;
  border-color: #fed7aa;
}
.fp-dashboard-stat-danger {
  background: #fff1f2;
  border-color: #fecdd3;
}
.fp-dashboard-table {
  font-size: 0.9rem;
}
.fp-dashboard-table td,
.fp-dashboard-table th {
  vertical-align: middle;
}
.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-table td:last-child,
.fp-dashboard-table th:last-child {
  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-products-table td,
.fp-products-table th {
  vertical-align: middle;
}
.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%;
}
.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: nowrap;
  gap: 0.35rem;
}
.fp-inline-form {
  display: inline-block;
  margin: 0;
}
.fp-recurring-items-table .input,
.fp-recurring-items-table .select select {
  font-size: 0.86rem;
}
.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),
.fp-recurring-items-table th:nth-child(6),
.fp-recurring-items-table td:nth-child(6) {
  width: 7rem;
}
.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: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;
}
.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 .button {
  height: 2.25rem;
}
.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;
}
@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;
}
