﻿

.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;
    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;
    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  ***********************/
.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  ***********************/
.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 BTN MOD  *******************/


.btn-mini {
    width: auto;
    height: 30px;
}

.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-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-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: 0px;
    }
}



/**************** Отдельный класс .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;
}
