/**
 * FAZA K — javni stilovi za nove CPT rasporede.
 *
 * Opseg: raspored_ispita i raspored_dezurstava.
 * Ne koristi postojeće LOCK klase iz css/raspored.css.
 */

.etsk-k-schedule {
    background: var(--etsk-color-surface, #f7f8fb);
    color: var(--etsk-color-text, #1f2933);
}

.etsk-k-schedule-container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.etsk-k-schedule-header {
    padding: 48px 0 28px;
    background: linear-gradient(135deg, #12355b, #1f5f8b);
    color: #fff;
}

.etsk-k-schedule-header h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    color: #fff;
}

.etsk-k-schedule-header p {
    max-width: 760px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
}

.etsk-k-schedule-kicker {
    margin: 0 0 10px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.etsk-k-schedule-content {
    padding: 32px 0 56px;
}

.etsk-k-schedule-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.etsk-k-schedule-filters label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.etsk-k-schedule-filters span {
    font-size: 0.875rem;
    font-weight: 700;
}

.etsk-k-schedule-filters input,
.etsk-k-schedule-filters select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 12px;
    padding: 8px 12px;
    background: #fff;
    color: inherit;
}

.etsk-k-schedule-filters button {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 10px 18px;
    background: #12355b;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.etsk-k-schedule-filters button:hover,
.etsk-k-schedule-filters button:focus-visible {
    background: #0f2d4e;
}

.etsk-k-schedule-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.etsk-k-schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
    margin: 0;
}

.etsk-k-schedule-table th,
.etsk-k-schedule-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
    vertical-align: top;
}

.etsk-k-schedule-table th {
    background: #edf3f8;
    color: #12355b;
    font-size: 0.875rem;
    font-weight: 800;
    white-space: nowrap;
}

.etsk-k-schedule-table td {
    font-size: 0.95rem;
    line-height: 1.5;
}

.etsk-k-schedule-table tr:last-child td {
    border-bottom: 0;
}

.etsk-k-schedule-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f1fb;
    color: #12355b;
    font-size: 0.82rem;
    font-weight: 800;
}

.etsk-k-schedule-status--canceled { background: #fee2e2; color: #991b1b; }
.etsk-k-schedule-status--changed { background: #ffedd5; color: #9a3412; }
.etsk-k-schedule-status--planned { background: #e5e7eb; color: #374151; }

.etsk-k-schedule-note-row td {
    background: #fbfcfe;
    color: #4b5563;
    font-style: italic;
}

.etsk-k-schedule-empty {
    padding: 24px;
    border: 1px dashed rgba(15, 23, 42, 0.22);
    border-radius: 18px;
    background: #fff;
    color: #4b5563;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 900px) {
    .etsk-k-schedule-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .etsk-k-schedule-header {
        padding: 36px 0 24px;
    }

    .etsk-k-schedule-content {
        padding-top: 24px;
    }

    .etsk-k-schedule-filters {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .etsk-k-schedule-table {
        min-width: 0;
    }

    .etsk-k-schedule-table thead {
        display: none;
    }

    .etsk-k-schedule-table,
    .etsk-k-schedule-table tbody,
    .etsk-k-schedule-table tr,
    .etsk-k-schedule-table td {
        display: block;
        width: 100%;
    }

    .etsk-k-schedule-table tr {
        padding: 12px 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    }

    .etsk-k-schedule-table td {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 12px;
        border-bottom: 0;
        padding: 8px 14px;
    }

    .etsk-k-schedule-table td::before {
        content: attr(data-label);
        color: #12355b;
        font-weight: 800;
    }

    .etsk-k-schedule-note-row td {
        display: block;
        padding: 12px 14px;
    }

    .etsk-k-schedule-note-row td::before {
        content: none;
    }
}
