:root {
    --backgroundmenucolor: #F7F5EF;
    --backgroundbody: #F3F3F3;
    --menucolortext: #2B2B2B;
    --logowanietlocolor: #2B2B2B;
    --logowanietextcolor: #F7F5EF;
    --bordercolorzlecenie: #7a7a7a;
    --zielenanetkidesktop: #7dc872;
    --zielenanetkimobile: #94c78d;
    --backgroundstarazielen: linear-gradient(to bottom, #b5ea81 5%, #98cc67 100%) !important;
    --backgroundnowazielen: linear-gradient(to bottom, #ceddbd 0%, #759755 100%) !important;
    --color_do_tla: #2f3c23;
    --color_ramka: rgb(187, 187, 187);
    --tlo_ramek: #cccccc3b;
    --font-main: 'Outfit', sans-serif;
}

@font-face { font-family: 'Outfit-Regular'; src: url('fonts/Outfit-Regular.ttf'); font-display: swap;} 
* { font-family: 'Outfit-Regular', sans-serif; 
body { font-family: 'Outfit-Regular', sans-serif; } 
.form-pola-color { border-color: #1065ea !important; }

#navbarToggler2>.navbar-nav>.dropdown>.dropdown-menu>.dropdown-item:hover {
    background-color: #c4c4c4;
}

.shadow {
    -webkit-box-shadow: 0 0 0.7rem rgba(54, 54, 54, 0.7) !important;
    -moz-box-shadow: 0 0 0.7rem rgba(54, 54, 54, 0.7) !important;
    box-shadow: 0 0 0.7rem rgba(54, 54, 54, 0.7) !important;
}

.background_menu_color {
    background-color: var(--backgroundmenucolor);
    background-image: url("images/bg_content_noise_light.jpg") !important;
    background-position: center;
    background-size: auto;
    background-repeat: repeat;
}

.backgound_body {
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
    background-image: url("images/bg_content_noise_light.jpg") !important;
    background-repeat: repeat;
}

@media (max-width: 768px) {
    .form-check-input[type="checkbox"]:checked,
    .form-check-input:checked {
        background-color: #6c757d !important;
        border: 1px solid #6c757d !important;
    }
}

.form-check-input:checked,
.form-check-input[type="checkbox"]:checked {
    background-color: #6c757d !important;
    border: 1px solid #6c757d !important;
}

.modal-content {
    color: var(--bs-dark-text-emphasis) !important;
}

#loginModal .modal-header,
#validationErrorModal .modal-header,
.modal-header {
    height: 3em !important;
}

#validationErrorModal .modal-footer,
#loginModal .modal-footer,
.modal-footer {
    padding: 0.4em !important;
}

.text_menu_color {
    color: var(--menucolortext);
}

.logowanie_tlo_kolor {
    background-color: var(--bordercolorzlecenie) !important;
}

.logowanie_tlo_kolor:hover {
    background-color: #777777 !important;
    color: var(--logowanietextcolor) !important;
}

.logowanie_text_kolor {
    color: var(--menulogotext);
}

.prof_pomoc,
.w_pis_prac {
    display: inline;
}

.logout_button,
.logout_button_radius,
.nowezlecenie,
.zaplacbutton,
.btn-szczegoly,
#mainTabs .nav-link.active {
    background: var(--backgroundstarazielen) !important;
    color: var(--bs-dark-text-emphasis);
    height: auto;
}

.logout_button,
.logout_button_radius,
.zaplacbutton,
.btn-szczegoly {
    border: 1px solid var(--bordercolorzlecenie);
}

.nowezlecenie {
    border-color: red !important;
    border-width: 1px;
}

.logout_button,
.logout_button_radius {
    width: 5em;
}

.accept_send_button {
    border: 1px solid var(--bordercolorzlecenie);
    background: var(--backgroundstarazielen) !important;
    color: var(--bs-dark-text-emphasis);
    height: auto;
}

.accept_send_button:disabled {
    border: 1px solid var(--bordercolorzlecenie);
    background: var(--backgroundstarazielen) !important;
    color: var(--logowanietextcolor);
    height: auto;
    cursor: not-allowed;
}

.nowezlecenie,
.zmienhaslo_width {
    width: 10em;
}

.logout_button,
.zaplacbutton,
.btn-szczegoly,
.nowezlecenie {
    border-radius: 5px;
}

.btn-szczegoly {
    width: 6em !important;
}

.logout_button:hover,
.zaplacbutton:hover,
.btn-szczegoly:hover,
.nowezlecenie:hover,
#mainTabs .nav-link:hover {
    color: var(--color_do_tla);
}

.tab_szczegoly {
    border: 1px solid var(--bordercolorzlecenie);
}

.zaplacbutton {
    /* margin-left: 1em; */
}

.modal_z_2000 {
    z-index: 2000 !important;
}

.svg_style {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.glowna_font1em {
    font-size: 1rem !important;
}

.glowna_p_text {
    text-indent: 1em !important;
}

main {
    margin-top: 20px;
    color: var(--bs-dark-text-emphasis);
}

@media (max-width: 1200px) {
    .prof_pomoc,
    .w_pis_prac {
        display: block;
    }
}
.icon-pghomeclass {
    width: 20px;
    height: 24px;
    fill: #2B2B2B;
}

@media (max-width: 768px) {
    .homemenuroot1 {
        margin-top: 20px;
    }
}

.container_zlecenia_size {
    width: 95%;
}

#tematRoot {
    font-size: 1em;
    width: 100%;
    height: 38px;
}

.form-control,
.form-select {
    color: var(--bs-dark-text-emphasis) !important;
}

#tab-zlecenia,
#tab-platnosci {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

#tab-zlecenia thead th,
#tab-zlecenia thead td,
#tab-zlecenia tfoot th,
#tab-zlecenia tfoot td,
#tab-platnosci thead th,
#tab-platnosci thead td,
#tab-platnosci tfoot th,
#tab-platnosci tfoot td {
    text-align: center;
    background: var(--backgroundnowazielen) !important;
}

.table> :not(caption)>*>* {
    color: var(--color_do_tla) !important;
}

#tab-zlecenia thead>tr>th div.dt-column-header .dt-column-title,
#tab-platnosci head>tr>th div.dt-column-header .dt-column-title {
    color: var(--color_do_tla) !important;
    text-align: center;
    font-weight: bold;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

#tab-zlecenia tbody>tr.child span.dtr-title,
#tab-platnosci tbody>tr.child span.dtr-title {
    color: #162f48 !important;
    width: 9em;
    /* 10rem; */
    border-right: 1px solid var(--menucolortext);
    font-weight: normal;
}

#tab-zlecenia tbody>tr>td,
#tab-platnosci tbody>tr>td {
    color: #23226E;
    font-weight: normal;
}

#tab-zlecenia,
#tab-platnosci {
    border: 1px solid #9e9e9e;
}

#mainTabs .nav-link {
    border-color: #868b99;
    background-color: #f8f9fa;
    color: #6c757d;
    transition: 0.3s;
    padding: 4px 8px 4px 8px;
}

@media (max-width: 768px) {
    #mainTabs .nav-link.active {
        background: var(--backgroundstarazielen) !important;
    }

    #tab-zlecenia thead th,
    #tab-zlecenia thead td,
    #tab-zlecenia tfoot th,
    #tab-zlecenia tfoot td,
    #tab-platnosci thead th,
    #tab-platnosci thead td,
    #tab-platnosci tfoot th,
    #tab-platnosci tfoot td {
        background: var(--backgroundnowazielen) !important;
    }
}

#tab-zlecenia thead th,
#tab-platnosci thead th {
    position: relative;
    border: none !important;
}

#tab-zlecenia thead th:not(:last-child)::after,
#tab-platnosci thead th:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: var(--menucolortext);
}

#tab-zlecenia tbody td,
#tab-platnosci tbody td {
    position: relative;
    border: none;
}

#tab-zlecenia tbody td:not(:last-child)::after,
#tab-platnosci tbody td:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: var(--menucolortext);
}

.text-center-column-zlecenia {
    padding-left: 0.5em;
    padding-right: 0.5em;
    text-align: center !important;
    vertical-align: middle !important;
}

.text-right-column-zlecenia {
    padding-left: 0.5em;
    padding-right: 0.5em;
    text-align: right !important;
    vertical-align: middle !important;
}

.text-padding-left-right-column-zlecenia {
    padding-left: 0.5em !important;
    padding-right: 0.5em !important;
    text-align: center !important;
    vertical-align: middle !important;
}

#tab-zlecenia tbody>tr.child li,
#tab-platnosci tbody>tr.child li {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    border-bottom: 1px solid #efefef;
}

#tab-zlecenia tbody>tr.child .dtr-data,
#tab-platnosci tbody>tr.child .dtr-data {
    padding-left: 1em !important;
    padding-right: 1em !important;
    text-align: center !important;
    vertical-align: middle !important;
}

#tab-zlecenia tbody>tr.child .dtr-title,
#tab-platnosci tbody>tr.child .dtr-title {
    text-align: left !important;
}

#tab-platnosci tbody>tr.child .dtr-data {
    width: 13em;
}

#tab-zlecenia_wrapper .page-item.active .page-link,
#tab-platnosci_wrapper .page-item.active .page-link {
    background: var(--backgroundnowazielen) !important;
    border-color: var(--menucolortext) !important;
    color: var(--menucolortext) !important;
}

#tab-zlecenia_wrapper .page-item:not(:active) .page-link,
#tab-platnosci_wrapper .page-item:not(:active) .page-link {
    color: var(--menucolortext) !important;
    background-color: rgb(247, 247, 247) !important;
}

#tab-zlecenia_wrapper .dt-search,
#tab-zlecenia_wrapper .dt-length,
#tab-platnosci_wrapper .dt-search,
#tab-platnosci_wrapper .dt-length {
    display: flex !important;
    justify-content: flex-start !important;
    /* width: 100% !important; */
}

#tab-zlecenia_wrapper .form-select,
#tab-platnosci_wrapper .form-select {
    margin-left: 0.8em;
}

#sesjatimer {
    margin-left: 0.5em;
    color: var(--bs-dark-text-emphasis) !important;
}

#tab-zlecenia tbody tr:nth-child(even)>td,
#tab-platnosci tbody tr:nth-child(even)>td {
    background-color: rgba(150, 182, 132, 0.21) !important;
    border: none !important;
    outline: none !important;
}

#tab-zlecenia tbody tr:nth-child(odd)>td,
#tab-platnosci tbody tr:nth-child(odd)>td {
    border: none !important;
    outline: none !important;
    background-color: rgba(150, 182, 132, 0.3) !important;
}

#tab-zlecenia_wrapper #dt-length-0,
#tab-zlecenia_wrapper #dt-search-0,
#tab-platnosci_wrapper #dt-length-0,
#tab-platnosci_wrapper #dt-search-0 {
    background-color: rgb(247, 247, 247) !important;
}

#tab-zlecenia_wrapper #dt-search-1,
#tab-platnosci_wrapper #dt-search-1,
#tab-zlecenia_wrapper #dt-search-0,
#tab-platnosci_wrapper #dt-search-0 {
    width: 10em;
}


#tab-zlecenia_wrapper div.dt-length,
#tab-zlecenia_wrapper div.dt-search,
#tab-platnosci_wrapper div.dt-length,
#tab-platnosci_wrapper div.dt-search {
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    background: var(--backgroundnowazielen) !important;
    border: 1px solid #B7B7B7;
    border-radius: 5px;
    color: var(--color_do_tla);
}

div.dt-container div.dt-search label {
    padding-top: 0.2em;
}

#containerpanel {
    background-image: url("images/bg_content_noise_light.jpg") !important;
    background-position: center;
    background-size: auto;
    background-repeat: repeat;
}

#button_menu1,
.navbar-toggler:focus {
    box-shadow: none !important;
    border: none;
}

/* SZCZEGOLY */
.file_name_width {
    width: 85%;
}

.kolor_do_tla {
    color: var(--bs-dark-text-emphasis);
}

.kolor_ramka_all {
    border: 1px solid var(--color_ramka) !important;
}

#file-section button {
    width: 7em;
}

#file-section button,
#file-section input,
#file-section div.text_muted {
    padding: 0.2em;
    height: 2em;
}

.kolor_tla_ramka_text:disabled {
    color: var(--color_do_tla);
    border: 1px solid var(--color_ramka) !important;
    background-color: var(--tlo_ramek);
}

.kolor_tla_ramka_text {
    color: var(--color_do_tla);
    border: 1px solid var(--color_ramka) !important;
    background-color: var(--tlo_ramek);
}

textarea {
    resize: none;
}

#wybory_szczegoly .root_szczegoly {
    width: auto !important;
    margin-bottom: 0.7em;
}

#wybory_szczegoly input,
#wybory_szczegoly select {
    height: 1.8em;
}

#temat_zlecenia_szczegoly {
    resize: none;
    height: 2lh+16px;
    display: block;
}

#opis_zlecenia_szczegoly {
    height: 5lh+16px;
}

.width_input_select {
    width: 9em;
    margin-bottom: 0.7em;
}

#update-panel {
    width: 8em;
}

#column-chat {
    padding: 0.5em;
}

@media (max-width: 768px) {
    #chat-window .msg {
        max-width: 100%;
    }
    #chat-window .msg.sent {
        align-self: stretch;
    }
    #chat-window .msg.received {
        align-self: stretch;
    }
}

@media (min-width: 768px) {
    #chat-window .msg {
        max-width: 90%;
    }
    #chat-window .msg.sent {
        align-self: self-end;
    }
    #chat-window .msg.received {
        align-self: self-start;
    }
}

#chat-window {
    height: 21em;
    border-color: var(--color_ramka);
    border-width: 1px;
    border-style: solid;
    margin-bottom: 0.5em;
    padding: 10px;
    background-color: var(--tlo_ramek);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#chat-window .msg {
    margin-top: 0.2em;
    margin-bottom: 0.2em;
    padding-top: 0.2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.8em;
    border: 1px solid var(--color_ramka);
    border-radius: 8px;
    line-height: 1.4em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    position: relative;
    display: block;
}

#chat-window .msg.sent,
#chat-window .msg.received {
    min-width: 6em;
}

#chat-window .msg.sent {
    text-align: left !important;
    background-color: #d8e6d9;
}

#chat-window .msg.received {
    text-align: left !important;
    background-color: #d1dbe1;
}

#column-chat form {
    margin-bottom: 0;
}

#column-chat input {
    margin-right: 0.5em;
    background-color: var(--tlo_ramek);
    border: 1px solid var(--color_ramka) !important;
    color: var(--bs-dark-text-emphasis) !important;
}

.files_ramka {
    overflow: auto;
    max-height: 23em;
    background-color: transparent;
}

.files_tlo, .form-control:disabled {
    background-color: var(--tlo_ramek);
}

.files_tlo_final {
    background-color: #abe5a93b;
}

textarea.form-control {
    background-color: var(--tlo_ramek) !important;
}

#chat-window .msg-time {
    position: absolute;
    bottom: 2px;
    right: 8px;
    font-size: 0.5em;
    color: #abb0b5;
    line-height: 0.8em;
    pointer-events: none;
}

div.dt-layout-table
{
    --bs-gutter-x: 0px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td,
table.dataTable.dtr-inline.collapsed > tbody > tr > th {
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 200px; 
}

@media screen and (max-width: 480px) {
    .container_zlecenia_size {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child {
        padding-left: 30px !important; /* Miejsce na ikonę rozwijania (+) */
    }
}

table.dataTable > tbody > tr.child ul.dtr-details {
    width: 100%;
}

div.regulamin_format h5{
    font-weight: bold;
    margin-top: 1em;
}

div.regulamin_format p{
    padding-left: 1em;
}

div.regulamin_format li{
    padding-bottom: 1em;
}



/* ==========================================================
   FIX DLA DATATABLES - Zabezpieczenie przed wyjściem za ramkę
   ========================================================== */
/* #table-zleceniadiv, 
#table-platnoscidiv {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; 
}

 #tab-zlecenia, 
#tab-platnosci {
    width: 100% !important;
    max-width: 100% !important;
} */