/* Plan 125: CSS toi gian cho dialog remote_ui hien tren TopLayerClass (weblib/nctjs/src/top_layer.js).
   TopLayerClass chi bat/tat class "active" - CSS phai tu lo/an theo class nay. */

.toplayer {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}

.toplayer.active {
    display: flex;
}

.toplayer > .container {
    background: #fff;
    color: #222;
    min-width: 240px;
    max-width: 90vw;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.toplayer > .container > .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.toplayer > .container > .head .btn-close {
    cursor: pointer;
    padding: 0 4px;
}

.toplayer > .container > .content {
    padding: 16px;
}

.toplayer > .container > .foot {
    padding: 8px 12px;
    text-align: right;
    border-top: 1px solid #ddd;
}

.nc-remoteui-dialog {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nc-remoteui-dialog button {
    align-self: flex-end;
    padding: 6px 16px;
}
