:root {
    --top-button-background: grey;
    --text-color-active: rgba(63, 86, 202, 0.892);
    --top-button-background: rgb(213, 209, 209);
    --top-button-color: black;
    --top-button-hover-background: grey;
    --top-button-hover-color: white;
    --top-button-active-color: rgba(63, 86, 202, 0.892);

    --status-active-color: #198754;
    --status-active-background: #d1e7dd;

    --status-checking-color: #ee6c08;
    --status-checking-background: #eaf1c4;

    --status-nonactive-color: #474545;
    --status-nonactive-background: #bdb9b9;

    --status-active-fault-color: #dc3545;
    --status-active-fault-background: #f8d7da;

    --status-active-no-power-color: #ff4907;
    --status-active-no-power-background: #fff3cd;

    --status-active-migration-color: #0d6efd;
    --status-active-migration-background: #cfe2ff;

    --status-new-color: rgba(63, 86, 202, 0.892);
    --status-new-background: #b3c6e0;

    --status-modification-color: #8610bc;
    --status-modification-background: rgb(211, 164, 229);
}

.one-line-buttons{
    display: flex; 
    gap: 1rem; 
    justify-content: space-between;
}

.columns-list-button {
    background-color: white;
    color: var(--main-button-background);
    border: 1px solid var(--main-button-background);
    border-radius: 5px;
    padding: 5px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

.columns-list-button:hover {
    background-color: var(--main-button-background);
    color: white;
}

.help-button:hover {
    background-color: var(--help-button-hover-background) !important;
}

.one-line-data{
    white-space: nowrap;
}

.dataTables_wrapper .dataTables_paginate {
    text-align: center !important;
    float: none !important;
    justify-content: center !important;
    display: flex !important;
}

.col-start input[type="date"], .col-status select, 
.col-operator select, .col-buildingtype select, 
.col-tv select, .col-activatedby select {
    min-height: 24px !important;
}

#export-columns-list {
    display: block;
    font-size: 0.85em;
    padding: 0;
    margin: 0;
}
#export-columns-list li {
    list-style: none;
    margin-bottom: 2px;
    font-size: 0.85em;
}

.export-columns-modal-buttons {
    text-align: right;
    margin-top: 16px;
}


/* Statusy usług */

.status-nonactive, .status-checking, .status-active,
.status-active-fault, .status-active-no-power, .status-active-migration, .status-new {
    font-weight: bold; 
    padding-left: 3px;
    padding-right: 3px;
}

.status-active {
    color: var(--status-active-color); 
    background-color: var(--status-active-background);
}

.status-checking {
    color: var(--status-checking-color);
    background-color: var(--status-checking-background);
}

.status-nonactive {
    color: var(--status-nonactive-color);
    background-color: var(--status-nonactive-background);
}

.status-active-fault {
    color: var(--status-active-fault-color);
    background-color: var(--status-active-fault-background);
}

.status-active-no-power {
    color: var(--status-active-no-power-color);
    background-color: var(--status-active-no-power-background);
}

.status-active-migration {
    color: var(--status-active-migration-color);
    background-color: var(--status-active-migration-background);
}

.status-new {
    color: var(--status-new-color);
    background-color: var(--status-new-background);
}

.modification {
    color: var(--status-modification-color);
    background-color: var(--status-modification-background);
}


/* Top extra buttons */

.nav-tabs .nav-link {
    background: var(--top-button-background);
    color: var(--top-button-color) !important;
    margin: 0 0.2rem;
}

.nav-tabs .nav-link:hover {
    background: var(--top-button-hover-background);
    color: var(--top-button-hover-color);
}

.nav-tabs .nav-link.active {
    color: var(--top-button-active-color) !important;
}


/* OpenStreetMap */

.popup-tooltip {
    border-radius: 6px;
    padding: 6px 10px;
}

.popup-green {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;

}
.popup-red {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.popup-orange {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #fbc421;
}

.popup-gray {
    background: #e2e3e5;
    color: #383d41;
    border: 2px solid #717274;
}


.popup-blue {
    background: #cfe2ff;
    color: #084298;
    border: 2px solid #1e90ff;
}


a.edit-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
a.edit-link:hover {
    color: var(--text-color-active);
}


a.service-detail-link{
    color: inherit;
}

a.service-detail-link:hover {
    color: var(--text-color-active);
}

/* Przycisk menadżera plików */

button.icon-button {
    background: none;
    border: none;
    margin-left: 8px;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    line-height: 1.8; 
}

button.icon-button svg {
    vertical-align: middle;
    position: relative;
}

.icon-wrapper {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: 1px;
}

.form-control:disabled {
    background-color: #f8f9fa !important;

}