/*input, select {
    font-size: 15px;
    font-weight: 400;
    height: 21px;
    padding: 2px;
    border-width: 1px;
    line-height: 15px;
}*/

/* Odstępy ikon skanów są osobne dla nagłówka i wierszy listy. */
.scan-header-actions,
.scan-row-actions,
.scan-status-cell {display:inline-flex; align-items:center; white-space:nowrap;}
.scan-header-actions {gap:2px; margin-left:2px;}
.scan-row-actions {gap:6px; margin-left:4px;}
.scan-status-cell {gap:0;}
.scan-row-actions form {margin:0 !important;}

.p2w_info_block_l {
    width: 10px;
    background-color: grey;
    margin: 20px 7px 16px 10px;
}
.p2w_info_block {
    width: 100%;
    font-size: 12px;
    line-height: 11px;
}
.p2w_info_block pre {
    width: 100%;
    white-space: pre;
}
.p2w_info_block pre:first-line {
    color: white;
    font-size: 1px;
    line-height: 1px;
}

/* table.show */
table.show .card-snapshot-history-row > td {background:#f3f5f8; padding:4px 8px; text-align:left;}
.card-snapshot-history-row summary {cursor:pointer; display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; font-size:12px;}
.card-snapshot-history-row summary strong {color:#44546a;}
.card-snapshot-history-kind {background:#dce5f0; border-radius:3px; padding:2px 5px;}
table.show .card-snapshot-history-fields {margin:7px 0 2px; border-collapse:collapse; font-size:12px; max-width:100%;}
table.show .card-snapshot-history-fields caption {text-align:left; font-weight:bold;}
table.show .card-snapshot-history-fields th, table.show .card-snapshot-history-fields td {padding:3px 6px; border:1px solid #d4d9df; background:#fff; text-align:left; vertical-align:top; white-space:pre-wrap; overflow-wrap:anywhere;}
table.show .card-snapshot-history-fields th {white-space:nowrap; background:#e9edf2;}
table.show {
    background-color: #fff;
    margin: 5px auto;
    font-size: 15px;
    line-height: 15px;
    width: auto;
    border-collapse: separate;
    border-spacing: 1px;
}
table.show a svg {
    margin: 0 4px;
}

table.show td {
    border: 1px solid #E5E5E5;
}
table.show th, table.show td {
    padding: 2px 4px;
}
table.show > tbody > tr:first-child > th {
    font-weight: bold;
    text-align: center;
    position: sticky; /* Ustawia nagłówek jako sticky */
    top: 0;          /* Ustawia pozycję od góry */
    background-color: #FFF; /* Opcjonalnie, aby tło nagłówka było widoczne */
    border: 2px solid #000;
    height: 36px;
    z-index: 1000;
}
table.show tr:hover {
    background-color: yellow !important;
    color: #000;
}
table.show tr.no-hover:hover {
    background-color: transparent !important;
}

table.show tr.catalog-category-inactive,
table.show tr.catalog-category-inactive:hover {
    background-color: #e9ecef !important;
    color: #666;
}
table.show tr:hover td {
    border: 1px solid #3800ff;
}
table.card tr:hover:first-of-type {background-color: white !important;}

/* Białe powierzchnie treści zachowują kolory wierszy i statusów. */
table.show > tbody > tr.no-hover > td,
table.card,
table.card-details,
.generated-text,
.toggle-content {
    background-color: #fff;
}
table.card th {
    width: 140px;
    text-align: right;
    background-color: unset;
    position: relative;
}
table.card .card-area-title,
table.card-details .card-area-title {
    caption-side: top;
    text-align: left;
    font-weight: bold;
    padding: 3px 5px;
}
table.card .card-field-number,
table.card-details .card-field-number {
    position: absolute;
    left: 0;
    top: 0;
    transform: none;
    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;
    opacity: 0;
    visibility: hidden;
    transition: opacity 120ms ease;
}
table.card tr:hover .card-field-number,
table.card-details tr:hover .card-field-number,
table.card .card-field-number:focus-visible,
table.card-details .card-field-number:focus-visible {
    opacity: 1;
    visibility: visible;
}
@media (hover: none) {
    table.card .card-field-number,
    table.card-details .card-field-number {
        opacity: 1;
        visibility: visible;
    }
}
table.card .card-field-number:focus-visible,
table.card-details .card-field-number:focus-visible {
    outline: 2px solid #1677d2;
    outline-offset: 2px;
}
table.card .card-field-cell {
    position: relative;
    padding-left: 28px;
}
table.card .card-field-cell .card-field-number {
    top: 0;
    transform: none;
}
table.card-details th {
    position: relative;
    padding-left: 28px;
}
table.card .card-update-button {
    display: inline-block;
    margin: 0 18px 0 8px;
    cursor: pointer;
}
table.card .card-snapshot-button--manual {margin-left: 10px;}
table.card .card-form-message:not(:empty) {
    padding-top: 4px;
}
table.card .card-form-message p {
    margin: 0;
}
table.card td {
    padding: 2px 5px;
    border-color: black;
}
table.card td.input {
    width: 300px;
}
table.card .w100 {
    width: 100%;
}
table.card .w25 {width: 18%;}
table.card .w33 {width: 26%;}
table.card .w50 {width: 40%;}
table.card .w67 {width: 60%;}
table.card .w75 {width: 68%;}
.generated-text:hover {background-color: white !important;}
.copyToClipboardBox {display: flex; flex-direction: row; gap: 10px;}
/* END - table.show */

.btn-form {
    margin: 10px auto;
}

tr.show_body {
    background-color: yellow;
    color: #000;
}
#scan_progress {
    padding: 3px;
}
#scan_progress input {
    width: 50px;
    border: none;
}
#scan_progress input#input_card_count, #scan_progress input#input_page_count, #scan_progress input#input_cat_id {
    text-align: right;
}

/* FORM */
.form-field-empty {border: 2px solid red;}

body {
    background-color: #F2FAFC !important;
}
nav {
    border-bottom: 2px solid #E0E7EE;
    box-shadow: 0 10px 10px 0 rgba(59, 67, 72, 0.08);
}
.col-n1:hover,
.col-n2:hover,
.col-n3:hover,
.col-n4:hover,
.col-n5:hover,
.col-n6:hover,
.col-n7:hover,
.col-n8:hover,
.col-n9:hover,
.col-n10:hover,
.col-n11:hover,
.col-n12:hover,
.col-n13:hover,
.col-n14:hover,
.col-n15:hover,
.col-n16:hover,
.col-n17:hover,
.col-n18:hover,
.col-n19:hover,
.col-n20:hover,
.col-n21:hover,
.col-n22:hover,
.col-n23:hover,
.col-n24:hover,
.col-n25:hover,
.col-n26:hover,
.col-n27:hover,
.col-n28:hover {
    background-color: yellow;
}

.text_auto_check {
    color: red;
    background-color: yellow;
}
/* statusy */
.stat8,
.stat9 {background-color: #8e8e8e; color: black;}
.stat0,
.stat  {background-color: #f7e4c0; color: black;}
.stat1 {background-color: #f7c464; color: black;}
.stat2 {background-color: #d9ffc4; color: black;}
.stat3 {background-color: #acff7e; color: black;}
.stat4 {background-color: #5bff00; color: black;}

.contact-archive-row th,
.contact-archive-row td {padding: 0 4px !important; line-height: 1.1; vertical-align: middle;}
.contact-snapshot-statuses {display: flex; flex-wrap: wrap; align-items: center; gap: 5px;}
.contact-snapshot-status {display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 28px; min-height: 22px; box-sizing: border-box; padding: 3px 6px; border-radius: 2px; white-space: nowrap;}
.contact-snapshot-status b {font-weight: 700;}

.pointer {cursor: pointer; color: blue;}


/* STATUSY */
/* STATUSY - TD - BORDER */
.class-td-br--slot {border: 2px solid black !important;}
.class-td-br--past {border: 2px solid red !important;}
.class-td-bc--error3 a,
.class-td-bc--error3 {color: red; font-weight: bold; background-color: yellow;}
.class-td-bc--error4 {color: #FFF; background-color:red;}
.class-td-bc--todo {background-color: aqua; color: #000 !important;}
.class-td-bc--id {background-color: #ffffe5; color: #000;}
.class-td-font--error1,
.class-td-font--error1 a {color: red;}
.class-td-font--error2,
.class-td-font--error2 a {color: red; font-weight: bold;}
.class-td-font--lgray {color: #c4c4c4;}
.class-td-font--superok {color: green; font-weight: bold;}
.class-tr-bc--off {background-color: #000; color: #FFF;}
.class-tr-bc--client {background-color: #4ea4ff; color: #FFF !important;}
.class-tr-bc--reaction {background-color: orange; color: #000 !important;}
.class-tr-bc--offer {background-color: #D9FFC4; color: #000 !important;}
/* Button */
button {
    background-color: #cfcff4;
    font-weight: 600;
    padding: 0 10px;
}
button.w100 {
    margin: 5px 5px 0 5px;
    width: calc(100% - 10px) !important;
}
.toggle-content {
    border: 1px solid black;
    padding: 10px;
    box-shadow: #42445a 0px 8px 10px 0px inset;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    border-radius: 10px;
}
.toggle-content--100 {
    margin: 0px 10px 10px !important;
    border-radius: 0 0 10px 10px;
}

/* Ikony kontaktów zachowują obsługę klawiatury bez wyglądu pełnego przycisku. */
.card-contact-icon {-webkit-appearance: none; appearance: none; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; min-width: 0 !important; width: 18px; flex: 0 0 18px; color: blue; cursor: pointer; font-weight: normal !important; font-size: 16px; line-height: 1;}
.card-contact-icon:focus-visible {outline: 2px solid blue; outline-offset: 2px;}
.card-contact-icon:disabled {color: gray; cursor: default;}
.card-contact-row {display: flex; flex-wrap: nowrap; align-items: center; gap: 3px; padding: 2px 0; min-width: 0; width: 100%; white-space: nowrap;}
.card-contact-value {flex: 1 1 100px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.card-contact-description {flex: 0 1 90px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.card-contact-status-form {display: flex; flex: 0 0 auto; align-items: center; margin: 0;}
.card-contact-status-form select {width: 98px !important; max-width: 98px; min-width: 0; padding: 0 !important;}
.card-contact-status-form .contact-status-message {max-width: 16px; overflow: hidden; white-space: nowrap;}
.card-contact-points {flex: 0 0 auto;}
.card-contact-history-status {flex: 0 1 auto; min-width: 0; max-width: 98px; overflow: hidden; text-overflow: ellipsis;}
select option.stat0 {background-color: #f7e4c0; color: black;}
select option.stat1 {background-color: #f7c464; color: black;}
select option.stat2 {background-color: #d9ffc4; color: black;}
select option.stat3 {background-color: #acff7e; color: black;}
select option.stat4 {background-color: #5bff00; color: black;}
select option.stat8, select option.stat9 {background-color: #8e8e8e; color: black;}
/* Pokaż kolor wybranej opcji również na zwiniętych selektach WIZ-14. */
table.card select[id^="card_offer_sent_"]:has(option[value="0"]:checked) {background-color: #ff0; color: red; font-weight: bold;}
table.card select[id^="card_offer_sent_"]:has(option[value="1"]:checked) {background-color: #fff; color: #c4c4c4;}
table.card select[id^="card_call_effect_"]:has(option[value="0"]:checked) {background-color: #f7e4c0; color: #000;}
table.card select[id^="card_call_effect_"]:has(option[value="1"]:checked) {background-color: red; color: #fff;}
table.card select[id^="card_call_effect_"]:has(option[value="2"]:checked) {background-color: orange; color: #000;}
table.card select[id^="card_call_effect_"]:has(option[value="3"]:checked) {background-color: #d9ffc4; color: #000;}
table.card select[id^="card_call_effect_"]:has(option[value="7"]:checked) {background-color: #4ea4ff; color: #fff;}
table.card select[id^="card_call_effect_"]:has(option[value="8"]:checked),
table.card select[id^="card_call_effect_"]:has(option[value="9"]:checked) {background-color: #8e8e8e; color: #000;}
.card-address-parts {display: flex; gap: 3px;}
.card-address-parts input {min-width: 0; width: 0; flex: 2;}
.card-address-parts input:first-child {flex: 1;}
.card-address-parts input:last-child {flex: 3;}
