/*!
 *  WordMagic CMS: Light Backend CSS Style v.2.5
 *  Copyright: 2019-2024 WordMagic ( https://wmcms.eu )
 */

:root {
    --body-color:       #f0f3f2;
    --bg-monokai:       #f0f3f2;
    --bg-error-color:   #f0f3f2;

    --black-color:      #000000;
    --bg-super-dark:    #151414;
    --bg-dark-dark:     #18181d;
    --bg-black-dark:    #19191d;
    --bg-dark:          #202020;
    --bg-dark-bright:   #262626;
    --bg-dark-light:    #222227;
    --bg-dark-white:    #2e2e2e;

    --bg-super-gray:    #333033;
    --bg-gray-dark:     #585858;
    --bg-gray:          #757575;
    --bg-gray-bright:   #878787;
    --bg-gray-light:    #999999;

    --bg-light-dark:    #b4b4b4;
    --bg-light:         #cccccc;
    --bg-medium-light:  #eaeaea;
    --bg-light-gray:    #e2e2e2;
    --bg-bright-light:  #f0f3f2;
    --bg-super-light:   #f7f9f8; 
    --white-color:      #ffffff;

    --blue-ua:          #0066cc;
    --yellow-ua:        #ffcc00;

    --whatsapp:         #59e965;
    --signal:           #4975e8;
    --viber:            #7e57c2;

    --red-color:        #dc3545;
    --yellow-color:     #ffc107;
    --gold-color:       #ffb72f;
    --green-color:      #28a745;
    --blue-color:       #007bff;

    --light-primary:    color-mix(in srgb,  var(--primary-color), white 95%);
    --light-red:        color-mix(in srgb,  var(--red-color),     white 85%);
    --light-yellow:     color-mix(in srgb,  var(--yellow-color),  white 85%);
    --light-gold:       color-mix(in srgb,  var(--gold-color),    white 85%);
    --light-green:      color-mix(in srgb,  var(--green-color),   white 85%);
    --light-blue:       color-mix(in srgb,  var(--blue-color),    white 85%);

    --dark-primary:     color-mix(in srgb,  var(--primary-color), black 15%);
    --dark-red:         color-mix(in srgb,  var(--red-color),     black 15%);
    --dark-yellow:      color-mix(in srgb,  var(--yellow-color),  black 15%);
    --dark-gold:        color-mix(in srgb,  var(--gold-color),    black 15%);
    --dark-green:       color-mix(in srgb,  var(--green-color),   black 15%);
    --dark-blue:        color-mix(in srgb,  var(--blue-color),    black 15%);

    --pg-border:        #e5e5e5;
    --pg-background:    #ffffff;
    --pg-color:         #757575;
    --pg-active-bg:     #f0f3f2;
    --pg-active-color:  #202020;
} 

/*
 * Dashboard users index
 */

.light {
    background: var(--white-color);
    font-size: 14px !important;
}
.light strong {
    font-size: 14px;
}
.light h2 {
    font-size: 20px;
} 
.light h3 {
    font-size: 18px;
    color: var(--bg-super-gray);
}

.hidden_block {
    display: none;
}

a.disabled {
    pointer-events: none;
    opacity: .4;
}

.rotate {
    display: inline-block;
    transform: translateY(0) rotate(0deg) !important;
    transition: transform 0.3s ease;
    transform-origin: 50% 50%;
    vertical-align: middle;
}
.rotate.bold {
    font-weight: 800;
}
.rotate:hover {
    transform: translateY(0) rotate(90deg) !important;
}
.modal-header .rotate:hover {
    transform: translateY(0.0625rem) rotate(90deg) !important;
}

.side_border {
    border-radius: 20px;
    border: 1px solid var(--bg-medium-light) !important;
}

.hider_border {
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    border: 1px solid var(--bg-medium-light) !important;
}

.footer_border {
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border: 1px solid var(--bg-medium-light) !important;
}

.topbar {
    height: 3.6rem;
}

footer.sticky-footer {
    padding: 1.4rem 0;
    flex-shrink: 0;
}

.form-group a.link {
    font-weight: 200 !important;
    text-decoration: none;
}

.form-group a:hover.link {
    color: var(--primary-color) !important;
}

.text-gray-300 {
    color: var(--bg-gray-light) !important;
    font-size: 32px;
    font-weight: 600;
}

.text-gray-800 {
    color: var(--bg-dark) !important;
    font-weight: 600;
}

.text-gray-800 a {
    color: var(--bg-gray-dark) !important;
    font-weight: 800;
}

.small_text_top {
    color: var(--bg-super-gray) !important;
    font-size: 12px !important;
    margin-bottom: 5px;
}
.small_text_bottom {
    color: var(--bg-super-gray) !important;
    font-size: 12px !important;
    margin-top: 5px;
}

.no-background {
    background: transparent !important;
}

.no-border {
    border: none !important;
}

.uppercase {
    text-transform: uppercase !important;
}

/*
 *  Пагінація. Стилі зроблені для laravel/framework/src/Illuminate/Pagination/tailwind.blade.php
 *  Версія 12.41.1
 */

/* Контейнер */
nav[role="navigation"] {
    width: 100%;
    margin: 1.0rem 0;
    display: flex;
    flex-direction: column;
    align-items: center !important;
}

/* Showing row */
.pg-pagination-text {
    border: none !important;
    margin-bottom: 0.5rem !important;
    font-size: 14px !important;
    color: var(--pg-color)!important;
    background: none !important;
    box-shadow: none !important;
    text-align: center !important;
}

.pg-pagination-text span {
     color: var(--pg-active-color)!important;
}

/* Пагінація */
.pg-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Основні кнопки */
.pg-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.4rem 0.7rem !important;
    margin: 0 4px !important;

    font-size: 14px !important;
    line-height: 1.25 !important;

    background-color: var(--pg-background) !important;
    color: var(--pg-color) !important;

    border: 1px solid var(--pg-border) !important;
    border-radius: 50px !important;

    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
}

.pg-active,
.pg-page-btn:hover {
    background-color: var(--pg-active-bg) !important;
    color: var(--pg-active-color) !important;
    font-weight: bold !important;
}

.pg-disabled {
    background: var(--pg-active-bg) !important;
    border-color: var(--pg-border) !important;
    color: var(--pg-active-color) !important;
    cursor: not-allowed !important;
}

.pg-page-btn .fa {
    font-size: 16px;
    color: var(--pg-color) !important;
    transform: translateY(0rem) !important;
    padding: 0 0.5rem !important;
    line-height: 1;
}

/*
 *  Бейджи
 */ 

.filter-chip {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-gray);
    padding: 2px 8px 2px 10px;
    background-color: var(--bg-medium-light);
    border: 1px solid var(--bg-medium-light);
    border-radius: 25px;
    white-space: nowrap;
}

.badge-status-filter {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    font-weight: 800;
    color: var(--bg-gray);
    transition: transform 0.2s ease, color 0.2s ease;
    margin-left: 4px;
}

.filter-chip a:hover {
    transform: rotate(90deg);
}

.badge-status,
.badge-locale,
.badge-status.published2 {
    position: relative;
    z-index: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-gray);
    padding: 2px 10px;
    background-color: var(--bg-medium-light);
    border: 1px solid var(--bg-medium-light);
    border-radius: 50px;
    white-space: nowrap;
}

.badge-locale {
    padding: 7px 9px;
    border-radius: 5px;
}

.badge-status.primary,
.badge-locale.primary,
.filter-chip.primary,
.filter-chip.primary a {
    color: var(--primary-color);
    background-color: var(--light-primary);
    border: 1px solid var(--light-primary);
}
.badge-status.red,
.badge-locale.red,
.filter-chip.red,
.filter-chip.red a {
    color: var(--red-color);
    background-color: var(--light-red);
    border: 1px solid var(--light-red);
}
.badge-status.green,
.badge-locale.green,
.badge-status.published,
.filter-chip.green,
.filter-chip.green a {
    color: var(--dark-green);
    background-color: var(--light-green);
    border: 1px solid var(--light-green);
}
.badge-status.gold,
.badge-locale.gold,
.badge-status.draft,
.filter-chip.gold,
.filter-chip.gold a {
    color: var(--dark-gold);
    background-color: var(--light-gold);
    border: 1px solid var(--light-gold);
}
.badge-locale.gold {
    color: var(--dark-gold);
    background-color: var(--light-gold);
    border: 1px solid color-mix(in srgb, var(--gold-color), white 70%);
}

/*
 *  Приклад меню
 */ 
.alert pre {
    display: block;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    white-space: pre; 
    overflow-x: auto; 
}
.alert pre xmp {
    display: block;
    margin: 0;
    padding: 0;
    white-space: pre;
}

/* 
 * wm: Хідер та футер 
 */

.bg-color {
    color: var(--bg-gray) !important;
    background-color: var(--white-color) !important;
}

.nav-link {
    padding-top:    0.52rem !important;
    padding-bottom: 0.52rem !important;
}

#theme-toggle-trigger {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    outline: none;
}
#theme-toggle-trigger i {
    font-size: 24px;
    margin: 0 0 0 7px !important; 
    color: var(--blue-ua) !important;
    transition: filter 0.2s ease;
    transform: translateY(0) !important;
}
#theme-toggle-trigger:hover i {
    filter: brightness(0.8);
}
.theme-toggle.top-toggle #theme-toggle-trigger i {
    font-size: 20px;
    margin: 0;
    color: var(--blue-ua) !important;
}

.side_border .nav-link:hover, 
.side_border .nav-link:hover i {
    color: var(--primary-color) !important;
}

.rounded-circle {
    background-color: var(--bg-bright-light);
    color: var(--bg-dark);
}

.rounded-circle:hover {
    background-color: var(--bg-bright-light);
    color: var(--bg-dark);
    opacity: 0.65;
}

.scroll-to-top {
    z-index: 9;
    bottom: 0.85rem;
    width: 2.0rem;
    height: 2.0rem;
    line-height: 1;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);

    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.scroll-to-top:hover {
    background-color: var(--bg-gray-bright);
    text-decoration: none;
}

.scroll-to-top i {
    position: relative;
    top: -3px;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.empty-block {
    display: block;
    background: none;
}

/* 
 * wm: Sidebar width — SB Admin 2 default
 */

.sidebar {
    width: 14rem !important;
}
.sidebar .nav-item .nav-link {
    width: 100%;
}

.sidebar .sidebar-card {
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-bright-light);
    border: 1px solid var(--bg-medium-light);
    border-radius: var(--radius_small2);
    box-sizing: border-box;
}

.sidebar .sidebar-card p {
    color: var(--bg-super-gray) !important;
}

.bottom-position {
    position: absolute;
    bottom: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
}

.sidebar-brand-icon,
.sidebar-brand-text {
    text-transform: none;
    font-size: 16px;
    margin-left: 3px;
    margin-top: -14px;
    text-align: center;
    color: var(--primary-color) !important;
}

/*
 *  Заглушка: елемент меню з хибним (тимчасовим) посиланням 
 */
.sidebar .nav-stub {
    opacity: .4;
    cursor: default;
}

.sidebar .nav-stub:hover {
    background: transparent !important;
    box-shadow: none !important;
}

@keyframes navStubPulse {
    0%, 100% { opacity: .4; }
    50%      { opacity: .9; }
}

.sidebar .nav-stub-pulse {
    animation: navStubPulse .4s ease;
}

/* 
 * wm: Перемикач бічної панелі
 */

.navbar #sidebarToggle {
    cursor: pointer;
    font-size: 32px;
    border: none;
    font-family: 'Font Awesome 5 Free';
    background: none; 
}

.navbar #sidebarToggle::after {
    content: '\f104';
}

.navbar.toggled #sidebarToggle::after {
    content: '\f105';
}

.navbar #sidebarToggle:hover {
    text-decoration: none;
}

.navbar #sidebarToggle:focus {
    outline: none;
}

.sidebar.toggled .nav-item .nav-link {
    padding: 0.5rem 1rem !important;
}

.sidebar .nav-item > .collapse > .collapse-inner {
    position: relative;
}

.sidebar .nav-item > .collapse > .collapse-inner > .collapse {
    position: absolute;
    top: 0;
    left: calc(100% + 4px);
    z-index: 5;
}

.sidebar .nav-item > .collapse > .collapse-inner > .collapsing {
    display: none;
}

.sidebar.toggled .collapse-inner {
    width: 13rem;
}

.sidebar.toggled .nav-item > .collapse {
    left: 6.5rem;
}

.toggle {
    color: var(--bg-gray-light);
}

.toggle:hover {
    color: var(--primary-color);
}

#navbarToggle {
    z-index: 5;
    position: fixed;
    top: 0;
    width: 84.2%;
}

#accordionSidebar {
    z-index: 5;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
}

#accordionSidebar.height_limit {
    position: absolute;
}

#content-wrapper {
    margin-top: 55px;
    margin-left: 225px;
    margin-bottom: 60px;
}

.content-area {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 115px);
    background: var(--bg-bright-light);
    padding-top: 20px;
    padding-bottom: 2px;
}

.bottom-right {
    margin-top: auto;
    text-align: right;
    padding-right: 30px;
    font-size: 10px;
    color: var(--primary-color);
}

#footer-wrapper {
    z-index: 5;
    position: fixed;
    bottom: 0;
    width: 84.2%;
}

.slogan {
    font-size: 7px !important;
    font-weight: 400 !important;
    text-transform: uppercase; 
    color: var(--bg-dark);
    text-align: center;
    margin-top: -23px;
    letter-spacing: -0.3px;
}

.type-menu,
.type-site {
    text-transform: uppercase; 
    font-size: 9px !important;
    font-weight: 800 !important;
    color: var(--primary-color);
    padding: 4px 0 3px;
    background-color: var(--bg-bright-light) !important;
    text-align: center;
    margin: 0px 15px 5px 15px;
    border: 1px solid var(--bg-medium-light);
    border-radius: var(--radius_small2);
}

.menu-btm.type-menu:hover,
.type-site.ping {
    background-color: var(--primary-color) !important;
    color: var(--white-color) !important;
    border: 1px solid var(--primary-color);
}

.type-menu a,
.type-site a {
    color: inherit;
}
.type-menu a:hover,
.type-site a:hover {
    text-decoration: none;
}

.sidebar-divider {
    background-color: var(--bg-super-light) !important;
}

a.link {
    font-weight: 800 !important;
    color: var(--bg-gray) !important;
}

a.link:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.float-left-user-name {
    float: left;
}
.float-left-avatar {
    float: left;
    margin-right: 10px;
}
.float-left-user-name p {
    margin: 0 0 2px;
    line-height: 1;
}
.float-left-user-name a {
    padding-right: 5px;
}
.float-left-avatar img {
    border-radius: 50%;
    border: 1px solid var(--bg-bright-light);
}
.media-index img {
    max-width: 150px;
    height: auto;
}

.form-control {
    font-size: 14px !important;
}

p.form-control {
    background-color: var(--white-color);
    border: 1px solid var(--bg-medium-light);
}

.form-control.user-control,
.form-control.client-control {
    color: var(--primary-color);
}

.form-control.variant_number-control {
    margin-top: 2px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

select.form-control.language-control,
select.form-control.type-sites-control {
    max-width: fit-content;
    margin-left: auto;
}

.lang-select {
    height: 32px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 16px;
    margin: 0;
    font-size: 0.9rem;
    background-position: right 0.75rem center;
    background-size: 8px 10px;
    border-radius: 15px;
}

.tox-notification {
    display: none !important;
}

input.delete_single_user {
    background: transparent;
    outline: 0;
    border: 0;
    color: red;
    font-size: 14px;
    padding: 0;
    padding-right: 5px;
}

nav.flex.items-center.justify-between {
    text-align: center;
}

.table-responsive svg {
    max-width: 20px;
}

.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
   
}

td.page-title {
    min-width: 230px;
}

td.page-url {
    min-width: 350px;
}

td.body-url a,
td.page-url a {
    color: var(--bg-dark) !important;
}

td.pricing-title-dash * {
    font-size: 14px;
    max-width: 400px;
}

td.menu-name {
    min-width: 150px;
}

td.menu-link {
    min-width: 400px;
}
td.body-project {
    max-width: 400px;
}
.table-responsive nav .flex.justify-between.flex-1.sm\:hidden {
    display: none;
}

.bg-gradient-primary {                                        /* wm: Бічна панель */
    background-color: var(--white-color);
    background-image: linear-gradient(180deg, var(--white-color) 25%, var(--white-color) 100%); /* --bg-medium-light */
    background-size: cover;
}
table#dataTable thead, table#dataTable tfoot {
    background: var(--bg-super-light);                        /* wm: Фон верхнього та нижнього колонтитулів таблиць */
    color: var(--bg-gray-dark) !important;
}

table, th, td {
    border: 1px solid var(--bg-medium-light) !important;
}

.img-media {
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: none;
}
.size-media {
    font-size: 12px !important; 
    text-align: center; 
    margin: 5px 0 -10px;
}

.table-header {
    background: var(--white-color);
}

table#dataTable tbody tr:nth-child(2n) {
    background: var(--bg-super-light);                        /* wm: Фон світлої строки тіла таблиці */
}

table#dataTable tbody {
    background: var(--bg-bright-light);                              /* wm: Фон темної строки тіла таблиці */
}

td.body-post p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

table.table th {
    white-space: nowrap;       /* Не переносити слова */
    overflow: hidden;          /* ховати текст, який не влазить */
    text-overflow: ellipsis;   /* показувати ... замість обрізаного тексту */
}

.table-grab {
    color: var(--black-color) !important;
}

/* wm: Рядок, який зараз перетягують — "піднімається" над таблицею */
.table-chosen {
    position: relative;
    z-index: 10;
    background: var(--bg-bright-light) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

/* wm: Напівпрозорий "привид" на місці, звідки рядок поїхав */
.table-ghost {
    opacity: .4;
    background: var(--bg-super-light) !important;
}

nav.flex.items-center.justify-between .leading-5 {
    padding: 5px 10px !important;
    margin: 5px 2px !important;
}

nav.flex.items-center.justify-between .shadow-sm {
    box-shadow: none !important;
}

td.body-post {
    max-width: 400px;
}

.dash-dropdown-menu {                                     /* wm: Випадаюче меню */
    border: 1px solid var(--bg-medium-light);
    border-bottom: 4px solid var(--primary-color);
    background: var(--bg-bright-light) !important;
    margin: 0 !important;
}

.collapse-item {
    position: relative;
    margin: 0 !important;
    border-radius: 0 !important;
    color: var(--bg-super-gray) !important;
}

.collapse-item i.angle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.collapse-item[aria-expanded="true"] i.angle {
    transform: translateY(-50%) rotate(90deg);
}

a.collapse-item i {
    margin-left: -3px;
    margin-right: 3px;
}

.collapse-item.disabled {
    opacity: 0.6 !important;
}

.collapse-item:hover {
    color: var(--primary-color) !important;
    background: var(--white-color) !important;
}

.collapse-item.disabled:hover {
    color: var(--bg-super-gray) !important;
    background: var(--white-color) !important;
}

.collapse-header {                                            /* wm: Розділ меню */
    color: var(--bg-dark-white) !important;
}

.topbar-divider {                                             /* wm: поділювач біля меню користувача */
    border-color: var(--bg-medium-light) !important;
}

a.dropdown-toggle span {                                      /* wm: Користувач */
    color: var(--bg-super-gray) !important;
}

.dropdown-menu.dash-dropdown-menu a {                         /* wm: Меню користувача */
    color: var(--bg-super-gray) !important;
    background: var(--bg-bright-light) !important;
    border: 1px solid var(--bg-bright-light);
    padding-top: 6px;
    padding-bottom: 6px;
}

.dropdown-menu.dash-dropdown-menu a i {
    color: var(--bg-super-gray) !important;
}

.link a:hover,
.dropdown-menu.dash-dropdown-menu a:hover {
    color: var(--primary-color) !important;
    background: var(--white-color) !important;
    border: 1px solid var(--bg-super-light);
}

.dropdown-menu.dash-dropdown-menu a:hover i {
    color: var(--primary-color) !important;
}

.collapse {
    transition: height 0.2s ease-in-out !important;
}

.collapse.show-dropdown-menu {
    position: relative;
    z-index: 5;
}

.dropdown-divider {
    border: 1px solid var(--bg-medium-light);
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.apple-silver-glass {
    background: linear-gradient(
        135deg, 
        rgba(8, 12, 17, 0.30) 0%, 
        rgba(15, 23, 42, 0.15) 100%
    );
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.modal-content {
    color: var(--bg-super-gray) !important;
    background: var(--white-color) !important;
    border: 1px solid var(--bg-medium-light);
}

.modal-header {
    border-bottom: 1px solid var(--bg-medium-light);
}

.modal-header h5 {
    color: var(--bg-gray);
}

.modal-footer {
    border-top: 1px solid var(--bg-medium-light);
}

.close {
    text-shadow: none;
    color: var(--bg-gray-dark) !important;
    opacity: 1;
}

.close span {
    color: var(--bg-super-gray) !important;
}

.fa-close-circle {
    transform: translateY(-0.125rem) !important;
}

.btn {
    position: relative;
    z-index: auto;
    padding: 4px 14px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600 !important;
    cursor: pointer !important;
}

#btn-delete,
[id$="-delete"] {
    margin-right: -2px !important;
}

.btn:focus,
.btn:active {
    background-color: color-mix(in srgb, var(--primary-color) 100%, transparent) !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--bg-super-light) !important;
    box-shadow: none !important;
    opacity: 0.75;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
}

.btn-sm.icon {
    color: var(--bg-super-gray);
    padding: 0;
    padding-left: 10px;
}

.btn-sm.icon.close {
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 0 6px;
    background: none;
    border: none;
}

.btn-sm.icon:active,
.btn-sm.icon:hover {
    color: var(--primary-color) !important;
    border: 1px solid transparent !important;
    background: inherit !important;
}

.btn-sm.icon.close:active,
.btn-sm.icon.close:hover {
    color: var(--primary-color) !important;
    border: inherit !important;
    background: inherit !important;
}

.btn.btn-primary {
    background: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--bg-super-light) !important;
}

.switch-group,
.status-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--bg-medium-light) !important;
    background: var(--white-color) !important;
    border-radius: 50px;
    flex-wrap: wrap;
}

.switch-group .switch-position,
.status-group .btn-status {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--white-color) !important;
    border-radius: 50px;
    background: var(--white-color) !important;
    color: var(--bg-gray-light) !important;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s;
}

.switch-group .switch-position:hover,
.status-group .btn-status:hover {
    background: var(--light-primary) !important;
    border: 1px solid var(--light-primary) !important;
    color: var(--primary-color) !important;
    text-decoration:none;
}

.switch-group .switch-position.active,
.status-group .btn-status.active {
    background: var(--light-primary) !important;
    border: 1px solid var(--light-primary) !important;
    color: var(--primary-color) !important;
}

.switch-group .switch-position:focus,
.status-group .btn-status:focus {
    outline: none;
    box-shadow: none;
    border: 1px solid var(--white-color) !important;
}

.btn.btn-small {
    background: none;
    border: 1px solid var(--bg-gray-bright) !important;
    border: none;
    color: var(--bg-gray-bright);
    font-size: 12px;
    padding: 0 10px !important;
}

.btn.btn-small.nohover {
    background: none;
    border: 1px solid var(--bg-gray) !important;
    border: none;
    color: var(--bg-gray);
    font-size: 12px;
    padding: 0 10px !important;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn.btn-small:active,
.btn.btn-small:hover {
    background: var(--bg-gray-bright) !important;
    color: var(--white-color) !important;
    opacity: 1;
}

.btn.btn-small:active.nohover,
.btn.btn-small:hover.nohover {
    background: none !important;
    color: var(--bg-gray) !important;
}

.btn.btn-small.primary {
    background: none;
    border: 1px solid var(--primary-color) !important;
    border: none;
    color: var(--primary-color);
    font-size: 12px;
    padding: 0 10px !important;
    opacity: 0.65;
}

.btn.btn-small:active.primary,
.btn.btn-small:hover.primary {
    background: var(--primary-color) !important;
    color: var(--white-color) !important;
}

.btn.btn-small.gold {
    background: none;
    border: 1px solid var(--gold-color) !important;
    border: none;
    color: var(--gold-color);
    font-size: 12px;
    padding: 0 10px !important;
    opacity: 0.95;
}

.btn.btn-small:active.gold,
.btn.btn-small:hover.gold {
    background: var(--gold-color) !important;
    color: var(--white-color) !important;
}

.btn.btn-small.red {
    background: none;
    border: 1px solid var(--red-color) !important;
    border: none;
    color: var(--red-color);
    font-size: 12px;
    padding: 0 10px !important;
    opacity: 0.65;
}

.btn.btn-small:active.red,
.btn.btn-small:hover.red {
    background: var(--red-color) !important;
    color: var(--white-color) !important;
}

.btn.btn-small.blue {
    background: none;
    border: 1px solid var(--blue-color) !important;
    border: none;
    color: var(--blue-color);
    font-size: 12px;
    padding: 0 10px !important;
    opacity: 0.65;
}

.btn.btn-small:active.blue,
.btn.btn-small:hover.blue {
    background: var(--blue-color) !important;
    color: var(--white-color) !important;
}

.btn.btn-primary.white {
    background: var(--white-color) !important;
    border: 1px solid var(--bg-light-gray) !important;
    color: var(--bg-super-gray) !important;
    box-shadow: 1px 3px 8px rgba(0,0,0,.05);
}
.btn.btn-primary.gold {
    background: var(--gold-color) !important;
    border: 1px solid var(--gold-color) !important;
    color: var(--bg-super-light) !important;
}

.btn.btn-primary.gray {
    background: var(--bg-gray-light) !important;
    border: 1px solid var(--bg-gray-light) !important;
    color: var(--bg-super-light) !important;
}

.btn.btn-primary.locales {
    background: var(--light-gold) !important;
    border: 1px solid var(--gold-color) !important;
    color: var(--dark-gold) !important;
    padding: 2px 12px !important;
}
.btn.btn-primary.locales:hover {
    background: var(--gold-color) !important;
    border: 1px solid var(--gold-color) !important;
    color: var(--white-color) !important;
}

.btn.btn-primary.action {
    background: red !important;
    border: 1px solid red !important;
    color: var(--bg-super-light) !important;
} 

.fa-sun:hover, 
.fa-moon:hover,
.btn.btn-primary.gray:hover,
.btn.btn-primary.gold:hover,
.btn.btn-primary:hover,
.btn.btn-primary.action:hover {
    opacity: 0.75;
}

.btn.btn-primary.edit {
    margin-left: 30px;
}   

.form-control.action {
    font-size: 14px;
}

.table-responsive input.btn.btn-primary {
    margin-left: 0;
}

.card-body .btn.btn-primary.edit {
    margin: 30px;
}    

.card-body .alert ul {
    margin: 0;
}

.card-subhead {
    padding: 1.25rem 0 0 1.25rem;
}

.form-group {
    padding: 20px;
    margin-bottom: 20px;
    background: var(--bg-super-light);                     /* wm: Фон блока під кнопкави Видалити та Відправити */     
    border: 1px solid var(--bg-medium-light); 
}

h1.title {
    margin-top:   -15px;
    padding-top:   15px;
    margin-bottom: 15px;
}

.form-group h3 {
    color: var(--bg-super-gray);
    margin-bottom: 10px !important;
}
.no-group,
.form-group strong {
    color: var(--bg-dark) !important;
}
.no-group strong {
    font-weight: 800;
    color: var(--bg-dark);
}
.no-group strong span,
.form-group strong span {
    color: red !important;
}

input[type="text"],
.form-group th {
    font-size: 14px !important;
}

input[type="number"] {
    border-radius: 5px;
    background-color: var(--bg-super-dark) !important;
    padding: 6px 10px;
}

.form-group input,
.form-no-group input,
.form-group textarea,
.form-no-group textarea {
    color: var(--bg-gray-dark) !important;
    background-color: var(--white-color) !important;
    border: 1px solid var(--bg-medium-light) !important; 
}
.table input {
    color: var(--bg-gray-dark) !important;
    background-color: var(--white-color) !important;
    border: 1px solid var(--bg-medium-light) !important; 
}

.form-group input:focus,
.form-no-group input:focus,
.form-group textarea:focus,
.form-no-group textarea:focus,
.form-group input[type="number"]:focus {
    color: var(--bg-gray-dark) !important;
    background: var(--body-color);
    border: 1px solid var(--primary-color) !important; 
    box-shadow: inset 0 0 0 1px color-mix(in srgb,  var(--primary-color), white 15%) !important;
    outline: none !important;
}

.form-group.action {
    margin-bottom: 20px;
    background: none;
    padding: 0 10px 0 0;
    border: none;
}

.recovery_codes {
    font-family: 'Courier New', sans-serif;
    color: var(--bg-super-dark);
    background-color: var(--white-color);
    font-size: 14px;
    text-align: center;
    border-radius: 5px;
    padding: 0 5px;
    margin: 0 15px;
}

.recovery_codes.none {
    background-color: var(--bg-super-light);
    padding: 0;
    margin: 0;
}

.bg-textarea {
    background: var(--white-color);
    border: 2px solid var(--bg-medium-light); 
}

/*
 *  Checkbox та Radio button
 */

/* Загальні стилі для контейнера */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.025rem;
}

/* Стилізація стандартних checkbox та radio */
.form-check-input {
    accent-color: var(--primary-color);
    width: 13px;
    height: 13px;
    margin-right: 6px;
    position: relative;
    top: -10px;
}

/* Уніфіковане вирівнювання для radio */
.form-check-input[type="radio"] {
    top: -2px !important;
}

/*
 * wm: Checkbox в стилі Apple
 */

/* Сховати стандартний чекбокс */
.apple-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;                 /* Унеможливлює взаємодію з прихованим елементом */
}

/* Вирівнювання контейнера Apple-перемикача */
.apple-checkbox {
    display: inline-block;
    position: relative;
    width: 25px;
    height: 15px;
    vertical-align: middle;               /* Вирівнювання з текстом */
    margin: 0 6px 0 -20px;
}

/* Слайдер */
.apple-checkbox .slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-gray-light);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

/* Коло в слайдері */
.apple-checkbox .slider::before {
    content: "";
    position: absolute;
    height: 13px;
    width: 13px;
    left: 1px;
    bottom: 1px;
    background-color: var(--bg-super-light);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* Стан увімкнено */
.apple-checkbox input[type="checkbox"]:checked + .slider {
    background-color: var(--primary-color);
}

.apple-checkbox input[type="checkbox"]:checked + .slider::before {
    transform: translateX(10px);
}

.apple-checkbox input:disabled + .slider {
    opacity: 0.6;
    cursor: default;
}

/* Додаткове вирівнювання тексту */
.form-check-label {
    margin-left: 0; /* Забираємо зайві відступи */
    display: inline-block;
    vertical-align: middle;
}

/*
 * wm: Колір кнопок пагінації 
 */

.text-gray-700.leading-5 { 
     color: var(--bg-gray-light) !important;
}

.relative.leading-5 {
    border-radius: 20px;
}

.relative.leading-5.cursor-default {
    font-weight: 800;
}

.font-medium {
    color: var(--bg-gray) !important;
}

a.text-gray-500,
a.text-gray-700 {                                             /* wm: Попередній та наступний */                      
    color: var(--bg-gray-light) !important;
    background-color: var(--white-color) !important;
    border: 1px solid var(--bg-light) !important; 
}

a.text-gray-500:hover,
a.text-gray-700:hover,
.text-gray-500.cursor-default {                               /* wm: Наведений та обраний елемент */
    color: var(--bg-gray-dark) !important;
    background-color: var(--bg-light) !important;
    border: 1px solid var(--bg-light) !important;
    text-decoration: none;
}

a.btn.btn-primary.btn-back {
    margin-bottom: 20px;
}

.bg-black-white {
    background: var(--white-color) !important;
}

.media img.img-fluid {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.img-container img {
    border: 1px solid var(--bg-bright-light);
    border-radius: 50%;
}

a.view-website-link {
    margin: 19px 10px;
}

.table-responsive {
    overflow: unset;
}

.mce-notification {
    display: none;
}

body#page-top form .form-group strong {
    display: block;
    margin-bottom: 15px;
}

.slug-container span {
    display: inline-block;
    margin-right: 5px;
}

.slug-container input {
    display: inline-block;
    max-width: auto;
}

.hide {
    display: none;
}

.message_successful {
    top: 5px;
    left: 20px;
    color: var(--bg-gray);
    background-color: #baf8c6;
    text-align: center;
}

.menu_bottom {
    border-bottom: 4px solid var(--primary-color) !important;
}

.breadcrumb .breadcrumb-item a {
    color: var(--bg-gray);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}
.breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.btn-quick-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--bg-gray);
    border: 1px solid transparent;
    border-radius: var(--radius_small2);
    transition: all 0.15s ease-in-out;
}

.btn-quick-links i {
    transform: translateY(0) rotate(0deg) !important;
    transition: transform 0.3s ease;
}
.btn-quick-links:hover i {
     transform: translateY(0) rotate(45deg) !important;
}

.btn-link.btn-quick-links:hover {
    color: var(--primary-color);
    border-color: color-mix(in srgb, var(--primary-color) 15%, transparent) !important;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent) !important;
    text-decoration: none;
}

.btn-link.btn-quick-links[aria-expanded="true"] {
    color: var(--primary-color) !important;
    background: rgba(var(--primary_R), var(--primary_G), var(--primary_B), 0.15) !important;
    border-color: var(--primary-color);
    text-decoration: none;
}

.card {
    border: 1px solid transparent;
    background-color: var(--bg-bright-light);
    border-top: 3px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.card .card {
    border: 1px solid var(--bg-bright-light);
}

.card-body {
    background-color: var(--white-color);
}

.card-body .card-body {
    background-color: var(--white-color) !important;
}

.card-body p {
    font-size: 14px;
}

.card-header {
    background-color: var(--bg-super-light);
    border-bottom: 1px solid var(--bg-bright-light);
    font-size: 14px;
}

.card-header.primary {
    background-color: var(--light-primary);
    border: 1px solid color-mix(in srgb,  var(--primary-color), white 75%);
    border-radius: var(--radius_small2) var(--radius_small2) 0 0;
    border-bottom: none;
    color: var(--primary-color);
    font-size: 14px;
}

.card-header a:hover {
    color: var(--bg-dark) !important;
    text-decoration: none;
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -10px 0;
    color: var(--bg-gray);
    border: 1px solid transparent;
    border-radius: var(--radius_small2);
    transition: all 0.15s ease-in-out;
}

.btn-filter i {
    transform: translateY(0) !important;
}

.btn-filter:hover {
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    text-decoration: none;
}

.btn-filter[aria-expanded="true"] {
    color: var(--primary-color) !important;
    background: rgba(var(--primary_R), var(--primary_G), var(--primary_B), 0.15) !important;
    border-color: var(--primary-color);
    text-decoration: none;
}

.filter {
    right: 0;
    left: auto;
    padding: 1rem;
    margin-top: 0.75rem;
    border-radius: var(--radius_small2);
    background-color: var(--white-color);
    border-color: var(--bg-medium-light);
}

.filtr-block {
    background-color: var(--bg-super-light);
    border-color: var(--bg-medium-light);
}

.filtr-badge,
.draft-badge,
.position-badge {
    position: absolute;
    display: flex;
    top: 0; 
    right: 0; 
    width: 16px; 
    height: 16px; 
    padding: 0;
    font-size: 10px; 
    font-weight: bold;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white-color);
    background-color: red;
    border: 1px solid red;
    transform: translate(35%, -35%);
    line-height: 1;
}

.border-left-primary {                                        /* wm: Колір бордюра інф. блоків майстерні */
    border-left: 5px solid var(--primary-color) !important;
    background-color: var(--white-color) !important;
}

.custom-select {                                              /* wm: Меню вибора мови */
    color: var(--bg-dark);
    font-size: 14px;
    margin-top: 0 !important;
    vertical-align: middle;
    padding-right: 25px;                                      /* wm: Стрілка вниз, була двойна */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M70.3 13.8L40 66.3 9.7 13.8z' fill='%23202'%3E%3C/path%3E%3C/svg%3E");
    background-color: var(--bg-bright-light);
    background-size: 8px 10px;
    border: 1px solid var(--bg-medium-light);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 5px rgba(0, 0, 0, 0.075);
}

.bg-gold {
    background-color: var(--gold-color);
}

.custom-select.bg_primary {
    color: var(--bg-super-dark);
    font-weight: 600;
    background-color: var(--gold-color);
}

.custom-select:hover {
    color: var(--primary-color);
    background-color: var(--bg-medium-light);
}
  
.custom-select:focus {
    color: var(--bg-dark);
    border: 2px solid var(--primary-color) !important;
    background-color: var(--bg-medium-light);
    outline: 0;
    box-shadow: none;
}

.custom-select.form-selector {
    background-color: var(--white-color);
}

.dropzone {
    background-color: var(--bg-super-light) !important;
    border: 1px solid var(--bg-bright-light) !important;
    color: var(--bg-super-gray);
    font-size: 14px;
}

.pre-format {
    white-space: pre;
    font-family: monospace;
    font-size: 14px !important;
    background: var(--bg-super-light) !important;
    border-radius: var(--radius_big1);
    color: var(--bg-dark) !important;
    padding: 20px;
}

.icon-media-edit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    margin-top: -2.3rem;
}
.icon-media {
    width: 150px; 
    height: 150px;            
    background: none;
    border: 1px solid var(--bg-light-gray);
    color: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-media .fa {
    font-size: 40px;
    transform: translateY(-0.25rem) !important;
}

/*
 *  Бічна панель елементу (itembar)
 */

.itembar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.itembar-widget {
    background: none;
    border-radius: var(--radius_small2);
    overflow: hidden;
}
.itembar-menu .navbar-nav {
/*  position: fixed; */
    margin: 0;
    padding: 0;
    padding-bottom: .5rem;
    list-style: none;
    border: 1px solid transparent;
}
.itembar-menu .nav-item {
    margin: 0;
}
.itembar-menu .nav-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1rem !important;
    color: var(--body-color);
    text-decoration: none;
    border-radius: var(--radius_small2);
    border: 1px solid transparent;
    border-left: 3px solid transparent !important;
    transition:
        color .20s ease,
        background-color .20s ease,
        transform .20s ease,
        box-shadow .20s ease;
    z-index: 5;
}
.itembar-menu .nav-link i {
    width: 22px;
    text-align: center;
    font-size: 1rem;
    color: inherit;
    transform: translateY(0);
}
.itembar-menu .nav-link span {
    flex: 1;
}
.itembar-menu .nav-link:hover {
    color: var(--primary-color) !important;  
    background: var(--bg-super-light);
    border: 1px solid var(--bg-medium-light);
    border-left-color: color-mix(in srgb, var(--primary-color) 25%, transparent) !important;
    transform: translateX(2px);
    box-shadow: 1px 3px 8px rgba(0,0,0,.05);
    font-weight: 800;
}
.itembar-menu .nav-link:hover i {
    color: var(--primary-color) !important; 
}
.itembar-menu .nav-link:focus {
    color: var(--primary-color);
    background: var(--bg-gray-light);
}
.itembar-menu .nav-link.active {
/*  color: var(--primary-color) !important; */
    background: var(--bg-super-light);
    border: 1px solid var(--bg-medium-light);
    border-left-color: color-mix(in srgb, var(--primary-color) 25%, transparent) !important;
    box-shadow: 1px 3px 5px rgba(0,0,0,.05);
    font-weight: 800;
    z-index: 5;
}

/*
 * wm: Bootstrap
 */

.nav-link,
.nav-link .fa-fw {                                         /* wm: Бокове меню */
    color: var(--bg-dark) !important;
}

.text-primary,
strong.text-primary {
    color: var(--primary-color) !important;
}

.text-red,
strong.text-red {
    color: red !important;
}

.text-dark,
strong.text-dark {
    color: var(--bg-dark) !important;
}

.text-black,
strong.text-black {
    color: var(--black-color) !important;
}

.text-gray,
strong.text-gray {
    color: var(--bg-gray) !important;
}

.text-light,
strong.text-light {
    color: var(--bg-gray-bright) !important;
}

.text-contrast,
strong.text-contrast {
    color: var(--black-color) !important;
}

.text-on, .text-success {
    color: var(--green-color) !important;
}

.text-off, .text-error, .text-fail {
    color: var(--red-color) !important;
}

.text-lang {
    margin-right: 10px;
    font-weight: 800;
    color: var(--primary-color) !important;
}

/**
 *  WYSIWYG Summernote editor styles (Light theme) Interface
 */

.note-editor.note-frame {
    background-color: var(--bg-bright-light) !important;
    border: 1px solid var(--bg-medium-light) !important;
}
.note-editable {
    font-family: var(primary_family);
    font-size: 16px;
    background-color: var(--white-color) !important;
    color: var(--bg-super-gray) !important;
    line-height: 1.5rem;
}
.note-editor.fullscreen .note-editable {
    padding: 2.5em calc(20% + 5px) 1em !important;
}
.note-toolbar {
    background-color: var(--bg-bright-light) !important;
    border: 1px solid var(--bg-bright-light) !important;
    color: var(--bg-dark) !important;
}
.note-toolbar .btn i {
    font-weight: normal;
    padding: 0  4px  2px !important;
    margin:  0 -4px -2px !important;
    border-radius: 100%;
}
.note-btn {
    background-color: var(--white-color) !important;
    border: 1px solid var(--bg-medium-light) !important;
    color: var(--bg-gray) !important;
}
.note-btn:hover {
    background-color: var(--bg-medium-light) !important;
    border: 1px solid var(--bg-light) !important;
    color: var(--black-color) !important;
}

.note-dropdown-menu {
    background-color: var(--white-color) !important;
    border: 1px solid var(--bg-medium-light) !important;
}
.dropdown-menu a {
    background-color: var(--white-color) !important;
    color: var(--bg-dark) !important;
}
.dropdown-menu a:hover {
    background-color: var(--bg-medium-light) !important;
    color: var(--bg-dark) !important;
}
.note-popover .popover-content .note-dropdown-menu.note-check a i,
.note-editor .note-toolbar .note-dropdown-menu.note-check a i {
    color: var(--primary-color) !important;
}
.note-editor.note-frame .note-statusbar,
.note-editor.note-airframe .note-statusbar {
  background-color: var(--bg-bright-light) !important;
  border-top: 1px solid var(--bg-medium-light) !important;
}
.note-popover {
    border-radius: 4px;
    background-color: var(--bg-super-light);
    border: 2px solid var(--bg-medium-light);
}
.note-popover .popover-content {
    border-radius: 4px;
    background-color: var(--bg-super-light);
    color: var(--bg-dark);
}
.note-popover .btn i {
    font-weight: normal;
}
.note-popover .arrow:after {
    border-top-color:  var(--primary-color) !important;
}
.note-editor .note-video-clip {
    display: block;
    background-color: var(--bg-super-light);
    border: 2px solid var(--bg-medium-light);
    border-radius: 5px;
    margin: 20px;
    padding: 2px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/**
 *  Menu Colors
 */

.note-editor .note-color .dropdown-menu button.note-color-reset,
.note-editor .note-color .dropdown-menu button.note-color-select {
    background-color: var(--bg-medium-light) !important;
    border: 1px solid var(--bg-light) !important;
    color: var(--bg-gray) !important;
}
.note-editor .note-color .dropdown-menu button.note-color-reset:hover,
.note-editor .note-color .dropdown-menu button.note-color-select:hover {
    background-color: var(--bg-bright-light) !important;
    border: 1px solid var(--bg-super-light) !important;
    color: var(--bg-super-gray) !important;
}
.note-editor .note-color .dropdown-menu .note-palette-title {
    border-bottom: 2px solid var(--bg-medium-light) !important;
}
.note-holder-custom .note-color-palette .note-color-btn {
    border: 1px solid var(--bg-super-light) !important;
}
.note-editor .note-editable {
    border: 2px solid var(--bg-bright-light) !important;
}
.note-editor .note-editable:focus {
    border: 2px solid var(--primary-color) !important;
}
.note-editor .tooltip-inner {
    background-color: var( --bg-medium-light) !important;
    border: 1px solid var(--bg-light) !important;
    color: var(--bg-super-gray) !important;
}
.note-icon-bar {
    background-color: var(--bg-bright-light) !important;
}
.note-modal .modal-dialog {
    top: 25%;
}

/**
 *  Menu Styles
 */

a.dropdown-item blockquote  {
    color: var(--bg-super-gray);
    font-size: 14px;
    font-style: italic;
    background-color: var(--bg-super-light) !important;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    padding: 8px 12px !important;
}
a.dropdown-item pre {
    color: var(--primary-color);
    font-size: 14px;
    background-color: var(--bg-super-light) !important;
    border-left: 4px solid var(--bg-gray);
    border-radius: 4px;
    padding: 7px 12px !important;
}

.note-popover .popover-content .note-style .dropdown-style h2,
.note-editor .note-toolbar .note-style .dropdown-style h2 {
    color: var(--primary-color) !important;
    font-size: 2.2em !important;
    font-weight: 900 !important;
}
.note-popover .popover-content .note-style .dropdown-style h3,
.note-editor .note-toolbar .note-style .dropdown-style h3 {
    color: var(--bg-super-gray) !important;
    font-size: 1.8em !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
}
.note-popover .popover-content .note-style .dropdown-style h4,
.note-editor .note-toolbar .note-style .dropdown-style h4 {
    color: var(--bg-gray-dark) !important;
    font-size: 1.6em !important;
    font-weight: 700 !important;
}
.note-popover .popover-content .note-style .dropdown-style h5,
.note-editor .note-toolbar .note-style .dropdown-style h5 {
    color: var(--bg-gray-dark) !important;
    font-size: 1.3em !important;
    font-weight: 700 !important;
}
.note-popover .popover-content .note-style .dropdown-style h6,
.note-editor .note-toolbar .note-style .dropdown-style h6 {
    color: var(--bg-gray-dark) !important;
    font-size: 1.1em !important;
    font-weight: 700 !important;
}
.note-popover .popover-content .note-style .dropdown-style p,
.note-editor .note-toolbar .note-style .dropdown-style p {
    font-size: 14px !important;
}

pre[data-prog-lang] {                                   /* wm: Обов'язкове для роботи скрипта */
    position: relative;
}
pre[data-prog-lang]::before {
    content: attr(data-prog-lang);
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 8px;
    margin: 8px;
    color: var(--bg-gray-light);
    background: var(--white-color);
    border: 1px solid var(--bg-medium-light);
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
}

/*
 *  Редактор мовних файлів
 */

.form-group.translation {
    background: var(--bg-super-light);
}

.translation-editor {
    padding: 0;
    margin: 0;
}

.translation-editor table {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--bg-super-gray);
    background-color: var(--bg-super-light);
    border-collapse: collapse;
    table-layout: fixed;
}

.translation-editor td {
    padding: 3px 3px;
}

.translation-editor td[rowspan] {
    vertical-align: middle !important;
}

.translation-editor code {
    display: block;
    font-size: 12px;
    font-family: monospace;
    font-style: italic;
    padding: 0 8px;
    color: var(--primary-color);
    word-break: break-all;
}

.translation-editor .base-text {
    padding: 0 10px;
    margin: 0;
    color: var(--bg-gray-bright);
    white-space: pre-wrap;
    word-break: break-word;
}

.translation-editor textarea {
    width: 100%;
    color: var(--black-color);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    padding: 0 8px;
    margin: 0;
    border: 2px solid transparent;
    background-color: inherit;
}

.translation-editor textarea:focus {
    color: var(--bg-gray-dark);
    background: inherit;
    border: 2px solid var(--primary-color); 
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none !important;
    outline: none !important;
}

.bg-light {
    background-color: var(--bg-bright-light) !important;
}
.bg-white {
    background-color: var(--bg-super-light) !important;
}

/*
 *  Медіа-бібліотека Spatie
 */

.fa-is-spinning {
    font-size: 32px !important;
    color: var(--bg-super-gray);
}
.media-dropzone {
    position: relative;
    border: 1px dashed var(--bg-light-dark);
    border-radius: 0.35rem;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    transition: border-color .15s ease, background-color .15s ease;
}
.media-dropzone a {
    font-weight: 800 !important;
    color: var(--black-color);
    text-decoration: none;
}
.media-dropzone a:hover {
    color: var(--primary-color);
}

.media-dropzone.is-dragover {
    border-color: var(--primary-color);
    background-color: var(--white-color);
}

.media-dropzone-empty a {
    font-weight: 600;
}

.media-dropzone-preview {
    position: relative;
    width: 100%;
    border-radius: 0.35rem;
    overflow: hidden;
    background: var(--white-color);
}

.media-dropzone-preview img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: var(--white-color);
}

.media-dropzone-info {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(180deg, var(--primary-color) 0%, transparent 100%);
    color: var(--bg-gray-dark);
    font-size: 0.85rem;
}

.media-dropzone-info-body {
    padding-right: 2rem;
}

.media-dropzone-remove {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    border: none;
    background: rgba(0,0,0,.85);
    color: var(--bg-light-gray);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    line-height: 1;
    cursor: pointer;
}

/**
 *  Shop: Media selector (селектор зображень)
 */

.form-group .form-item {
    padding: 8px;
    border-radius: var(--radius_small2);
    background: var(--white-color);                           /* wm: Фон блока під кнопкави Видалити та Відправити */                   
    border: 1px solid var(--bg-medium-light); 
}

.media-selector {
    position: relative;
}

.media-selector-trigger:has(.media-selector-trigger-thumb:not(.d-none)) {
    min-height: 64px;
}

.media-selector-trigger {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.media-selector-trigger-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius_small1);
    margin-left: -1px;
    margin-right: 14px;
    flex-shrink: 0;
}

.media-selector-trigger-text {
    text-align: left;
}

.media-selector-trigger.media-selector-error {
    border: 2px solid var(--red-color);
}

.media-selector-dropdown {
    position: absolute;
    z-index: 1050;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: var(--white-color);
    border: 1px solid var(--bg-light-gray);
    border-radius: var(--radius_small2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.media-selector-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    margin: 4px;
    border-radius: var(--radius_small1);
    cursor: pointer;
}

.media-selector-option:hover {
    background: var(--bg-super-light);
}

.media-selector-option img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius_small1);
}

.media-selector-option.is-selected {
    background: var(--light-primary);
}

.media-selector-empty {
    background: var(--light-primary);
    color: var(--primary-color)
}

/**
 *  CSS Note: CodeMirror (Style Light)
 */
.note-editor .CodeMirror {
    border: 2px solid var(--gold-color) !important;
    font-size: 12px;
}
.note-editor .CodeMirror:focus-within {
    border: 2px solid var(--primary-color) !important;
}
.CodeMirror-selected {
    background-color: var(--bg-gray-light) !important;
}
pre code:empty::before {
    display: none;
}

@media (min-width: 2560px) {
    .content-area {
        padding-bottom: 12px;
    }
}

@media (max-width: 1024px) {
    .table-responsive {
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 6.5rem !important;
    }
    .sidebar .collapse-inner {
        width: 13rem;
    }
    .sidebar .nav-item > .collapse {
        left: 6.5rem;
    }

    #sidebarToggle {
        margin-left: 0;               /* wm: Значення відступу */
        margin-right: -15px;
    }
    
    #navbarToggle {
        width: 100%;                  /* wm: Забезпечує достатньо місця для кнопок на верхній панелі */
    }

    .slogan, .sidebar-card {
        visibility: hidden;
        display: none;
        letter-spacing: -0.4px;
    }

    .note-editor.fullscreen .note-editable {
        padding: 2.5em 2em 1em !important;
    }
}

@media (max-width: 576px) {
    #sidebarToggle {
        margin-left: 0;               /* wm: Значення відступу */
        margin-right: -15px;
    }
    
    #navbarToggle {
        width: 100%;                  /* wm: Забезпечує достатньо місця для кнопок на верхній панелі */
    }

    .note-editor.fullscreen .note-editable {
        padding: 2.5em 2em 1em !important;
    }
}