/* ---------- CSS-змінні (кольори) ---------- */
:root {
    /*Кольори з bp8.css - використовуються*/
    --color2 : #f9fcfd; /* Фон основного контейнеру */
    --color8 : #f2f4f5; /* Фон в модальних формах */
    --color-bi : green; /* Колір іконок */
    --color-bi-red : red; /* Колір іконок */
}


/* Кольори тексту та елементів (універсальні для проекту) */

.warning {
    color: tomato;
    margin-bottom: 6px;
}

.ok1 {
    color: #398439;
    margin-bottom: 6px;
}


/* Блоки */

.reglament {
    /*border: 1px solid buttonface*/;
    height: auto;
    background-color: whitesmoke;
    padding: 12px;
    border-radius: 8px; 
    margin-top: 5px;
}

.dm_form {    
    /*align: center;*/
    border: 2px solid darkgray;
    height: auto;
    /*overflow-y: auto;*/
    /*margin-left: 5px;*/
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 7px;
    border-radius: 8px;
    background: #dff0d8;
}

    
.hidden {
  display: none !important;
}

/* Icon bootstrap red */

.bi { /* Icon bootstrap red*/
    font-size: 24px;
    color: var(--color-bi);
}

.bi-red { /* Icon bootstrap red */
    /*font-size: 24px;*/
    color: var(--color-bi-red);   
}

a > .bi, a > .bi-red, .btn-link > .bi { 
    padding: 3px;
    margin-left: 10px;
    border: 1px solid white;
    border-radius: 3px;        
}

.lg1 { 
    font-size: 36px;
    margin-right: 15px;
}

a >.bi:hover, a > .bi-red:hover, .btn-link > .bi:hover {
    background-color: #c9d4d5;
    border: 1px solid darkgray;
    border-radius: 3px;       
}

/*Форми*/

form {
  margin-bottom: 15px;
  padding: 8px;
}

.form-group {
  margin-bottom: 5px;
}

.input-group {
    position: relative;
    display: table;
    border-collapse: separate;
}

.input-group .form-control {
    position: relative;
    z-index: 2;
    float: left;
    width: 90%;
    margin-bottom: 0;
}

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
}

.control-label {
    margin-bottom: 0;
    vertical-align: middle;
}

.form-control {
    display: block;
    width: 100%;
    height: 28px;
    padding: 5px 10px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    box-sizing: border-box;
}


.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.form-control::-moz-placeholder,
.form-control:-ms-input-placeholder,
.form-control::-webkit-input-placeholder {
    color: #999;
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    background-color: #eee;
    opacity: 1;
    cursor: not-allowed;
}

.has-error .form-control {
  border-color: #a94442;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

.has-success .form-control {
  border-color: #3c763d;
}

.has-warning .form-control {
  border-color: #8a6d3b;
}

.help-block {
  display: block;
  margin-top: 5px;
  margin-bottom: 10px;
  color: #737373;
}

.form-horizontal .form-group {
  margin-left: -15px;
  margin-right: -15px;
}

.form-horizontal .control-label {
  padding-top: 7px;
  margin-bottom: 0;
  text-align: right;
}

textarea.form-control {
  height: auto;
}


input[type="checkbox"],
input[type="radio"] {
    margin: 4px 0 0;
    margin-top: 1px \9;
    line-height: normal;
}

input[type="file"] {
    display: block;  
    padding: 9px;
    height: 40px;
    
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
    input[type="datetime-local"].form-control {
        line-height: 34px;
    }

    .input-group-sm input[type="datetime-local"],
    input[type="datetime-local"].input-sm {
        line-height: 30px;
    }

    .input-group-lg input[type="datetime-local"],
    input[type="datetime-local"].input-lg {
        line-height: 46px;
    }
}

/* Кнопки */

.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
}

.btn-default {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}

.btn-primary {
  color: #fff;
  background-color: #337ab7;
  border-color: #2e6da4;
}

.btn-success {
  color: #fff;
  background-color: #5cb85c;
  border-color: #4cae4c;
}

.btn-info {
  color: #fff;
  background-color: #5bc0de;
  border-color: #46b8da;
}

.btn-warning {
  color: #fff;
  background-color: #f0ad4e;
  border-color: #eea236;
}

.btn-danger {
  color: #fff;
  background-color: #d9534f;
  border-color: #d43f3a;
}

.btn-link {
  font-weight: 400;
  color: #337ab7;
  background-color: transparent;
  border-radius: 0;
}

.btn-lg {
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1.3333333;
  border-radius: 6px;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}

.btn-xs {
  padding: 1px 5px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}

.btn-block {
  display: block;
  width: 100%;
}
.btn-block + .btn-block {
  margin-top: 5px;
}

.form-group button {
  margin-bottom: 10px;
}

/*Таблиці*/

table {
    background-color: transparent;
    border-spacing: 0;
    border-collapse: collapse;
}

/*???*/
caption {
    padding-top: 8px;
    padding-bottom: 8px;
    color: #777;
    text-align: left;
}

th {
  text-align: left;
}

.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  padding: 8px;
  line-height: 1.42857143;
  vertical-align: top;
  border-top: 1px solid #ddd;
}

.table > thead > tr > th {
  vertical-align: bottom;
  border-bottom: 2px solid #ddd;
}

.table-bordered {
  border: 1px solid #ddd;
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
  border: 1px solid #ddd;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #f9f9f9;
}

.table-hover > tbody > tr:hover {
  background-color: #f5f5f5;
}

.table-responsive {
  min-height: .01%;
  overflow-x: auto;
}

.table-striped > tbody > tr > td:last-child,
.table-striped > thead > tr > th:last-child {
    min-width: 120px !important;
}
