/* GENERIC */

.ui-widget {
    font-family: "Barlow", serif !important;
}

.ui-icon {
    font-size: 14px !important;
}

/* BREADCRUMB */

body .ui-breadcrumb .ui-breadcrumb-items li:not(.ui-breadcrumb-chevron):before {
    font-size: 10px !important;
}

/* GROWL */

.ui-growl-item {
    min-height: 78px !important;
}

.ui-growl-message {
    padding: 4px 0 0 !important;
}

.ui-growl-title {
    font-weight: 500 !important;
}

/* BUTTONS */

.ui-button {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.ui-button-text {
    padding: 6px 12px 6px 32px !important;
}

.ui-splitbutton-menubutton .ui-icon-triangle-1-s {
    margin-top: -0.5rem !important;
}

.ui-menuitem-link {
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.25 !important;
}

.ui-confirm-dialog-message {
    line-height: 1.25 !important;
}

.ui-button .ui-button-icon-left {
    margin-top: -6px !important;
}

.ui-button .ui-button-icon-left.ui-icon-triangle-1-s {
    margin-top: -8px !important;
}

body .ui-button .ui-icon-triangle-1-s:before,
body .ui-chkbox .ui-chkbox-box .ui-chkbox-icon:before {
    margin-top: -3px !important;
    display: block;
}

.ui-button-icon-only .ui-icon {
    margin-left: -6px !important;
    margin-top: -7px !important;
}

.ui-autocomplete-dropdown {
    height: 40px !important;
}

.button-row {
    display: flex;
    gap: 12px;
}

/* MIXED CONTENT */

.mixed-content-block {
    padding: 8px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #eee;
    position: relative;
}

.mixed-content-block .block-type {
    text-transform: uppercase;
    font-weight: bold;
    color: #aaa;
    font-size: 14px;
    display: block;
    margin: 8px 0 16px;
}

.mixed-content-block .block-actions {
    position: absolute;
    top: 16px;
    right: 16px;
}

.mixed-content-block .block-actions button {
    width: 24px !important;
    height: 24px !important;
    margin-left: 8px;
}

/* TABLES */

.ui-datatable tr, .ui-datatable td {
    border: none !important;
    padding: 4px 12px !important;
    height: 50px;
}

.ui-datatable.hide-header thead tr, .ui-datatable.hide-header thead th {
    padding: 0 !important;
    height: 0;
}

.ui-datatable tr:nth-of-type(odd) > td {
    background: #F3F3F5 !important;
    box-shadow: none !important;
}

.ui-datatable tr:nth-of-type(even) > td {
    background: #fff !important;
    box-shadow: none !important;
}

.ui-datatable thead tr th,
.ui-datatable tfoot tr:nth-of-type(odd) > td {
    background: #fff !important;
    vertical-align: top;
    padding: 12px !important;
    border: none !important;
}

.ui-datatable tr:nth-of-type(odd) > td.available,
.ui-datatable tr:nth-of-type(even) > td.available {
    background: #198755 !important;
}

.ui-datatable tr:nth-of-type(odd) > td.unavailable,
.ui-datatable tr:nth-of-type(even) > td.unavailable {
    background: #DC3546 !important;
}

.ui-paginator-rpp-options {
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    margin-top: 0 !important;
    padding: 4px 6px !important;
    color: #495058 !important;
}

/* FLEX */

.flex-gap {
    gap: 12px;
}

.flex-gap-2x {
    gap: 24px;
}

.grid {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}

.grid .col {
    flex-basis: 100%
}

/* FORMS */

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 4px;
}

.field input,
.field select,
.field textarea,
.field .ui-selectonemenu,
.field .ui-autocomplete,
.field .p-datepicker,
.field .ui-password {
    display: block;
    width: 100%;
}

.field .ui-autocomplete.ui-autocomplete-dd input {
    display: inline-block;
    width: calc(100% - 2.357rem);
}

.field img {
    display: block;
    margin-bottom: 4px;
}

.ui-fieldset {
    margin-bottom: 20px;
}

.ui-fieldset-legend {
    float: none !important;
    width: auto !important;
    padding: 4px 8px !important;
    font-size: 1rem !important;
    margin-bottom: 0 !important;
}

.ui-autocomplete-multiple.ui-autocomplete-dd {
    display: inline-block;
}

.field .ui-autocomplete-multiple-container {
    width: 100%;
}

.field .ui-autocomplete.ui-autocomplete-dd .ui-autocomplete-multiple-container {
    display: inline-block;
    width: calc(100% - 2.357rem) !important;
}

.ui-selectoneradio .ui-g-12 {
    padding: 4px 0 !important;
}

.ui-selectlistbox-filter-container {
    padding: 1rem !important;
}

.ui-selectlistbox-item {
    padding: 0 1rem !important;
}

.ui-selectlistbox-item td {
    padding: 0.25rem 1rem !important;
}

.code-editor {
    font-family: monospace !important;
    font-size: 13px !important;
}

.ql-editor {
    font-family: Barlow, sans-serif;
    font-size: 16px;
}

.ql-editor p, .ql-editor ul, .ql-editor ol {
    margin-bottom: 8px !important;
}

.ql-editor ul > li {
    list-style-type: disc !important;
    padding-left: 0 !important;
}

.ql-editor ol > li {
    list-style-type: decimal !important;
    padding-left: 0 !important;
}

.ql-editor li:before {
    display: none !important;
}

.ql-snow .ql-tooltip {
    left: calc(50% - 150px) !important;
    top: calc(50% - 20px) !important;
}

.ui-datepicker-calendar td {
    padding: 0 !important;
}

.ui-datatable .ui-selectonemenu {
    width: 100%;
}

.ui-dialog-title {
    margin-top: 4px;
    display: inline-block;
}

.ui-dialog {
    max-width: 100% !important;
}

@media (max-width: 992px) {
    .ui-dialog .ui-dialog-content {
        max-height: 600px !important;
        overflow: scroll !important;
    }
}

.grid {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}

.grid.grid-center {
    align-items: center;
}

.grid.bottom {
    align-items: end;
}

.grid .col {
    flex-basis: 100%
}

.grid .col.col-s {
    flex-basis: 30%;
}

.grid .col.col-xs {
    flex-basis: 10%;
}

.manage-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

/* DIALOGS */

.ui-confirm-dialog-message {
    margin-left: 0 !important;
}

/* ADMIN LAYOUT */

.layout-sidebar {
    position: fixed;
    left: 0;
    top: 50px;
    min-height: 100%;
    background-color: #fff;
    width: 250px;
    border-right: 1px solid #ddd;
    user-select: none;
    transition: transform .4s cubic-bezier(0.05, 0.74, 0.2, 0.99);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.layout-sidebar .layout-menu {
    padding: 0 1rem;
    overflow-y: auto;
}

.layout-sidebar .layout-menu .menu-category:first-child {
    border-top: 0 none;
    padding-top: 44px;
}

.layout-sidebar .layout-menu .menu-category {
    display: block;
    color: #000;
    font-weight: 700;
    user-select: none;
    padding: 1.5rem 0 1rem 0;
    font-size: .857rem;
    text-transform: uppercase;
    border-top: 1px solid #ddd;
}

.layout-sidebar .layout-menu .menu-items {
    padding: 0 0 1rem 0;
    display: flex;
    flex-direction: column;
}

.layout-sidebar .layout-menu .menu-items a {
    color: #000;
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
}

.layout-sidebar .layout-menu .menu-items a.active {
    font-weight: 600;
}

.layout-content {
    margin: -40px 0 0 300px;
    padding: 0 60px 60px 0;
}

.layout-content .card {
    background: #fff;
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border: 1px solid #eee !important;
}

@media print {
    body.scrolling,
    body footer,
    body.scrolling #header-wrapper,
    #header-bg {
        background: transparent none !important;
    }

    .layout-sidebar {
        display: none;
    }

    .layout-content {
        margin-left: 50px !important;
    }

    .scrolling #main {
        margin-top: 0;
        min-height: auto;
        background: transparent;
    }

    header,
    .ui-menubutton,
    .ui-button,
    .ui-selectbooleancheckbox,
    footer {
        display: none !important;
    }

    #main > .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 80px !important;
    }
}

.open-sidebar {
    position: fixed;
    top: 30px;
    left: -5px;
}

@media (max-width: 767px) {
    .layout-sidebar {
        display: none;
    }

    .layout-content {
        margin-left: 50px;
    }
}

/* CONTROL PANEL CARDS */

.control-panel .card {
    text-align: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    color: #333;
}

.control-panel .card .fa {
    font-size: 3em;
}

.control-panel .card h3 {
    margin-bottom: 0 !important;
}

.control-panel .card:hover {
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.075) !important;
}

/* BADGES */

.ui-badge {
    font-weight: normal !important;
}

.ui-chip {
    font-size: 14px !important;
}

.ui-chip-text {
    margin: 1.5px 0 !important;
}

.ui-badge-dark {
    background: #000 !important;
}

.ui-badge-info {
    background: #0CCAF0 !important;
    color: #000 !important;
}

/* UPLOAD */

.ui-fileupload-filename {
    display: none !important;
}

.ui-fileupload-progress .ui-progressbar {
    width: 100px !important;
}

/* LINEUPS */

.lineup-member-picker {
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.075) !important;
    border-radius: 4px;
    margin-bottom: 24px;
}

.lineup-card {
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.075) !important;
    margin-bottom: 24px;
    border-radius: 4px;
    background: #444 !important;
    padding: 12px;
}

.lineup-card-header {
    color: #fff;
}

.lineup-card-header .ui-button {
    background: transparent !important;
    border: none !important;
}

.lineup-card thead {
    display: none !important;
}

.lineup-card .text-end {
    width: 100px;
}

.lineup-card-actions .ui-button {
    width: 100%;
    margin-top: 12px;
}

.lineup-card .walkover {
    text-decoration: line-through;
}

.lineup-card tr.confirmed td {
    background: #A3CFBB !important;
}

/* MAINTENANCE */

.maintenance-message {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: #D32F2F;
    padding: 10px;
    z-index: 1000;
    color: white;
}

/* COMMENTS */

.comment {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 16px;
}

.comment img {
    width: 56px;
    height: auto;
}

.comment .comment-member {
    font-weight: bold;
    display: block;
}

.comment .comment-date {
    color: #888;
    font-size: .875em;
    display: block;
}

.comment .comment-body {
    flex-grow: 1;
}

.comment-form textarea {
    width: 100%;
    margin-bottom: 16px;
}

/* MEDIA-FILES SELECTOR */

.media-library tr {
    height: 60px;
}

.media-library td.filename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-thumb {
    height: 100%;
    width: 52px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 2px;
}

.image-card div {
    height: 160px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 4px;
    margin-bottom: 8px;
}

.image-card .ui-button {
    display: block;
    margin: -52px auto 40px;
}

/* AVAILABILITIES */

@media (max-width: 1199px) {
    .day-part {
        width: 120px !important;
    }

    .availability-col {
        width: 40px !important;
    }
}