.openhours_sidebar_wrapper {
  padding: 5px 30px;
  font-size: 13px;
}
.openhours_sidebar_day {
  margin-left: 5px;
}
.openhours_sidebar_time {
  float: right;
}

.message-wrapper {
    max-height: 500px;
    overflow: auto;
    padding: 5px;
}

.message-right {
    text-align: right;
}

.badge-custom {
    white-space: normal !important;
    padding: 5px 15px;
    margin-top: 10px;
    margin-bottom: 5px;
    text-align: left !important;
    line-height: 2 !important;
    /* max-width: calc(100% - 50px); */
}

.card-custom {
    width: 32px;
    height: 32px;
    color: #28c76f!important
}

.custom-card-link {
    color: #28c76f!important
}

.payment-box {
    width: 270px;
}

.theme-secondary .form-control:focus,
.theme-secondary .form-select:focus {
    border-color: #82868b !important;
}
.theme-success .form-control:focus,
.theme-success .form-select:focus {
    border-color: #28c76f !important;
}
.theme-danger .form-control:focus,
.theme-danger .form-select:focus {
    border-color: #ea5455 !important;
}
.theme-info .form-control:focus,
.theme-info .form-select:focus {
    border-color: #00cfe8 !important;
}
.theme-warning .form-control:focus,
.theme-warning .form-select:focus {
    border-color: #ff9f43 !important;
}
.theme-dark .form-control:focus,
.theme-dark .form-select:focus {
    border-color: #4b4b4b !important;
}
.theme-dblue .form-control:focus,
.theme-dblue .form-select:focus {
    border-color: #180061 !important;
}
.theme-dgreen .form-control:focus,
.theme-dgreen .form-select:focus {
    border-color: #044a01 !important;
}
.theme-soil .form-control:focus,
.theme-soil .form-select:focus {
    border-color: #ed7905 !important;
}
.theme-dred .form-control:focus,
.theme-dred .form-select:focus {
    border-color: #a50404 !important;
}
.theme-tred .form-control:focus,
.theme-tred .form-select:focus {
    border-color: #a50404 !important;
}

.theme-secondary a { color: #82868b; }
.theme-success a { color: #28c76f; }
.theme-danger a { color: #ea5455; }
.theme-info a { color: #00cfe8; }
.theme-dark a { color: #4b4b4b; }
.theme-warning a { color: #ff9f43; }
.theme-dblue a { color: #180061; }
.theme-dgreen a { color: #044a01; }
.theme-soil a { color: #ed7905; }
.theme-dred a { color: #a50404; }
.theme-tred a { color: #910601; }

.theme-secondary .page-item.active .page-link { background-color: #82868b !important; }
.theme-success .page-item.active .page-link { background-color: #28c76f !important; }
.theme-danger .page-item.active .page-link { background-color: #ea5455 !important; }
.theme-info .page-item.active .page-link { background-color: #00cfe8 !important; }
.theme-warning .page-item.active .page-link { background-color: #ff9f43 !important; }
.theme-dark .page-item.active .page-link { background-color: #4b4b4b !important; }
.theme-dblue .page-item.active .page-link { background-color: #180061 !important; }
.theme-dgreen .page-item.active .page-link { background-color: #044a01 !important; }
.theme-soil .page-item.active .page-link { background-color: #ed7905 !important; }
.theme-dred .page-item.active .page-link { background-color: #a50404 !important; }
.theme-tred .page-item.active .page-link { background-color: #910601 !important; }

.theme-secondary .form-check-input:checked { background-color: #82868b !important; border-color: #82868b; }
.theme-success .form-check-input:checked { background-color: #28c76f !important; border-color: #28c76f; }
.theme-danger .form-check-input:checked { background-color: #ea5455 !important; border-color: #ea5455; }
.theme-info .form-check-input:checked { background-color: #00cfe8 !important; border-color: #00cfe8; }
.theme-warning .form-check-input:checked { background-color: #ff9f43 !important; border-color: #ff9f43; }
.theme-dark .form-check-input:checked { background-color: #4b4b4b !important; border-color: #4b4b4b; }
.theme-dblue .form-check-input:checked { background-color: #180061 !important; border-color: #180061; }
.theme-dgreen .form-check-input:checked { background-color: #044a01 !important; border-color: #044a01; }
.theme-soil .form-check-input:checked { background-color: #ed7905 !important; border-color: #ed7905; }
.theme-dred .form-check-input:checked { background-color: #a50404 !important; border-color: #a50404; }
.theme-tred .form-check-input:checked { background-color: #910601 !important; border-color: #910601; }

.theme-secondary .form-check-input:focus { border-color: #82868b; }
.theme-success .form-check-input:focus { border-color: #28c76f; }
.theme-danger .form-check-input:focus { border-color: #ea5455; }
.theme-info .form-check-input:focus { border-color: #00cfe8; }
.theme-warning .form-check-input:focus { border-color: #ff9f43; }
.theme-dark .form-check-input:focus { border-color: #4b4b4b; }
.theme-dblue .form-check-input:focus { border-color: #180061; }
.theme-dgreen .form-check-input:focus { border-color: #044a01; }
.theme-soil .form-check-input:focus { border-color: #ed7905; }
.theme-dred .form-check-input:focus { border-color: #a50404; }
.theme-tred .form-check-input:focus { border-color: #910601; }

.theme-primary .ticket-open td { color: #7367f0 !important; font-weight: bold; }
.theme-secondary .ticket-open td { color: #82868b !important; font-weight: bold; }
.theme-success .ticket-open td { color: #28c76f !important; font-weight: bold; }
.theme-danger .ticket-open td { color: #ea5455 !important; font-weight: bold; }
.theme-info .ticket-open td { color: #00cfe8 !important; font-weight: bold; }
.theme-warning .ticket-open td { color: #ff9f43 !important; font-weight: bold; }
.theme-dark .ticket-open td { color: #4b4b4b !important; font-weight: bold; }
.theme-dblue .ticket-open td { color: #180061 !important; font-weight: bold; }
.theme-dgreen .ticket-open td { color: #044a01 !important; font-weight: bold; }
.theme-soil .ticket-open td { color: #ed7905 !important; font-weight: bold; }
.theme-dred .ticket-open td { color: #a50404 !important; font-weight: bold; }
.theme-tred .ticket-open td { color: #910601 !important; font-weight: bold; }

.theme-secondary .input-group:focus-within .input-group-text { border-color: #82868b }
.theme-success .input-group:focus-within .input-group-text { border-color: #28c76f }
.theme-danger .input-group:focus-within .input-group-text { border-color: #ea5455 }
.theme-info .input-group:focus-within .input-group-text { border-color: #00cfe8 }
.theme-warning .input-group:focus-within .input-group-text { border-color: #ff9f43 }
.theme-dark .input-group:focus-within .input-group-text { border-color: #4b4b4b }
.theme-dblue .input-group:focus-within .input-group-text { border-color: #180061 }
.theme-dgreen .input-group:focus-within .input-group-text { border-color: #044a01 }
.theme-soil .input-group:focus-within .input-group-text { border-color: #ed7905 }
.theme-dred .input-group:focus-within .input-group-text { border-color: #a50404 }
.theme-tred .input-group:focus-within .input-group-text { border-color: #910601 }

.main-menu .navigation.theme-secondary > li ul .active { background: #82868b !important; box-shadow: 0 0 10px 1px rgba(130, 134, 139, 0.7) !important; }
.main-menu .navigation.theme-success > li ul .active { background: #28c76f !important; box-shadow: 0 0 10px 1px rgba(40, 199, 111, 0.7) !important; }
.main-menu .navigation.theme-danger > li ul .active { background: #ea5455 !important; box-shadow: 0 0 10px 1px rgba(234, 84, 85, 0.7) !important; }
.main-menu .navigation.theme-info > li ul .active { background: #00cfe8 !important; box-shadow: 0 0 10px 1px rgba(0, 207, 232, 0.7) !important; }
.main-menu .navigation.theme-warning > li ul .active { background: #ff9f43 !important; box-shadow: 0 0 10px 1px rgba(255, 159, 67, 0.7) !important; }
.main-menu .navigation.theme-dark > li ul .active { background: #4b4b4b !important; box-shadow: 0 0 10px 1px rgba(75, 75, 75, 0.7) !important; }
.main-menu .navigation.theme-dblue > li ul .active { background: #180061 !important; box-shadow: 0 0 10px 1px rgba(24, 0, 97, 0.7) !important; }
.main-menu .navigation.theme-dgreen > li ul .active { background: #044a01 !important; box-shadow: 0 0 10px 1px rgba(4, 74, 1, 0.7) !important; }
.main-menu .navigation.theme-soil > li ul .active { background: #ed7905 !important; box-shadow: 0 0 10px 1px rgba(237, 121, 5, 0.7) !important; }
.main-menu .navigation.theme-dred > li ul .active { background: #a50404 !important; box-shadow: 0 0 10px 1px rgba(217, 11, 4, 0.7) !important; }
.main-menu .navigation.theme-tred > li ul .active { background: #910601 !important; box-shadow: 0 0 10px 1px rgba(145, 6, 1, 0.7) !important; }

.color-box {
  border-radius: 0.5rem;
  cursor: pointer;
  height: 24px;
  margin: 0.5rem;
  position: relative;
  width: 24px;
}
.color-box.selected:after {
  border: 1px solid #7367f0;
  border-radius: 0.5rem;
  content: "";
  height: 30px;
  left: -3px;
  position: absolute;
  top: -3px;
  width: 30px;
}
.plan-row {
    overflow-x: auto;
}
.plan-card {
    max-width: 250px;
    min-width: 250px;
    display: flex;
    padding: 5px;
}
.plan-header {
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.3);
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    color: white;
    text-align: center;
}
.plan-name {
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.25rem;
}
.plan-price {
    font-size: 2rem;
    font-weight: bold;
    margin: 8px 12px 0;
}
.plan-body {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: 20px 22px 0;
    flex: 1;
}
.plan-product-count {
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
}
.plan-subscribe {
    background: white;
    border-style: none;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin: 32px auto 32px;
    padding: 12px 42px 13px 41px;
    border-radius: 50px !important;
}
.plan-body.free {
    color: #82868b;
}
.free .plan-subscribe {
    background: #82868b;
    color: white !important;
}
.free .plan-subscribe:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.plan-subscribe:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.color-primary.plan-subscribe { color: #7367f0 !important; }
.color-secondary.plan-subscribe { color: #82868b !important; }
.color-success.plan-subscribe { color: #28c76f !important; }
.color-danger.plan-subscribe { color: #ea5455 !important; }
.color-info.plan-subscribe { color: #00cfe8 !important; }
.color-dark.plan-subscribe { color: #4b4b4b !important; }
.color-warning.plan-subscribe { color: #ff9f43 !important; }
.color-dblue.plan-subscribe { color: #180061 !important; }
.color-dgreen.plan-subscribe { color: #044a01 !important; }
.color-soil.plan-subscribe { color: #ed7905 !important; }
.color-dred.plan-subscribe { color: #a50404 !important; }
.color-tred.plan-subscribe { color: #910601 !important; }

.chat .chat-avatar {
    float: right;
    margin: 0 10px 0 0;
}
.chat .chat-body {
    display: block;
    margin: 10px 30px 0 0;
    overflow: hidden;
}
.chat .chat-body .chat-content {
    background-image: linear-gradient(80deg,#7367f0,#9e95f5);
    border-radius: 0.357rem;
    box-shadow: 0 4px 8px 0 rgb(34 41 47 / 12%);
    clear: both;
    color: #fff;
    float: right;
    margin: 0 1rem 10px 0;
    max-width: 75%;
    padding: 0.7rem 1rem;
}
.chat.chat-left .chat-avatar {
    float: left;
    margin: 0 0 0 10px;
}
.chat.chat-left .chat-body .chat-content {
    background: none;
    background-color: #fff;
    color: #6e6b7b;
    float: left;
    margin: 0 0 10px 1rem;
}
.chat .chat-body .chat-content p {
    margin: 0;
}

.chat-time-text-small {
    font-size: 10px;
}

@font-face {
    font-family: charleswright;
    src: url('front/fonts/CHARLESWRIGHT-BOLD.TTF')
}

.cke_notifications_area {
    display: none !important;
}

/* Header stability: prevent navbar/content jump while Vuexy initialises. */
body.vertical-layout .header-navbar,
body.vertical-layout .header-navbar .navbar-container {
    min-height: 4.45rem;
}

body.vertical-layout .header-navbar .nav-link,
body.vertical-layout .header-navbar .dropdown-toggle {
    min-height: 4.45rem;
    display: flex;
    align-items: center;
}

body.vertical-layout .header-navbar [data-feather],
body.vertical-layout .header-navbar .ficon,
body.vertical-layout .header-navbar svg {
    width: 1.286rem;
    height: 1.286rem;
    min-width: 1.286rem;
    min-height: 1.286rem;
}

html.loading body.vertical-layout .header-navbar,
html.loading body.vertical-layout .header-navbar *,
html.loading body.vertical-layout .app-content,
html.loading body.vertical-layout .main-menu {
    transition: none !important;
    animation: none !important;
}

/* ---- Settings pages: grouped vertical nav + consistent section cards ----
   Used by Company Settings (pages/company-setting) and future settings screens. */
.settings-nav-card .card-body {
    padding: 1.1rem 0.9rem;
}
.settings-nav-group {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a6a4b0;
    margin: 1.1rem 0 0.4rem 0.8rem;
}
.settings-nav .settings-nav-group:first-child {
    margin-top: 0.1rem;
}
.settings-nav.nav-pills {
    gap: 2px;
}
/* Beat Vuexy's `.nav-pills .nav-link { justify-content: center }` */
.settings-nav.nav-pills .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.25;
    color: inherit;
    border: 0;
    border-radius: 0.358rem;
}
.settings-nav.nav-pills .nav-link svg,
.settings-nav.nav-pills .nav-link i {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-right: 0.7rem;
    opacity: 0.75;
}
.settings-nav.nav-pills .nav-link:not(.active):hover {
    background: rgba(34, 41, 47, 0.045);
    color: inherit;
}
html.dark-layout .settings-nav.nav-pills .nav-link:not(.active):hover {
    background: rgba(255, 255, 255, 0.06);
}
/* Active: quiet primary tint + accent bar, not a heavy solid pill */
.settings-nav.nav-pills .nav-link.active {
    background: rgba(var(--bs-primary-rgb, 115, 103, 240), 0.1);
    color: var(--bs-primary, #7367f0);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--bs-primary, #7367f0);
}
.settings-nav.nav-pills .nav-link.active svg,
.settings-nav.nav-pills .nav-link.active i {
    opacity: 1;
}
html.dark-layout .settings-nav.nav-pills .nav-link.active {
    background: rgba(var(--bs-primary-rgb, 115, 103, 240), 0.22);
    color: #beb3f8;
}
.settings-nav .nav-link .settings-nav-external {
    margin-left: auto;
    margin-right: 0;
    width: 13px;
    height: 13px;
    min-width: 13px;
    opacity: 0.6;
}
.settings-nav-divider {
    margin: 0.9rem 0.25rem;
}

/* Section cards inside the settings tab content */
.settings-pane-head {
    border-bottom: 1px solid rgba(34, 41, 47, 0.08);
    padding-bottom: 1rem;
}
html.dark-layout .settings-pane-head {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.settings-pane-head .card-text {
    font-size: 0.92rem;
}
.settings-section-title {
    margin: 1.5rem 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
}
.settings-section-title.mt-0 {
    margin-top: 0;
}
.settings-section-hint {
    font-size: 0.85rem;
    max-width: 48rem;
}
.settings-pane-actions {
    border-top: 1px solid rgba(34, 41, 47, 0.08);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}
html.dark-layout .settings-pane-actions {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* Media upload rows (logo, login background) */
.settings-media-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    border: 1px solid rgba(34, 41, 47, 0.12);
    border-radius: 0.428rem;
    padding: 1rem;
}
html.dark-layout .settings-media-box {
    border-color: rgba(255, 255, 255, 0.12);
}
.settings-media-preview {
    object-fit: contain;
    background: rgba(0, 0, 0, 0.04);
}
.settings-media-controls {
    flex: 1;
    min-width: 220px;
}

/* Opening-hours day grid */
.settings-hours-row {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(34, 41, 47, 0.06);
}
.settings-hours-row:last-of-type {
    border-bottom: 0;
}
html.dark-layout .settings-hours-row {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.settings-hours-row .form-label {
    font-weight: 600;
}
@media (max-width: 767.98px) {
    .settings-hours-row .form-label {
        margin-bottom: 0.35rem;
    }
    .settings-hours-row .form-check {
        margin-top: 0.35rem;
    }
}

/* ---- Support-ticket thread (partials/tickets/thread): chat-style bubbles ---- */
.tk-thread {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.25rem 0.25rem 0.5rem;
}
.tk-msg {
    display: flex;
    flex-direction: column;
    max-width: 82%;
}
.tk-msg-in {
    align-self: flex-start;
    align-items: flex-start;
}
.tk-msg-out {
    align-self: flex-end;
    align-items: flex-end;
}
.tk-msg-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.85rem 0 0.25rem;
}
.tk-msg-out .tk-msg-meta {
    flex-direction: row-reverse;
}
.tk-msg-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar.tk-msg-avatar .avatar-content {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
}
.tk-msg-name {
    font-weight: 600;
    font-size: 0.85rem;
}
.tk-msg-time {
    font-size: 0.72rem;
    opacity: 0.65;
}
.tk-bubble {
    border-radius: 0.75rem;
    padding: 0.55rem 0.85rem;
    margin-bottom: 2px;
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: pre-line;
    word-break: break-word;
    background: rgba(0, 0, 0, 0.05);
    color: inherit;
}
.tk-msg-in .tk-bubble {
    border-top-left-radius: 0.25rem;
}
.tk-msg-out .tk-bubble {
    border-top-right-radius: 0.25rem;
    background: rgba(115, 103, 240, 0.14);
}
html.dark-layout .tk-bubble {
    background: rgba(255, 255, 255, 0.08);
}
html.dark-layout .tk-msg-out .tk-bubble {
    background: rgba(115, 103, 240, 0.28);
}
.tk-attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(115, 103, 240, 0.4);
    border-radius: 0.358rem;
    padding: 0.25rem 0.6rem;
    max-width: 100%;
}
.tk-attachment span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tk-attachment svg,
.tk-attachment [data-feather] {
    width: 13px;
    height: 13px;
    min-width: 13px;
}
.tk-drop-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    opacity: 0.75;
}
.tk-drop-hint svg,
.tk-drop-hint [data-feather] {
    width: 14px;
    height: 14px;
}

/* ---- File-service shared upload/chat affordances (dark-mode safe) ----
   Replaces hardcoded #fafafa/#f8f9fa inline styles that broke dark layout. */
.fs-dropzone {
    border: 2px dashed rgba(34, 41, 47, 0.25);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    background: rgba(34, 41, 47, 0.03);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.fs-dropzone:hover {
    border-color: rgba(115, 103, 240, 0.6);
    background: rgba(115, 103, 240, 0.05);
}
html.dark-layout .fs-dropzone {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
}
html.dark-layout .fs-dropzone:hover {
    border-color: rgba(115, 103, 240, 0.7);
    background: rgba(115, 103, 240, 0.1);
}
.fs-upload-progress {
    padding: 0.5rem 1rem;
    border-top: 1px solid rgba(34, 41, 47, 0.08);
    background: rgba(34, 41, 47, 0.03);
}
html.dark-layout .fs-upload-progress {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}
.fs-chat-composer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(34, 41, 47, 0.08);
}
html.dark-layout .fs-chat-composer {
    border-top-color: rgba(255, 255, 255, 0.08);
}
.fs-soft-panel {
    border: 1px solid rgba(34, 41, 47, 0.12);
    border-radius: 8px;
    background: rgba(34, 41, 47, 0.03);
}
html.dark-layout .fs-soft-panel {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

/* ---- Website builder: live preview modal + template cards ---- */
.wb-preview-body {
    display: flex;
    justify-content: center;
    background: #2a2a33;
    overflow: auto;
}
#wbPreviewFrame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    transition: width 0.2s ease;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.4);
}
.template-card {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.template-card.border-primary {
    box-shadow: 0 0 0 2px var(--bs-primary, #7367f0);
}

/* ---- Website leads inbox ---- */
#leads-table .lead-unread td {
    font-weight: 600;
}
#leads-table .lead-row:hover td {
    background: rgba(115, 103, 240, 0.04);
}
