.modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.4);

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:1000;

}


.modal.hidden{

    display:none;

}


.modal-content{

    background:white;

    width:500px;

    max-width:90%;

    padding:25px;

    border-radius:12px;

}

.confirm-modal{

    width:400px;

}

.modal-content:has(.bulk-transition-modal){

    width:760px;

    max-width:92vw;

}


.confirm-actions{

    display:flex;

    justify-content:flex-end;

    gap:10px;

}


.danger{

    background:#d32f2f;

    color:white;

}

.modal-hint{

    color:#6b7280;

    font-size:13px;

    margin-bottom:12px;

}

.modal-content:has(.user-create-modal){

    width:640px;

}

.user-create-modal{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.user-create-modal label{

    font-size:13px;

    font-weight:600;

    color:#374151;

    margin-top:4px;

}

.user-create-modal input,
.user-create-modal select{

    width:100%;

    padding:12px 14px;

    font-size:15px;

    border:1px solid #ddd;

    border-radius:8px;

    box-sizing:border-box;

}

.modal-loading{

    display:flex;

    align-items:center;

    gap:10px;

    padding:10px 0;

    color:#374151;

    font-size:14px;

}

.spinner{

    width:16px;

    height:16px;

    border:2px solid #ddd;

    border-top-color:#2563eb;

    border-radius:50%;

    animation:spin .7s linear infinite;

    flex-shrink:0;

}

@keyframes spin{

    to{ transform:rotate(360deg); }

}

.searchable-select{

    position:relative;

}

.searchable-select-search{

    width:100%;

    box-sizing:border-box;

}

.searchable-select-list{

    position:absolute;

    top:calc(100% + 4px);

    left:0;

    right:0;

    max-height:220px;

    overflow-y:auto;

    background:white;

    border:1px solid #ddd;

    border-radius:8px;

    box-shadow:0 4px 12px rgba(0,0,0,.1);

    z-index:20;

}

.searchable-select-option{

    padding:8px 12px;

    font-size:14px;

    cursor:pointer;

}

.searchable-select-option:hover{

    background:#f3f4f6;

}

.searchable-select-option-sublabel{

    font-size:12px;

    color:#9ca3af;

    margin-top:2px;

}

.searchable-select-empty{

    padding:8px 12px;

    font-size:13px;

    color:#9ca3af;

}