
.schedule-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
    border: 1px solid #d8e1ea;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.schedule-panel__header {
    padding: 1.25rem 1.25rem 0;
}

.schedule-panel__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #17324d;
}

.schedule-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.schedule-toolbar__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.schedule-toolbar__nav--prev {
    justify-content: flex-start;
}

.schedule-toolbar__nav--next {
    justify-content: flex-end;
}

.schedule-toolbar__center {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.schedule-toolbar__filter {
    min-width: 0;
}

.schedule-table-wrap {
    padding: 0 1rem 1rem;
    overflow-x: auto;
}

.schedule-table {
    margin-bottom: 0;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.schedule-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #18208f;
    color: #fff;
    border: 0;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.9rem 0.75rem;
    white-space: nowrap;
}

.schedule-table tbody tr:nth-child(even) {
    background: rgba(23, 50, 77, 0.03);
}

.schedule-table td {
    vertical-align: top;
    padding: 0.85rem 0.7rem;
    border-color: #dbe3ec;
    min-width: 150px;
}

/* Rounded corners */
.schedule-table tr:first-child th:first-child { border-top-left-radius: 20px; }
.schedule-table tr:first-child th:last-child  { border-top-right-radius: 20px; }
.schedule-table tr:last-child td:first-child  { border-bottom-left-radius: 20px; }
.schedule-table tr:last-child td:last-child   { border-bottom-right-radius: 20px; }

.schedule-tech-cell {
    min-width: 170px;
    font-weight: 700;
    color: #17324d;
    background: #f7fafc;
}

.schedule-day-cell {
    background: rgba(255, 255, 255, 0.86);
}

.schedule-day-cell--empty {
    /* background-image: linear-gradient(135deg, rgba(23, 50, 77, 0.03) 25%, transparent 25%, transparent 50%, rgba(23, 50, 77, 0.03) 50%, rgba(23, 50, 77, 0.03) 75%, transparent 75%, transparent); */
    background-size: 12px 12px;
}

.schedule-entry {
    margin-bottom: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border-left: 4px solid #17324d;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.schedule-entry:last-child {
    margin-bottom: 0;
}

.schedule-entry--task {
    border-left-color: #2c5eff;
    background: #eef3ff;
}

.schedule-entry--job {
    border-left-color: #00446b;
    background: #ebedfb;
}

.schedule-entry--project {
    border-left-color: #c77700;
    background: #fff6e7;
}

.schedule-entry--leave {
    border-left-color: #d9534f;
    background: #fff0f0;
}

.schedule-entry__title {
    /* display: block; */
    font-weight: 700;
    /* line-height: 1.35; */
    text-decoration: none;
}

.schedule-entry__meta {
    display: inline-block;
    margin-bottom: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.schedule-entry__desc {
    display: block;
    /* margin-top: 0.2rem; */
    font-size: 0.78rem;
    color: #32475c;
    /* line-height: 1.35; */
}

.schedule-empty {
    display: inline-block;
    font-size: 0.78rem;
    color: #7c8a9a;
    font-style: italic;
}

@media (max-width: 767.98px) {
    .schedule-toolbar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.75rem;
        align-items: start;
    }

    .schedule-toolbar__nav {
        width: auto;
    }

    .schedule-toolbar__nav--prev {
        grid-column: 1;
        grid-row: 1;
    }

    .schedule-toolbar__nav--next {
        grid-column: 3;
        grid-row: 1;
    }

    .schedule-toolbar__center {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }

    .schedule-toolbar__filter {
        width: 100%;
        min-width: 0;
    }

    .schedule-toolbar__center .btn {
        width: 100%;
        max-width: 220px;
    }

    .schedule-toolbar__center .schedule-toolbar__filter {
        width: min(100%, 320px);
    }
}