.dbm-container{
    width:100%;
}
.dbm-search-wrapper{
    display:grid;
    grid-template-columns:repeat(4, minmax(180px, 1fr));
    gap:20px;
    margin:25px 0 20px;
}

.dbm-search-item{
    display:flex;
    flex-direction:column;
}

.dbm-search-item label{
    font-size:15px;
    font-weight:600;
    color:#333;
    margin-bottom:8px;
    line-height:1.4;
}

.dbm-search-item input{
    width:100%;
    height:46px;
    padding:10px 14px;
    border:1px solid #dcdcdc;
    border-radius:6px;
    box-sizing:border-box;
    font-size:15px;
    transition:.2s;
}

.dbm-search-item input:focus{
    border-color:#2271b1;
    outline:none;
    box-shadow:0 0 0 3px rgba(34,113,177,.15);
}

.dbm-search-btns{
    display:flex;
    gap:15px;
    margin-bottom:30px;
}

.dbm-search-btns button{
    min-width:160px;
    height:46px;
    padding:0 20px;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-size:15px;
    font-weight:600;
    transition:.2s;
}

#dbm-search-btn{
    background:#2271b1;
    color:#fff;
}

#dbm-search-btn:hover{
    background:#135e96;
}

#dbm-reset-btn{
    background:#6c757d;
    color:#fff;
}

#dbm-reset-btn:hover{
    background:#565e64;
}
.dbm-table-wrapper{
    overflow-x:auto;
}
.dbm-table{
    width:100%;
    border-collapse:collapse;
}
.dbm-table th,
.dbm-table td{
    border:1px solid #ddd;
    padding:10px;
    vertical-align:top;
}
.dbm-table th{
    white-space:nowrap;
}
#dbm-pagination{
    margin-top:25px;
}
.dbm-container{
    position:relative;
}
.dbm-loading{
    display:none;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(255,255,255,.75);
    z-index:999;
}
.dbm-spinner{
    position:absolute;
    left:50%;
    top:50%;
    width:45px;
    height:45px;
    margin-left:-22px;
    margin-top:-22px;
    border:4px solid #ddd;
    border-top:4px solid #2271b1;
    border-radius:50%;
    animation:dbm-spin .7s linear infinite;
}
@keyframes dbm-spin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}
#dbm-reset-btn{
    margin-left:10px;
    cursor:pointer;
}
.dbm-top-bar{
    margin-bottom:20px;
}
.dbm-btn-primary{
    padding:10px 18px;
    cursor:pointer;
}
#dbm-building-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    z-index:999999;
}
.dbm-modal-box{
    width:900px;
    max-width:95%;
    background:#fff;
    margin:40px auto;
    padding:25px;
    max-height:90vh;
    overflow:auto;
    border-radius:5px;
}
.dbm-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}
#dbm-close-modal{
    font-size:30px;
    cursor:pointer;
}
.dbm-form-table{
    width:100%;
    border: none;
}
.dbm-form-table,
.dbm-form-table tbody,
.dbm-form-table tr,
.dbm-form-table td{
    display:block;
    width:100%;
    padding: 0 !important;
}
.dbm-form-table tr{
    margin-bottom:18px;
}
.dbm-form-table label{
    text-align: left;
}
.dbm-form-table td:first-child{
    margin-bottom:8px;
}
.dbm-form-table td:first-child label{
    display:block;
    font-weight:600;
}
.dbm-form-table input,
.dbm-form-table textarea,
.dbm-form-table select{
    width:100%;
    box-sizing:border-box;
}
.dbm-modal-footer{
    margin-top:20px;
    text-align:right;
}
#dbm-save-building{
    padding:10px 25px;
}
#dbm-save-building:disabled{
    opacity:.6;
    cursor:not-allowed;
}

.page-id-16564 .container, .page-id-16588 .container{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

#dbm-add-building-btn{
    background: #2271b1;
    color: #fff;
    border: none;
    min-width: 160px;
    height: 46px;
    padding: 0 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: .2s;
}

.dbm-last-updated{
    margin-top:20px;
    text-align:right;
    font-size:15px;
    font-weight:600;
    color:#555;
}

/*
|--------------------------------------------------------------------------
| Last Updated Modal
|--------------------------------------------------------------------------
*/

#dbm-last-updated-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    z-index:999999;
}

.dbm-small-modal{
    width:420px;
    max-width:95%;
    background:#fff;
    margin:120px auto;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}

.dbm-small-modal .dbm-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 20px;
    border-bottom:1px solid #eee;
}

.dbm-small-modal .dbm-modal-header h3{
    margin:0;
    font-size:20px;
}

#dbm-close-last-updated{
    font-size:28px;
    cursor:pointer;
    line-height:1;
}

#dbm-last-updated-form{
    padding:20px;
}

#dbm-last-updated-form label{
    display:block;
    font-weight:600;
    margin-bottom:8px;
}

#dbm-last-updated-form input[type="date"]{
    width:100%;
    height:44px;
    padding:0 12px;
    border:1px solid #dcdcdc;
    border-radius:5px;
    box-sizing:border-box;
    margin-bottom:20px;
}

#dbm-last-updated-form input[type="date"]:focus{
    outline:none;
    border-color:#2271b1;
    box-shadow:0 0 0 3px rgba(34,113,177,.15);
}

#dbm-save-last-updated{
    background:#2271b1;
    color:#fff;
    border:none;
    border-radius:5px;
    padding:10px 25px;
    cursor:pointer;
    font-size:15px;
    font-weight:600;
}

#dbm-save-last-updated:hover{
    background:#135e96;
}

#dbm-save-last-updated:disabled{
    opacity:.6;
    cursor:not-allowed;
}

/*
|--------------------------------------------------------------------------
| Last Updated Section
|--------------------------------------------------------------------------
*/

.dbm-last-updated{
    margin-top:20px;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:10px;
    font-size:15px;
    font-weight:600;
}

#dbm-edit-last-updated{
    background:none;
    border:none;
    cursor:pointer;
    padding:0;
    font-size:16px;
    line-height:1;
}

#dbm-edit-last-updated:hover{
    opacity:.7;
}

.dbm-note-wrapper{
    margin-top:40px;
    padding-top:25px;
    border-top:1px solid #ddd;
}

.dbm-note-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:15px;
    font-size:20px;
    font-weight:600;
}

.dbm-note-content{
    line-height:1.8;
    font-size:15px;
    color:#333;
    white-space:normal;
}

#dbm-edit-note{
    background:none;
    border:none;
    cursor:pointer;
    font-size:18px;
    padding:0;
    line-height:1;
}

#dbm-edit-note:hover{
    opacity:.7;
}


/*
|--------------------------------------------------------------------------
| Note Popup
|--------------------------------------------------------------------------
*/

#dbm-note-modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.6);
    z-index:999999;
}

.dbm-note-modal-box{
    width:650px;
    max-width:95%;
    margin:70px auto;
    background:#fff;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}

.dbm-note-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 22px;
    border-bottom:1px solid #eee;
}

.dbm-note-modal-header h3{
    margin:0;
    font-size:22px;
    font-weight:600;
}

#dbm-close-note{
    font-size:30px;
    cursor:pointer;
    line-height:1;
}

#dbm-note-form{
    padding:25px;
}

#dbm-note-form label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

#dbm_note_text{
    width:100%;
    min-height:220px;
    resize:vertical;
    padding:12px;
    border:1px solid #dcdcdc;
    border-radius:6px;
    box-sizing:border-box;
    font-size:15px;
    line-height:1.6;
    margin-bottom:20px;
}

#dbm_note_text:focus{
    outline:none;
    border-color:#2271b1;
    box-shadow:0 0 0 3px rgba(34,113,177,.15);
}

#dbm-save-note{
    background:#2271b1;
    color:#fff;
    border:none;
    border-radius:5px;
    padding:11px 28px;
    cursor:pointer;
    font-size:15px;
    font-weight:600;
    transition:.2s;
}

#dbm-save-note:hover{
    background:#135e96;
}

#dbm-save-note:disabled{
    opacity:.6;
    cursor:not-allowed;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media(max-width:768px){

    .dbm-note-modal-box{
        width:95%;
        margin:40px auto;
    }

    #dbm-note-form{
        padding:20px;
    }

    #dbm_note_text{
        min-height:180px;
    }

}