body {
    background: white;
    font-family: sans-serif;
  background-image: url("/css/img/fon_log_reg.jpg"); /* Замените на путь к вашему файлу */
  background-size: cover; /*  Растягивает изображение, чтобы покрыть весь элемент */
  background-position: center; /*  Позиционирует изображение по центру */
  background-repeat: no-repeat; /*  Предотвращает повторение изображения */
}

a {
    text-decoration: none;
}

p {
    color: white;
}

li {
    padding: 5px;
    cursor: pointer;
    color:  white;
}

.btn_edit_client {
    background: #ff6c00;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.center_container {
    display: flex;
    width: 1000px;
    height: 570px;
    margin: 50px auto;
    background: #000000b8;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.title_welcome {
    font-size: 32px;
    font-weight: 600; /* Полужирный вместо жирного */
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    padding: 20px 0;
    position: relative;
}


        .error-message {
            color: red;
            margin: 10px 0;
            font-size: 14px;
        }
        .success-message {
            color: green;
            margin: 10px 0;
            font-size: 14px;
        }
        

        .form-section {
            flex: 1;
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

/* Стили для чекбокса */
input[type="checkbox"] {
    accent-color: #dd573c;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.title_welcome::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #dd573c; /* Акцентная линия под заголовком */
    margin: 10px auto 0;
}

.image-container {
            flex: 1;
            overflow: hidden;
        }
        .image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 10px 0 0 10px;
        }

.form_contaienr {
            width: 100%;
        }

.input_form_log_reg {
    border-radius: 6px;
    width: 70%;
    height: 35px;
    font-size: 15px;
    padding: 0 15px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    background: #f9f9f9;
    transition: all 0.3s;
    box-sizing: border-box;
}

.input_form_log_reg:focus {
    border-color: #4a9ff5;
    box-shadow: 0 0 0 2px rgba(74, 159, 245, 0.2);
    outline: none;
    background: #fff;
}

.reg_log_button {
    width: 50%;
    height: 35px;
    border-radius: 6px;
    border: none;
    background: #dd573c;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.reg_log_button:hover {
    background: #dd573cad;
    transform: translateY(-2px);
}

.vhod_session {
    font-size: 14px;
    color: #c7d4e0; /* Более мягкий цвет */
    font-weight: normal;
    margin-left: 8px;
}

.href_url_reg_vhod {
    display: none;
    margin-top: 25px;
    font-size: 15px;
    color: #a8c6e8;
    text-decoration: none;
    transition: all 0.3s;
}

.href_url_reg_vhod:hover {
    color: #4a9ff5;
    text-decoration: underline;
}

/* Стили для AJAX сообщений */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.ajax-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    animation: slideIn 0.3s ease-out;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Стили для ошибок полей */
.field-error {
    border-left: 3px solid #e74c3c !important;
}

.field-error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.info-row.field-error .info-value {
    position: relative;
}

/* ПАНЕЛЬ АДМИНИСТРАТОРА */
.admin-panel {
    padding: 20px;
    background: #0a0a0abd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: 800px;
    overflow-y: auto;
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.menu-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 25px;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s;
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    font-size: 16px;
    display: block;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.menu-item a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    font-size: 16px;
    display: block;
}

.menu-item i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #3498db;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #ff6c00;
    text-decoration: none;
    font-size: 16px;
}

.back-link:hover {
    text-decoration: underline;
}

.history_client {
    background: green;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.customer_orders {
    background: #0004bf;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.client-card {
    border-radius: 5px;
    padding: 15px;
    background: #0000008c;
    transition: all 0.3s;
    min-height: 200px;
    color: #020202;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.client-card h3 {
    margin-top: 0;
    color: white;
}

.client-actions {
    margin-top: 15px;
    text-align: right;
}

.add-client-btn {
    background: #ff6c00;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.discount-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.empty-list {
    text-align: center;
    padding: 50px 0;
    grid-column: 1 / -1;
}

.empty-list-icon {
    font-size: 80px;
    color: #ccc;
    margin-bottom: 20px;
}

.percent-badge {
    background: #00a100;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: white;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    color: white;
    background: #0a0a0abd;
}

.form-textare {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea.form-input {
    min-height: 100px;
}

.btn {
    background: #ff6c00;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.client-card-page {
    background: #0000008c;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.client-section {
    margin-bottom: 25px;
}

.client-section h3 {
    margin-top: 0;
    color: white;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.info-row {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
    position: relative;
}

.info-label {
    font-weight: bold;
    min-width: 200px;
    color: white;
    display: flex;
    align-items: center;
}

.info-value {
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.discount-badge {
    background: #e74c3c;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
}

.comments-box {
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
    border-left: 3px solid #ff6c00;
    border-right: none;
    border-top: none;
    border-bottom: none;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* ИКОНКИ РЕДАКТИРОВАНИЯ */
.edit-icon {
    margin-left: 20px;
    color: #7f8c8d;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.info-row:hover .edit-icon {
    opacity: 1;
}

.edit-field {
    display: none;
    width: 100%;
    background: black;
    color: #ffffff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

.save-btn {
    display: none;
    background: #2ecc71;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
}

/* ГАЛОЧКИ */
.check-icon {
    color: #2ecc71;
    margin-left: 10px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.edited .check-icon {
    display: inline-block;
    opacity: 1;
}

.original-value {
    display: inline-block;
    color: white;
}

.editing .original-value {
    display: none;
}

.editing .edit-field {
    display: block;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.autoComplete_result_edit_cart_client {
    position: absolute;
    background: #000000;
    height: 340px;
    overflow: hidden;
    overflow-y: scroll;
    padding: 10px;
    padding-top: 5px;
    border-radius: 0 0 10px 10px;
    margin-top: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    list-style-type: none;
    z-index: 1;
}

.client-id {
    font-size: 18px;
    color: #7f8c8d;
    margin-left: 10px;
}

.autoComplete_result {
    position: absolute;
    background: white;
    max-height: 250px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: -4px;
}
        
.autoComplete_result_item {
    padding: 8px 12px;
    cursor: pointer;
}
        
.autoComplete_result_item:hover,
.autoComplete_result_item[aria-selected="true"] {
    background-color: #f5f5f5;
}
        
.autoComplete_highlighted {
    font-weight: bold;
    color: #ff6c00;
}
        
.autoComplete_wrapper {
    position: relative;
}
        
.no_result {
    padding: 8px;
    color: #666;
    font-style: italic;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #0a0a0a;
    margin: 1% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 800px;
    max-height: 90%;
    overflow-y: auto;
}

.close-modal {
    float: right;
    cursor: pointer;
    font-size: 24px;
}

.col_vo_client_orders {
    background: #d78f08;
    color: white;
    padding: 6px;
    border-radius: 5px;
    font-size: 14px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
    color: white;
    max-width: 98.1%;
    background: #0a0a0abd;
}

.search-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,.25);
}

.highlight {
    background-color: #ff6c00;
    font-weight: bold;
}

.client-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.orders-container {
    margin-top: 30px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.orders-table th, .orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
        
.orders-table th {
    background-color: #e3ad1e;
    color: white;
    font-weight: bold;
}

.orders-table tr:hover {
    background-color: #f5f5f5;
}
        
.status-new {
    color: #007bff;
    font-weight: bold;
}
        
.status-ordered {
    color: #ffc107;
    font-weight: bold;
}
        
.status-delivered {
    color: #28a745;
    font-weight: bold;
}
        
.status-cancelled {
    color: #dc3545;
    font-weight: bold;
}

.no-orders {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}
        

.status-selector {
    display: flex;
    gap: 5px;
}

.status-btn {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
}
        
.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}
        
.profit {
    font-weight: bold;
    color: #28a745;
}
        
.income {
    font-weight: bold;
    color: #17a2b8;
}

.cost {
    font-weight: bold;
    color: #6c757d;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 98%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: #0a0a0abd;
    color: white;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,.25);
}


        
.client-card-page {
    margin-bottom: 20px;
}



.orders-stats {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
}
        
.stat-value {
    font-size: 18px;
    font-weight: bold;
    margin-top: 5px;
    color: white;
}
        
.calculation-results {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

        
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: #0000008c;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
        
.stat-card h3 {
    margin-top: 0;
    color: white;
    font-size: 16px;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th, .history-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.history-table th {
    background-color: #e3ad1e;
    font-weight: bold;
    color: white;
}

.history-table tr:hover {
    background-color: #f5f5f5;
}
        
.no-records {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}        
        
.modal-title {
    margin-top: 0;
    color: #333;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.modal-table th, .modal-table td {
    padding: 10px 15px;
    border: 1px solid #ddd;
}
        
.modal-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.modal-total {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-weight: bold;
    text-align: right;
}


.calendar {
    width: 100%;
    border-collapse: collapse;
    background: #1b1c1c;
}

.calendar th, .calendar td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.calendar th {
    background-color: #919191;
    color: white;
}

.calendar td {
    height: 100px;
    vertical-align: top;
    cursor: pointer;
    position: relative;
}

.calendar td:hover {
    background-color: #484848;
}

.current-day {
    background-color: #e6f7ff;
    font-weight: bold;
}

.selected-day {
    background-color: #ababab;
    font-weight: bold;
}

.has-records {
    background-color: #6d6d6d;
}

.date-filters {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: #1b1c1c;
    border-radius: 5px 5px 0 0;
    align-items: center;
}

.date-header {
    font-weight: bold;
    font-size: 20px;
    color: #7a7a7a;
    background: #ff6c00;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
}

.date-filters > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-filters label {
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.date-filters select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.date-filters select:hover {
    border-color: #adb5bd;
}

.date-filters select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.service-row, .shop-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.service-row input, .service-row select,
.shop-row input {
    flex: 1;
}
        
.remove-service, .remove-shop-item {
    color: #dc3545;
    cursor: pointer;
}
        
.amount-calculation {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.calculation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
        
.calculation-section {
    padding: 10px;
    border-radius: 5px;
    background-color: #f1f1f1;
}


.section-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.section-toggle i {
    margin-right: 10px;
    transition: transform 0.3s;
}

.collapsed i {
    transform: rotate(-90deg);
}
        
.section-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.record-time {
    font-size: 12px;
    margin-top: 2px;
    color: #ffffff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.record-time:hover {
    white-space: normal;
    overflow: visible;
    background-color: #818181;
    padding: 2px;
    border: 1px solid #ddd;
    z-index: 100;
    position: relative;
}

.day-number {
    font-weight: bold;
    margin-bottom: 3px;
    color: white;
}

.client-title {
    font-size: 14px;
    color: #666;
}

.delete-record-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 20px;
}

.delete-record-btn:hover {
    background-color: #c82333;
}

.btn-primary {
    background-color: green;
}

.password-toggle {

    color: white;
    padding: 10px;
    background: #cdcdcd;
    border-radius: 100%;
    margin-left: 10px;
}

.btn-print {
    background: #1a94a9;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.diagnostik_list {
    background: green;
}

.delete_client_card {
    background: #bf0000;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.context-menu {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    min-width: 180px;
    display: none;
}

.context-menu-item {
    padding: 8px 12px;
    cursor: pointer;
}
        
.context-menu-item:hover {
    background-color: #f5f5f5;
}

.stats-modal table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
        
.stats-modal th, .stats-modal td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.stats-modal th {
    background-color: #f2f2f2;
}

.stats-modal .stat-value {
    font-weight: bold;
    text-align: right;
}

.stats-modal .section-title {
    margin-top: 20px;
    font-weight: bold;
    color: #333;
}

/*.stats-modal .mechanic-row {
    background-color: #f9f9f9;
}*/

.stats-modal .total-row {
    background-color: #f2f2f2;
    font-weight: bold;
}

.print-header {
    text-align: center;
    margin-bottom: 20px;
    display: none;
}
        
.print-header h2 {
    margin-bottom: 5px;
}

.print-header p {
    margin: 5px 0;
}

.print-date {
    text-align: right;
    margin-bottom: 10px;
}

.signature-line {
    margin-top: 50px;
    text-align: right;
}

.print-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    display: none;
}

        
/* Стили для печати */
@media print {
body {
    margin: 0;
    padding: 0;
}

body * {
    visibility: hidden;
}

.print-section, .print-section * {
    visibility: visible;
}

.print-section {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.no-print {
    display: none !important;
}
            
@page {
    size: A4;
    margin: 10mm;
}

.print-header {
    display: block !important;
    margin-bottom: 15px;
}

.print-footer {
    display: block !important;
    position: fixed;
    bottom: 0;
    width: 100%;
}

table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 10px 0 !important;
    page-break-inside: avoid;
}

table, th, td {
    border: 1px solid #000 !important;
}

th, td {
    padding: 6px !important;
    text-align: left !important;
    font-size: 12px !important;
}

th {
    background-color: #f2f2f2 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.section-title {
    margin-top: 15px !important;
    font-weight: bold !important;
    color: #000 !important;
    font-size: 14px !important;
}

.stat-value {
    font-weight: bold !important;
    text-align: right !important;
}

.mechanic-row {
    background-color: #f9f9f9 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.total-row {
    background-color: #e6f7ff !important;
    font-weight: bold !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.record-info p {
    margin: 3px 0 !important;
    font-size: 12px !important;
}

.signature-line {
    margin-top: 30px !important;
    font-size: 12px !important;
    }
}

.record-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.record-details-table th, .record-details-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.record-details-table th {
    background-color: #f2f2f2;
}

.details-section {
    margin-bottom: 20px;
}

.details-section h3 {
    margin-bottom: 10px;
    color: #333;
}

.record-summary {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.record-summary p {
    margin: 5px 0;
    font-weight: bold;
}
        
.print-options {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    height: 20px;
}

.print-options label {
    margin-right: 15px;
}

.print-header {
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

.print-header h2 {
    margin-bottom: 5px;
}

.print-header p {
    margin: 5px 0;
}

.print-date {
    text-align: right;
    margin-bottom: 10px;
}

.signature-line {
    margin-top: 50px;
    text-align: right;
}

.print-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    display: none;
}

@media print {
body * {
    visibility: hidden;
}

.print-section, .print-section * {
    visibility: visible;
}

.print-section {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}

.no-print {
    display: none !important;
}

@page {
    size: A4;
    margin: 15mm;
}

.print-header {
    display: block !important;
}

.print-footer {
    display: block !important;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.page-title {
    display: none;
    }
}

.save_diagnostic {
    position: relative;
    padding-top: 20px;
}

.diagnostic-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 15px;
}

.diagnostic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.diagnostic-creator {
    color: #666;
    font-size: 14px;
}

.diagnostic-items {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.diagnostic-items th, 
.diagnostic-items td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.diagnostic-items th {
    background-color: #f2f2f2;
}

.no-diagnostics {
    text-align: center;
    padding: 20px;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: #0000008c;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h3 {
    margin-top: 0;
    color: white;
    font-size: 16px;
}

.stat-card p {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.col_vo_diagnostic_list_client {
    background: #d78f08;
    color: white;
    padding: 6px;
    border-radius: 5px;
    font-size: 14px;
}

.btn-act-delete {
    background: red;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.mechanic-summary {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #ededed;
    border-radius: 5px;
}
        
.calculation-section {
    margin-bottom: 15px;
}

.top_menu_container {
    position: relative;
    display: inline-block;
}
        
.top_menu_button {
    background-color: #ff6c00;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}
        
.top_menu_button:hover {
    background-color: #ffb680;
    transition: 0.5s;
}
        
.top_menu_dropdown {
    display: none;
    position: absolute;
    background-color: #d7d7d7;
    min-width: 220px;
    width: 270px;
    max-width: 270px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    right: 0;
    color: white;
}
        
.top_menu_dropdown a {
    color: #2a2a2a;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}
        
.top_menu_dropdown a:hover {
    background-color: #f1f1f1;
}
        
.top_menu_container:hover .top_menu_dropdown {
    display: block;
}
        
.top_menu_icon {
    margin-right: 10px;
}

.table-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.amount-cell {
    font-weight: bold;
    color: #2a6496;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    background: #0000008c;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
        
.stat-card h3 {
    margin-top: 0;
    color: white;
    font-size: 16px;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
        
.amount-cell {
    font-weight: bold;
    color: #2a6496;
}
        
/* Стили для печати */
@media print {
    body * {
        visibility: hidden;
    }
            
    .print-section, 
    .print-section * {
        visibility: visible;
    }
            
    .print-section {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }
            
    .no-print {
        display: none !important;
    }
            
    @page {
        size: A4;
        margin: 10mm;
    }
            
    .print-title {
        text-align: center;
        margin-bottom: 15px;
        font-size: 18pt;
    }
            
    .print-period {
         text-align: center;
        margin-bottom: 10px;
        font-size: 12pt;
    }
            
    .print-percent {
        text-align: center;
        margin-bottom: 15px;
        font-size: 12pt;
    }
            
    .print-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 10px 0 !important;
        page-break-inside: avoid;
    }
            
    .print-table, .print-table th, .print-table td {
        border: 1px solid #000 !important;
    }
            
    .print-table th, .print-table td {
        padding: 5px !important;
        text-align: left !important;
        font-size: 10pt !important;
    }
            
    .print-table th {
        background-color: #f2f2f2 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
            
    .print-total-row {
        font-weight: bold !important;
        background-color: #f9f9f9 !important;
    }
            
    .print-signature {
        margin-top: 20px;
        text-align: right;
        font-size: 12pt;
    }
            
    .print-date {
        text-align: right;
        margin-top: 5px;
        font-size: 10pt;
        color: #666;
    }
}


.period-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}
        
.period-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.period-buttons button {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
}

.period-buttons button.active {
    background: #ff6c00;
    color: white;
    border-color: #ff6c00;
}

.date-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-navigation input {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.date-navigation button {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    cursor: pointer;
}

.chart-container {
    background: #0000008c;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    height: 500px;
    position: relative;
}

.chart-wrapper {
    width: 100%;
    height: calc(100% - 40px);
    position: relative;
}

#analyticsChart {
    width: 100% !important;
    height: 100% !important;
    margin-top: -30px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-income, .legend-profit, .legend-mechanic, .legend-shop {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: white;
}

.legend-income i { color: #4e73df; }
.legend-profit i { color: #1cc88a; }
.legend-mechanic i { color: #f6c23e; }
.legend-shop i { color: #e74a3b; }
.top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.top-card {
    background: #0000008c;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.top-list {
    margin-top: 15px;
}

.top-item {
    margin-bottom: 15px;
}

.top-item-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.top-item-name {
    font-weight: 500;
    color: white;
}

.top-item-value {
    font-weight: bold;
    color: white;
}

.top-item-bar {
    height: 6px;
    background: #f8f9fa;
    border-radius: 3px;
    overflow: hidden;
}
        
.bar-fill {
    height: 100%;
    background: orange;
    border-radius: 3px;
}

.empty-message {
    text-align: center;
    color: #6c757d;
    padding: 20px;
}

        
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.comparison-card {
    background: #0000008c;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
        
.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
        
.comparison-title {
    font-weight: 500;
    font-size: 16px;
    color: white;
}

.comparison-value {
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.comparison-details {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: white;
}

.comparison-change {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.change-positive {
    color: #1cc88a;
}

.change-negative {
    color: #e74a3b;
}

.comparison-icon {
    margin-right: 5px;
}
.stat-change {
    color: #d5d5d5;
    font-size: 13px;
    padding-top: 10px;
}

@media (max-width: 768px) {
    .top-section {
        grid-template-columns: 1fr;
    }
    .period-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    .chart-container {
        height: 350px;
    }
    .stats-grid, .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .chart-container {
        height: 300px;
    }
    .stats-grid, .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для заметок */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.note-card {
    position: relative;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    transform: rotate(-1deg);
    border-top: 15px solid;
}

.note-card:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.note-card.public {
    background-color: #fff9c4; /* Желтый фон для публичных заметок */
    border-color: #ffeb3b; /* Желтая полоска сверху */
    border-left: 3px solid #ffeb3b;
}

.note-card.private {
    background-color: #e3f2fd; /* Голубой фон для личных заметок */
    border-color: #64b5f6; /* Голубая полоска сверху */
    border-left: 3px solid #64b5f6;
}

.note-header {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
    position: relative;
}

.note-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #333;
}

.note-meta {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.note-private-badge {
    background-color: #e0e0e0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
}

.note-content {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    overflow-wrap: break-word;
}

.note-delete-form {
    position: absolute;
    top: 0;
    right: 0;
}

.note-delete-form button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.note-delete-form button:hover {
    color: #f44336;
}

/* Эффект "приклеенного" стикера */
.note-card::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 30px;
    height: 15px;
    background-color: rgba(0,0,0,0.1);
    transform: rotate(5deg);
    clip-path: polygon(0% 0%, 100% 0%, 80% 50%, 100% 100%, 0% 100%, 20% 50%);
}

/* Анимация при добавлении новой заметки */
@keyframes fadeInSticker {
    from {
        opacity: 0;
        transform: translateY(20px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(-1deg);
    }
}

.note-card {
    animation: fadeInSticker 0.5s ease-out;
}

.top-nav {
    background: #000000b8;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.top-nav-text {
    font-size: 22px;
    font-weight: bold;
}

        .sidebar {
                width: 200px;
    background: #000000b8;
    color: white;
        }

.sidebar-menu {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .sidebar-menu li {
            padding: 15px 8px;
            transition: background 0.3s;
        }
        .sidebar-menu li:hover {
            background: #000000b8;
        }
        .sidebar-menu a {
            color: white;
            text-decoration: none;
            display: flex;
            font-size: 14px;
            align-items: center;
        }
        .sidebar-menu i {
            margin-right: 10px;
            font-size: 18px;
        }

.main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .user-menu {
            position: relative;
            cursor: pointer;
        }
        .username {
            display: flex;
            align-items: center;
        }
        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: #000000b8;
            border-radius: 4px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            display: none;
            min-width: 150px;
            z-index: 1000;
        }
        .dropdown-menu a {
            display: block;
            padding: 10px 15px;
            color: #333;
            text-decoration: none;
        }
        .dropdown-menu a:hover {
            background: #000000b8;
            border-radius: 4px;
        }
        .user-menu:hover .dropdown-menu {
            display: block;
        }
        .content-area {
            flex: 1;
            padding: 20px;
            background: #00000070;
            overflow-y: auto;
        }

.container_welcome {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background: #000000b8;
    color: white;
    font-weight: bold;
    padding: 40px;
    border-radius: 10px;
    position: absolute;
    width: 50%;
}

.welcome_text_1 {
    font-weight: 500;
    font-size: 19px;
    padding: 5px;
    color: white;
}

.info_text_1 {
    color: white;
    font-weight: bold;
    font-size: 22px;
}

.welcome_text_login {
    font-weight: bold;
}

.title_panel_text {
    color: white;
    font-size: 30px;
    font-weight: bold;
}

.title_panel_text_1 {
    color: white;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.info-user-card-title {
    color: white;
    font-size: 30px;
    font-weight: bold;
}

.title-1 {
    font-size: 27px;
    color: white;
    font-weight: bold;
}