.bsp-wrap{max-width:1100px;margin:30px auto;padding:0 16px;font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#172033}.bsp-top{display:flex;justify-content:space-between;gap:16px;align-items:center;background:#0f172a;color:#fff;border-radius:18px;padding:22px;margin-bottom:16px}.bsp-top h2{margin:0 0 4px}.bsp-top p{margin:0;color:#cbd5e1}.bsp-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.bsp-tabs a,.bsp-btn{display:inline-block;background:#1e3a5f;color:#fff;text-decoration:none;border:0;border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer}.bsp-btn-light{background:#fff;color:#0f172a}.bsp-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:20px;margin-bottom:16px;box-shadow:0 8px 24px rgba(15,23,42,.07)}.bsp-card h3{margin-top:0}.bsp-wrap label{display:block;font-weight:700;margin:12px 0 6px}.bsp-wrap input[type=text],.bsp-wrap input[type=password],.bsp-wrap input[type=file],.bsp-wrap select,.bsp-wrap textarea{width:100%;max-width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:11px 12px;background:#fff}.bsp-table-wrap{overflow:auto}.bsp-table{width:100%;border-collapse:collapse}.bsp-table th,.bsp-table td{border-bottom:1px solid #e5e7eb;text-align:left;padding:11px;vertical-align:top}.bsp-table th{background:#f8fafc}.bsp-notice{border-radius:12px;padding:12px 14px;margin-bottom:16px}.bsp-success{background:#dcfce7;color:#14532d}.bsp-error{background:#fee2e2;color:#7f1d1d}.bsp-message{border-left:4px solid #1e3a5f;background:#f8fafc;border-radius:10px;padding:12px;margin:10px 0}.bsp-description{background:#f8fafc;border-radius:12px;padding:12px}.bsp-photos{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.bsp-photos img{width:150px;height:110px;object-fit:cover;border-radius:12px;border:1px solid #e5e7eb}.bsp-muted{color:#64748b}.bsp-login{background:#fff;border-radius:18px;padding:24px;border:1px solid #e5e7eb;box-shadow:0 8px 24px rgba(15,23,42,.07)}
.bsp-ticket-number{font-weight:800;color:#1e3a5f;text-decoration:none}.bsp-ticket-number:hover{text-decoration:underline}.bsp-btn-danger{background:#b91c1c;color:#fff}.bsp-inline-delete{display:inline}.bsp-danger-zone{margin-top:16px;border:1px solid #fecaca;background:#fff7f7;border-radius:14px;padding:12px}.bsp-danger-zone h4{margin:0 0 6px;color:#7f1d1d}
@media(max-width:700px){.bsp-top{display:block}.bsp-tabs a,.bsp-btn{width:100%;text-align:center}.bsp-photos img{width:100%;height:auto}}

/* Domofony / baza techniczna */
.bsp-inline-form{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:12px 0 18px}
.bsp-inline-form input{min-height:38px;border:1px solid #cbd5e1;border-radius:10px;padding:8px 10px}
.bsp-subcard{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:16px;margin:16px 0}
.bsp-code-result{font-size:20px;background:#ecfdf5;border:1px solid #10b981;border-radius:12px;padding:12px;display:inline-block}
.bsp-small-link{display:inline-block;margin:2px 0;text-decoration:none;font-weight:600}
.bsp-domofony-table code{white-space:nowrap}
@media (max-width: 760px){
  .bsp-inline-form{display:block}
  .bsp-inline-form input,.bsp-inline-form button{width:100%;margin:6px 0}
}
.bsp-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.bsp-summary{border-color:#22c55e;background:#f0fdf4}
.bsp-summary h3{color:#14532d}
.bsp-ticket-number{font-weight:800;color:#1e3a5f;text-decoration:none}.bsp-ticket-number:hover{text-decoration:underline}.bsp-btn-danger{background:#b91c1c;color:#fff}.bsp-inline-delete{display:inline}.bsp-danger-zone{margin-top:16px;border:1px solid #fecaca;background:#fff7f7;border-radius:14px;padding:12px}.bsp-danger-zone h4{margin:0 0 6px;color:#7f1d1d}
@media(max-width:700px){.bsp-grid-2{grid-template-columns:1fr}}

/* Kolorowe etykiety statusów i priorytetów */
.bsp-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-radius:999px;
  padding:5px 10px;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
  border:1px solid transparent;
}
.bsp-status-badge{background:#e2e8f0;color:#0f172a;border-color:#cbd5e1}
.bsp-status-new{background:#dbeafe;color:#1e3a8a;border-color:#93c5fd}
.bsp-status-accepted{background:#e0f2fe;color:#075985;border-color:#7dd3fc}
.bsp-status-in_progress{background:#fef3c7;color:#92400e;border-color:#fbbf24}
.bsp-status-waiting_parts{background:#ffedd5;color:#9a3412;border-color:#fdba74}
.bsp-status-waiting_admin{background:#ede9fe;color:#5b21b6;border-color:#c4b5fd}
.bsp-status-done{background:#dcfce7;color:#166534;border-color:#86efac}
.bsp-status-rejected{background:#fee2e2;color:#991b1b;border-color:#fca5a5}
.bsp-priority-badge{background:#e2e8f0;color:#334155;border-color:#cbd5e1}
.bsp-priority-low{background:#f1f5f9;color:#475569;border-color:#cbd5e1}
.bsp-priority-normal{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd}
.bsp-priority-high{background:#ffedd5;color:#c2410c;border-color:#fdba74}
.bsp-priority-critical{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}
.bsp-table .bsp-badge{margin-top:2px}


/* v0.4.8 — szerszy panel i czytelne tabele */
.bsp-wrap{
  width:min(96vw, 1480px) !important;
  max-width:1480px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box;
}
.entry-content .bsp-wrap,
.wp-block-post-content .bsp-wrap,
.wp-site-blocks .bsp-wrap{
  max-width:1480px !important;
}
.bsp-card{
  overflow:hidden;
}
.bsp-table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.bsp-table{
  width:100%;
  min-width:1080px;
}
.bsp-table th,
.bsp-table td{
  white-space:nowrap;
}
.bsp-table td:nth-child(3),
.bsp-table td:nth-child(4){
  white-space:normal;
  min-width:180px;
}
.bsp-inline-delete,
.bsp-ticket-actions,
.bsp-actions{
  white-space:nowrap;
}
.bsp-inline-delete .bsp-btn,
.bsp-btn-danger{
  white-space:nowrap;
}
@media(max-width:900px){
  .bsp-wrap{width:98vw !important;padding-left:8px;padding-right:8px}
  .bsp-card{padding:14px}
  .bsp-table{min-width:980px}
}


/* v0.4.9: centrowanie panelu względem okna strony, niezależnie od wąskiego kontenera motywu */
.bsp-wrap{
  width: min(96vw, 1560px) !important;
  max-width: 1560px !important;
  box-sizing: border-box;

  /* To jest kluczowa poprawka: motyw może trzymać shortcode w wąskim/ przesuniętym wrapperze.
     Przesuwamy panel do środka okna przeglądarki, a nie do środka wrappera motywu. */
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 30px 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.bsp-card,
.bsp-top,
.bsp-tabs,
.bsp-notice{
  box-sizing: border-box;
}
.bsp-table-wrap{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.bsp-table{
  min-width: 1120px;
}
.bsp-table th,
.bsp-table td{
  white-space: nowrap;
}
.bsp-table td:nth-child(3){
  white-space: normal;
  min-width: 220px;
}
.bsp-header-menu{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin:8px 0;
}
.bsp-header-menu a{
  text-decoration:none;
  font-weight:700;
  color:#1e3a5f;
}
@media(max-width:900px){
  .bsp-wrap{
    width: 96vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
  }
}

/* v0.5.0: wyszukiwarka historii zgłoszeń */
.bsp-search-form{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:14px 0 18px;
}
.bsp-search-form input[type="search"]{
  flex:1 1 320px;
  min-height:42px;
  border:1px solid #d8e0ea;
  border-radius:10px;
  padding:9px 12px;
  font:inherit;
}

/* v0.5.3: drukowanie listy lokatorów z wyborem formatu domofonu */
.bsp-lokatorzy-editor textarea{
  min-height: 320px;
  font-family: Consolas, Monaco, monospace;
}
.bsp-print-controls{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:12px;
}
.bsp-print-format-label{
  margin:0 0 0 8px;
  font-weight:700;
}
.bsp-print-format{
  min-height:38px;
  border:1px solid #d8e0ea;
  border-radius:9px;
  padding:7px 10px;
}

/* v0.6.8: logowanie + rejestracja */
.bsp-login-register-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:18px;
    align-items:start;
}
.bsp-login-register-grid .bsp-card{
    margin:0;
}
.bsp-login .login-username,
.bsp-login .login-password,
.bsp-login .login-remember,
.bsp-login .login-submit{
    margin:0 0 12px 0;
}
.bsp-login #wp-submit{
    display:inline-block;
    border:0;
    border-radius:10px;
    background:#173b66;
    color:#fff;
    padding:11px 16px;
    font-weight:700;
    cursor:pointer;
}

/* ACO code table generator */
.bsp-aco-table {
    table-layout: fixed;
    width: 100%;
    min-width: 760px !important;
}
.bsp-aco-table th,
.bsp-aco-table td {
    text-align: center;
    vertical-align: middle;
}
.bsp-aco-table th,
.bsp-aco-table td {
    width: 9%;
    min-width: 64px;
    max-width: 90px;
    padding-left: 6px;
    padding-right: 6px;
    overflow: hidden;
}
.bsp-aco-table th:first-child {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}
.bsp-aco-table td strong {
    display: block;
    white-space: nowrap;
}
.bsp-aco-table .bsp-aco-pos {
    display: block;
    font-size: 11px;
    opacity: .65;
    margin-bottom: 3px;
}
.bsp-aco-table td strong {
    font-size: 16px;
    letter-spacing: .5px;
}


/* v0.7.5: poprawka szerokości generatora ACO — tabela nie dziedziczy szerokiej kolumny tytułu zgłoszenia */
.bsp-aco-table{
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 0 !important;
}
.bsp-aco-table th,
.bsp-aco-table td,
.bsp-aco-table td:nth-child(3),
.bsp-aco-table td:nth-child(4){
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  white-space: nowrap !important;
  text-align: center !important;
  padding: 8px 6px !important;
  box-sizing: border-box !important;
}
.bsp-aco-table th:first-child,
.bsp-aco-table td:first-child{
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
}
.bsp-aco-table .bsp-aco-pos{
  display:block;
  font-size:11px;
  line-height:1.1;
  opacity:.65;
  margin-bottom:4px;
}
.bsp-aco-table td strong{
  display:block;
  font-size:16px;
  line-height:1.2;
  letter-spacing:0;
}


/* v0.7.6: generator ACO całkowicie odseparowany od tabel zgłoszeń */
.bsp-aco-table-wrap{
  width:100% !important;
  overflow-x:auto !important;
}
.bsp-aco-table-v076{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  table-layout:fixed !important;
  border-collapse:collapse !important;
}
.bsp-aco-table-v076 .bsp-aco-col-range{width:72px !important;}
.bsp-aco-table-v076 .bsp-aco-col-code{width:calc((100% - 72px) / 10) !important;}
.bsp-aco-table-v076 th,
.bsp-aco-table-v076 td,
.bsp-aco-table-v076 th:nth-child(n),
.bsp-aco-table-v076 td:nth-child(n){
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  padding:8px 6px !important;
  text-align:center !important;
  vertical-align:middle !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
.bsp-aco-table-v076 th:first-child,
.bsp-aco-table-v076 td:first-child{
  width:72px !important;
}
.bsp-aco-table-v076 .bsp-aco-pos{
  display:block !important;
  font-size:11px !important;
  line-height:1.1 !important;
  opacity:.65 !important;
  margin-bottom:4px !important;
}
.bsp-aco-table-v076 td strong{
  display:block !important;
  font-size:16px !important;
  line-height:1.2 !important;
  letter-spacing:0 !important;
  white-space:nowrap !important;
}

/* BSP v0.7.7 - formularz importu BIN */
.bsp-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    align-items: end;
}
.bsp-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bsp-form-grid input,
.bsp-form-grid select,
.bsp-form-grid textarea {
    width: 100%;
}

/* v0.8.1 — uporządkowane zakładki serwisanta */
.bsp-tabs-organized{
  display:grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:14px !important;
  align-items:stretch;
  margin:0 0 18px 0 !important;
}
.bsp-tab-group{
  background:#ffffff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:12px;
  box-shadow:0 6px 18px rgba(15,23,42,.06);
}
.bsp-tab-group-title{
  font-size:12px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
  color:#64748b;
  margin:0 0 10px;
}
.bsp-tab-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.bsp-tabs-organized .bsp-tab-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  background:#f1f5f9;
  color:#1e293b;
  border:1px solid #cbd5e1;
  border-radius:999px;
  padding:9px 13px;
  font-weight:800;
  text-decoration:none;
}
.bsp-tabs-organized .bsp-tab-links a:hover{
  background:#e0f2fe;
  border-color:#7dd3fc;
  color:#075985;
}
.bsp-tabs-organized .bsp-tab-links a.is-active{
  background:#1e3a5f;
  border-color:#1e3a5f;
  color:#ffffff;
}
@media(max-width:700px){
  .bsp-tabs-organized{grid-template-columns:1fr !important;}
  .bsp-tabs-organized .bsp-tab-links a{width:auto !important; flex:1 1 auto;}
}

/* v0.8.7 - prywatne notatki serwisanta */
.bsp-service-notes-view {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #d7e3f0;
    border-radius: 12px;
    background: #f8fafc;
}
.bsp-service-notes-view h4 {
    margin-top: 0;
}
.bsp-service-notes-box {
    white-space: pre-wrap;
    line-height: 1.45;
}
.bsp-service-notes-cell {
    max-width: 240px;
    white-space: normal !important;
    font-size: 13px;
    color: #334155;
}

/* BSP v0.8.9 - poprawa pól formularza zgłoszenia */
.bsp-wrap, .bsp-wrap * {
  box-sizing: border-box !important;
}
.bsp-wrap input[type=text],
.bsp-wrap input[type=password],
.bsp-wrap input[type=email],
.bsp-wrap input[type=tel],
.bsp-wrap input[type=number],
.bsp-wrap input[type=file],
.bsp-wrap select,
.bsp-wrap textarea {
  width: 100% !important;
  max-width: 100% !important;
}
.bsp-grid-2 > label {
  min-width: 0 !important;
}

/* v0.9.0 - płatność zlecenia widoczna tylko dla serwisanta */
.bsp-paid-badge{
    font-weight:800;
    border-radius:999px;
    padding:3px 9px;
    white-space:nowrap;
}
.bsp-paid-yes{
    background:#dcfce7;
    color:#166534;
    border-color:#86efac;
}
.bsp-paid-no{
    background:#f1f5f9;
    color:#475569;
    border-color:#cbd5e1;
}
.bsp-checkbox-label{
    display:flex !important;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border:1px solid #cbd5e1;
    border-radius:12px;
    background:#f8fafc;
    max-width:360px;
}
.bsp-checkbox-label input[type="checkbox"]{
    width:auto !important;
    max-width:none !important;
    margin:0;
}


/* BSP v0.9.6 - poprawka pola e-mail w formularzu rejestracji/logowania */
.bsp-login-register-grid input[type="email"],
.bsp-login-register-grid input[type="text"],
.bsp-login-register-grid input[type="password"],
.bsp-login-register-grid input[type="tel"],
.bsp-register-form input[type="email"],
.bsp-register-form input[type="text"],
.bsp-register-form input[type="password"],
.bsp-register-form input[type="tel"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 11px 12px !important;
    background: #fff !important;
    font: inherit !important;
    line-height: 1.2 !important;
    appearance: none;
    -webkit-appearance: none;
}
.bsp-login-register-grid label {
    display: block !important;
}


/* Klikalny numer telefonu na urządzeniach mobilnych */
.bsp-phone-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.bsp-phone-link:hover,
.bsp-phone-link:focus {
    text-decoration-thickness: 2px;
}


/* v0.9.8: bardziej widoczne filtrowanie historii po dacie */
.bsp-history-search{
  display:grid;
  grid-template-columns:minmax(260px, 1.5fr) minmax(230px, .8fr) auto;
  gap:14px;
  align-items:end;
  padding:16px;
  margin:16px 0 20px;
  border:1px solid #cbd8e8;
  border-radius:14px;
  background:#f7faff;
}
.bsp-history-search-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.bsp-history-search-field label{
  color:#0f1b33;
  font-weight:700;
  font-size:14px;
}
.bsp-history-search-field input[type="search"],
.bsp-history-search-field input[type="date"]{
  width:100%;
  min-height:46px;
  box-sizing:border-box;
  border:1px solid #b9c9dc;
  border-radius:10px;
  padding:10px 12px;
  background:#fff;
  color:#0f1b33;
  font:inherit;
}
.bsp-history-date-field{
  padding:10px 12px;
  border:2px solid #1e3a5f;
  border-radius:12px;
  background:#eaf2fb;
}
.bsp-history-date-field input[type="date"]{
  border-color:#7f9fc3;
  font-weight:600;
  cursor:pointer;
}
.bsp-history-date-field small{
  color:#52657c;
  font-size:12px;
}
.bsp-history-search-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  padding-bottom:2px;
}
@media(max-width:850px){
  .bsp-history-search{
    grid-template-columns:1fr;
    align-items:stretch;
  }
  .bsp-history-search-actions .bsp-btn{
    flex:1 1 auto;
    text-align:center;
  }
}


/* v0.9.9: symetryczny panel filtrowania historii */
.bsp-history-search{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:16px !important;
  align-items:stretch !important;
}
.bsp-history-search-field{
  min-width:0 !important;
}
.bsp-history-search-field input[type="search"],
.bsp-history-search-field input[type="date"]{
  display:block !important;
  width:100% !important;
  height:48px !important;
  min-height:48px !important;
  max-height:48px !important;
  padding:10px 12px !important;
  line-height:1.2 !important;
}
.bsp-history-search-text,
.bsp-history-date-field{
  padding:12px !important;
  border:1px solid #b9c9dc !important;
  border-radius:12px !important;
  background:#ffffff !important;
}
.bsp-history-date-field{
  border:2px solid #1e3a5f !important;
  background:#eaf2fb !important;
}
.bsp-history-search-actions{
  grid-column:1 / -1 !important;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  gap:10px !important;
  padding:0 !important;
}
@media(max-width:850px){
  .bsp-history-search{
    grid-template-columns:1fr !important;
  }
  .bsp-history-search-actions{
    grid-column:1 !important;
    justify-content:stretch !important;
  }
  .bsp-history-search-actions .bsp-btn{
    flex:1 1 auto !important;
  }
}

.bsp-status-auto_archived{background:#f1f5f9;color:#475569;border-color:#94a3b8}

/* v0.10.1 – liczniki, nieprzeczytane i nieruchomości */
.bsp-tab-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    margin-left: 6px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, .10);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
.bsp-tab-links a.is-active .bsp-tab-count { background: rgba(255,255,255,.22); }
.bsp-tab-count.is-unread { background: #dc2626; color: #fff; }
.bsp-ticket-unread { background: #fff8dc !important; box-shadow: inset 4px 0 0 #f59e0b; }
.bsp-ticket-unread .bsp-ticket-number::after {
    content: "nowe";
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f59e0b;
    color: #111827;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.bsp-building-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.bsp-building-card {
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.bsp-building-card h4 { margin: 0 0 14px; font-size: 20px; }
.bsp-building-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0 0 16px; }
.bsp-building-card dt { color: #64748b; font-size: 13px; }
.bsp-building-card dd { margin: 0; font-weight: 700; text-align: right; }


/* v0.10.4 – wyszukiwarka i karty Moje nieruchomości */
.bsp-property-search {
    margin: 18px 0 22px;
    padding: 18px;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.bsp-property-search-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 14px;
}
.bsp-property-search-title strong {
    font-size: 17px;
    color: #0f172a;
}
.bsp-property-search-title span {
    color: #64748b;
    font-size: 13px;
}
.bsp-property-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.bsp-property-search .bsp-filter-field {
    min-width: 0;
}
.bsp-property-search .bsp-filter-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #334155;
}
.bsp-property-search .bsp-filter-field input {
    width: 100%;
    min-width: 0;
    height: 44px;
    box-sizing: border-box;
}
.bsp-property-search .bsp-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}
.bsp-admin-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 5px 10px;
    border: 1px solid #93c5fd;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
}
@media (max-width: 720px) {
    .bsp-property-search-grid { grid-template-columns: 1fr; }
    .bsp-property-search .bsp-filter-actions { justify-content: stretch; }
    .bsp-property-search .bsp-filter-actions .bsp-btn { flex: 1 1 auto; text-align: center; }
}

/* Klikalny adres dla serwisanta — otwiera trasę w Google Maps */
.bsp-maps-link {
    color: #0b57d0;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.bsp-maps-link:hover,
.bsp-maps-link:focus {
    color: #073b8c;
    text-decoration-thickness: 2px;
}

/* v0.10.9 - rozdzielenie telefonu kontaktowego zgłoszenia od telefonu administratora budynku */
.bsp-reporter-contact {
    line-height: 1.35;
    min-width: 180px;
}
.bsp-reporter-contact small {
    display: inline-block;
    margin-top: 3px;
    color: inherit;
}


/* v0.11.5 — koszty zlecenia */
.bsp-cost-summary,
.bsp-cost-editor {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}
.bsp-cost-summary h4,
.bsp-cost-editor legend {
    margin: 0 0 12px;
    font-weight: 800;
    color: #0f172a;
}
.bsp-cost-grid,
.bsp-cost-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.bsp-cost-grid > div {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
}
.bsp-cost-grid span { display:block; color:#64748b; font-size:12px; }
.bsp-cost-grid strong { display:block; margin-top:4px; font-size:16px; }
.bsp-cost-total { background:#ecfdf5 !important; border-color:#86efac !important; }
.bsp-cost-live-total {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:44px;
    padding:8px 12px;
    border-radius:8px;
    background:#ecfdf5;
    border:1px solid #86efac;
    font-weight:700;
}
.bsp-invoice-none { background:#e2e8f0; color:#334155; }
.bsp-invoice-to_issue { background:#fef3c7; color:#92400e; }
.bsp-invoice-issued { background:#dbeafe; color:#1e40af; }
.bsp-invoice-paid { background:#dcfce7; color:#166534; }
@media (max-width: 760px) {
    .bsp-cost-grid,
    .bsp-cost-form-grid { grid-template-columns: 1fr; }
}

/* Raport miesięczny */
.bsp-report-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}
.bsp-report-filter{display:flex;align-items:end;gap:12px;padding:16px;border:1px solid #dbe3ec;border-radius:12px;background:#f8fafc;margin-bottom:20px}
.bsp-report-filter label{display:grid;gap:6px;font-weight:700;min-width:220px}
.bsp-report-filter input[type="month"]{width:100%;min-height:44px;padding:8px 12px;border:1px solid #bcc8d6;border-radius:8px;background:#fff}
.bsp-report-month{font-size:1.35rem;margin:10px 0 16px}
.bsp-report-kpis{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin-bottom:22px}
.bsp-report-kpi{padding:16px;border:1px solid #dbe3ec;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.04)}
.bsp-report-kpi span{display:block;font-size:.85rem;color:#64748b;margin-bottom:8px}
.bsp-report-kpi strong{font-size:1.3rem;color:#0f172a}
.bsp-report-sections{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:14px;margin-bottom:24px}
.bsp-report-box{padding:16px;border:1px solid #dbe3ec;border-radius:12px;background:#f8fafc}
.bsp-report-box h4{margin:0 0 10px}
.bsp-report-box dl{margin:0}
.bsp-report-box dl>div{display:flex;justify-content:space-between;gap:16px;padding:7px 0;border-bottom:1px solid #e2e8f0}
.bsp-report-box dl>div:last-child{border-bottom:0}
.bsp-report-box dt{color:#475569}.bsp-report-box dd{margin:0;font-weight:700}.bsp-report-box .is-total{font-size:1.08rem}
@media(max-width:900px){.bsp-report-kpis{grid-template-columns:repeat(2,minmax(140px,1fr))}.bsp-report-sections{grid-template-columns:1fr}}
@media(max-width:560px){.bsp-report-header,.bsp-report-filter{display:grid}.bsp-report-kpis{grid-template-columns:1fr}.bsp-report-filter label{min-width:0}}
@media print{.bsp-no-print,.bsp-tabs,.bsp-top .bsp-btn{display:none!important}.bsp-wrap{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}.bsp-card{box-shadow:none!important;border:0!important}.bsp-table-wrap{overflow:visible!important}.bsp-report-table{font-size:9pt}.bsp-report-kpis{grid-template-columns:repeat(4,1fr)}}

/* PWA */
.bsp-top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.bsp-pwa-install[hidden]{display:none!important}
.bsp-pwa-install{cursor:pointer}
@media (max-width:700px){
  .bsp-top-actions{width:100%;justify-content:flex-start}
  .bsp-top-actions .bsp-btn{flex:1 1 auto;text-align:center}
}


/* BSP v0.12.9 - ukrycie pola antyspamowego, aby nie wyglądało jak drugie pole hasła */
.bsp-register-form .bsp-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* Szablony nowych zgłoszeń */
.bsp-ticket-template-box {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}
.bsp-ticket-template-box label {
    margin: 0;
    font-weight: 700;
}
.bsp-ticket-template-box select {
    margin-top: 7px;
    width: 100%;
    min-height: 44px;
    background: #fff;
}
.bsp-ticket-template-box .bsp-muted {
    margin: 8px 0 0;
    font-size: 13px;
}

/* Powiadomienia dźwiękowe serwisanta */
.bsp-service-notify-toggle.is-enabled {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}
