﻿

.btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 40px;
    font-weight: 600;
    color: var(--color-black);
    font-size: 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 4px 4px var(--сolor-black25);
    border: none;
    outline: none;
    overflow: visible;
    text-transform: none;
    box-sizing: border-box;
    text-decoration: none;
    margin: 0 5px 15px 5px;
    padding: 0 10px;
    /*display: inline-block;*/
    /*  vertical-align: middle;*/
}

a.btn, .btn a {
    text-decoration: none;
    color: var(--color-black);
}

.btn:hover {
    box-shadow: 0px 4px 6px rgba(41,52,64, 0.5);
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.btn:active {
    box-shadow: 0 0px 0px;
    transform: scale(0.99);
    transition: 0s;
}

.btn:focus {
    outline: none;
}

.btn i {
    margin-right: 10px;
}

/*.btn:not(:only-child):last-child {
    margin-bottom: 0;
}*/

/**************** .btn BTN-PRIMARY ****************************/

.btn-primary {
    background: var(--color-yellow);
    /*    border: 1px solid #e7b521;*/
}

.btn-primary.active {
    background-color: var(--сolor-btn-gray);
    border: 1px solid var(--color-black);
    color: #fff;
}

.btn-primary-mini {
    background: var(--color-yellow);
    width: 140px;
    height: 30px;
    font-size: 12px;
    padding: 5px;
}

/**************** .btn BTN-GRAY ****************************/
.btn-gray {
    background: var(--сolor-btn-gray);
    color: #fff;
}
/*.btn-gray:hover {
    box-shadow: 0px 2px 6px #fff;
}*/


/**************** .btn BTN-BLACK  ************************/
.btn-black, a.btn-black {
    background: var(--color-black);
    color: #fff;
}

.btn-black:hover {
    /*box-shadow: 0px 2px 6px #fff;*/
}


/**************** .btn BTN-Orange  ***********************/
.btn-orange {
    background: var(--color-ornage);
}

.btn-orange.active {
    background-color: var(--color-black);
    border: 1px solid transparent;
    color: #fff;
}

/**************** .btn BTN-white  ***********************/
.btn-white {
    background: #fff;
    /*box-shadow: 0 4px 4px var(--сolor-black25);*/
    padding: 0px 5px;
}

/**************** .btn BTN-no-bg  ***********************/
.btn-no-bg {
    background: none;
    border-radius: 10px;
    border: 1px solid #212E39;
}
/***************************************/

.btn-icon {
    width: 30px;
    height: 30px;
    line-height: 30px;
    background: #fff;
    border-radius:5px;
    border:none;
    box-shadow: var(--shadow);
    margin: 0 3px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items:center;
}
.btn-icon:hover {
    box-shadow: 0px 4px 6px rgba(41, 52, 64, 0.5);
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.btn-icon-pen::after {
    display:block;
    content:"";
    width: 16px;
    height: 16px;
    background: url('../img/icon-pen.svg') center center no-repeat ;
    background-size:contain;

}

.btn-icon-bascket::after {
    display:block;
    content:"";
    width: 20px;
    height: 20px;
    background: url('../img/icon-basket.svg') center center no-repeat;
    background-size:contain;
}

.button-spinner {
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top: 2px solid #000;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
.button-spinner-wite {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* для размещения одной кнопки ровно по центру а другую справа*/
.btn-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.btn-right {
    margin-left: auto;
}

@media all and (max-width:992px) {
    .btn-center {
        position: static;
        transform: translateX(0%);
    }

    .btn-right {
        margin-left: 10px;
    }
}


/************* .btn BTN MOD  *******************/
.btn-long {
    width: 220px;
}

.btn-mini {
    width: auto;
    height: 30px;
}

.btn-maxmini {
    width: 100px;
    height: 30px;
    font-size: 11px;
}

.btn-w100 {
    width: 100%;
    margin: 0 0 15px 0;
}

.btn-wa {
    width: auto;
}

.btn-small {
    width: 140px;
}

/* Общение состоние кнопки disabled */

button[disabled] {
    box-shadow: none;
    cursor: not-allowed;
    transition: none;
    transform: none;
}

button[disabled]:hover {
    box-shadow: none;
    cursor: not-allowed;
    transition: none;
    transform: none;
}

button[disabled]:active {
    box-shadow: none;
    cursor: not-allowed;
    transition: none;
    transform: none;
}

/**************** Отдельный класс .btn-bigtable  кнопка с иконкой для таблицы ***********************/
.btn-bigtable {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 120px;
}

.btn-bigtable:hover {
    cursor: pointer;
}

.btn-bigtable__icon {
    font-size: 34px;
}

.btn-bigtable__icon .fa-file-export {
    margin-left: 10px;
}

.btn-bigtable__title {
    font-size: 12px;
}

/*иконки для кнопок*/
i.icon-btn {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    font-style: normal;
}

i.icon-btn::before {
    content: " ";
    width: 20px;
    height: 18px;
    margin-right: 10px;
    background-size: contain;
}

.icon-priemka::before {
    background: url('../img/icon-btn-priemka.svg') center top no-repeat;
}

.icon-priemka-orange::before {
    background: url('../img/icon-btn-priemka-orange.svg') center top no-repeat;
}

.icon-imushestvo::before {
    background: url('../img/icon-btn-imushestvo.svg') center top no-repeat;
}

.icon-forma::before {
    background: url('../img/icon-btn-forma.svg') center top no-repeat;
}

.icon-move::before {
    background: url('../img/icon-btn-move.svg') center top no-repeat;
}

.icon-spravochnik::before {
    background: url('../img/icon-btn-spravochnik.svg') center top no-repeat;
}

.icon-zhurnal::before {
    background: url('../img/icon-btn-zhurnal.svg') center top no-repeat;
}

.icon-plus::before {
    background: url('../img/icon-plus-big.png') center top no-repeat;
}

.icon-download-xls::before {
    background: url('../img/icon-btn-download-xls.svg') center top no-repeat;
}

.icon-scanner::before {
    background: url('../img/icon-btn-scanner.svg') center top no-repeat;
}

.icon-print::before {
    background: url('../img/icon-btn-print.svg') center top no-repeat;
}

.icon-pen::before {
    background: url('../img/icon-pen.svg') center center no-repeat;
}
.icon-window::before {
    background: url('../img/icon-window-restore.svg') center center no-repeat;
}

