
:root{
    --bbu-employee-blue:#0674ff;
    --bbu-employee-text:#101828;
    --bbu-employee-muted:#667085;
    --bbu-employee-line:#dfe7f1;
}

.bbu-employees-card{
    width:min(100%,1080px);
    margin:0 auto;
    padding:22px;
    border:1px solid var(--bbu-employee-line);
    border-radius:18px;
    background:#fff;
    color:var(--bbu-employee-text);
    box-shadow:0 8px 28px rgba(16,24,40,.05);
}

.bbu-employees-card *{
    box-sizing:border-box;
    min-width:0;
}

.bbu-employees-head{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
}

.bbu-employees-head h2{
    margin:0;
    font-size:clamp(24px,4vw,34px);
}

.bbu-employees-head p{
    margin:5px 0 0;
    color:var(--bbu-employee-muted);
}

.bbu-employees-head>a{
    display:inline-flex;
    min-height:42px;
    align-items:center;
    justify-content:center;
    padding:8px 12px;
    border:1px solid #d8e3ef;
    border-radius:10px;
    text-decoration:none;
    font-size:12px;
    font-weight:900;
}

.bbu-employee-list{
    display:grid;
    gap:8px;
    margin:20px 0 26px;
}

.bbu-employee-row{
    display:grid;
    grid-template-columns:56px minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    padding:13px;
    border:1px solid #e1eaf5;
    border-radius:14px;
    background:#fbfdff;
}

.bbu-employee-avatar{
    display:block;
    object-fit:cover;
    border-radius:50%;
}

.bbu-employee-avatar-fallback{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eaf3ff;
    color:#0674ff;
    font-size:18px;
    font-weight:950;
}

.bbu-employee-row-title{
    display:flex;
    gap:7px;
    align-items:center;
    flex-wrap:wrap;
}

.bbu-employee-row-title>strong{
    font-size:15px;
}

.bbu-employee-row-title>span{
    padding:4px 7px;
    border-radius:999px;
    background:#f2f4f7;
    color:#667085;
    font-size:9px;
    font-weight:900;
}

.bbu-employee-row-main p,
.bbu-employee-row-main small{
    display:block;
    margin:3px 0 0;
    color:#667085;
    font-size:11px;
}

.bbu-employee-row-actions{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}

.bbu-employee-row-actions a,
.bbu-employee-row-actions button{
    display:inline-flex;
    min-height:38px;
    align-items:center;
    justify-content:center;
    padding:7px 10px;
    border:1px solid #d8e3ef;
    border-radius:9px;
    background:#fff;
    color:#344054;
    text-decoration:none;
    font:inherit;
    font-size:11px;
    font-weight:850;
    cursor:pointer;
}

.bbu-employee-editor>h3{
    margin:0 0 14px;
}

.bbu-employee-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.bbu-employee-full{
    grid-column:1/-1;
}

.bbu-employee-field{
    display:grid;
    gap:6px;
}

.bbu-employee-field>span{
    color:#344054;
    font-size:12px;
    font-weight:850;
}

.bbu-employee-field input,
.bbu-employee-field textarea{
    width:100%;
    max-width:100%;
    min-height:46px;
    padding:10px 12px;
    border:1px solid #d7e2ef;
    border-radius:11px;
    background:#fff;
    font:inherit;
}

.bbu-employee-field input[type="file"]{
    padding:5px;
    overflow:hidden;
}

.bbu-employee-field input[type="file"]::file-selector-button{
    min-height:36px;
    margin-right:10px;
    padding:7px 11px;
    border:0;
    border-radius:8px;
    background:#edf5ff;
    color:#0674ff;
    font-weight:900;
}

.bbu-employee-switch{
    display:flex;
    gap:7px;
    align-items:center;
    align-self:end;
    min-height:46px;
    font-size:12px;
    font-weight:850;
}

.bbu-employee-relations{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin-top:18px;
}

.bbu-employee-relations fieldset{
    display:grid;
    gap:7px;
    margin:0;
    padding:13px;
    border:1px solid #e1eaf5;
    border-radius:13px;
    background:#fbfdff;
}

.bbu-employee-relations legend{
    padding:0 5px;
    color:#344054;
    font-size:12px;
    font-weight:900;
}

.bbu-employee-relations label{
    display:flex;
    gap:8px;
    align-items:flex-start;
    font-size:12px;
}

.bbu-employee-relations label span{
    display:block;
}

.bbu-employee-relations small{
    display:block;
    margin-top:2px;
    color:#667085;
    font-size:9px;
}

.bbu-employee-hours{
    margin-top:24px;
}

.bbu-employee-hours-head h3{
    margin:0;
}

.bbu-employee-hours-head p{
    margin:4px 0 12px;
    color:#667085;
    font-size:11px;
}

.bbu-employee-branch-hours{
    margin-bottom:10px;
    padding:13px;
    border:1px solid #e1eaf5;
    border-radius:13px;
    background:#fbfdff;
}

.bbu-employee-branch-hours h4{
    margin:0 0 9px;
    font-size:13px;
}

.bbu-employee-hours-row{
    display:grid;
    grid-template-columns:70px 120px auto 120px;
    gap:7px;
    align-items:center;
    padding:6px 0;
    border-bottom:1px solid #e9eff6;
}

.bbu-employee-hours-row:last-child{
    border-bottom:0;
}

.bbu-employee-hours-row label{
    display:flex;
    gap:6px;
    align-items:center;
    font-size:11px;
    font-weight:850;
}

.bbu-employee-hours-row input[type="time"]{
    width:100%;
    min-height:40px;
    padding:6px 8px;
    border:1px solid #d7e2ef;
    border-radius:9px;
    background:#fff;
    font:inherit;
}

.bbu-employee-button{
    display:inline-flex;
    min-height:46px;
    align-items:center;
    justify-content:center;
    margin-top:16px;
    padding:10px 15px;
    border:0;
    border-radius:11px;
    background:var(--bbu-employee-blue);
    color:#fff!important;
    text-decoration:none;
    font:inherit;
    font-weight:900;
    cursor:pointer;
}

.bbu-employee-notice{
    margin:16px 0;
    padding:12px 14px;
    border:1px solid #f4c7c3;
    border-radius:11px;
    background:#fff7f6;
    color:#b42318;
    font-size:13px;
}

.bbu-employee-notice.is-success{
    border-color:#b7e3c7;
    background:#f2fbf5;
    color:#08783e;
}

.bbu-employee-empty{
    padding:18px;
    border:1px dashed #cdd9e8;
    border-radius:13px;
    color:#667085;
    text-align:center;
}

@media(max-width:760px){
    .bbu-employees-card{
        width:100%;
        padding:16px;
    }

    .bbu-employee-row{
        grid-template-columns:48px minmax(0,1fr);
    }

    .bbu-employee-row .bbu-employee-avatar{
        width:48px!important;
        height:48px!important;
    }

    .bbu-employee-row-actions{
        grid-column:2;
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .bbu-employee-row-actions a,
    .bbu-employee-row-actions form,
    .bbu-employee-row-actions button{
        width:100%;
    }

    .bbu-employee-grid,
    .bbu-employee-relations{
        grid-template-columns:minmax(0,1fr);
    }

    .bbu-employee-full{
        grid-column:auto;
    }

    .bbu-employee-field input,
    .bbu-employee-field textarea{
        font-size:16px;
    }

    .bbu-employee-hours-row{
        grid-template-columns:60px minmax(0,1fr) auto minmax(0,1fr);
    }
}

@media(max-width:430px){
    .bbu-employees-head{
        flex-direction:column;
    }

    .bbu-employees-head>a,
    .bbu-employee-button{
        width:100%;
    }

    .bbu-employee-row-actions{
        grid-template-columns:minmax(0,1fr);
    }

    .bbu-employee-hours-row{
        grid-template-columns:1fr 1fr;
    }

    .bbu-employee-hours-row label{
        grid-column:1/-1;
    }

    .bbu-employee-hours-row>span{
        display:none;
    }
}
