@charset "utf-8";

body {
    overflow: hidden;
}

/* Header */
.cms-header {
    height: 60px;
    background: #212529;
    color: #fff;
    z-index: 1030;
}

/* Sidebar */
.cms-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 220px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    background: #343a40;
}

.cms-sidebar .nav-link {
    color: #fff;
    padding: 0.75rem 1rem;
}

.cms-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cms-sidebar .nav-link.active {
    background: var(--bs-primary)
}

/* Mobile sidebar */
#mobileSidebar {
    background: #343a40;
}

#mobileSidebar .nav-link {
    color: #fff;
    padding: 0.75rem 1rem;
}

#mobileSidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

#mobileSidebar .nav-link.active {
    background: var(--bs-primary)
}

/* Main content */
.cms-content {
    margin-top: 60px;
    margin-left: 220px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 2rem 3rem 10rem 3rem;
    background: #f8f9fa;
}

.cms-content h1, .cms-content .h1 {
    margin-top: 0;
    padding-top: 0;
    line-height: 1;
}

/* Mobile layout */
@media (max-width: 1200px) {

    body {
        overflow: auto;
    }

    .cms-sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .cms-content {
        margin-left: 0;
        height: auto;
        padding: 1rem;
    }

}


/* Edit form */
.edit-form {
    margin-top:40px;
    max-width: 1000px;
}
.edit-form > div {
    margin-bottom:20px;
}
.edit-form > div > label {
    margin-bottom: 2px;
    padding-bottom: 0;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.875em;
    color: var(--bs-secondary-color);
}
.edit-form label.required::after {
    content: "\00a0\00a0\002A";
    color:  var(--bs-danger);
}
.edit-form .form-info {
    width: 100%;
    margin-top: 5px;
    color: var(--bs-tertiary-color);
    font-size: 0.875em;
}
.button-bar {
    margin: 30px 0 30px 0;
    gap: 10px;
}
.button-bar input[type=text] {
    white-space: nowrap;
}

@media (min-width: 1200px) {

    .edit-form > div {
        display: flex;
        align-items: top;        
    }

    .edit-form > div > div {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .edit-form input[type=text], .edit-form textarea, .edit-form select, .edit-form input[type=file] {
        width: auto;
        flex-grow: 1;
    }
    
    .edit-form > div > label {
        margin-bottom: 0;
        padding-top: 10px;
        width: 150px;
        margin-right: 20px
    }

    .button-bar {
        padding: 20px 0 20px 0;
        border-top: 2px solid #ced1d3
    }
}


/* Main tables */
.table-container {
    background: #fff;
    border: 1px solid var(--bs-border-color); 
    border-radius: var(--bs-border-radius);
}

.table-container table {
    margin-bottom: 0;
}

.table-container .table tbody tr:last-child th,
.table-container .table tbody tr:last-child td {
  border-bottom-width: 0;
}

.table-container td, .table-container th {
    white-space: nowrap;
    vertical-align: middle !important;
}

.table-container .text-wrap {
    min-width: 300px !important;
}