/* Основной файл стилей */


@font-face {
    font-display: block;
    font-family: "Scada";
    src: url('../fonts/Scada-Regular.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-display: block;
    font-family: "Scada";
    src: url('../fonts/Scada-Bold.ttf') format("truetype");
    font-weight: bold;
    font-style: normal;
}



* {
    font-family: "Scada", arial, sans-serif;
    margin:0;
    padding:0;
    box-sizing:border-box;
    line-height:1.3;
}

/* html, body {
    margin:0;
    padding:0;

    -width:100%;
    -height:100%;

}

html {
    overflow-y: scroll;
}
 */

table {
    border-collapse: collapse;
}


a {
    /* font-size:1.1rem; */
    text-decoration: none;

    color: #004080;
}

    a:hover {
        color: #0080f0;
    }
    /* a:hover {
        text-decoration:underline;
    } */

p { margin-bottom:8px; }
ol { margin-left: 32px; }
ol li { margin:4px 0; }
ul { margin-left:16px; }
ul li { margin:4px 0; }




/* Альтернативное выделение ссылок при наведении

Используется для заголовков (например, новости, основные события)
*/
.hover2:hover {
    transition: color .3s;
    color:#007dfb;
    text-decoration:none;
}

a.hover3 {
    color:#555555;
    text-decoration:none;
}

.hover3:hover {
    transition: color .3s;
    color:#007dfb;
    text-decoration:none;
}



@media print {
    html, body { width:auto; height: auto; }
    .page { position: static; top: auto; left: auto; right: auto; bottom: auto; }
    .main-menu { position:static; top: auto; left: auto; right: auto; bottom: auto; height: auto; }
    .main-content { position: static; top: auto; left: auto; right: auto; bottom: auto; }
}





/* ===================================== */

.page-title,
.page-title1 { font-size:32px; }

.page-title2 { font-size:28px; }

.page-title3 { font-size:20px; color:#777777; }

a.main-link {
    display:inline-block;
    width: 250px;
    max-width:100%;
    margin:0 16px 24px;

    /* display:block;   */
    /* max-width:600px; */
    font-size:24px;
    padding:16px;
    border:1px solid #004080;
    background:#004080;
    color:#ffffff;
    /* margin:0 16px */
    font-weight:normal;
    text-decoration: none;
    /* background-color: #f2f9ff; */
    box-shadow: 4px 4px 8px rgba(0,0,0,.5);
}

a.main-link:hover {
    background:#0080c0;
    border-color:#0080c0;
    color:#ffffff;
}

a.main-link > .description {
    margin-top:8px;
    font-size: 16px;
    color:#777777;
}



.pal input, .pal textarea, .pal select, .pal option {
    padding: 4px;
    /* font-size: 22px; */
    font-size:18px;
    width: 100%;
}

.pal input, .pal textarea, .pal select {
    border:2px solid #cccccc;
    outline:none;
}

.pal input[type="button"], .pal input[type="submit"] {
    border:0;
    background:#004080;
    color:#ffffff;
    font-weight:normal;
    padding:12px 24px;
    box-shadow: 2px 2px 8px rgba(0,0,0,.5);
    font-size:18px;
    width:auto;
}

.pal input[type="button"].small, .pal input[type="submit"].small {
    padding:8px;
    font-size:14px;
}

.pal input[type="button"]:hover, .pal input[type="submit"]:hover, .pal button:hover {
    background:#0080c0;
}

.pal input:focus, .pal textarea:focus, .pal select:focus {
    border-color:#004080;
}

.pal input:hover, .pal textarea:hover, .pal select:hover {
    border-color:#0080c0;
}





.pal textarea {
    min-height:80px;
    min-width:100%;
    max-width:100%;
}

.pal-ctrl-field {
    margin-bottom:16px;
}

.pal-ctrl-field-label {
    margin-bottom:4px;
    color:#333333;
}

.pal-ctrl-field-description {
    margin-bottom:4px;
    font-size:14px;
    color:#999999;
}

.form-subtitle {
    font-size:22px;
    text-transform: uppercase;
    font-weight:bold;
    color:#777777;
    margin:32px 0 18px;
}

.field-width-middle {
    max-width:300px;
}


.form-table td { padding:8px; font-size:18px; vertical-align:top; }
label.checkbox { font-size:18px; display:inline-block; }


.div-option {
    margin:4px 0;
    padding:4px 0 4px 16px;
    border-left:8px solid #dddddd;
    cursor:pointer;
    color: #004080;
}
.div-option:hover {
    border-color: #0080c0;
}.div-option.selected {
    border-color: #004080;
}


.separator { margin-top:32px; border-top:1px solid #dddddd; padding-top:32px; }




/* элементы списков */
div.list-item          { display:block; position:relative; padding:8px 16px; border-bottom:1px solid #dddddd; text-decoration:none; }
div.list-item.disabled { background:#eeeeee; }
div.list-item:hover    { background:#eeffee; text-decoration:none; }
div.list-item a        { text-decoration:none; }

tr.list-item td        { padding:4px; border-bottom:1px solid #dddddd; text-decoration:none; }
tr.list-item.disabled  { background:#eeeeee; }
tr.list-item:hover     { background:#eeffee; text-decoration:none; }
tr.list-item a         { text-decoration:none; }





/** Live Search old version */
.pal-ctrl-live-search {
    display:block;
}

.pal-ctrl-live-search a {
    display:inline-block;
    padding: 8px;
    border:1px solid #999999;
    text-decoration: none;
    min-width: 64px;
}
.pal-ctrl-live-search a:hover {
    border:1px solid #777777;
    text-decoration: none;
}

.pal-ctrl-live-search .wrp-data {
    display:none;
}

#id-pal-ctrl-live-search {
    z-index: 1001;
    /* display: none; */
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,.5);
}

#id-pal-ctrl-live-search > .wrp-form {
    position: absolute;
    background: white;
    top: 16px;
    right: 16px;
    bottom: 16px;
    left: 16px;
}

#id-pal-ctrl-live-search > .wrp-form > .wrp-input {
    position: absolute;
    top: 0;
    right: 0;
    height: 50px;
    left: 0;
    overflow: hidden;
    padding:8px;
}

#id-pal-ctrl-live-search > .wrp-form > .wrp-result {
    position: absolute;
    top: 50px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: scroll;
    padding: 0 8px;
}

#id-pal-ctrl-live-search > .wrp-form > .wrp-result > .wrp-content > .wrp-item {
    background: #ffffff;
    padding: 8px;
    border-bottom:1px solid #dddddd;
}

#id-pal-ctrl-live-search > .wrp-form > .wrp-result > .wrp-content > .wrp-item.wrp-selected {
    background: #dddddd;
}
#id-pal-ctrl-live-search > .wrp-form > .wrp-result > .wrp-content > .wrp-item .wrp-data {
    display:none;
}








.pal-tree-table {
    border-collapse: collapse;
}


.pal-tree-table.width100, .pal-tree-table.width100 table.table {
    width: 100%
}

/* .pal-tree-table .header tr { */
    /* box-shadow:0 0 8px rgba(0,0,0,.5); */
/* } */

.pal-tree-table td {
    vertical-align:top;

    padding: 0 8px;
    border-bottom:1px solid #eeeeee;
}

.pal-tree-table .cell-content {
    padding:6px 0;
    flex-grow: 1;
}


.pal-tree-table .header td {
    /* padding:4px 8px; */
    /* font-weight:bold; */
    color:#777777;
    /* border-top:1px solid #999999; */
    padding:8px;
    border-bottom:2px solid rgba(0,0,0,.3);
    /* #999999; */

    /* box-shadow:0 0 4px rgba(0,0,0,.5); */

    /* background:#eeeeee; */
    /* background:#dddddd; */
    /* background: white; */
    background:#fbfbfb;
    font-size:14px;
    /* box-shadow: 0 4px 8px rgba(0,0,0,.5); */
}




.pal-menu-item { vertical-align:top; display:inline-block; padding:0 8px; line-height:32px; font-size:14px; color:#ffffff; }
.pal-menu-item:hover { background:#555555; }
.pal-menu-item.disabled, .pal-menu-item.disabled:hover { color:#aaaaaa; background:inherit; }





h4 {
    font-size:18px;
    color:#555555;
    margin-bottom:16px;
    margin-top:40px;
    text-transform:uppercase;
}



.pal-button-2 {
    padding-left: 8px;
    padding-right: 8px;
    background: #eef0ff;
    border: 1px solid #999999;
    box-shadow: 2px 2px 8px rgb(0 0 0 / 30%);
}

.pal-button-2:hover {
    background: #4b626d;
    color: #ffffff;
}




