/*
    sporą część stylów trzeba przenieść do plików .scss w /core
    tutaj tylko:
        1. definicje kolorów
        2. style do własnych modułów
        3. ???

    zacząłem
*/

/* -------------------------------------------------------------------------------------- notices */
.notice {
    background-color: #dfdfdf;
}

h3 + form {
    margin-top: 2rem;
}

/* ---------------------------------------------------------------------------------------- forms */

/* -------------------------------------------------------------------------------------- buttons */
.ui.button.focus {
    background-color: cornflowerblue;
    color: #fff;
}
.ui.button.send-email-super:hover {
    background-color: orangered;
}

/* ------------------------------------------------------------------------------- 'weekly hours' */
/* p.input - inna nazwa klasy */
.input {
    margin-bottom: 30px;
}
.input span {
    background-color: #00a000;
    border-radius: 4px;
    color: #fff !important;
    cursor: pointer;
    display: inline-block;
    font-size: .8rem !important;
    margin-right: 4px;
    margin-top: 6px;
    padding: 0 20px;
    text-align: center;
}
.input span.inactive {
    background-color: #666;
}

.range label {
    background-color: #444;
    color: #fff !important;
    display: block;
    float: left;
    font-size: .8rem !important;
    margin-right: 4px;
    margin-top: 8px;
    padding: 5px 0;
    text-align: center;
    width: 50px;
}
.range input[type=text] {
    text-align: center;
    width: 80px;
}
.range input[type="checkbox"] {
    opacity: 1;
}
.range button {
    font-size: .8rem;
}
/* nie działa
.ui.button:disabled {
    cursor: not-allowed;
}
*/
.copy-source {
    background-color: #2aa707;
}
.copy-target {
    background-color: #88ff73;
    position: relative;
}

/* podpowiedź na dole */
.hint-input {
    font-size: .9rem;
}
.hint-input .fas {
    color: #329cff;
}
.hint-input-raw {
    font-family: monospace;
}
.hint-input-result {
    border: 1px solid #999;
    padding: 2px 6px;
    border-radius: 3px;
}

#age_min, #age_max {
    text-align: center;
    width: 80px;
}

/* ---------------------------------------------------- placówki & notatki administracyjne o nich */
#notes-table {
    margin-top: 16px;
}
#notes-table {
    color: #333;
    font-size: .9rem;
    line-height: 150%;
}
.notes, .branches { /* table */
    background-color: #efefef;
    margin-bottom: 20px;
    width: 100%;
}
    .branches i, .notes i {
        color: #999;
    }
    .branches .fa-ban:hover, .note-delete i:hover {
        color: #f33;
    }

/* ---- */
    .note-date,
    .note-action,
    .note-type,
    .note-delete,
    .note-fid {
         text-align: center !important;
    }

    .note-date,
    .note-fid {
        font-size: .75rem;
    }
    .note-date {
        width: 80px;
    }

    /* tr, data akcji */
    .note-today td {
        background-color: #e3f7fc;
        color: #008cc4 !important;
    }
    .note-past td {
        background-color: #f2dede;
        color: #c00 !important;
    }

    .branch-active,
    .branch-delete,
    .branch-rpwdl,
    .branch-www,
    .note-fid,
    .note-delete {
        width: 36px;
    }

    .branch-active i,
    .add-note p i {
        cursor: help;
    }

    /* icons */
    .note-author,
    .note-added {
        color: #bbb;
        cursor: help;
    }
    .note-author:hover,
    .note-added:hover {
        color: #999;
    }

    .note-note {
        font-size: .9rem;
        text-align: left;
    }

    .note-facility {
        font-size: .8rem;
        text-align: left;
        width: 250px;
    }

.add-note {
    background-color: #e8e8e8;
    border: 2px solid silver;
    padding: 15px 20px 0;
}

    .fac-has-admin td:first-child {
        border-left: 2px solid #390;
    }

/* ---- /facilities: action, facility, note, delete */
/* ---- /notes : action, facility, note, delete */

    .note-action {
        font-size: .8rem !important;
        width: 80px;
    }

/* ---------------------------------------------------------------------------------- /facilities */
.fac-header {
    display: flex;
    background-color: #fff;
    margin-bottom: 1rem;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
    .fac-header .link-return {
        display: flex;
        align-items: center;
        padding: 0 10px;
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
    }
    .fac-header h2 {
        margin: 0;
        box-shadow: none;
        border: none;
        flex-grow: 1;
    }
        .fac-header h2 .fa-book-medical {
            color: #555;
        }
    .fac-header .ui.button {
        flex: 0 0 225px;
        height: fit-content;
        margin: auto .5rem;
    }

.fac-wrap-up {
    display: flex;
    justify-content: space-between;
}

.fa-stack.small_i { font-size: 1.5rem; color: silver;  cursor: help; }
.brak-danych { font-size: 2.75rem; color: silver; margin-right: .8rem; }
/*i { vertical-align: middle; }*/
.fa-stack.small_i.hrb_active { color: green; }

.logo {
    box-shadow: 0 0 4px 6px #eee;
    float: right;
    margin: 20px;
    outline: 1px solid silver;
    z-index: 10000;
}
/*
.data -- dane nt. placówki (adres, kontakt itp.)
.meta -- dane nt. zbierania danych (logowania itp.)
*/
.data, .meta {
    background-color: #f9f9f9;
    margin: 2rem 0 3rem;
    outline: 1px dotted silver;
    padding: 15px 10px 5px;
}
.meta {
    clear: both;
}
.data p, .meta p {
    margin-bottom: 10px;
}
.meta p span:first-child {
    cursor: help;
}
.data span,
.meta span {
    display: inline-block;
    padding: 2px 10px;
}
.meta p {
    padding-left: 240px;
}
.meta span:first-child {
    margin-left: -240px;
}

.data span:first-child,
.meta span:first-child {
    background-color: #c7f8ee;
    color: #11846d;
    box-shadow: 1px 1px 1px #ddd;
    margin-right: 8px;
    text-align: right;
    width: 230px;
}
.meta .data-none {
    color: #f00;
    background-color: #fdd1d1;
    font-style: italic;
}
.meta .data-old {
    color: #fff;
    background-color: #f77;
}
.meta .data-stale {
    color: #fff;
    background-color: #7d5;
}
.meta .data-fresh {
    color: #fff;
    background-color: #060;
}
.data .button, h3 .ui.button, .meta .button {
    color: #999;
    font-size: .8rem;
    margin-left: 10px;
    padding: 8px 15px;
    text-decoration: none;
}
.data a {
    color: #88d;
}
.data-ok { /* /search */
    background-color: #7d5;
    font-size: .75rem;
    padding: 2px 5px;
}

/* potencjalnie za długi link w .data */
.link-shortened {
    display: inline-block;
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

._facilities h3 {
    margin: 4rem 0 1rem;
}

.note-old td {
    background-color: #f6f6f6;
    color: #777;
}
#delete-facility {
    max-width: 100%;
}

.source {
    background-color: #ccc;
    color: #fff;
    padding: 0 10px;
    border-radius: 5px;
}

/* informacje na górze */
.facility-info {
    margin-bottom: 10px;
    padding: 5px 20px;
}
.facility-info i {
    margin-right: 6px;
}
.facility-inactive {
    background-color: #fdd1d1;
    color: #f00;
}
.facility-inactive-reason {
    background-color: #ddd;
    color: #333;
}
.facility-test {
    background-color: yellow;
}

.facility-others {
    background-color: #ccd9ff;
    color: #03c;
}

.email-problem, .email-problem a {
    background-color: #f00 !important;
    color: #fff !important;
    font-weight: 400 !important;
}

.kampania {
    background-color: navajowhite;
    border-radius: 3px;
    margin-right: .5rem;
    padding: 4px 12px;
}

/* make some checkboxsets go vertical for better legibility */
#edit-rekomendowane #wrap-recommended label {
    display: list-item;
}

#rpwdl_wpis, #rpwdl_id, #rpwdl_url {
    text-align: center;
    width: 150px;
}

/* -------------------------------------------------------------------------------------- filters */
.filters-active {
    background-color: #e9ffd9;
    color: #008000;
}

/* przycisk filtra na górze */
.current {
    background-color: #1abc9c !important;
    cursor: disabled;
}

/* szybkie przejścia: następna placówka, następna sekcja (w edycji placówki) */
#next-facility {
    display: block;
    padding: 50px 10px 50px 20px;
    position: absolute;
    right: 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    top: calc(50% - 50px);
}
#next-facility {
    background-color: #6495ed;
}
#next-facility i {
    color: #fff;
}

.delete-facility:hover {
    color: #fff !important;
    background-color: #f00 !important;
}

/* --------------------------------------------------------------------------------------/mailing */
.email-template {
    border: 2px solid #1abc9c;
    background-color: #f9f9f9;
    font-family: monospace;
    padding: 50px;
    white-space: pre;
}
.email-template h3 {
    margin: 0;
}
.email-template + p {
    margin-top: 16px;
}

/* --------------------------------------------------------------------------------- /legislation */
#legislation-delete {
    margin-top: 2rem;
    text-align: center;
}
/* ----------------------------------------------------------------------------------- /helplines */
#table-helplines td {
    font-size: .9rem;
}
/* ----------------------------------------------------------------------------------- /inquirers */
#inquirer-fac-count {
    cursor: help;
}
.counter {
    background-color: #1abc9c;
    border-radius: 16px;
    color: #fff;
    display: inline-block;
    font-size: .875rem;
    font-weight: 400;
    min-width: 30px;
    padding: 4px 5px;
    text-align: center;
}
#table-inquireres .blank { /* "zaślepka" */
    text-align: center;
    width: 60px;
}

/* ------------------------------------------------------------ oznaczenia stanu gotowości danych */
table.dataTable td {
    border-left: 10px solid transparent !important;
}

/*
.fac-focus,
.fac-focus > td:first-child {
    font-weight: 900;
}
*/

table.dataTable tbody tr.fac-current td,
.fac-current,
table.dataTable tbody tr.fac-full td,
.fac-full {
    background-color: lightgreen;
    background-color: #008000;
    color: #fff;
}
.fac-current td a,
.fac-current a,
.fac-current a:visited,
table.show-no-visited-links .fac-current a:visited,
.fac-full td a,
.fac-full a,
.fac-full a:visited,
table.show-no-visited-links .fac-full a:visited {
    color: #fff;
}

table.dataTable tbody tr.fac-contact td,
.fac-contact {
    color: #fff;
    background: repeating-linear-gradient(45deg,#008000,#008000 10px,#1daa1d  10px,#1daa1d 20px)
}
.fac-contact td a,
.fac-contact a,
.fac-contact a:visited,
table.show-no-visited-links .fac-contact a:visited {
    color: #fff;
}

.fac-logged,
.fac-logged td,
.fac-logged.odd td,
.fac-logged.even td {
    background-color: #daf9da;
    color: #008000;
}

table.dataTable tbody tr.fac-fresh-email td,
.fac-fresh-email {
    background-color: lightblue;
    color: blue;
}

table.dataTable tbody tr.fac-stale-email td,
.fac-stale-email {
    /*background: repeating-linear-gradient(45deg,#ccc6,#ccc6 10px,#8886 10px,#8886 20px);*/
    background-color: #c66;
}

.fac-no-mail-sent, .fac-no-mail-sent td {
    background-color: red !important;
    color: #fff;
}
.fac-no-mail-sent a,
.fac-no-mail-sent a:visited,
table.show-no-visited-links .fac-no-mail-sent a:visited {
    color: #fff;
}

.fac-negative, .fac-negative td {
    background-color: #c9c9c9 !important;
    color: #606060;
}

.legend {
    background-color: #fff;
    border: 1px solid silver;
    float: right;
    margin-bottom: 1rem;
    width: 400px;
}
.legend p {
    padding: .5rem 1rem;
    border-top: 1px dotted silver;
}

/* status -- ikona w <h2> */
/*
status-neutral
status-focus
status-current-full
status-current-brief
status-waiting
status-needs-action
status-inactive
*/
.status {
    cursor: help;
}
.status.status-neutral {
    color: #777;
}
.status.status-inactive {
    color: #bbb;
}
.status.status-current-full,
.status.status-current-brief {
    color: #060;
}
.status.status-waiting {
    color: #3f36;
}
.status.status-needs-action {
    color: red;
}

/*
"table.dataTable tbody tr" used in jquery.datatables.min.css
*/

.status-focus,
.status-focus td:first-child {
    border-left: 10px solid orangered !important;
}

table.dataTable tbody tr.status-current-full td,
.legend .status-current-full {
    background-color: #e9ffd9;
}
table.dataTable tbody tr.status-current-full td:first-child,
.legend .status-current-full {
    border-left: 6px solid #060 !important;
}

table.dataTable tbody tr.status-current-full,
table.dataTable tbody tr.status-current-full a,
.status-current-full {
    color: #060;
}


table.dataTable tbody tr.status-current-brief td,
.legend .status-current-brief {
    background-color: #e9ffd9;
}
table.dataTable tbody tr.status-current-brief,
table.dataTable tbody tr.status-current-brief a,
.status-current-brief {
    color: #060;
}


table.dataTable tbody tr.status-negative td,
.legend .status-negative {
    background-color: #eee;
}
table.dataTable tbody tr.status-negative,
table.dataTable tbody tr.status-negative a,
.status-negative {
    color: #f33;
}


table.dataTable tbody tr.status-inactive td,
.legend .status-inactive {
    background-color: #eee;
}
table.dataTable tbody tr.status-inactive,
table.dataTable tbody tr.status-inactive a,
.status-inactive {
    color: #888;
}

/*

table.dataTable tbody tr.status-waiting td,
.status-waiting {
    background-color: #8f8;
}
table.dataTable tbody tr.status-waiting,
table.dataTable tbody tr.status-waiting a,
.status-waiting {
    color: #006600;
}

table.dataTable tbody tr.status-needs-action td,
.status-needs-action {
    background-color: red;
}
table.dataTable tbody tr.status-needs-action,
table.dataTable tbody tr.status-needs-action a,
.status-needs-action {
    color: #fff;
}
*/

.select2-container {
    width: calc(100% - 2rem) !important; // czemuś potrzebne
}