﻿html {
    background-color: #071C34;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fff;
    color: #000;
    font-size: 1em;
    font-family: Helvetica, Arial, Sans-Serif;
    margin: 0;
    padding: 0;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.header_container {
    line-height: 2.5em;
}

/* Responsive Banner Styles */
.responsive-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.responsive-banner img {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

/* Hide all banners by default */
.banner-desktop,
.banner-tablet,
.banner-mobile {
    display: none;
}

/* Desktop banner - show on large screens */
@media (min-width: 1200px) {
    .banner-desktop {
        display: block !important;
    }
}

/* Tablet styles - iPad and similar devices */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .banner-tablet {
        display: block !important;
    }
}

/* Mobile styles */
@media (max-width: 767.98px) {
    .banner-mobile {
        display: block !important;
    }
}

/* Ensure container responsiveness */
@media (max-width: 767.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.navbar {
    padding: 2px 0;
    background: #071C34;
    color: #fff;
}

.navbar-headline {
}

.navbar-logo {
    display: inline-block;
    color: white;
    vertical-align: middle;
}

.navbar-brand {
    color: #fff !important;
    font-size: 1.3em;
    vertical-align: middle;
    margin-left: 5px;
}

.nav-item {
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
    margin-left: 1em;
}

.nav-link {
    min-width: 9.2em;
    text-decoration: none;
    color: #000 !important;
    background-color: #75db8f !important;
    transition: background-color ease 0.4s;
    border-radius: 4px;
}

#FieldConfigModal .modal-content,
#OptionConfigModal .modal-content {
    width: 100%;
}

#FieldConfigModal .modal-body,
#OptionConfigModal .modal-body {
    max-height: 65vh;
    overflow-y: auto;
}

/* Responsive navigation adjustments */
@media (max-width: 767.98px) {
    .nav-item {
        margin-left: 0.5em;
        margin-bottom: 0.5em;
    }
    
    .nav-link {
        min-width: auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.85em;
    }
    
    /* Mobile dropdown menu styling */
    .nav-item.dropdown .dropdown-menu {
        background-color: #071C34 !important;
        border: none !important;
        text-align: center !important;
        margin-top: 0.5rem !important;
        border-radius: 4px !important;
    }
    
    .nav-item.dropdown .dropdown-menu .nav-link {
        background-color: #071C34 !important;
        color: #fff !important;
        text-align: center !important;
        margin: 0.25rem 0 !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 4px !important;
        min-width: auto !important;
    }
    
    .nav-item.dropdown .dropdown-menu .nav-link:hover {
        background-color: #75db8f !important;
        color: #000 !important;
    }
    
    .nav-item.dropdown .dropdown-menu form {
        margin: 0 !important;
    }
    
    .nav-item.dropdown .dropdown-menu form .nav-link {
        background-color: #071C34 !important;
        color: #fff !important;
        text-align: center !important;
    }
    
    .nav-item.dropdown .dropdown-menu form .nav-link:hover {
        background-color: #75db8f !important;
        color: #000 !important;
    }
    
    /* Mobile form styling for User Create and Edit pages */
    .inputText,
    .selectpicker:not(.noResizeMargin),
    .bootstrap-select {
        margin-top: 0.25rem !important; /* mt-1 equivalent */
    }
    
    /* FieldConfig Modal responsive adjustments */
    #FieldConfigModal .modal-dialog,
    #OptionConfigModal .modal-dialog {
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }
    
    #FieldConfigModal .modal-body,
    #OptionConfigModal .modal-body {
        padding: 1rem 0.75rem;
    }
    
    #FieldConfigModal .container-fluid {
        padding: 0;
    }
    
    #FieldConfigModal .row {
        margin-bottom: 1rem;
    }
    
    #FieldConfigModal .col-md-3 {
        margin-bottom: 0.5rem;
    }
    
    /* Stack form elements vertically on mobile */
    #FieldConfigModal .row .col-12.col-md-3,
    #FieldConfigModal .row .col-12.col-md-9 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Option table mobile adjustments */
    #OptionConfigModal .table-responsive {
        border: none;
        margin-bottom: 0;
    }
    
    #OptionTable {
        font-size: 0.9rem;
    }
    
    #OptionTable td {
        padding: 0.5rem 0.25rem;
        vertical-align: middle;
    }
    
    #OptionTable .inputText,
    #OptionTable .inputTextarea {
        font-size: 0.85rem;
        padding: 0.25rem;
    }
    
    #OptionTable .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

a.nav-link:hover,
a.nav-link:focus {
    color: #fff !important;
    background-color: #071C34 !important;
}

.nav-link.active,
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    background: #595959;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
    border-color: transparent;
}

.dropdown-menu {
    min-width: 0;
    padding: 0;
    margin: 0;
    text-align: left;
    border: none;
    border-top: 1px solid rgba(0,0,0,.15);
    font-size: 0.9rem;
    max-width: 600px;
}

.nav-item .dropdown-menu {
    background-color: transparent;
}

.form-inline {
    justify-content: center;
}

a {
    color: #333;
    outline: none;
    /*padding-left: 3px;
    padding-right: 3px;*/
    text-decoration: underline;
}

    a:link, a:visited,
    a:active, a:hover {
        color: #333;
    }
/*
table.dataTable tr td span a {
    display: none !important;
}*/

table.dataTable th {
    font-size: 1em;
}

table.dataTable td {
    font-size: 1em;
}


a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

#NavUserInfo {
    font-size: 0.8em;
    color: #fff !important;
    text-align: right !important;
    font-weight: bold;
    margin-left: 1em;
}

/* Sticky footer styles
-------------------------------------------------- */

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25em .75em rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1em;
    line-height: inherit;
}

footer {
    clear: both;
    background-color: #071C34;
    color: #fff;
    font-size: 0.8em;
    height: 50px;
    padding-top: 10px;
    margin-top: 1.5em;
}

/* custom */

.btn {
    border-radius: 4px !important;
}

.btn.disabled {
    color: #000 !important;
    background-color: #d6d6d6 !important;
    cursor: default !important;
}

.btn-primary {
    border: none;
    color: #000;
    background-color: #75db8f;
}

    .btn-primary:hover {
        color: #fff;
        background-color: #75db8f;
    }

.btn:focus {
    box-shadow: none;
}

.btn-green {
    border: none;
    color: #fff;
    background-color: #0a6e31;
}

    .btn-green:hover {
        color: #fff;
        background-color: #50be87;
    }

.btn-blue {
    border: 1px solid #007bff;
    color: #fff;
    background-color: #007bff;
}

    .btn-blue:hover {
        color: #fff;
        background-color: #0069d9;
    }

.btn-orange {
    border: none;
    color: #000;
    background-color: #ffb400;
}

    .btn-orange:hover {
        color: #000;
        background-color: #ffd400;
    }

.form-control:focus {
    border-color: #595959 !important;
    box-shadow: 0px 0px 0px 0.2em rgba(0,123,255,0.5) !important;
}

label.control-label {
    /*min-width: 80px;*/
    color: #fff;
    background-color: #515151;
    padding: 3px 10px;
    font-size: 1em;
    font-weight: normal;
    vertical-align: middle;
    margin-right: 5px;
    margin-bottom: 0;
}

input.enabled {
    background: #fff;
    pointer-events: auto;
}

input.disabled {
    background: #ddd;
    pointer-events: none;
}

.inputText:not(:disabled):not(:read-only):hover,
.inputText.datepicker:not(:disabled):hover,
.inputTextarea:not(:disabled):not(:read-only):hover,
.inputSelect:not(:disabled):hover {
    border: 1px solid #595959;
    box-shadow: 0px 0px 0px 0.2em rgba(0,123,255,0.5);
    margin: 0;
}

inputText:not(:disabled):not(:read-only):hover {
    margin: 1px;
}

.inputText.datepicker:not(:disabled):hover,
.inputTextarea:not(:disabled):hover,
.inputSelect:not(:disabled):hover {
    margin: 0;
}

.inputText {
    padding: 1px;
    box-sizing: border-box;
    text-align: center;
    height: 1.85em;
    line-height: 1.5em;
    vertical-align: middle;
}

.inputTextarea {
    line-height: 1.5em;
    min-height: 3em;
    box-sizing: border-box !important;
    padding: 0.1em 0.4em;
}

.inputSelect {
    border: 1px solid #595959 !important;
    height: 1.75em !important;
    display: inline-block;
    outline: none !important;
    vertical-align: middle;
}

.inputText:read-only,
.inputTextarea:read-only {
    background-color: #f0f0f0;
    border: 1px solid #777;
}

.inputText:read-only:focus,
.inputTextarea:read-only:focus {
    outline: none;
}

.inputText.datepicker:read-only {
    background-color: #fff;
    border: 1px solid #999;
    width: 150px !important;
}

.onTop {
    z-index: 1000 !important;
}

#pageLoader {
    width: 100%;
    margin: 1.5em 0;
    text-align: center;
    display: none;
}

/*.dataTable {
    table-layout: fixed;
    word-wrap: break-word;
}
*/
.fa-chevron-up:before {
    content: "\f077";
    font-family: 'Font Awesome\ 5 Free';
    font-weight: 900;
    color: #fff;
}

.scroller {
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}

#submitButton {
    margin: 0 1.2em;
}

.clearFilterArea {
    text-align: right;
    display: none;
}

#SearchFilterArea {
    display: block !important;
    border-radius: 7px !important;
    background: #f6f6f6 !important;
}

    #SearchFilterArea btn {
        margin-left: 5px;
    }

    #SearchFilterArea p:last-child,
    #SearchFilterArea p:last-child > label {
        margin-bottom: 0 !important;
    }



[class^="icon-"], [class*=" icon-"] {
    display: inline-block;
    width: 100%;
}

.dataTables_empty {
    /*border-bottom: 1px solid #000;*/
    border-bottom: none;
}

.dataTables_processing {
    z-index: 100;
}

:not([class*=col-]):not(.input-group-btn):not([class*=form-control]).bootstrap-select {
    width: calc(100% - 10px) !important;
}

.dropdown-item {
    font-family: Helvetica, Arial, Sans-Serif !important;
    color: #000;
    width: auto !important;
}


.dropdown-item .selected {
    color: #fff !important;
}

.bs-searchbox input {
    padding-left: 0;
    padding-right: 0;
}

.page-link {
    text-decoration: none;
}

.page-item.active .page-link {
    color: #fff;
    background-color: #071C34;
    border-color: #071C34;
}

.page-link:focus {
    box-shadow: 0px 0px 0px 0.2rem rgba(0,123,255,0.5) !important;
}

.dataTables_filter {
    height: 1.5em;
    margin-bottom: 1em;
}

    .dataTables_filter:hover {
        box-shadow: none !important;
    }

    .dataTables_filter input {
        line-height: 1.5em;
        height: 1.5em;
        border: 1px solid #000;
        text-align: center;
        margin-left: 0.5em !important;
    }

.dataTables_processing {
    color: #007bff !important;
}

.dataTables_wrapper .dataTables_paginate {
    font-size: 0.85rem;
    padding-top: 0.5rem;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        border: 1px solid transparent !important;
        background: #071C34;
        border-radius: 0.25rem;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        border: 1px solid transparent !important;
        background: #c6c6c6;
        border-radius: 0.25rem;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
            border: 1px solid transparent !important;
            background: #8f8f8f;
            color: #fff !important;
            border-radius: 0.25rem;
        }

.dataTables_wrapper .dataTables_info {
    font-size: 0.85rem;
    padding-top: 1.55rem;
}

.dataTable > tbody > tr:nth-child(even) {
    background-color: #f0f0f0;
}

.btn-primary.btn_toggled {
    color: #000 !important;
    background-color: #c6c6c6 !important;
}

    .btn-primary.btn_toggled:hover {
        color: #fff !important;
        background-color: #595959 !important;
    }

.btn-primary:disabled {
    color: #000 !important;
    background-color: #c6c6c6 !important;
}

    .btn-primary:disabled:hover {
        color: #000 !important;
        background-color: #c6c6c6 !important;
    }

.table tr th,
.table tr td {
    text-align: center;
    vertical-align: middle;
}

    .table tr td textarea {
        vertical-align: middle;
    }

.resultPositive {
    background: #b8ebd6;
}

.resultNegative,
.resultError {
    background: #ffe8f7;
}

.resultMissing {
    background: #f0f0f0
}

.resultNone {
    display: none;
}

select.form-control {
    height: 2em !important;
    padding: 0 0 0 2px !important;
    display: inline-block;
    outline: none !important;
    width: auto !important;
    border: 1px solid #595959;
}

.tooltip-inner {
    max-width: 400px;
}

input[type="text"].disabled {
    background: #f0f0f0 !important;
    border: 1px solid #8f8f8f !important;
    color: #000 !important;
}

.contractLineTable {
    width: 100%;
}

    .contractLineTable > tbody > tr {
        background-color: transparent !important;
    }

        .contractLineTable > tbody > tr > td {
            border: none;
            padding: 0;
        }

        .contractLineTable > tbody > tr:not(:first-child) {
            border-top: 1px solid #d6d6d6;
        }

.container {
    max-width: 1190px !important;
}

.colorLinks a {
    color: #007bff;
    text-decoration: underline;
}

.loader {
    height: 1em;
}

.inputError {
    border: 2px solid #f00 !important;
    box-shadow: none !important;
}

.btn-medium {
    min-width: 60px;
    padding: .33em 1.2em;
}

.btn-gray {
    color: #000;
    background: #d6d6d6;
    border-color: #d6d6d6;
}

#ContractConfigModal .modal-dialog,
#ContractorConfigModal .modal-dialog
{
    max-width: 760px;
}

#AuditInfoModal .modal-dialog {
    max-width: 1200px;
}

.formModal .modal-content {
    width: auto;
}

.formModalTable tbody tr td:first-child {
    font-weight: bold;
    width: auto !important;
}

    .formModalTable tbody tr td:first-child label {
        width: 96%;
        margin-right: 10px;
    }

.formModalTable .inputText,
.formModalTable .inputSelect {
    width: 450px;
}

.formModalTable .inputTextarea {
    width: 100%;
}

.formModalTable .int_field2,
.formModalTable .decimal_field {
    width: 200px;
}

.formModalTable tbody tr td {
    padding: .25em .1em;
    vertical-align: top;
}


.formModal .modal-header {
    padding: 0.5em 1em;
}

.formModal .modal-footer {
    padding: 0.75em 1em;
}

.formModalTable .form-control-file {
    padding-top: 0.2em;
}

.simpleModalTable {
    margin-bottom: 0;
    margin-top: -1rem;
}

    .simpleModalTable tbody tr td {
        vertical-align: top;
    }

.form-control-file {
    height: 2em;
}

.summaryCard,
.configCard {
    margin: 1.5em 0;
    display: block !important;
    border-radius: 7px !important;
    background: #f6f6f6 !important;
}

    .offerCard .card-title,
    .summaryCard .card-title,
    .configCard .card-title {
        text-decoration: underline;
        font-weight: bold;
        font-size: 1.25em;
    }

        .offerCard .card-title:not(:first-child) {
            margin-top: 0.5em;
        }

        .summaryCard .card-title:not(:first-child) {
            margin-top: 0.75em;
        }


    .offerCard .card-body,
    .summaryCard .card-body,
    .configCard .card-body {
        padding: 0.75em 1.25em 1.25em 1.25em;
    }

.configSubcard {
    margin-top: 1em;
}

    .configSubcard .card-body {
        padding: 0.5em 1.25em 1em 1.25em;
    }

    .configSubcard .card-title {
        text-decoration: none;
        margin-bottom: 0.25em;
    }

.summarySubcard .card-title {
    text-decoration: none;
    margin: 0.75em 0;
}

.summarySubcard .card-body {
    padding: 0 1.25em;
}

.card-header {
    background-color: #071C34;
    color: #fff;
}

    .card-header h4,
    .card-header h5 {
        margin-bottom: 0;
    }

.emptySummary.card-body {
    padding: 1.25em;
}

.emptySummary h4 {
    margin: 0;
}

.summaryTable label {
    margin: 0;
}

.summaryTable {
    border-collapse: collapse !important;
    margin-bottom: 0;
    font-size: 0.9em;
}

    .summaryTable.table-bordered tr td,
    .summaryTable.table-bordered tr th {
        border: 1px solid #071C34;
    }

    .summaryTable tbody tr td,
    .summaryTable tfoot tr td {
        width: 25%;
        padding-top: 3px;
        padding-bottom: 3px;
        border-left: none;
        border-right: none;
        border-top: 1px solid #071C34;
        border-bottom: none;
        word-break: break-word;
    }

    .summaryTable tbody tr:last-child td {
        border-bottom: 1px solid #071C34;
    }

    .summaryTable tbody tr td:first-child,
    .summaryTable tbody tr td:nth-child(3) {
        padding-left: 1em;
        text-align: left;
        color: #fff;
        background: #071C34;
    }

    .summaryTable tbody tr td:nth-child(2),
    .summaryTable tbody tr td:nth-child(4) {
        text-align: center;
        background: #fff;
    }

.tableBorderBottom tfoot tr {
    border-bottom: 1px solid #dee2e6;
}

.summaryTable tfoot tr td:not(:first-child) {
    font-weight: bold;
}

.tableBorderTopNone thead tr th {
    border-top: none;
}

.badge {
    font-size: 1em !important;
    font-weight: normal !important;
}

.badge-dark {
    color: #fff !important;
    background-color: #595959 !important;
}

.link-orange {
    color: #071C34 !important;
}

.paramsTable tbody tr td:first-child {
    padding-left: 2em;
    font-weight: bold !important;
    text-align: left;
    width: 25%;
}

.paramsTable tbody tr td:nth-child(2) {
    text-align: center;
}

.paramsTable label {
    margin: 0;
}

.info-error {
    background-color: #ffe8f7;
    color: #000;
}

.info-ok {
    background-color: #b8ebd6;
    color: #000;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-right: 30px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .checkbox-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 30px;
        width: 30px;
        z-index: 1;
    }

.checkmark {
    position: absolute;
    top: 0;
    right: 0;
    height: 30px;
    width: 30px;
    background-color: #eee;
    z-index: 0;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #071C34;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 10px;
    top: 5px;
    width: 7px;
    height: 13px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.card-header-narrow {
    padding: .5rem 1.25rem !important;
}

.form-control {
    height: 2.5rem !important;
}

    .form-control:disabled, .form-control[readonly] {
        background-color: #e0e0e0;
    }

.nav-tabs {
    border-bottom: none;
}

    .nav-tabs .nav-link {
        border-radius: 7px;
        margin: 3px 0;
    }

.nav-link i,
.navbar-brand i {
    margin-right: 7px;
}

.dataTables_paginate {
    margin-top: 10px;
}

.bootbox-small .modal-dialog {
    max-width: 420px;
}

.custom-control-label::before {
    top: 0.23rem;
}

.custom-switch .custom-control-label {
    cursor: pointer;
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: #000;
    border-color: #75db8f; /* Zmiana na pomarańczowy ZDI */
    background-color: #75db8f; /* Zmiana na pomarańczowy ZDI */
}

.custom-switch .custom-control-input:disabled:checked ~ .custom-control-label::before {
    background-color: rgba(253, 164, 11, 0.5); /* Zmiana na pomarańczowy ZDI z przezroczystością */
}

td.details-control {
    font-size: 1.5em !important;
    color: #007bff;
}

tr.shown td.details-control {
    color: #595959;
}

div.slider {
    display: none;
}

.cursor-pointer {
    cursor: pointer;
}

.fa-medium {
    font-size: 1.2em;
}

.filterRow:focus {
    outline: none;
}

.detailsRow > td {
    padding: 0 0 0.5rem 0 !important;
}

.clearButton {
    color: #515151;
}

#FormGroupAccordion > .card > .card-header {
    color: #fff;
    background-color: #071C34;
    transition: background-color ease 0.4s;
}

    #FormGroupAccordion > .card > .card-header:hover {
        background-color: #007bff;
    }

#FormGroupAccordion > .card > div > .card-body {
    padding: 0;
}

#nav-all-results .borderedTable {
    border-left: 1px solid rgba(0,0,0,.125);
}

.borderedTable > thead > tr > th {
    border: 1px solid #777 !important;
}

.borderedTable > tbody > tr:not(.rowHidden) > td {
    border: 1px solid #777;
}

.noStripesTable > tbody > tr {
    background-color: #f0f0f0 !important;
}

.bootstrap-select.multiSelect {
    max-width: 350px;
}

.bootstrap-select.bootSelect200 {
    max-width: 200px;
}

.bootstrap-select.bootSelect300 {
    max-width: 300px;
}

.bootstrap-select.bootSelect350 {
    max-width: 350px;
}

.bootstrap-select {
    border: 1px solid #595959;
    border-radius: 4px;
    height: auto !important;
}

/* Style dla selectpicker dropdown */
.bootstrap-select .dropdown-menu {
    border: 1px solid #000 !important; /* Czarny border 1px dla dropdown */
}

/* Dodatkowe style dla lepszego wyglądu dropdown */
.bootstrap-select .dropdown-menu .dropdown-item {
    border-bottom: 1px solid #eee;
}

.bootstrap-select .dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.bootstrap-select .dropdown-menu .dropdown-item:hover,
.bootstrap-select .dropdown-menu .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #000;
}

.bootstrap-select .dropdown-menu .dropdown-item.active,
.bootstrap-select .dropdown-menu .dropdown-item.selected {
    background-color: #007bff;
    color: #fff;
}

.bootstrap-select .filter-option {
    white-space: normal;
}

.preloader {
    align-items: center;
    background-color: transparent;
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    transition: opacity 0.3s linear;
    width: 100%;
}

.resultListRow {
    background-color: rgba(0,123,255,0.2) !important;
    font-size: 0.9em;
}

    .resultListRow > td {
        padding-bottom: 0;
    }

    .resultListRow .dataTables_wrapper .dataTables_info {
        padding-top: 0.5em;
    }

    .resultListRow .dataTables_wrapper .dataTables_paginate {
        padding-top: 0;
        padding-bottom: 0.3rem;
        margin-top: 5px;
    }

.resultTable {
    border-bottom: 1px solid #777;
}

    .resultTable > thead > tr > th {
        border-bottom: 1px solid #777;
    }

.rowHidden {
    display: none;
}

.btn-small {
    font-size: 1em;
    padding: 0.3em 0.8em;
}

.color-orange {
    color: #75db8f !important;
}

.back-green {
    background-color: #bcf5bc !important;
}

.custom-file {
    width: 40%;
    height: auto;
}

.custom-file-input {
    height: 1.875em;
}

.custom-file-label {
    line-height: 1.75em;
    height: 1.875em;
    border-radius: 0;
    padding: 0 .625em;
    margin-bottom: 0;
    overflow: hidden;
}

.custom-file-input:focus ~ .custom-file-label {
    border-color: #595959 !important;
    box-shadow: 0px 0px 0px 0.2em rgba(0,123,255,0.5) !important;
}

.custom-file-input:lang(pl) ~ .custom-file-label::after {
    content: "Przeglądaj";
    line-height: 1.75em;
    height: 1.875em;
    border-radius: 0;
    padding: 0 .625em;
}

nav[data-toggle="toc"] {
    top: 20px;
}

    nav[data-toggle="toc"] .nav > li > a:focus, nav[data-toggle="toc"] .nav > li > a:hover {
        border-left: none;
        padding-left: 20px;
    }

    @media (max-width: 768px) {
        nav [data-toggle="toc"] {
        margin-bottom: 20px;
        position: static;
    }


        nav[data-toggle="toc"] .nav .active .nav {
            display: none;
        }
}

nav[data-toggle="toc"] .nav-link.active,
nav[data-toggle="toc"] .nav-link.active:focus,
nav[data-toggle="toc"] .nav-link.active:hover {
    border-left: none;
    background-color: #007bff;
}

.form-extra-padding {
    padding: 5px 20px;
}

.longInput {
    width: 750px !important;
}

.noMinWidth {
    min-width: 0 !important;
}

#FunctionTable .functionField {
    max-width: 330px;
}

.employeeTable tr th {
    font-size: 0.9em;
}

.table-border-strong tr th,
.table-border-strong tr td {
    border: .1px solid #071C34;
}

.modal-open {
    overflow: scroll;
}

.bootbox-input-textarea.form-control {
    height: 6em;
    min-height: 6em;
}

/* Drag & Drop dla pól formularza */
.sortable-fields {
    min-height: 200px;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sortable-placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    margin: 5px 0;
    height: 60px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sortable-placeholder::after {
    content: "Upuść tutaj";
    color: #6c757d;
    font-style: italic;
}

.drag-over {
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 5px;
}

.field-item {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    background: white;
    position: relative;
}

.field-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.field-item.ui-sortable-helper {
    transform: rotate(5deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: #007bff;
}

.drag-handle {
    cursor: move;
    transition: color 0.2s ease;
}

.drag-handle:hover {
    color: #007bff !important;
}

.empty-state {
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    margin: 10px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.empty-state:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

/* Badge styles dla typów pól */
.badge-sm {
    font-size: 0.65em;
}

/* Animacje */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-item.new-field {
    animation: slideIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .sortable-fields {
        min-height: 150px;
    }
    
    .field-item .card-body {
        padding: 0.75rem !important;
    }
}

/* Cookie Info Banner (tylko informacja, bez wymogu zgody) */
.cookie-info {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    margin: 0;
    border-radius: 0;
    padding: 1rem;
    background-color: #d1ecf1;
    border-top: 2px solid #0c5460;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
}

.cookie-info-text {
    flex: 1;
    margin-right: 1rem;
    font-size: 0.95rem;
}

.cookie-info-text i {
    margin-right: 0.5rem;
}

.btn-close-custom {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #0c5460;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.btn-close-custom:hover {
    color: #094652;
}

@media (max-width: 767.98px) {
    .cookie-info .container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-info-text {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
}
}

/* Status badges */
.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-secondary {
    background-color: #6c757d;
}

/* Field counts */
.badge-light {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

#FieldListTable thead tr th {
    font-size: 0.9em;
}

/* Style tabeli pół w stylu ZDI */
.table-fields {
    border-collapse: separate;
    border-spacing: 0;
}

.field-label {
    width: 35%;
    background-color: #515151; /* Szary kolor ZDI */
    color: white;
    padding: 12px 15px;
    vertical-align: middle;
    font-weight: 600;
    text-align: left; /* Wyrównanie do lewej */
    border-top: 2px solid #e5e7eb; /* Jasny border między nagłówkami */
    border-right: 3px solid #374151; /* Ciemny border między kolumnami */
}

.field-label:first-child {
    border-top: none; /* Pierwszy nagłówek bez górnego bordera */
}

.field-value {
    width: 65%;
    padding: 12px 15px;
    vertical-align: middle;
    background-color: white;
    border-top: 3px solid #374151; /* Ciemny border między wartościami */
}

.field-value:first-child {
    border-top: none; /* Pierwsza wartość bez górnego bordera */
}

/* Wyróżnienie gwiazdek wymaganych pól */
.field-label .text-warning {
    color: #fbbf24 !important; /* Żółty kolor gwiazdki */
    font-weight: bold;
    margin-left: 4px;
}

/* Style dla scrollerów w kolorze ZDI (pomarańczowy) */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #75db8f; /* Pomarańczowy ZDI */
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8c00; /* Ciemniejszy pomarańczowy przy hover */
}

::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* Style specjalne dla tabel ze zleceniami */
.table-responsive::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 7px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #75db8f; /* Pomarańczowy ZDI */
    border-radius: 7px;
    border: 2px solid #e9ecef;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #ff8c00; /* Ciemniejszy pomarańczowy przy hover */
}

.table-scroll-top::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.table-scroll-top::-webkit-scrollbar-track {
    background: #dee2e6;
    border-radius: 6px;
}

.table-scroll-top::-webkit-scrollbar-thumb {
    background: #75db8f; /* Pomarańczowy ZDI */
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.table-scroll-top::-webkit-scrollbar-thumb:hover {
    background: #ff8c00; /* Ciemniejszy pomarańczowy przy hover */
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #75db8f #f1f1f1; /* thumb track */
}

.table-responsive {
    scrollbar-width: auto;
    scrollbar-color: #75db8f #e9ecef; /* Pomarańczowy thumb, jasny track */
}

.table-scroll-top {
    scrollbar-width: auto;
    scrollbar-color: #75db8f #dee2e6; /* Pomarańczowy thumb, szary track */
}

/* Project field items styling - prevent overflow */
.field-item {
    width: 100%;
    box-sizing: border-box;
}

.field-item .card-body {
    padding: 0.5rem;
    overflow: hidden;
}

.field-item h6 {
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.3;
}

.field-item small {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: inline-block;
}

.field-item .d-flex {
    flex-wrap: wrap;
    gap: 0.25rem;
}

.field-item .d-flex > div:first-child {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink below content size */
    overflow: hidden;
}

.field-item .field-actions {
    flex-shrink: 0;
    margin-left: auto;
}

/* Badge styling in field items - allow full text display */
.field-item .badge {
    white-space: nowrap;
    font-size: 0.7em;
    display: inline-block;
    /* Remove max-width and text-overflow constraints to show full text */
}

/* Drag handle positioning */
.field-item .drag-handle {
    flex-shrink: 0;
    margin-right: 0.5rem;
    align-self: flex-start;
    margin-top: 0.1rem;
}

/* Text content container */
.field-item .field-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.min-width-100 {
    min-width: 100px;
}

.max-width-80 {
    min-width: 80px;
    max-width: 80px;
    word-break: break-word;
}

.max-width-120 {
    min-width: 120px;
    max-width: 120px;
    word-break: break-word;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.dtr-title:empty {
    display: none !important;
    min-width: 0 !important;
    width: 0;
    padding: 0;
    margin: 0;
}
    .dtr-title:empty + .dtr-data {
        padding-left: 0;
    }

.dtr-details li {
    width: 100%;
}

.dtr-details li:not(:last-child) {
    border-bottom: 1px solid #8f8f8f !important;
}

.badge-lg {
    font-size: 0.9em;
    padding: 0.5em 0.75em;
    white-space: nowrap;
}

.badge-status-new {
    background-color: #6c757d;
    color: white;
}

.badge-status-inprogress {
    background-color: #007bff;
    color: white;
}

.badge-status-documentationprepared {
    background-color: #17a2b8;
    color: white;
}

.badge-status-senttocontroller {
    background-color: #ffc107;
    color: #000;
}

.badge-status-controllerapproved {
    background-color: #28a745;
    color: white;
}

.badge-status-controllercorrections {
    background-color: #fd7e14;
    color: white;
}

.badge-status-controllerrejected {
    background-color: #dc3545;
    color: white;
}

.badge-status-cancelled {
    background-color: #d6d6d6;
    color: black;
}

.badge-status-completedwithdocuments {
    background-color: #28a745;
    color: white;
}

.badge-status-completedwithoutdocuments {
    background-color: #50be87;
    color: white;
}

.badge-status-measurementnotpossible {
    background-color: #dc3545;
    color: white;
}

.btn-outline-success {
    text-decoration: none !important;
}

/* Ensure show-in-list checkbox is fully visible even when sortable-fields is disabled */
.sortable-fields.disabled .field-item .custom-checkbox,
.sortable-fields.disabled .field-item .custom-checkbox .custom-control-label,
.sortable-fields.disabled .field-item .custom-checkbox .custom-control-input {
    opacity: 1 !important;
}

.sortable-fields.disabled .field-item {
    opacity: 1 !important;
}