﻿
.btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 40px;
    font-family: 'Micra';
    color: #fff;
    font-size: 12px;
    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 10px;
    padding: 0 10px;
}

a.btn {
    text-decoration: none;
    color: #fff;
}

.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-PRIMARY ****************************/

.btn-primary {
    background: var(--color-blue);
}

.btn-primary.active {
    background-color: var(--сolor-btn-gray);
    color: #000;
}

.btn-primary-mini {
    background: var(--color-blue);
    width: 140px;
    height: 30px;
    font-size: 12px;
    padding: 5px;
}

/**************** BTN-BLACK  ************************/
.btn-black {
    background: var(--color-black);
    color: #fff;
}

.btn-black:hover {
    box-shadow: 0px 2px 6px #fff;
}

/**************** BTN-GRAY ****************************/
.btn-gray {
    background: var(--сolor-btn-gray);
    color: #fff;
}
/*.btn-gray:hover {
    box-shadow: 0px 2px 6px #fff;
}*/




/**************** BTN-Orange  ***********************/
.btn-orange {
    background: var(--сolor-ornage);
}

.btn-orange.active {
    background-color: var(--color-dark-gray);
    border: 1px solid transparent;
    color: #fff;
}


/**************** .btn BTN-white  ***********************/
.btn-white {
    background: #fff;
    width: 100px;
    height: 30px;
    min-height: 30px;
    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(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-middle {
    width: 180px;
}

.btn-small {
    width: 140px;
}

.btn-mini {
    width: auto;
    height: 30px;
}

.btn-mini a {
    text-decoration: none;
    font-weight: 600;
    color: #000000;
    font-size: 16px;
    text-align: center;
}

.btn-mini:hover a {
    text-decoration: none;
    color: #fff;
}

.btn-mini.btn-mini2 {
    padding: 2px 0;
    font-size: 13px;
}


.btn-maxmini {
    width: 110px;
    height: 20px;
    padding: 0px 10px;
    margin: 5px 0px 5px 0px;
    font-size: 11px;
}

.btn-w100 {
    width: 100%;
}

.btn-wa {
    width: auto;
}

.btn-wa a {
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}

.btn-wa:hover a {
    text-decoration: none;
}



/* Общение состоние кнопки 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;
}
