/* CRM Common Styles */

/* Global Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Common Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-primary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-1px);
}

.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    font-weight: 600;
}

.btn-outline-success:hover {
    background: #28a745;
    border-color: #28a745;
    color: white;
    transform: translateY(-1px);
}

/* Common Form Styles */
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #6c757d;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-label i {
    margin-right: 8px;
    color: #6c757d;
}

/* Common Card Styles */
.card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: #f8f9fa;
    color: #495057;
    border-radius: 8px 8px 0 0 !important;
    border-bottom: 1px solid #dee2e6;
    padding: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Common Alert Styles */
.alert {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

/* Common Icon Colors */
.green {
    color: #28a745;
}

.black {
    color: #333;
}

/* Навбар - общие стили для всех страниц */
.navbar {
    background-color: #495057 !important;
    border-color: #495057;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.navbar-brand {
    color: white !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: #adb5bd !important;
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-collapse {
    justify-content: space-between;
}

.navbar-nav.ms-auto {
    margin-left: auto !important;
}

.navbar-nav.me-auto {
    margin-right: auto !important;
}

.dropdown-menu {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dropdown-menu>li>a {
    padding: 8px 20px;
    color: #495057;
}

.dropdown-menu>li>a:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.menuBlock>a {
    cursor: default;
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
    font-weight: bold;
    color: #495057;
    background-color: #f8f9fa;
}

.red {
    color: #dc3545;
}

.orange {
    color: #fd7e14;
}

.blue {
    color: #6c757d;
}

/* Common Utilities */
.bn-none {
    border-radius: 0;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .card-body {
        padding: 1.25rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}