:root { --bs-body-bg: #f4f7fa; --bs-body-color: #23344b; --bs-primary: #2463b4; --bs-link-color: #2463b4; --bs-link-hover-color: #174d92; }
body { min-height: 100vh; display: flex; flex-direction: column; }
.app-header { background: #fff; border-bottom: 1px solid #e1e7ee; }
.app-brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 700; color: #20344d; white-space: nowrap; }
  .brand-mark { display: inline-block; width: 1.85rem; height: 1.85rem; border-radius: .45rem; background: #203e67; object-fit: contain; }
.app-nav-link { color: #67758a; font-size: .9rem; text-decoration: none; padding: .35rem 0; }
.app-nav-link:hover, .app-nav-link.is-active { color: #204f8b; }
.app-nav-link.is-active { font-weight: 600; }
.app-main { flex: 1; padding-top: 3rem; padding-bottom: 3rem; }
.app-main-auth { display: flex; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.page-heading h1 { font-size: clamp(1.65rem, 4vw, 2.15rem); font-weight: 650; letter-spacing: -.025em; }
.page-intro { max-width: 47rem; }
.eyebrow { color: #687a91; font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.app-card { border: 1px solid #e0e7ef; border-radius: .75rem; background: #fff; box-shadow: 0 .2rem 1rem rgba(24, 44, 73, .035); }
.auth-card { width: 100%; max-width: 27rem; }
.status-dot { display: inline-block; width: .5rem; height: .5rem; background: #35855c; border-radius: 50%; }
.form-label { font-size: .9rem; font-weight: 600; }
.form-control { min-height: 2.75rem; border-color: #cbd5e2; }
.form-control:focus { border-color: #4881c7; box-shadow: 0 0 0 .2rem rgba(36, 99, 180, .16); }
.btn-primary { --bs-btn-bg: #2463b4; --bs-btn-border-color: #2463b4; --bs-btn-hover-bg: #1c5195; --bs-btn-hover-border-color: #1c5195; --bs-btn-active-bg: #17477f; --bs-btn-active-border-color: #17477f; --bs-btn-focus-shadow-rgb: 36, 99, 180; }
.btn { font-weight: 600; padding: .6rem 1rem; }
a:focus-visible, button:focus-visible { outline: 3px solid #6598d9; outline-offset: 3px; }
.app-footer { display: flex; justify-content: center; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 1.5rem auto 0; gap: .5rem 1.5rem; text-align: center; padding-bottom: 1.25rem; color: #7b889b; font-size: .75rem; }
.app-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: .75rem auto; gap: .5rem .9rem; text-align: center; }
@media (max-width: 575.98px) { .app-main { padding-top: 2rem; padding-bottom: 2rem; } .app-main-auth { align-items: flex-start; } .app-brand { font-size: 1rem; } .app-footer { flex-wrap: wrap; } }
/* Naturalna szerokość tabeli; przewijanie dopiero po przekroczeniu ekranu. */
.cards-table-wrap { max-width: 100%; overflow-x: auto; }
.cards-table { width: auto; min-width: 0; margin-bottom: 0; font-size: .8125rem; line-height: 1.25; }
.cards-table > :not(caption) > * > * { padding: .125rem .25rem; }
.cards-table td:nth-child(3), .cards-table td:nth-child(4), .cards-table td:nth-child(6), .cards-table td:nth-child(7), .cards-table td:nth-child(10), .cards-table td:nth-child(12) { overflow-wrap: anywhere; }
.cards-table td:nth-child(3) { min-width: 8rem; max-width: 13rem; }
.cards-table td:nth-child(4) { max-width: 11rem; }
.cards-table td:nth-child(6), .cards-table td:nth-child(7) { max-width: 12rem; }
.cards-table td:nth-child(10), .cards-table td:nth-child(12) { max-width: 14rem; }
.cards-table th { white-space: nowrap; }
/* Kolejka nie dziedziczy szerokości kolumn przeznaczonych na nazwę i adres firmy. */
.cards-table.scan-queue-table td { min-width: 0; max-width: none; white-space: nowrap; overflow-wrap: normal; }
/* Rozwinięta diagnostyka Batch nie poszerza jednowierszowych komórek tabeli. */
.scan-queue-table .scan-queue-details { max-width: 24rem; white-space: normal; overflow-wrap: anywhere; }
.cards-table .btn { font-size: inherit; line-height: 1; }
.cards-table .badge { padding: .2em .35em; font-size: .75em; }
/* Gęsty widok roboczy listy nie zmienia rozmiarów formularzy innych modułów. */
.cards-page { font-size: .875rem; background-color: #fff; }
.cards-page .page-heading { margin-bottom: .75rem !important; }
.cards-page .page-heading h1 { font-size: 1.4rem; margin-bottom: .35rem; }
.cards-page .page-heading p { margin-bottom: .35rem; }
.cards-page > .text-secondary { margin-bottom: .75rem !important; }
.cards-page > form { margin-bottom: .75rem !important; }
.cards-page > form .card-body { padding: .5rem .75rem; gap: .5rem .75rem !important; }
.cards-page .form-label { font-size: .8125rem; margin-bottom: .15rem; }
.cards-page .form-control, .cards-page .form-select { min-height: 0; padding: .25rem .4rem; font-size: .875rem; }
.cards-page .form-select { padding-right: 1.75rem; }
.cards-page > form .btn { padding: .3rem .55rem; font-size: .875rem; }
.cards-page .cards-days { width: 5rem; }
.cards-page #card-ids { width: 12rem; max-width: 100%; }
.cards-page #card-comment { width: 14rem; max-width: 100%; }
.cards-page small { display: block; font-size: .7rem; }
.cards-page > .alert { padding: .5rem .75rem; margin-bottom: .75rem; }
.cards-catalog-scope { background: #fff2df; border: 1px solid #f5bd7b; color: #6e430f; padding: .5rem .75rem; }
.cards-catalog-navigation form, .cards-catalog-navigation form > div { min-width: 0; max-width: 100%; }
.cards-catalog-navigation select { max-width: 100%; }
.cards-page > p { margin-bottom: .5rem; }
/* Zwarta karta i formularz zachowują czytelność na wąskich ekranach. */
.cards-detail { font-size: .875rem; background-color: #fff; }
/* Tabele treści nie dziedziczą błękitnego tła strony z Bootstrap. */
.cards-page .table, .cards-detail .table { --bs-table-bg: #fff; }
.cards-detail .page-heading h1 { font-size: 1.4rem; margin-bottom: .35rem; }
.cards-detail h2 { font-size: 1.1rem; margin-bottom: .35rem; }
.cards-detail p { margin-bottom: .4rem; }
.cards-detail .mb-4 { margin-bottom: .85rem !important; }
.cards-detail .alert { padding: .5rem .75rem; }
.cards-detail .table { width: auto; font-size: .8125rem; line-height: 1.25; }
.cards-detail .table > :not(caption) > * > * { padding: .2rem .35rem; }
.cards-detail .table td { max-width: 38rem; overflow-wrap: anywhere; }
.cards-detail pre { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: .4rem; }
.cards-detail .form-label { font-size: .8125rem; margin-bottom: .15rem; }
.cards-detail .form-control, .cards-detail .form-select { min-height: 0; padding: .25rem .4rem; font-size: .875rem; }
.cards-detail .form-select { padding-right: 1.75rem; }
.cards-detail .btn { padding: .3rem .55rem; font-size: .8125rem; }
.cards-edit-help { margin: .4rem 0 .6rem; }
.cards-edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .5rem .75rem; max-width: 64rem; margin-bottom: .65rem; }
.cards-edit-field { min-width: 0; }
.cards-address-parts { display: flex; align-items: center; gap: 4px; }
.cards-address-parts > input { min-width: 0; width: 0; flex: 2; }
.cards-address-parts > .cards-address-postcode { flex: 1; }
.cards-address-parts > .cards-address-street { flex: 3; }
.cards-address-parts > a { flex: 0 0 auto; }
.cards-address-fallback > input { flex: 1; }
.cards-edit-contact { min-width: 0; }
.cards-edit-contact-line { display: flex; gap: .35rem; align-items: flex-start; }
.cards-edit-contact-line > .cards-edit-field:first-child { flex: 1; }
.cards-edit-contact-line > .cards-edit-field:last-child { flex: 0 0 6.5rem; }
.cards-edit-contact .form-control { min-width: 0; }
.cards-edit-field > label:last-child { font-size: .7rem; }
.cards-edit-comment textarea { min-height: 4.5rem; }
.cards-edit-layout { display: grid; grid-template-columns: minmax(42rem, 1.1fr) minmax(20rem, 2fr); gap: 12px; align-items: start; }
.cards-edit-main { min-width: 0; }
.cards-edit-table { width: 100%; max-width: 100%; table-layout: fixed; margin-bottom: .65rem; border-collapse: collapse; font-size: .8125rem; }
.cards-inline-row .cards-detail { font-size: 14px; }
.cards-inline-row .cards-detail .table,
.cards-inline-row .cards-detail .form-label,
.cards-inline-row .cards-detail .btn,
.cards-inline-row .cards-detail .cards-edit-row .form-control,
.cards-inline-row .cards-detail .cards-edit-row .form-select,
.cards-inline-row .cards-detail .cards-edit-field > label:last-child,
.cards-inline-row .cards-detail .cards-edit-comments .cards-edit-field > label:last-child,
.cards-inline-row .cards-detail .cards-contact-read select,
.cards-inline-row .cards-detail .cards-contact-read small,
.cards-inline-row .cards-detail .cards-contact-history,
.cards-inline-row .cards-detail .cards-contact-messages,
.cards-inline-row .cards-detail .cards-technical-panel,
.cards-inline-row .cards-detail small,
.cards-inline-row .cards-detail pre,
.cards-inline-row .cards-detail .form-text,
.cards-inline-row .cards-detail .cards-contact-form label,
.cards-inline-row .cards-detail .cards-contact-form input,
.cards-inline-row .cards-detail .cards-contact-form select,
.cards-inline-row .cards-detail .cards-inline-contact-log small { font-size: 14px; }
.cards-inline-row .cards-detail .cards-edit-table { font-size: 14px; }
.cards-inline-row .cards-detail table { background: #fff; border: 2px solid #b3b3b3; border-collapse: collapse; }
.cards-inline-row .cards-detail table th,
.cards-inline-row .cards-detail table td { border: 2px solid #b3b3b3; padding: 3px 5px; }
.cards-detail .cards-icon,
.cards-inline-row .cards-detail .cards-icon { width: auto; height: 15px; }
.cards-edit-table:not(.cards-edit-contact-log) > colgroup > .cards-edit-label-column { width: 8.75rem; }
.cards-edit-table:not(.cards-edit-contact-log) > colgroup > .cards-edit-calendar-column { width: 2rem; }
.cards-edit-layout > .cards-edit-support-grid { grid-column: 1 / -1; order: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(24rem, 1fr); gap: .5rem; align-items: start; min-width: 0; }
.cards-edit-support-grid > .cards-edit-contact-log { width: 100%; min-width: 0; margin: 0; }
.cards-edit-support-grid > .cards-edit-contact-form { min-width: 0; margin: 0; }
.cards-edit-support-grid > :only-child { grid-column: 1 / -1; }
.cards-attempt-archive { flex: 1 1 38rem; width: min(100%, 38rem); max-width: 100%; border: 1px solid #b3b3b3; background: #fff; }
.cards-attempt-archive > summary { padding: .2rem .35rem; cursor: pointer; font-weight: 600; }
.cards-attempt-archive-table { width: 100% !important; max-width: none; margin: 0; }
.cards-edit-layout > .cards-technical-panels { grid-column: 1 / -1; order: 3; }
.cards-edit-layout > .cards-edit-contact-form { grid-column: 1 / -1; order: 4; min-width: 0; }
.cards-edit-table caption { caption-side: top; padding: .15rem 0; font-weight: 700; }
.cards-edit-table th { width: 8.75rem; padding: .15rem .4rem .15rem 0; text-align: right; vertical-align: middle; }
.cards-edit-table th { position: relative; padding-left: 18px; }
.cards-edit-table .card-field-number { position: absolute; left: 0; top: 0; min-width: 15px; height: 14px; padding: 0 1px; border: 0; border-radius: 0 0 2px 0; background: #111; color: #fff; font: bold 9px/14px Arial, sans-serif; cursor: pointer; visibility: hidden; opacity: 0; transition: opacity 120ms ease; }
.cards-edit-table tr:hover > th .card-field-number, .cards-edit-table .card-field-number:focus-visible { visibility: visible; opacity: 1; }
.cards-edit-table .card-field-number:focus-visible { outline: 2px solid #1677d2; outline-offset: 2px; }
@media (hover: none) { .cards-edit-table .card-field-number { visibility: visible; opacity: 1; } }
.cards-edit-table td { padding: .15rem 0; min-width: 0; overflow-wrap: anywhere; }
.cards-edit-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .2rem .4rem; min-width: 0; max-width: 100%; }
.cards-edit-row > * { min-width: 0; max-width: 100%; }
.cards-edit-row > .cards-edit-field { flex: 1 1 9rem; }
.cards-edit-row > .cards-edit-time { flex: 0 0 6.5rem; }
.cards-edit-row > .cards-edit-wide { flex-basis: 100%; }
.cards-edit-row .form-control, .cards-edit-row .form-select { min-width: 0; min-height: 0; padding: .15rem .3rem; font-size: .8125rem; }
.cards-edit-row .form-select { padding-right: 1.5rem; }
.cards-edit-table .cards-edit-status, .cards-edit-table .cards-edit-status option { color: #000; }
.cards-edit-table .cards-edit-status option { background-color: #fff; font-weight: 400; }
.cards-edit-table .cards-status--neutral, .cards-edit-table .cards-edit-status option.cards-status--neutral { background-color: #f7e4c0; }
.cards-edit-table .cards-status--todo, .cards-edit-table .cards-edit-status option.cards-status--todo { background-color: #f7c464; }
.cards-edit-table .cards-status--done, .cards-edit-table .cards-edit-status option.cards-status--done { background-color: #d9ffc4; }
.cards-edit-table .cards-status--reaction, .cards-edit-table .cards-edit-status option.cards-status--reaction { background-color: #acff7e; }
.cards-edit-table .cards-status--interaction, .cards-edit-table .cards-edit-status option.cards-status--interaction { background-color: #5bff00; }
.cards-edit-table .cards-status--blocked, .cards-edit-table .cards-edit-status option.cards-status--blocked { background-color: #8e8e8e; }
.cards-edit-table .cards-status--danger, .cards-edit-table .cards-edit-status option.cards-status--danger { background-color: #f00; color: #fff; }
.cards-edit-table .cards-status--orange, .cards-edit-table .cards-edit-status option.cards-status--orange { background-color: orange; }
.cards-edit-table .cards-status--client, .cards-edit-table .cards-edit-status option.cards-status--client { background-color: #4ea4ff; color: #fff; }
.cards-edit-table .cards-status--unsent, .cards-edit-table .cards-edit-status option.cards-status--unsent { background-color: #ff0; color: red; font-weight: 700; }
.cards-edit-table .cards-status--sent, .cards-edit-table .cards-edit-status option.cards-status--sent { color: #c4c4c4; }
.cards-edit-row textarea { min-height: 3rem; }
.cards-edit-comments { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); order: 1; gap: .5rem; align-items: start; margin: .4rem 0 .65rem; padding-top: .4rem; border-top: 1px solid #ccc; }
.cards-edit-comments-internal, .cards-edit-comments-client, .cards-edit-comments-actions { min-width: 0; }
.cards-edit-comments-internal { display: grid; gap: .35rem; }
.cards-edit-comment-field { min-width: 0; }
.cards-edit-comment-field .form-control { width: 100%; min-width: 0; }
.cards-edit-comments .card-field-number { min-width: 15px; height: 14px; padding: 0 1px; border: 0; border-radius: 0 0 2px 0; background: #111; color: #fff; font: bold 9px/14px Arial, sans-serif; }
.cards-edit-comments-actions .cards-message-actions { margin-top: 0; padding-left: .25rem; border-top: 0; }
@media (max-width: 1100px) { .cards-edit-comments { grid-template-columns: minmax(0, 1fr); } }
.cards-edit-row > .cards-edit-field > label:last-child, .cards-edit-comments .cards-edit-field > label:last-child { display: block; margin: 0; font-size: .65rem; }
.cards-edit-plan .cards-edit-row { position: relative; align-items: center; gap: .15rem .3rem; }
.cards-edit-plan .cards-edit-row > .cards-edit-field { flex: 1 1 0; }
.cards-edit-plan .cards-edit-row > .cards-edit-time { flex: 0 0 6.5rem; }
.cards-edit-plan .cards-edit-row > .cards-edit-wide { flex: 1 0 100%; }
.cards-edit-plan .cards-edit-field { position: relative; }
.cards-edit-plan .cards-edit-row > .cards-edit-field--time { flex: 0 0 194px; }
.cards-edit-table .cards-edit-field--contact-kind { flex: 0 0 254px; }
.cards-edit-table .cards-edit-field--contact-kind .form-select { width: 254px; max-width: 100%; }
.cards-edit-plan .cards-edit-field--offer { flex: 0 0 162px; }
.cards-edit-plan .cards-edit-field--effect { flex: 0 0 196px; }
.cards-edit-plan .cards-edit-field--last-date, .cards-edit-plan .cards-edit-field--next-date, .cards-edit-plan .cards-edit-field--time { flex: 0 0 194px; }
.cards-edit-plan .cards-edit-field--contact-kind { flex: 0 0 254px; }
.cards-edit-plan .cards-edit-field--next-description { flex: 0 1 484px; max-width: 100%; }
.cards-edit-plan .cards-edit-field--offer .form-select { width: 162px; }
.cards-edit-plan .cards-edit-field--effect .form-select { width: 196px; }
.cards-edit-plan .cards-edit-field--last-date .form-control,
.cards-edit-plan .cards-edit-field--next-date .form-control,
.cards-edit-plan .cards-edit-field--time .form-control { width: 194px; max-width: 100%; }
.cards-edit-plan .cards-edit-field--next-description .form-control { width: 484px; max-width: 100%; }
.cards-edit-plan .cards-edit-field > label:last-child { position: absolute; right: 0; top: 100%; z-index: 2; background: white; visibility: hidden; }
.cards-edit-plan .cards-edit-field:focus-within > label:last-child, .cards-edit-plan .cards-edit-field:hover > label:last-child { visibility: visible; }
.cards-plan-icon { border: 0; background: none; padding: 0; color: #00e; cursor: pointer; white-space: nowrap; }
.cards-plan-icon svg { width: 1rem; height: 1rem; }
.cards-edit-calendar-cell { width: 2rem; padding: .15rem 0 !important; text-align: center; vertical-align: middle; white-space: nowrap; }
.cards-plan-calendar { display: inline-flex; align-items: center; justify-content: center; }
.cards-contact-read { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; width: 100%; min-width: 0; max-width: 100%; white-space: nowrap; line-height: 1.25; }
.cards-catalog-phone-remainder { display: flex; align-items: center; gap: .3rem; flex: 1 0 100%; margin: 0; font-size: inherit; white-space: nowrap; }
.cards-catalog-phone-remainder input { flex: 1 1 auto; min-width: 0; width: 0; }
.cards-catalog-phone-remainder input.has-value { outline: 1px solid #dc3545; outline-offset: -1px; }
.cards-contact-value { flex: 1 1 5rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cards-contact-type-label { flex: 0 0 auto; font-size: .75rem; font-weight: 600; color: #495057; }
.cards-contact-read .cards-contact-masked-email { flex: 0 0 auto; margin-left: 0; padding: 0 .25rem; border: 1px solid #d9a441; border-radius: .2rem; background: #fff2cf; color: #664d03; font-size: .68rem; line-height: 1.35; }
.cards-contact-read > a, .cards-contact-read > button { flex: 0 0 auto; }
.cards-contact-read > small { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cards-contact-history-empty, .cards-contact-empty { display: block; color: #666; }
.cards-contact-read small { margin-left: .35rem; color: #495057; }
.cards-contact-read[data-historical="1"] { color: #666; opacity: .75; }
.cards-contact-history { margin-top: .15rem; color: #555; font-size: .85rem; }
.cards-contact-history > summary { cursor: pointer; }
.cards-contact-history-list { margin: .2rem 0 .2rem .8rem; padding-left: .5rem; border-left: 2px solid #ddd; }
.cards-contact-read select { flex: 0 1 98px; width: 98px; height: 24px; min-width: 0; max-width: 98px; margin: 0; padding: 0; font-size: .75rem; vertical-align: middle; }
.cards-contact-read button { border: 0; background: transparent; padding: .05rem .2rem; vertical-align: middle; }
.cards-contact-read .cards-contact-shortcut { color: #0000ee; line-height: 1; }
.cards-contact-read .cards-contact-shortcut .cards-icon { width: 13px; height: 13px; }
/* Ikony edytora mają własny obszar kliku; odstęp flex pozostaje nieklikalny. */
.cards-detail .cards-contact-read > a,
.cards-detail .cards-contact-read > button,
.cards-detail .cards-plan-icon,
.cards-detail .cards-edit-table a:has(> .cards-icon) { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; flex: 0 0 24px; width: 24px; height: 24px; padding: 1px 0; vertical-align: middle; line-height: 1; }
.cards-detail .cards-edit-table > tbody > tr:first-child > td > a:has(> .cards-icon) { margin-inline: 2px; }
.cards-detail .cards-edit-table .cards-icon,
.cards-inline-row .cards-detail .cards-edit-table .cards-icon { display: inline-block; vertical-align: middle; width: auto; height: 15px; }
.cards-detail .cards-contact-read .cards-icon,
.cards-inline-row .cards-detail .cards-contact-read .cards-icon { display: inline-block; vertical-align: middle; width: auto; height: 16px; }
.cards-contact-read .cards-status-0 { background: #f7e4c0; color: #000; }
.cards-contact-read .cards-status-1 { background: #f7c464; color: #000; }
.cards-contact-read .cards-status-2 { background: #d9ffc4; color: #000; }
.cards-contact-read .cards-status-3 { background: #acff7e; color: #000; }
.cards-contact-read .cards-status-4 { background: #5bff00; color: #000; }
.cards-contact-read .cards-status-9 { background: #8e8e8e; color: #000; }
.cards-shortcuts { display: flex; flex-wrap: wrap; gap: .3rem; }
.cards-shortcuts form { margin-bottom: 0 !important; }
.authinfo-icon { display: inline-block; vertical-align: middle; }
.authinfo-wholesale { color: #b65c00; }

/* Widoki robocze rosną płynnie do ekranu, bez progów maksymalnej szerokości Bootstrap. */
.app-main-wide { max-width: none; min-width: 0; padding: .75rem clamp(.25rem, 1vw, 1rem) 1.5rem; }
.cards-main-wrap { overflow: visible; width: fit-content; max-width: none; margin-inline: calc(0px - clamp(.25rem, 1vw, 1rem)); }
.cards-main-table { width: auto; min-width: calc(100vw - 10px); max-width: none; font-size: 15px; line-height: 1.15; border-color: #c4d1d9; margin-inline: auto; border-collapse: separate; border-spacing: 1px; }
.cards-main-table > :not(caption) > * > * { padding: 2px 4px; min-width: 0; max-width: none; white-space: normal; overflow-wrap: normal; }
.cards-main-table > :not(caption) > * > *:nth-child(n+17):nth-child(-n+30) { padding-inline: 2px; }
.cards-main-table > thead > tr > th { background: #edf3f6; text-align: center; vertical-align: middle; position: sticky; top: 0; z-index: 5; }
.cards-main-table > tbody > tr > td { background-color: transparent; }
.cards-main-table > tbody > :where(tr:not(.cards-inline-row)) > td { border: 1px solid #e5e5e5; }
.cards-main-table > tbody > tr > td:nth-child(3) { min-width: 0; max-width: 112px; }
.cards-main-table > tbody > tr > td.cards-id { background: #ffffe5; color: #000; font-weight: 400; text-align: right; white-space: nowrap; }
.cards-main-table > tbody > tr > td:nth-child(4) { max-width: 85px; }
.cards-main-table > tbody > tr > td:nth-child(6), .cards-main-table > tbody > tr > td:nth-child(7) { text-align: left; max-width: 125px; }
.cards-main-table > tbody > tr > td:nth-child(7) { max-width: 159px; }
.cards-main-table > tbody > tr > td:nth-child(10) { padding-inline: 3px; }
.cards-main-table > tbody > tr > td:nth-child(11) { min-width: 157px; max-width: none; white-space: nowrap; overflow-wrap: normal; }
.cards-main-table > tbody > tr > td:nth-child(12) { min-width: 27px; padding-inline: 2px; text-align: center; white-space: nowrap; }
.cards-main-table > tbody > tr > td:nth-child(8) { min-width: 38px; white-space: nowrap; }
.cards-main-table > tbody > tr > td:nth-child(9) { text-align: right; white-space: nowrap; }
.cards-main-table > tbody > tr > td:nth-child(13) { max-width: none; }
.cards-main-table > tbody > tr > td:nth-child(28) { max-width: 135px; }
.cards-main-table td.cards-contact { text-align: center; white-space: nowrap; }
.cards-main-table .cards-provider > a, .cards-main-table .cards-provider > span:not(.authinfo-icon) { overflow-wrap: anywhere; }
.cards-icon { display: inline-block; width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; }
.cards-icon-button, .cards-expand { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: inherit; text-decoration: none; line-height: 1; vertical-align: middle; }
.cards-icon-button { min-width: 14px; min-height: 15px; }
.cards-icon-button:disabled { cursor: not-allowed; }
.cards-expand { color: #23344b; }
.cards-main-table form { display: inline; margin: 0; }
.cards-main-table .cards-scans { max-width: none; white-space: nowrap; }
.cards-main-table > thead > tr > th .cards-icon,
.cards-main-table > tbody > tr:not(.cards-inline-row) > td .cards-icon { width: auto; height: 15px; }
.cards-scan-status-cell, .cards-scan-readiness, .cards-scan-row-actions, .cards-scan-header-actions { display: inline-flex; align-items: center; white-space: nowrap; }
.cards-scan-status-cell { gap: 0; }
.cards-scan-readiness > .cards-icon { margin-right: 4px; }
.cards-scan-row-actions { gap: 6px; margin-left: 4px; }
.cards-scan-row-actions form { margin: 0; }
.cards-scan-header-actions { gap: 2px; margin-left: 2px; }
.cards-scan-header-actions > button { margin-inline: 4px; }
.cards-scan-header-actions > button, .cards-scan-row-actions button { min-width: 0; }
.cards-main-table .cards-package-unknown { color: #d58512; }
.cards-main-table .cards-status-empty, .cards-main-table .cards-status-0 { background-color: #f7e4c0; color: #000; }
.cards-main-table .cards-status-1 { background-color: #f7c464; color: #000; }
.cards-main-table .cards-status-2 { background-color: #d9ffc4; color: #000; }
.cards-main-table .cards-status-3 { background-color: #acff7e; color: #000; }
.cards-main-table .cards-status-4 { background-color: #5bff00; color: #000; }
.cards-main-table .cards-status-9 { background-color: #8e8e8e; color: #000; }
.cards-main-table .cards-green { color: #08732d; } .cards-main-table .cards-blue { color: #0865ae; } .cards-main-table .cards-red { color: #d90032; }
.cards-main-table .cards-orange { color: #b75c00; } .cards-main-table .cards-purple { color: #7951aa; }
.cards-main-table .cards-row-off { background-color: #000; color: #fff; --bs-table-color: #fff; }
.cards-main-table .cards-row-off .cards-expand { color: #fff; }
.cards-main-table .cards-row-effect-7:not(.cards-row-off) { background-color: #4ea4ff; color: white; --bs-table-color: white; }
.cards-main-table .cards-row-effect-2 { background-color: orange; color: #000; --bs-table-color: #000; }
.cards-main-table .cards-row-effect-3 { background-color: #d9ffc4; color: #000; --bs-table-color: #000; }
.cards-main-table > tbody > tr:not(.cards-inline-row):hover > td { background-color: #f7ee6f !important; color: #000 !important; border-color: #3800ff; }
.cards-main-table > tbody > tr:not(.cards-inline-row):hover > td a,
.cards-main-table > tbody > tr:not(.cards-inline-row):hover > td .cards-expand,
.cards-main-table > tbody > tr:not(.cards-inline-row):hover > td .cards-icon-button { color: #000 !important; }
.cards-main-table .cards-wp { text-align: center; white-space: nowrap; }
.cards-main-table .cards-wp.cards-green, .cards-main-table .cards-wp.cards-red { font-weight: 700; }
.cards-main-table .cards-wp.cards-status-1 { background: #ffff00; color: #d90032; font-weight: 700; }
.cards-main-table .cards-www a { color: #174d92; }
.cards-main-table .cards-www.cards-red a { color: #d90032; }
.cards-main-table .cards-ssl { min-width: 37px; text-align: center; white-space: nowrap; }
.cards-main-table .cards-offer { min-width: 46px; text-align: center; white-space: nowrap; }
.cards-main-table .cards-offer-action { text-decoration: underline; }
.cards-main-table .cards-offer.cards-status-1 { background: #ffff00; color: #d90032; font-weight: 700; }
.cards-main-table .cards-blocked { color: #ff1744; font-weight: 700; }
.cards-main-table .cards-comment-www { color: #d90032; }
.cards-main-table .cards-comment-www-missing { background: #ffff00; color: #d90032; font-weight: 700; }
.cards-main-table .cards-contact-slot { border: 2px solid #000; }
.cards-main-table .cards-contact-overdue { border: 2px solid red; }
.cards-main-table .cards-contact-next { background: aqua; }
.cards-main-table td.cards-next-contact-due { background: #ffff00; color: #d90032; font-weight: 700; }
.cards-main-table td.cards-effect-error { background: #d90032; color: #fff; font-weight: 700; }
.cards-main-table .cards-row-off .cards-wp, .cards-main-table .cards-row-off .cards-offer,
.cards-main-table .cards-row-effect-7 .cards-wp, .cards-main-table .cards-row-effect-7 .cards-offer { background: transparent; color: inherit; }
.cards-main-table .cards-row-off .cards-offer, .cards-main-table .cards-row-effect-7 .cards-offer { font-weight: inherit; }
.cards-main-table .cards-row-off .cards-ssl { color: #fff !important; font-weight: 700 !important; }
.cards-main-table .cards-row-off .cards-ssl.cards-red { color: #ff1744 !important; }
.cards-main-table .cards-row-off .cards-ssl.cards-orange { color: #ffb74d !important; }
.cards-main-table .cards-row-off .cards-comment-www-missing { background: transparent !important; color: #ff1744 !important; }
.cards-row-outside-filter { opacity: .65; }
.cards-main-table > tbody > tr > td .cards-lp-expand,
.cards-main-table > tbody > tr:not(.cards-inline-row):hover > td .cards-lp-expand { color: #0d6efd; }
/* Raporty rosną wraz z treścią do szerokości widoku; dłuższe wartości zawijają się. */
.report-table-wrap { width: fit-content; max-width: 100%; min-width: 0; margin-inline: auto; overflow-x: hidden; }
/* Tabele dPanelu rosną z treścią, a przewijanie pozostaje wewnątrz dostępnego widoku. */
.dpanel-content { width: 100%; max-width: 1320px; margin-inline: auto; }
.dpanel-table-wrap { width: fit-content; max-width: 100%; min-width: 0; margin-inline: auto; overflow-x: auto; }
.dpanel-table-wrap > .table { width: auto; margin-bottom: 0; }
.dpanel-comparison > tbody > tr.table-success > * { background-color: #9de8ad !important; color: #123d1c; }
.dpanel-comparison > tbody > tr.table-additional > *,
.dpanel-additional-color { background-color: #e8d7f5 !important; color: #45245f; }
.dpanel-comparison { width: 100%; table-layout: auto; }
.dpanel-comparison .dpanel-col-name { width: 1%; white-space: nowrap; }
.dpanel-comparison .dpanel-col-type { width: 6%; }
.dpanel-comparison .dpanel-col-observed { width: 42%; }
.dpanel-comparison .dpanel-col-comparison { width: 26%; }
.dpanel-comparison .dpanel-col-ttl, .dpanel-comparison .dpanel-col-proxy { width: 7%; }
.dpanel-comparison th, .dpanel-comparison td { overflow-wrap: anywhere; }
.dpanel-comparison th:first-child, .dpanel-comparison td:first-child { overflow-wrap: normal; }
.report-table { width: fit-content; max-width: 100%; min-width: 0; margin-inline: auto; table-layout: auto; font-size: 13px; }
.report-intro { width: fit-content; max-width: 100%; margin: 0 auto 1rem; text-align: center; overflow-wrap: anywhere; }
.report-intro p { margin-bottom: .5rem; }
.report-intro nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.app-main nav[aria-label^="Stronicowanie"], .app-main nav[aria-label^="Strony"] { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: .75rem auto; gap: .5rem .9rem; text-align: center; }
.report-table th, .report-table td { min-width: 0; white-space: normal !important; overflow-wrap: anywhere; vertical-align: top; padding: .25rem; }
.report-table .text-nowrap { white-space: normal !important; }
.app-header nav, .app-header nav > div { flex-wrap: wrap; }
.report-table details, .report-table pre, .report-table form { min-width: 0; max-width: 100%; }
.report-table pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.report-table textarea, .report-table select { width: 100%; max-width: 100%; min-width: 0; }
.error-registry-table .error-severity-critical > td { background: #ffcccc; }
.error-registry-table .error-severity-error > td { background: #ffe0b2; }
.error-registry-table .error-severity-warning > td { background: #fff7cf; }
.error-registry-table .error-severity-info > td { background: #eaf5ff; }
.error-registry-table .error-status-resolved > td { background: #dcf5df; }
.error-registry-table .error-status-ignored > td { background: #eee; color: #666; }
.cards-main-table > tbody > .cards-inline-row > td { padding: .5rem; max-width: none; background: #fff; border: 1px solid #8fb7d4; }
.cards-scan-summary { display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin: -.4rem 0 .55rem; padding: .35rem .45rem; border-bottom: 1px solid #b8c8d5; }
.cards-detail .cards-scan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin-bottom: .55rem; }
.cards-detail .cards-scan-actions > form { display: inline-flex; flex: 0 0 auto; margin: 0; }
.cards-scan-summary > span { white-space: nowrap; }
.cards-scan-summary .cards-green { color: #08732d; }
.cards-scan-summary .cards-blue { color: #0865ae; }
.cards-scan-summary .cards-red { color: #d90032; }
.cards-scan-summary .cards-orange { color: #b75c00; }
.cards-scan-summary .cards-purple { color: #7951aa; }
.cards-inline-row .cards-detail .table { max-width: 100%; }
.cards-inline-row .cards-detail .cards-inline-contact-log > .table { width: 100%; }
.cards-inline-row .cards-detail .table td, .cards-inline-row .cards-detail .table th { white-space: normal; overflow-wrap: anywhere; }
.cards-inline-row .cards-table-wrap { overflow: visible; }
.cards-inline-row .cards-inline-contact-log { max-height: 230px; overflow: auto; }
.cards-inline-contact-log td:nth-child(2) { white-space: nowrap; }
.cards-inline-contact-log-empty { padding: .2rem .4rem; color: #5c6870; }
.cards-inline-row .cards-detail form { display: block; }
.cards-inline-row .cards-detail .cards-contact-form { display: grid; }
.cards-inline-row .cards-shortcuts form { display: inline-block; }
.cards-inline-row .cards-detail .page-heading h1 { font-size: 1rem; }
.cards-inline-row .cards-edit-grid { max-width: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.cards-contact-form { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); align-items: end; gap: .3rem .5rem; margin: .5rem 0; padding: .5rem; border: 1px solid silver; scroll-margin-top: 1rem; }
.cards-contact-form h3 { grid-column: 1 / -1; margin: 0; font-size: 1rem; }
.cards-contact-form label { display: flex; flex-direction: column; margin: 0; font-size: .85rem; }
.cards-contact-form input, .cards-contact-form select { width: 100%; max-width: 100%; min-width: 0; font-size: .85rem; }
.cards-contact-form label:has(select) { grid-column: span 2; }
.cards-contact-form label:has(input[name="value"]) { grid-column: span 4; }
.cards-contact-form label:has(input[name="first_name"]), .cards-contact-form label:has(input[name="last_name"]) { grid-column: span 1; }
.cards-contact-form label:has(input[name="description"]), .cards-contact-form label:has(input[name="party_description"]) { grid-column: span 5; }
.cards-contact-form > button, .cards-contact-form > a { grid-column: span 2; }
.cards-contact-form:target { outline: 2px solid #8db9df; }
@media (max-width: 700px) {
  .cards-contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-contact-form label:has(select), .cards-contact-form label:has(input[name="first_name"]), .cards-contact-form label:has(input[name="last_name"]) { grid-column: span 1; }
  .cards-contact-form label:has(input[name="value"]), .cards-contact-form label:has(input[name="description"]), .cards-contact-form label:has(input[name="party_description"]) { grid-column: 1 / -1; }
  .cards-contact-form > button, .cards-contact-form > a { grid-column: span 1; }
  .cards-edit-row:has(.cards-edit-field--offer) { flex-direction: column; align-items: stretch; }
  .cards-edit-row:has(.cards-edit-field--offer) > .cards-edit-field { flex: 1 1 auto; width: 100%; }
}
@media (max-width: 1100px) { .cards-edit-layout { grid-template-columns: minmax(0, 1fr); } .cards-edit-support-grid { grid-template-columns: minmax(0, 1fr); } .cards-inline-row .cards-detail { width: calc(100vw - 1rem); max-width: calc(100vw - 1rem); } .cards-main-wrap { width: 100%; max-width: 100%; overflow-x: auto; margin-inline: 0; } }
.app-map { width: 100%; margin-inline: auto; }
.cards-technical-panels { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem; margin: .5rem 0; }
.cards-technical-panel { width: auto; max-width: 100%; border-collapse: collapse; font-size: 13px; }
.cards-technical-panel caption { caption-side: top; padding: 0; color: #6c757d; font-weight: bold; text-align: left; }
.cards-technical-panel th, .cards-technical-panel td { border: 1px solid silver; padding: 2px 4px; vertical-align: top; overflow-wrap: anywhere; }
.cards-technical-panel th { position: relative; white-space: nowrap; }
.cards-technical-panel .card-field-number { position: absolute; left: 0; top: 0; min-width: 15px; height: 14px; padding: 0 1px; border: 0; background: #111; color: #fff; font: bold 9px/14px Arial, sans-serif; cursor: pointer; visibility: hidden; opacity: 0; }
.cards-technical-panel tr:hover > th .card-field-number, .cards-technical-panel .card-field-number:focus-visible { visibility: visible; opacity: 1; }
.cards-technical-panel .card-field-number:focus-visible { outline: 2px solid #1677d2; outline-offset: 2px; }
@media (hover: none) { .cards-technical-panel .card-field-number { visibility: visible; opacity: 1; } }
.cards-technical-panel .form-control { display: inline-block; width: 12rem; max-width: 100%; padding: 0 3px; font-size: inherit; border-radius: 0; }
.cards-attempt-archive { max-width: 38rem; }
.cards-attempt-archive .cards-archive-statuses > span { display: inline-block; margin: 0 .3rem .2rem 0; white-space: nowrap; }
.cards-attempt-archive .cards-archive-status { padding: 0 .2rem; border-radius: 2px; }
.cards-attempt-archive .cards-status-0 { background: #f7e4c0; }
.cards-attempt-archive .cards-status-1 { background: #f7c464; }
.cards-attempt-archive .cards-status-2 { background: #d9ffc4; }
.cards-attempt-archive .cards-status-3 { background: #acff7e; }
.cards-attempt-archive .cards-status-4 { background: #5bff00; }
.cards-attempt-archive .cards-status-9 { background: #8e8e8e; }
.cards-attempt-archive .cards-status-empty { color: #888; }
.app-map-frame { display: block; width: 100%; height: clamp(18rem, calc(100dvh - 16rem), 55rem); border: 1px solid silver; }
/* Podświetlenie obejmuje wszystkie komórki; zaznaczenie ma pierwszeństwo przed najechaniem. */
.app-main table > tbody > tr:not(.cards-inline-row):hover > :is(td, th) { background-color: #f7ee6f !important; box-shadow: none !important; }
.app-main .cards-inline-row table > tbody > tr:hover > :is(td, th) { background-color: transparent !important; }
.app-main .dpanel-service-row:has(> td > .dpanel-row-checkbox:checked) > td { background-color: #c5fdc6 !important; box-shadow: none !important; }
