#content {
    min-width: 100vw !important;
    min-height: 100vh !important;
}

#main {
    min-height: 100vh !important;
}

/*.record {*/
/*    min-height: 100vh !important;*/
/*}*/

.record-grid {
    min-width: 100% !important;
}

.doctor-board-layout {
    display: flex;
    height: 100%;
}

.doctor-sidebar {
    width: 280px;
    border-right: 1px solid #ddd;
    padding: 10px;
    overflow-y: auto;
}

.sidebar-block {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 6px;
}

.sidebar-block-header {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    cursor: pointer;
    background: #f5f5f5;
}

.sidebar-block-body {
    padding: 10px;
}

.sidebar-block.collapsed .sidebar-block-body {
    display: none;
}

.doctor-board {
    flex: 1;
    padding: 10px;
}

.user-list label {
    display: block;
    margin-bottom: 5px;
}

.mini-calendar {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}


.mini-calendar .fc-toolbar {
    padding: 8px 12px;
    background: #f8f9fa;
}

.mini-calendar .fc-toolbar-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.mini-calendar .fc-button {
    display: none !important;
}


.mini-calendar .fc {
    font-size: 12px;
}

.mini-calendar .fc-col-header-cell {
    padding: 6px 0;
    font-weight: 500;
    color: #666;
}


.mini-calendar .fc-daygrid-day {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.mini-calendar .fc-daygrid-day:hover {
    background-color: #f5f5f5;
}

.mini-calendar .fc-daygrid-day-frame {
    min-height: auto !important;
    padding: 4px;
}

.mini-calendar .fc-daygrid-day-top {
    justify-content: center;
}

.mini-calendar .fc-daygrid-day-number {
    float: none;
    margin: 0 auto;
    padding: 4px 6px;
    font-size: 12px;
}


.mini-calendar .fc-daygrid-day-events {
    display: none !important;
}

.mini-calendar .fc-event {
    display: none !important;
}


.mini-calendar .fc-daygrid-day.selected-day {
    background-color: #e3f2fd !important;
}

.mini-calendar .fc-daygrid-day.selected-day .fc-daygrid-day-number {
    background-color: #2196F3;
    color: white;
    border-radius: 50%;
    font-weight: bold;
}


.mini-calendar .fc-daygrid-day.fc-day-other {
    background-color: #fafafa;
}

.mini-calendar .fc-daygrid-day.fc-day-other .fc-daygrid-day-number {
    color: #999;
}

.mini-calendar .fc-daygrid-day.fc-day-today {
    background-color: #fff3cd !important;
}

.mini-calendar .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: #856404;
}

.mini-calendar .fc-daygrid-day.fc-day-today.selected-day .fc-daygrid-day-number {
    background-color: #2196F3;
    color: white;
}


.mini-calendar .fc-daygrid-day.fc-day-sun,
.mini-calendar .fc-daygrid-day.fc-day-sat {
    background-color: #f5f5f5;
}

@media (max-width: 576px) {
    .mini-calendar .fc {
        font-size: 11px;
    }

    .mini-calendar .fc-toolbar-title {
        font-size: 12px;
    }

    .mini-calendar .fc-daygrid-day-number {
        font-size: 11px;
        padding: 2px 4px;
    }
}

.toggle-btn {
    background: #afd8b7 !important;
    border-color: #85d896 !important;
    border-radius: 6px;
}

.jump-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.jump-section .label {
    width: 40%;
    font-size: 13px;
    color: #666;
}

.jump-section .btn-group {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    width: 60%;
}

.jump-section .btn {
    border: none;
    background: transparent;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 33%;

}

.jump-section .btn:hover {
    background: #90b9ec;
}


.e-tooltip-wrap.e-lib.e-popup {
    background-color: rgba(33, 37, 41, 0.95) !important;
    border: none !important;

    border-radius: 14px !important;
    overflow: hidden !important;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    min-height: auto !important;
}

.e-tooltip-wrap .e-tip-content {
    color: #fff !important;
    width: 500px;
    font-size: 16px !important;
    font-weight: 300 !important;
    padding: 6px 12px !important;
    line-height: 1.4 !important;
    border-radius: 14px !important;
}

.e-tooltip-wrap .e-arrow-tip-outer.e-tip-top {
    border-bottom-color: rgba(33, 37, 41, 0.95) !important;
}

.e-tooltip-wrap .e-arrow-tip-outer.e-tip-bottom {
    border-top-color: rgba(33, 37, 41, 0.95) !important;
}

.event-icon {
    transition: transform 0.2s ease;
    display: inline-block;
    margin-right: 4px;
}

.event-icon:hover {
    transform: scale(1.2);
}


.e-schedule .e-header-cells {
    text-align: center !important;
    padding: 8px 4px !important;
}

.e-schedule .custom-date-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
}

.e-schedule .header-day {
    font-size: 18px;
    font-weight: 500;
    color: #666;
    text-transform: capitalize;
}

.e-schedule .header-date {
    font-size: 22px;
    font-weight: 600;
    color: #666;
}

.e-schedule .header-month {
    font-size: 18px;
    color: #666;
    font-weight: 300;
    text-transform: capitalize;
}

.e-schedule .e-header-cells.e-current-day {
    background-color: #f0f7ff !important;
}

.e-schedule .e-header-cells.e-current-day .header-date {
    color: #fff;
    background-color: rgba(117, 154, 191, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    display: inline-block;
}


[data-el="mainCalendarBody"] {
    min-height: 750px;
    width: 100%;
    display: block;
    overflow: visible;
    position: relative;
}

.e-schedule {
    font-family: inherit;
    background: #fff;
    border-radius: 4px;
}


.e-schedule .e-schedule-header,
.e-schedule .e-toolbar {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.e-schedule .e-header-cells {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 600 !important;
    padding: 10px 0 !important;
}

.e-schedule .e-header-cells.e-current-day {
    background-color: #eef6ff !important;
    color: #007bff !important;
}


.e-schedule .e-time-cells-wrap table td {
    color: #6c757d !important;
    font-size: 11px !important;
    border-color: #f1f3f5 !important;
}


.e-schedule .e-appointment {
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    padding: 2px 6px !important;
    font-size: 12px !important;
    border: none !important;
    cursor: pointer !important;
    color: #fff !important;

    transition: transform 0.1s ease-out, box-shadow 0.2s !important;
}

.e-schedule .e-appointment:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    filter: brightness(0.95);
}


.e-schedule .e-drag-clone {
    opacity: 0.8 !important;
    z-index: 10000 !important;
    pointer-events: none !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
    transition: none !important;
}

.e-schedule.e-event-action,
.e-schedule.e-event-action .e-work-cells {
    cursor: grabbing !important;
}

.e-schedule .e-event-resize-wrapper {
    transition: none !important;
}

.e-schedule .e-resource-cells {
    background-color: #fbfcfd !important;
    font-weight: 600 !important;
    color: #343a40 !important;
    border-right: 1px solid #dee2e6 !important;
}

.e-schedule .e-resource-text {
    padding-left: 10px !important;
}

.e-schedule .e-current-time-indicator {
    background-color: #ff4d4f !important;
    height: 2px !important;
}

.e-schedule .e-quick-popup-wrapper,
.e-schedule .e-add-icon {
    display: none !important;
}

body.dark-theme .e-schedule {
    background-color: #2b2b2b;
    color: #e0e0e0;
}

body.dark-theme .e-schedule .e-work-cells {
    background-color: #323232 !important;
    border-color: #444 !important;
}

body.dark-theme .e-schedule .e-header-cells {
    background-color: #3c3c3c !important;
    color: #ddd !important;
}

@media (max-width: 768px) {
    [data-el="mainCalendarBody"] {
        min-height: 500px;
    }

    .e-schedule .e-time-cells-wrap table td {
        font-size: 10px !important;
        padding: 0 4px !important;
    }
}

@media print {
    .e-schedule .e-toolbar {
        display: none !important;
    }

    [data-el="mainCalendarBody"] {
        height: auto !important;
    }
}
