﻿body {
}
.year-graphics {
    width:100%;
}

.year-graphics ul {
    margin-bottom: 0px;
    padding:0;
}

.year-graphics th {
    border: 1px solid #c6c6c6;
    padding: 10px 5px;
    text-align: left;
    background-color: #f2f2f2;
    font-weight: 500;
}

.year-graphics td {
    border: 1px solid #e3e3e3;
    padding: 5px;
    cursor: default;
    height: 50px;
    vertical-align: top;
}

.yg-lightgray {
    background-color: #f5f5f5;
}

.yg-white {
    background-color: #ffffff;
}

.yg-active {
    background-color: #e3f2fd;
}
.yg-active > .yg-date {
    font-weight: bold;
}
.yg-disable {
    background-color:#fafafa;
    color:#aaa;
}

.year-graphics li {
    list-style: none;
    font-size:12px;
    padding-left:2px;
}


.year-graphics-add-event-btn {
    display: block;
    width: 20px;
    height: 20px;
    opacity: 0;
    background-image: url(images/plus.svg);
    float: right;
    cursor: pointer;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
}

.year-graphics td:hover > .year-graphics-add-event-btn {
    opacity: 0.8;
}

.yg-date {
    float:left;
}

.yg-date-time:hover {
    cursor: pointer;
    text-decoration: underline;
}

.yg-date-time {
    width: 75px;
    float: left;
    padding: 2px 4px;
    border-radius: 3px;
    margin-bottom: 2px;
}

/* Ваше время аренды - синий */
.new-events {
    background-color: #1976d2;
    color: #fff;
}

/* Занято другим лотом - серый */
.yg-other-lot {
    background-color: #9e9e9e;
    color: #fff;
    cursor: not-allowed !important;
}
.yg-other-lot:hover {
    text-decoration: none !important;
}

.year-graphics td:hover > .year-graphics-edit-event-btn, .year-graphics td:hover > .year-graphics-remove-event-btn {
    opacity: 0.8;
}

.year-graphics-edit-event-btn, .year-graphics-remove-event-btn {
    width: 14px;
    height: 14px;
    display: inline-block;
    cursor: pointer;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px;
    margin: 0 1px;
    opacity: 0;
    border-radius: 2px;
    float: right;
}

.year-graphics-edit-event-btn {
    background-image: url(images/clock.svg);
}

.year-graphics-remove-event-btn {
    background-image: url(images/trash.svg);
}

/* ========== ЛЕГЕНДА ========== */
.yg-legend {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.yg-legend-title {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    margin-bottom: 8px;
}

.yg-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.yg-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
}

.yg-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

.yg-legend-your-time {
    background-color: #1976d2;
}

.yg-legend-other-time {
    background-color: #9e9e9e;
}

.yg-legend-booked-day {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
}

.yg-legend-past-day {
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
}

/* ========== ИТОГИ ========== */
.yg-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: #fff;
}

.yg-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yg-summary-label {
    font-size: 14px;
    opacity: 0.9;
}

.yg-summary-value {
    font-size: 18px;
    font-weight: 700;
}

/* ========== ПЕРЕКЛЮЧАТЕЛЬ ГОДОВ ========== */
.yg-year-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.yg-year-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yg-year-btn-active {
    background: #1976d2;
    color: #fff;
}

.yg-year-btn-active:hover {
    background: #1565c0;
}

.yg-year-btn-disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}

.yg-year-current {
    font-size: 24px;
    font-weight: 700;
    color: #1976d2;
    padding: 0 16px;
    min-width: 80px;
    text-align: center;
}

.yg-year-arrow {
    font-size: 16px;
}

/* ========== ПОДСКАЗКА ========== */
.yg-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #856404;
}

.yg-hint-icon {
    font-size: 16px;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.form-modal-hours {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    z-index: 9999;
    animation: modalSlideIn 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-modal-hours-hide {
    display: none;
}

.form-modal-hours-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 24px;
}

.form-modal-hours-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1a1a1a;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

/* ========== ФОРМА В МОДАЛКЕ ========== */
.yg-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.yg-modal-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yg-modal-row label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.yg-modal-row select {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s;
}

.yg-modal-row select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* ========== ДНИ ПОВТОРЕНИЯ ========== */
.yg-repeat-days-hint {
    font-size: 12px;
    color: #6c757d;
    padding: 8px 0;
}

.yg-repeat-days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.yg-repeat-day {
    display: flex;
    align-items: center;
    gap: 4px;
}

.yg-repeat-day input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.yg-repeat-day label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

/* ========== КНОПКИ ========== */
.yg-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.yg-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.yg-btn-success {
    background: #28a745;
    color: #fff;
}

.yg-btn-success:hover {
    background: #218838;
}

.yg-btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.yg-btn-secondary:hover {
    background: #dee2e6;
}

.yg-btn-danger {
    background: #dc3545;
    color: #fff;
}

.yg-btn-danger:hover {
    background: #c82333;
}

.yg-modal-danger-zone {
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    margin-top: 8px;
}

.yg-modal-danger-zone .yg-btn {
    width: 100%;
}

/* ========== АНИМАЦИЯ ========== */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
    .yg-legend-items {
        flex-direction: column;
        gap: 8px;
    }

    .yg-summary {
        flex-direction: column;
        gap: 12px;
    }

    .yg-year-nav {
        flex-wrap: wrap;
    }

    .yg-year-current {
        width: 100%;
        order: -1;
        margin-bottom: 8px;
    }

    .yg-hint {
        font-size: 12px;
    }

    .yg-repeat-days {
        gap: 6px;
    }

    .yg-repeat-day label {
        font-size: 13px;
    }
}

.year-panel{
    width: 30%;
}
