

/* Start:/bitrix/templates/dn2020/components/bitrix/news.list/dairyevents2025/style.css?176191605611391*/
/* ============================================
   КАЛЕНДАРЬ СОБЫТИЙ DAIRYEVENTS 2025
   Сдержанная цветовая гамма
   ============================================ */

.dairy-calendar-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

/* === ШАПКА КАЛЕНДАРЯ === */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: white;
    border-bottom: 3px solid #1f2937;
}

.calendar-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    flex: 1;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.calendar-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

/* === ТАБЛИЦА КАЛЕНДАРЯ === */
.calendar-table-wrapper {
    overflow-x: auto;
    padding: 0;
}

.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

/* === ЗАГОЛОВКИ ДНЕЙ НЕДЕЛИ === */
.calendar-weekdays th {
    padding: 14px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f9fafb;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.calendar-weekdays th.weekend {
    color: #9ca3af;
    background: #f3f4f6;
}

/* === ЯЧЕЙКИ ДНЕЙ === */
.calendar-day {
    height: 90px;
    vertical-align: top;
    padding: 0;
    border: 1px solid #e5e7eb;
    background: #fff;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.calendar-day.empty {
    background: #fafafa;
    cursor: default;
    pointer-events: none;
}

.calendar-day:not(.empty):hover {
    background: #f9fafb;
    border-color: #9ca3af;
    z-index: 2;
}

.calendar-day.selected {
    background: #eff6ff !important;
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.calendar-day.past:not(.today) {
    background: #fafafa;
    opacity: 0.6;
}

.day-content {
    padding: 8px 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* === НОМЕР ДНЯ === */
.day-number {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
    line-height: 1;
}

.calendar-day.weekend .day-number {
    color: #6b7280;
}

.calendar-day.past .day-number {
    color: #9ca3af;
}

/* === СЕГОДНЯШНИЙ ДЕНЬ === */
.calendar-day.today {
    background: #fef3c7 !important;
    border: 2px solid #f59e0b !important;
}

.calendar-day.today .day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

/* === ИНДИКАТОР СОБЫТИЙ === */
.event-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    display: block;
}

/* === ПОЛОСЫ СОБЫТИЙ === */
.calendar-event-bars-row {
    height: auto;
}

.event-bars-container {
    padding: 4px 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.event-bars-wrapper {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 0 1px;
    grid-auto-rows: minmax(28px, auto);
}

.event-bar {
    margin: 2px 0;
    z-index: 1;
}

.event-bar-content {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    color: #1e40af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

.event-bar-content:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
    z-index: 10;
}

.event-bar-content.continues-left {
    border-left: 2px dashed #60a5fa;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-left: 6px;
}

.event-bar-content.continues-right {
    border-right: 2px dashed #60a5fa;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding-right: 6px;
}

.event-bar-content a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
}

.event-bar-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === ВЫБРАННЫЙ ДЕНЬ === */
.selected-day-events {
    margin-top: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.selected-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.selected-day-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.close-day-events {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s;
    border-radius: 4px;
}

.close-day-events:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* === КАРТОЧКИ СОБЫТИЙ === */
.events-list {
    display: grid;
    gap: 15px;
}

.event-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #3b82f6;
}

.event-card-header {
    padding: 15px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.event-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.event-card-title a {
    color: #1f2937;
    text-decoration: none;
}

.event-card-title a:hover {
    color: #3b82f6;
}

.multi-day-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.event-card-body {
    padding: 15px 20px;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.date-icon {
    flex-shrink: 0;
}

.event-location {
    margin-top: 10px;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 6px;
}

.location-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.location-item strong {
    color: #1f2937;
}

.event-card-footer {
    padding: 12px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.event-card-footer .btn {
    font-size: 13px;
}

/* === ФУТЕР КАЛЕНДАРЯ === */
.calendar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.legend-marker {
    display: block;
    width: 20px;
    height: 20px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-marker.today {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.legend-marker.has-event {
    background: #fff;
    border: 1px solid #d1d5db;
    position: relative;
}

.legend-marker.has-event::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
}

.legend-marker.event-bar-sample {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
}

.calendar-stats {
    font-size: 13px;
    color: #6b7280;
}

.calendar-stats strong {
    color: #1f2937;
    font-weight: 600;
}

/* === АДАПТИВНОСТЬ === */

@media (max-width: 992px) {
    .calendar-day {
        height: 80px;
    }
    
    .day-content {
        padding: 6px 8px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .event-bar-content {
        font-size: 11px;
        padding: 3px 6px;
    }
}

@media (max-width: 768px) {
    .calendar-header {
        padding: 15px;
    }
    
    .calendar-title {
        font-size: 18px;
    }
    
    .calendar-nav-btn {
        width: 34px;
        height: 34px;
    }
    
    .calendar-day {
        height: 70px;
    }
    
    .day-number {
        font-size: 13px;
    }
    
    .calendar-weekdays th {
        padding: 10px 4px;
        font-size: 11px;
    }
    
    .event-bar-content {
        font-size: 10px;
    }
    
    .selected-day-events {
        padding: 20px 15px;
    }
    
    .calendar-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .calendar-day {
        height: 60px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .indicator-dot {
        width: 5px;
        height: 5px;
    }
    
    .event-bars-wrapper {
        display: none; /* Скрываем полосы на маленьких экранах */
    }
    
    .calendar-day.today .day-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* === ПЕЧАТЬ === */
@media print {
    .calendar-header {
        background: white;
        color: black;
        border-bottom: 2px solid #333;
    }
    
    .calendar-nav-btn,
    .close-day-events {
        display: none;
    }
    
    .event-bar-content {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}
/* End */


/* Start:/bitrix/templates/dn2020/components/bitrix/system.pagenavigation/bootstrap_v4/style.min.css?1591391036272*/
.page-link,.page-link:hover{color:var(--theme-color-primary)}.page-item.active .page-link{color:var(--theme-b-tx-primary);background-color:var(--theme-color-primary);border-color:var(--theme-color-primary)}.page-link:focus{box-shadow:0 0 0 .2rem var(--theme-b-sd-primary)}
/* End */


/* Start:/bitrix/templates/dn2020/components/bitrix/news.list/dairyevents2020/style.css?176198801910329*/
/* ============================================
   СПИСОК СОБЫТИЙ DAIRYEVENTS
   Сдержанная цветовая гамма
   ============================================ */

.dairy-events-list-wrapper {
    margin-bottom: 30px;
}

/* === ЗАГОЛОВОК МЕСЯЦА === */
.events-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    margin-top: 30px;
    border-bottom: 3px solid #1f2937;
}

.events-month-header:first-child {
    margin-top: 0;
}

.events-month-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.events-month-count {
    font-size: 14px;
    color: #d1d5db;
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

/* === СПИСОК СОБЫТИЙ === */
.events-list {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* === ЭЛЕМЕНТ СОБЫТИЯ === */
.event-list-item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 25px;
    padding: 25px;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
}

.event-list-item:last-child {
    border-bottom: none;
}

.event-list-item:hover {
    background: #f9fafb;
}

.event-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #d1d5db;
    transition: all 0.2s ease;
}

.event-list-item.today::before {
    background: #f59e0b;
}

.event-list-item.soon::before {
    background: #3b82f6;
}

.event-list-item.past {
    opacity: 0.6;
}

.event-list-item.past::before {
    background: #9ca3af;
}

/* === БЛОК ДАТЫ === */
.event-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.date-badge {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    min-width: 90px;
    transition: all 0.2s ease;
}

.event-list-item.today .date-badge {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.event-list-item.soon .date-badge {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.date-day {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.date-month {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.date-weekday {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.multi-day-indicator {
    color: #3b82f6;
    margin-top: 4px;
}

/* === ОСНОВНАЯ ИНФОРМАЦИЯ === */
.event-main-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-header-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.event-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    min-width: 250px;
}

.event-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-title a:hover {
    color: #3b82f6;
}

/* === БЕЙДЖИ === */
.event-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.event-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

.today-badge {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.soon-badge {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.multiday-badge {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

/* === ДЕТАЛИ СОБЫТИЯ === */
.event-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.detail-icon {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.7;
}

.detail-text {
    flex: 1;
}

.location-line {
    margin-bottom: 4px;
}

.location-line:last-child {
    margin-bottom: 0;
}

.location-line strong {
    color: #374151;
}

.location-desc {
    display: block;
    color: #9ca3af;
    font-size: 13px;
    margin-top: 2px;
}

/* === ДЕЙСТВИЯ === */
.event-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    min-width: 200px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.action-buttons .btn {
    white-space: nowrap;
    justify-content: center;
}

.calendar-actions {
    width: 100%;
}

.calendar-actions .dropdown {
    width: 100%;
}

.calendar-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    padding: 6px 12px;
}

.calendar-actions .btn:hover {
    color: #1f2937;
    background: #f3f4f6;
}

.dropdown-menu {
    min-width: 100%;
}

.dropdown-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 8px 16px;
}

.dropdown-item svg {
    flex-shrink: 0;
}

/* === КНОПКИ === */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-outline-secondary {
    border: 1px solid #d1d5db;
    color: #4b5563;
    background: white;
}

.btn-outline-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #1f2937;
}

/* === ПУСТОЕ СОСТОЯНИЕ === */
.events-empty-state {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.empty-icon {
    color: #d1d5db;
    margin-bottom: 20px;
}

.events-empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.events-empty-state p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* === ПАГИНАЦИЯ === */
.events-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* === АДАПТИВНОСТЬ === */

/* Планшеты */
@media (max-width: 992px) {
    .event-list-item {
        grid-template-columns: 120px 1fr;
        gap: 20px;
    }
    
    .event-actions {
        grid-column: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: row;
        width: auto;
    }
    
    .calendar-actions {
        width: auto;
    }
    
    .calendar-actions .dropdown {
        width: auto;
    }
    
    .calendar-actions .btn {
        width: auto;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .events-month-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 15px 20px;
    }
    
    .events-month-title {
        font-size: 18px;
    }
    
    .event-list-item {
        grid-template-columns: 100px 1fr;
        gap: 15px;
        padding: 20px 15px;
    }
    
    .date-badge {
        min-width: 70px;
        padding: 10px 12px;
    }
    
    .date-day {
        font-size: 26px;
    }
    
    .date-month {
        font-size: 11px;
    }
    
    .event-title {
        font-size: 16px;
        min-width: auto;
    }
    
    .event-badges {
        width: 100%;
    }
    
    .event-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .calendar-actions {
        width: 100%;
    }
    
    .calendar-actions .btn {
        width: 100%;
    }
}

/* Очень маленькие экраны */
@media (max-width: 576px) {
    .event-list-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
        padding: 15px 12px;
    }
    
    .date-badge {
        min-width: 60px;
        padding: 8px 10px;
    }
    
    .date-day {
        font-size: 22px;
    }
    
    .date-month {
        font-size: 10px;
    }
    
    .date-weekday {
        font-size: 10px;
    }
    
    .event-title {
        font-size: 15px;
    }
    
    .event-detail-item {
        font-size: 13px;
    }
    
    .detail-icon {
        width: 16px;
        height: 16px;
    }
    
    .action-buttons .btn,
    .calendar-actions .btn {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .events-empty-state {
        padding: 60px 20px;
    }
    
    .empty-icon {
        width: 48px;
        height: 48px;
    }
}

/* === ПЕЧАТЬ === */
@media print {
    .events-month-header {
        background: white;
        color: black;
        border-bottom: 2px solid #333;
    }
    
    .event-actions,
    .calendar-actions {
        display: none;
    }
    
    .event-list-item {
        page-break-inside: avoid;
    }
}
/* End */


/* Start:/bitrix/templates/dn2020/components/bitrix/news.list/right_side_dia2020/style.css?1609277002150*/
div.news-list
{
	word-wrap: break-word;
}
div.news-list img.preview_picture
{
	float:left;
	margin:0 4px 6px 0;
}
.news-date-time {
	color:#486DAA;
}

/* End */
/* /bitrix/templates/dn2020/components/bitrix/news.list/dairyevents2025/style.css?176191605611391 */
/* /bitrix/templates/dn2020/components/bitrix/system.pagenavigation/bootstrap_v4/style.min.css?1591391036272 */
/* /bitrix/templates/dn2020/components/bitrix/news.list/dairyevents2020/style.css?176198801910329 */
/* /bitrix/templates/dn2020/components/bitrix/news.list/right_side_dia2020/style.css?1609277002150 */
