/* _content/Scheduling/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-piswglonzg] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-piswglonzg] {
    flex: 1;
}

.sidebar[b-piswglonzg] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-piswglonzg] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-piswglonzg]  a, .top-row[b-piswglonzg]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-piswglonzg]  a:hover, .top-row[b-piswglonzg]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-piswglonzg]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-piswglonzg] {
        justify-content: space-between;
    }

    .top-row[b-piswglonzg]  a, .top-row[b-piswglonzg]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-piswglonzg] {
        flex-direction: row;
    }

    .sidebar[b-piswglonzg] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-piswglonzg] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-piswglonzg]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-piswglonzg], article[b-piswglonzg] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-piswglonzg] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-piswglonzg] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/Scheduling/Components/Pages/Home.razor.rz.scp.css */
.top-bar[b-y5fc58g9x6] {
    margin-bottom: 1.2rem;
    background: #fbfbfc;
    padding: 0.7rem 0.5rem;
    border-radius: 10px;
    box-shadow: 0 1px 6px 0 rgba(120,130,190,0.07);
    display: flex;
    justify-content: center;
    align-items: center;
}

.week-controls[b-y5fc58g9x6] {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-nav[b-y5fc58g9x6] {
    border: none;
    background: #e6ebf2;
    color: #2062a1;
    font-size: 1.15rem;
    border-radius: 50%;
    width: 2.1rem;
    height: 2.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s;
}

    .btn-nav:hover[b-y5fc58g9x6] {
        background: #c6dae5;
    }

.admin-link[b-y5fc58g9x6], .login-link[b-y5fc58g9x6], .logout-link[b-y5fc58g9x6] {
    color: #1b6ec2;
    cursor: pointer;
    margin-right: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
}

.week-number[b-y5fc58g9x6] {
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    color: #333;
}

.schedule-container[b-y5fc58g9x6] {
    overflow-x: auto;
    background: #fff;
    border-radius: 10px;
    padding: 1.2rem 0.8rem 0.8rem 0.8rem;
    box-shadow: 0 2px 15px 0 rgba(96,112,169,0.07);
    max-width: 1400px;
    margin: 0 auto;
}

.schedule-table[b-y5fc58g9x6] {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
}

    .schedule-table thead th[b-y5fc58g9x6],
    .schedule-table td[b-y5fc58g9x6] {
        text-align: center;
        vertical-align: middle;
        min-width: 90px;
        /*padding: 0.79rem 0.3rem;*/
    }

.team-name[b-y5fc58g9x6] {
    max-width: 100px;
    font-weight: 600;
    text-align: right !important;
    background: #f8fafc;
    color: #25406b;
    border-right: 2px solid #eaecee;
    padding-right: 1rem;
}

.team-name[b-y5fc58g9x6], .schedule-table th.sticky-left[b-y5fc58g9x6], .schedule-table td.sticky-left[b-y5fc58g9x6] {
    min-width: 90px;
    max-width: 120px;
    width: 120px;
    padding-left: 0.6rem;
    padding-right: 0.3rem;
    /* Optional: truncate long names with ellipsis */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-left[b-y5fc58g9x6] {
    position: sticky;
    left: 0;
    z-index: 5;
    background: #fcfdfe;
}

.sticky-top[b-y5fc58g9x6] {
    position: sticky;
    top: 0;
    z-index: 7;
    background: #f4f7fa;
}

.schedule-table tbody tr:nth-child(odd)[b-y5fc58g9x6] {
    background: #f6fafd;
}

.mandatory-th[b-y5fc58g9x6] {
    border-bottom: 3px solid #FF4B4B !important;
    position: relative;
}

.badge-mandatory[b-y5fc58g9x6] {
    background: #ffdadf;
    color: #cc2222;
    border-radius: 6px;
    padding: 0.12rem 0.3rem;
    font-size: 0.93rem;
    margin-left: 0.22rem;
}

.cell-content[b-y5fc58g9x6] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: stretch;
    min-height: 45px;
    justify-content: center;
}

.status-badge-row[b-y5fc58g9x6] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 1.6rem;
}

.status-badge[b-y5fc58g9x6] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 20px;
    font-size: 0.97rem;
    font-weight: 500;
    padding: 0.18rem 1.2rem;
    margin-bottom: 0.13rem;
    box-shadow: 0 1px 3px 0 rgba(60,60,120,0.08);
}

.badge-home[b-y5fc58g9x6] {
    background: #e3f4fd;
    color: #227aad;
}

.badge-prel[b-y5fc58g9x6] {
    background: #fff8e3;
    color: #b9920c;
}

.badge-office[b-y5fc58g9x6] {
    background: #d7fbe3;
    color: #187e47;
}

.badge-vacation[b-y5fc58g9x6] {
    background: #fff6bf;
    color: #c97800;
}

.badge-sick[b-y5fc58g9x6] {
    background: #ffe0e4;
    color: #b51942;
}

.badge-default[b-y5fc58g9x6] {
    background: #ececec;
    color: #807878;
}

.status-select[b-y5fc58g9x6] {
    width: 80%;
    margin: 0 auto 0.18rem auto; /* auto left and right centers it */
    display: block; /* ensures margin auto works */
    border-radius: 16px;
    padding: 0.23rem 0.7rem;
    font-size: 0.98rem;
    border: 1px solid #dbe6f0;
    background: #fff;
    transition: box-shadow 0.15s;
}

    .status-select:focus[b-y5fc58g9x6] {
        outline: none;
        box-shadow: 0 0 0 2px #b0d3fa;
        border-color: #4a98e4;
    }

.comment-row[b-y5fc58g9x6] {
    display: flex;
    align-items: center;
    gap: 0.23rem;
    margin-top: 0.12rem;
}

.comment-input[b-y5fc58g9x6] {
    flex: 1;
    border-radius: 9px;
    font-size: 0.97rem;
    background: #f9fcfe;
    border: 1px solid #e0e5f3;
    padding: 0.18rem 0.6rem;
}

    .comment-input:focus[b-y5fc58g9x6] {
        outline: none;
        border: 1.5px solid #6ea7db;
        background: #fbfeff;
    }

.btn-save-comment[b-y5fc58g9x6] {
    background: #2ad674;
    color: white;
    border-radius: 9px;
    border: none;
    font-size: 1.09rem;
    padding: 0.13rem 0.8rem 0.13rem 0.8rem;
    cursor: pointer;
    transition: background 0.16s;
}

    .btn-save-comment:hover[b-y5fc58g9x6] {
        background: #24bb64;
    }

.status-edit-wrapper[b-y5fc58g9x6] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    position: relative;
}

.edit-pencil[b-y5fc58g9x6] {
    background: none;
    border: none;
    color: #6772e5;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.16rem 0.4rem;
    outline: none;
    transition: color 0.16s;
    position: absolute;
    top: 5px;
    right: 6px;
}

    .edit-pencil:hover[b-y5fc58g9x6] {
        color: #4b5fc7;
        background: #e9edf9;
        border-radius: 15px;
    }

@media (max-width: 900px) {
    .schedule-container[b-y5fc58g9x6] {
        padding: 0.4rem 0.2rem;
    }

    .schedule-table[b-y5fc58g9x6] {
        min-width: 560px;
    }

    .week-controls[b-y5fc58g9x6] {
        flex-direction: column;
        gap: 0.6rem;
    }
}

@media (max-width: 650px) {
    .schedule-table[b-y5fc58g9x6] {
        font-size: 0.85rem;
        min-width: 390px;
    }

    .team-name[b-y5fc58g9x6] {
        min-width: 80px;
        padding-left: 0.4rem;
    }

    .cell-content[b-y5fc58g9x6] {
        min-height: 47px;
    }
}
