:root {
    --bs-border-color: rgba(255,255,255,0.3)!important;
    --bs-button-color: white!important;
    --bs-body-color: white!important;
    --dashboard-view-background: rgba(0,0,0,0.75);
    --dashboard-card-background: rgba(0,0,0,0.5);
    --dashboard-card-backdrop-filter: blur(8px);
}

.form-text, .list-group-item-action {
    color: white;
}

.navbar-brand img {
    max-height: 24px;
}

.left-column, .right-column {
    top: 15px;
}

.left-column {
    max-height: 90vh;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.35) transparent;
}

.left-column::-webkit-scrollbar {
    width: 6px;
}

.left-column::-webkit-scrollbar-track {
    background: transparent;
}

.left-column::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.35);
    border-radius: 999px;
}

/* Keep overview brand list column at full viewport height even with few brands. */
.overview-brands-column {
    height: 90vh;
    max-height: 90vh;
    display: flex;
}

.overview-brands-column #brandsPanel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100%;
}

.overview-brands-column #brandsList {
    flex: 1 1 auto;
    min-height: 0;
}

.modal-dialog {
    z-index: 9999!important;
}
/* .modal-backdrop {
    z-index: 998!important;
} */
.form-select:not(.is-invalid) {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")!important;

}
.move-handle {
    cursor: grab;
    -webkit-mask-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-horizontal" viewBox="0 0 16 16"><path d="M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"/></svg>');
    mask-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-horizontal" viewBox="0 0 16 16"><path d="M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"/></svg>');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center center;
    mask-position: center center;
    background-color: white;
    background-repeat: no-repeat;
    width: 50px;
    height: 40px;
    background-position: center center;
}
.handle-spacer {
    width: 50px;
    height: 40px;
}
.collapse-handle {
    cursor: pointer;
}
.btn-outline-accordion:hover {
    border: 1px solid var(--bs-border-color);
}
.collapse-handle {
    transition: all 0.5s ease-in-out;
}
#unsplashInfo {
    text-align: right;
    font-style: italic;
}
#unsplashInfo a {
    color: white;
    text-decoration: none;
}

* {
    color: white;
}
.ql-snow .ql-stroke {
    stroke: white!important;
}
.ql-snow .ql-fill, .ql-snow .ql-stroke.ql-fill {
    fill: white!important;
}
.ql-toolbar {
    position:relative;
    z-index:1;
}
.ql-container.ql-snow, .ql-toolbar.ql-snow {
    border-color: var(--bs-border-color)!important;
}

.border-bottom {
    border-bottom: 1px solid rgba(255,255,255,0.3)!important;
}
span.ql-picker-item {
    color: black;
}

body {
    background-color: var(--dashboard-view-background, rgba(0,0,0,0.75));
    background-blend-mode: overlay;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
}
.accordion-item, .dualListWrapper, .btn-outline-accordion, .navbar, .dualList-option:not([data-selected="true"]):hover, input, select, option, .use-bootstrap-tag, .use-bootstrap-tag .btn-secondary, .accordion-collapse, .card-wrapper, .sortable tbody, .input-group-text, .ql-toolbar, .quill-editor, .popover, .table-caption, input::file-selector-button, textarea, .table, .card, .list-group-item, .dropdown-menu, .bg-effect {
    background-color: var(--dashboard-card-background, rgba(0,0,0,0.5))!important;
    /* background-color: rgba(58, 58, 71, 0.356)!important; */
    backdrop-filter: var(--dashboard-card-backdrop-filter, blur(2px));
    border-color: rgba(255,255,255,0.3);
}
.no-bg {
    background-color: transparent!important;
    border: none!important;
    backdrop-filter: none!important;
}
.modal-content {
    background-color: rgba(0,0,0,0.5)!important;
    backdrop-filter: blur(2px);
    border-color: rgba(255,255,255,0.3);
}
.popover .arrow:after {
    border-color: red!important;
}

.table th, .table td, .table a {
    background-color: transparent;
    color:white;
}

.accordion-collapse {
    border-top-width: 1px;
    border-top-style: solid;
}
.use-bootstrap-tag > input {
    background-color: transparent!important;
    border: none!important;
    backdrop-filter: none!important;
}

input[type="checkbox"], option, .use-bootstrap-tag .btn-secondary, .input-group-text {
    border: 1px solid rgba(255,255,255,0.3)!important;
    color: white!important;
}

select option {
    background-color: rgba(0,0,0,0.5)!important;
}
.dualList-search {
    border-width:0px!important;
}
::placeholder {
    color: rgba(255,255,255,.5);
}

::placeholder {
    color: rgba(255,255,255,.5)!important;
}
#unsplashWrapper {
    display: flex;
    align-items: center;
    margin-bottom: -40px;
    height: 40px;
}

.form-switch .form-check-input {
    background-color: rgba(255,255,255,0.3)!important;
}

.form-switch .form-check-input:checked {
    background-color: rgba(255,255,255,0.5)!important;
}

#brandsList > .accordion-item.first-visible {
    border-top: 1px solid var(--bs-border-color);
    border-top-left-radius: var(--bs-accordion-border-radius);
    border-top-right-radius: var(--bs-accordion-border-radius);
}

#brandsList > .accordion-item.last-visible {
    border-bottom-left-radius: var(--bs-accordion-border-radius);
    border-bottom-right-radius: var(--bs-accordion-border-radius);
}

.brand-child-list {
    position: relative;
}

.brand-child-list-label {
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.brand-child-row {
    position: relative;
    display: block;
    opacity: 0.85;
}

.brand-child-row:hover,
.brand-child-row:focus {
    opacity: 1;
}

.brand-child-title {
    display: block;
    font-size: 0.9rem;
}

.brand-child-row, .brand-child-row:hover {
    display: flex;
    border-left: 2px solid white;
    margin-bottom: 0px !important;
    margin-top: 0px !important;
    border-radius: 0px;
    border-top: 0px;
    border-bottom: 0px;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
}
.brand-child-row:before {
    content: '';
    width: 15px;
    height: 2px;
    background-color: white;
    display: block;
}

.card-wrapper {
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--bs-accordion-border-radius);
    height: 100%;
}

.sortable thead th {
    font-weight: 600;
}
.sortable thead th, .sortable tbody tr:nth-child(odd) {
    background: transparent;
}
.sortable thead th::after {
    font-size: 10px!important;
}
.sortable thead th:not(.no-sort)::after {
    font-family:bootstrap-icons;
    content: "\F235\F229";
}
.sortable thead th:not(.no-sort).dir-u::after {
    font-family:bootstrap-icons;
    content: "\F235";
}
.sortable thead th:not(.no-sort).dir-d::after {
    font-family:bootstrap-icons;
    content: "\F229";
}

.sortable tr {
    width: 100%;
    display: inline-table;
    table-layout: fixed;
}
.schedule-row-focus {
    box-shadow: 0 0 0 2px rgba(13,202,240,0.8);
    transition: box-shadow 0.3s ease-in-out;
}

#schedulePanel .schedule-entry {
    background-color: transparent;
    overflow: visible;
}

#schedulePanel .schedule-entry::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-color: var(--dashboard-card-background, rgba(0,0,0,0.5));
    backdrop-filter: var(--dashboard-card-backdrop-filter, blur(2px));
    z-index: -1;
    pointer-events: none;
}

#schedulePanel .schedule-entry .dropdown-menu {
    z-index: 5;
}
.sortable {
    border-collapse:separate; 
    display: block;
}

#maintenanceTasksTable th:nth-child(1),
#maintenanceTasksTable td:nth-child(1) {
    width: 60%;
}

#maintenanceTasksTable th:nth-child(2),
#maintenanceTasksTable td:nth-child(2) {
    width: 25%;
}

#maintenanceTasksTable th:nth-child(3),
#maintenanceTasksTable td:nth-child(3) {
    width: 15%;
}

.brand-attachments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand-comments-tabs .nav-link {
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.85);
    background-color: transparent;
    padding: 0.3rem 0.5rem;
}

.brand-comments-tabs .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

.brand-comment-card {
    border: 1px solid rgba(255,255,255,0.2);
}

.brand-comment-card-archived {
    opacity: 0.5;
}

.brand-comment-message {
    white-space: pre-wrap;
}

#brandCommentsList {
    max-height: 400px;
    overflow-y: auto;
}

.brand-attachment-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    font-size: 0.9rem;
}

.brand-attachment-card .brand-attachment-info {
    min-width: 0;
}

.brand-attachment-card .brand-attachment-icon i {
    font-size: 1.25rem;
}

.brand-attachment-card .attachment-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (min-width: 576px) {
    .brand-attachment-card .attachment-actions {
        flex-direction: row;
    }
}

#brandNotesEditor .ql-editor {
    height: 260px;
}
input[type="date"]::-webkit-calendar-picker-indicator, input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}
.table-caption {
    display: table-caption;
    caption-side: bottom;
}
.ql-editor {
    min-height: 180px;
}
.quill-editor .ql-editor {
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #1f1f1f;
}
.quill-editor .ql-editor p { margin: 0; }
.quill-editor .ql-editor h1,
.quill-editor .ql-editor h2,
.quill-editor .ql-editor h3,
.quill-editor .ql-editor h4,
.quill-editor .ql-editor h5,
.quill-editor .ql-editor h6 {
    margin: 1rem 0 0.5rem;
    padding: 0.25rem 0;
    line-height: 1.2;
}
.quill-editor .ql-editor h1 { font-size: 1.625rem; }
.quill-editor .ql-editor h2 { font-size: 1.375rem; }
.quill-editor .ql-editor h3 { font-size: 1.25rem; }
.quill-editor .ql-editor h4 { font-size: 1.125rem; }
.quill-editor .ql-editor h5 { font-size: 1rem; }
.quill-editor .ql-editor h6 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.quill-editor .ql-editor ul,
.quill-editor .ql-editor ol {
    margin: 0 0 0.75rem 1.5rem;
    padding-left: 0;
}
.quill-editor .ql-editor li {
    margin: 0 0 0.35rem;
    line-height: 1.5;
}
.caption-column {
    height: fit-content;
}

table tr td, table tr th {
    vertical-align: middle;
}
#importModalUpdateAttributes {
    max-height: 120px;
    overflow-y: scroll;
}
[disabled] {
    opacity: .2!important;
    border-color: rgba(255,255,255,.3)!important;
}
.schedule-status-signal {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    border: 1px solid white;
    display: inline-block;
}
.dropdown-menu li {
    cursor: pointer;
}
.text-sm {
    font-size: 0.6rem!important;
}
.text-md {
    font-size: 0.9rem!important;
}
.muted {
    opacity: .5;
}

.color-field-root .card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.color-field-description {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
}

.color-field-preview-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 0.85rem;
    background: rgba(0,0,0,0.35);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.color-field-preview-button:hover,
.color-field-preview-button.is-active {
    border-color: rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.5);
}

.color-preview {
    flex: 0 0 72px;
    height: 72px;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.35);
    background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,0.2) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.2) 75%), linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.2) 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-blend-mode: overlay!important;
}

.color-field-preview-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.25rem;
    flex: 1;
}

.color-field-output {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85rem;
    opacity: 0.9;
    word-break: break-all;
}

.color-field-alpha {
    font-size: 0.85rem;
    font-weight: 600;
}

.color-field-panel {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.85rem;
    padding: 1rem;
    background: rgba(0,0,0,0.35);
    margin-top: 0.5rem;
}

.color-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.color-field-group:last-of-type {
    margin-bottom: 0.5rem;
}

.color-field-close {
    color: rgba(255,255,255,0.8);
}

.settings-table th,
.settings-table td {
    border-color: rgba(255,255,255,0.15)!important;
}

.settings-table-label {
    width: 220px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.75);
}

.tasks-table {
    width: 100%;
}

.tasks-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tasks-row:last-child {
    border-bottom: none;
}

.tasks-cell {
    display: flex;
    align-items: center;
}

.tasks-cell.status-cell {
    width: 160px;
    justify-content: flex-end;
}

.tasks-table.small .tasks-cell.status-cell {
    width: 140px;
}

.tasks-sublist {
    margin-top: 0.5rem;
}

.list-group-item-action:not(.active):focus, .list-group-item-action:not(.active):hover {
    color:white;
    opacity: .75;
}

.nav-tabs.tab-track .nav-link {
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
}
