/* Nepriskirtų darbų konteineris */
.events-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.events-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.events-list-header h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.events-list {
    clear: both;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 12px 4px;
    align-items: stretch;
    scroll-behavior: smooth;
    position: relative;
}

/* Custom scrollbar */
.events-list::-webkit-scrollbar {
    height: 7px;
}
.events-list::-webkit-scrollbar-track {
    background: #edf2f7;
    border-radius: 4px;
}
.events-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.events-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Kortelių stilius */
.my-event {
    background-color: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 6px;
    color: #2c3e50;
    font-size: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    overflow: hidden;
    height: auto;
    width: 100%;
}

.events-list .my-event {
    flex: 0 0 240px;
    min-width: 240px;
    width: 240px;
    min-height: 110px;
    cursor: grab;
}

.events-list .my-event:hover {
    border-color: #3c8dbc;
    box-shadow: 0 4px 12px rgba(60, 141, 188, 0.18);
    transform: translateY(-2px);
}

.events-list .my-event:active {
    cursor: grabbing;
}

/* Kortelės viršutinė dalis / antraštė */
.my-event .card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px 5px 10px;
    border-bottom: 1px solid #f1f5f9;
    background-color: #f8fafc;
}

.my-event .event-task-no {
    font-weight: 700;
    font-size: 12px;
    color: #1e293b;
}

.my-event .btn-view {
    padding: 2px 7px;
    font-size: 11px;
    line-height: 1.3;
    border-radius: 3px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.my-event .btn-view:hover {
    background: #3c8dbc;
    border-color: #367fa9;
    color: #ffffff;
}

/* Kortelės turinys */
.my-event .details {
    padding: 7px 10px 8px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.my-event .details .event-address {
    font-weight: 600;
    font-size: 12px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.my-event .details .event-address i {
    color: #e53e3e;
    margin-right: 4px;
}

.my-event .details .event-worker {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.my-event .details .event-worker i {
    color: #94a3b8;
    margin-right: 4px;
}

/* Būsenų juostelė apačioje */
.my-event .statuses {
    display: flex;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
}

.my-event .statuses > div {
    flex: 1;
    text-align: center;
    padding: 4px 2px;
    font-size: 10px;
    font-weight: 600;
    color: #111111;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.my-event .statuses > div:last-child {
    border-right: none;
}

/* Kalendoriaus įvykių papildomi stiliai */
.fc-event {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.fc-event .my-event {
    height: 100%;
    width: 100%;
    min-height: 45px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

.fc-event .my-event .card-header-row {
    padding: 2px 6px;
    font-size: 11px;
}

.fc-event .my-event .details {
    padding: 3px 6px;
}

.fc-event .my-event .statuses > div {
    padding: 2px 1px;
    font-size: 9px;
}

.fc-timegrid-slot {
    height: 45px !important;
}

.select2-results__option .select2-colored {
    display: block;
    width: 100%;
    padding: 6px;
}
.select2-results__option{
    padding:0px;
}

/* pasirinktas variantas */
.select2-container--default .select2-selection--single {
    padding: 0px;
    overflow:auto;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
}

.select2-selection__rendered .select2-colored {
    display: block;
    height: 100%;
    padding: 6px;
}
