﻿@import url("components/typography.css");
@import url("components/alerts.css");
@import url("components/buttons.css");
@import url("components/navs.css");
@import url("components/inputs.css");
@import url("components/breadcrumbs.css");
@import url("components/dropdown.css");
@import url("components/table.css");
@import url("components/pagination.css");
@import url("components/modal.css");


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*перебиваем базовый цвет из bootstrap*/
.btn-primary {
    background-color: var(--bg-green) !important;
    border-color: var(--border-primary) !important;
    color: white !important;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: rgba(5, 115, 90, 1) !important;
        border-color: rgba(5, 115, 90, 1) !important;
    }

.spinner-grow {
    color: var(--halyk-green-main) !important;
}

.spinner-border {
    color: var(--halyk-green-main) !important;
}

/*перебиваем базовый цвет из bootstrap*/
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
}

.layout-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-container {
    width: 90%;
    max-width: 1187px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.main-container {
/*    min-height: 638px;
    height: 638px;*/
}

.main-menu {
    flex: 1;
}

.logo {
    /*    width: 162.82px;
    display: block;
    padding-top: 10px;*/
    height: 45px;
    padding: 4px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 26px;
}

.lang {
    padding: 6px 12px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid var(--border-default);
    height: 36px;
}

.main-content {
    padding-top: 24px;
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}

.auth-container {
    height: 400px;
    display: flex;
    width: 100%;
    max-width: 1187px;
    /*height: 288px;*/
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.auth-form,
.auth-bg {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

.auth-form {
    align-items: flex-start;
    background-color: var(--bg-surface);
}

    .auth-form small {
        margin-bottom: 8px;
        display: block;
    }

.auth-bg {
    /*height: 288px;*/
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(rgba(15, 197, 17, 1), rgba(16, 119, 40, 1));
    position: relative;
}

    .auth-bg img {
        width: auto;
        height: auto;
        margin-top: 32px;
    }

.footer {
    background: var(--bg-gray-light);
    /*width: 100vw;*/
    padding-top: 16px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1187px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: space-between;
    gap: 20px;
}

    .footer-content h6 {
        /*padding: 0;*/
        margin: 0 0 15px 0;
    }

.contacts,
.links {
    flex: 1;
}

    .links a {
        text-decoration: none;
        display: block;
        margin-bottom: 6px;
    }

        .links a:hover {
            text-decoration: underline;
        }

.footer-divider {
    max-width: 1187px;
    width: 90%;
    height: 1px;
    background-color: var(--border-default);
    margin: 0 auto 10px auto;
}

.footer-bottom {
    max-width: 1187px;
    width: 90%;
    margin: 0 auto 10px auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 16px;
    font-size: 12px;
    color: #888;
}

.footer-logo {
    width: 89.14px;
    display: block;
}

.license-text {
    line-height: 1;
    margin-bottom: 3px;
}

@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
        height: auto;
    }

    .auth-form,
    .auth-bg {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }

        .input-group button {
            width: 100%;
        }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-container {
        padding-left: 12px;
        padding-right: 12px;
        width: 100%;
        max-width: 100%;
    }
    .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.6); /* прозрачность */
        z-index: 1050;
    }
}


.spinner-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spinner-background {
    background-color: white;
    width: 50px;
    height: 50px;
    border: 1px solid rgb(221 219 219);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}





.section-label {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-secondary-rgb), var(--bs-text-opacity)) !important;
    font-weight: 700 !important;
    font-size: 0.9rem;
}




.command-buttons {
    display: flex;
    justify-content: center;
    gap: 4px;
}




.grid-only .ms-grid-container {
    max-height: calc(100vh - 366px);
}
.with-filter .ms-grid-container {
    max-height: calc(100vh - 415px);
}
.branch-departments .ms-grid-container {
    max-height: calc(100vh - 362px);
}
.encashment-points .ms-grid-container {
    max-height: calc(100vh - 411px);
}

.material-eye::before {
    font-family: 'bootstrap-icons';
    content: '\f341';
    font-size: 20px;
}

.material-eye-off::before {
    font-family: 'bootstrap-icons';
    content: '\f340';
    font-size: 20px;
}

.custom-radio {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(6, 140, 110, 1);
    border-radius: 50%;
    position: relative;
}

.custom-radio.checked::after {
    content: '';
    width: 8px;
    height: 8px;
    background: rgba(6, 140, 110, 1);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.employee-cell {
    height: 84px;
    overflow-y: auto;
    display: block;
    padding-right: 4px;
}

.employee-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 2px 4px;
    border-radius: 4px;
}

.row-error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 2px 4px;
    border-radius: 4px;
}
