/* SO Theme */
:root,
[data-bs-theme=light] {
    --bs-link-hover-color-rgb: 105, 108, 255;
    --bs-link-color-rgb: 105, 108, 255;
    --bs-link-color: #696CFF;
    --bs-link-hover-color: #585ad8;
    --so-primary-color: rgba(105, 108, 255, 0.9);
    --bs-heading-color: rgba(34, 48, 62, 0.9);
    --bs-body-color: rgba(34, 48, 62, 0.9);
    --so-box-shadow: 0px 3px 8px rgba(34, 48, 62, 0.1);
}

body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    /*background-color: #f8f9fa;*/
}

@media (min-width: 992px) {
    .sidebar-expand-lg.layout-fixed .app-sidebar .sidebar-wrapper {
        height: calc(100vh - (calc(15.5rem + 1px)));
    }
}

.app-header {
    border: none;
}

.app-main .app-content-header {
    padding: 0;
}

.dropdown-menu {
    --bs-dropdown-link-active-bg: rgba(34, 48, 62, 0.06);
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--bs-body-color);
}

.recent-customer-item.active,
.recent-customer-item:active {
    color: var(--bs-body-color);
    background-color:  rgba(34, 48, 62, 0.06);
}

.app-sidebar {
    --lte-sidebar-menu-active-color: rgba(105, 108, 255, 0.9);
    --lte-sidebar-menu-active-bg: rgba(105, 108, 255, 0.16);
    --lte-sidebar-hover-bg: rgba(34, 48, 62, 0.06);
}

.app-page-content {
    box-shadow: 0px 3px 8px rgba(34, 48, 62, 0.1);
    border-radius: 6px;
    background-color: #ffffff;
    margin-left: 0.25rem;
    margin-right: 0.25rem;

}

.list-group {
    border-radius: 0.5rem;
    box-shadow: 0px 3px 8px rgba(34, 48, 62, 0.1);
    border: 1px solid #e9ecef;
}

.list-group-item {
    border: none;
}

.sidebar-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);

}

.sidebar-controls>div {
    display: inline-block;
}

.sidebar-collapse .sidebar-controls {
    justify-content: center;
}

.sidebar-collapse .sidebar-toggle-button-container {
    margin-right: auto;
}

.sidebar-controls-label {
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    color: rgba(34, 48, 62, 0.4);
    text-transform: uppercase;
    font-weight: 600;
}

.sidebar-toggle-button {
    border: none;
    display: flex;
    align-items: center;
    background-color: transparent;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    padding: 0;
}

.sidebar-toggle-button:focus-visible {
    outline: 2px solid rgba(105, 108, 255, 0.4);
    outline-offset: 2px;
}

.sidebar-toggle-button:hover {
    background: rgba(105, 108, 255, 0.18);
}

.sidebar-toggle-button i {
    font-size: 1.5rem;
    line-height: 1;
}

.sidebar-toggle-button .icon-when-expanded {
    display: none;
}

body.sidebar-mini.sidebar-collapse .sidebar-toggle-button .icon-when-collapsed {
    display: inline-block;
}

body.sidebar-mini.sidebar-collapse .sidebar-toggle-button .icon-when-expanded {
    display: none;
}

body.sidebar-mini:not(.sidebar-collapse) .sidebar-toggle-button .icon-when-collapsed {
    display: none;
}

body.sidebar-mini:not(.sidebar-collapse) .sidebar-toggle-button .icon-when-expanded {
    display: inline-block;
}

body.sidebar-mini.sidebar-collapse .app-sidebar:hover {
    min-width: 4.6rem;
    max-width: 4.6rem;
}

body.sidebar-mini.sidebar-collapse .app-sidebar:hover .sidebar-menu .nav-link {
    /* width: 4.6rem; */
}

body.sidebar-mini.sidebar-collapse .app-sidebar:hover .sidebar-menu .nav-link p,
body.sidebar-mini.sidebar-collapse .app-sidebar:hover .sidebar-menu .nav-header,
body.sidebar-mini.sidebar-collapse .app-sidebar:hover .brand-text {
    display: none;
    max-width: 0;
}

body.sidebar-mini.sidebar-collapse .app-sidebar:hover .sidebar-menu .nav-arrow,
body.sidebar-mini.sidebar-collapse .app-sidebar:hover .sidebar-menu .nav-badge {
    display: none;
}

body.sidebar-mini.sidebar-collapse .app-sidebar .sidebar-wrapper {
    overflow-y: auto;
    overflow: visible;
}

body.sidebar-mini.sidebar-collapse .app-sidebar .sidebar-wrapper nav,
body.sidebar-mini.sidebar-collapse .app-sidebar .sidebar-wrapper nav ul {
    overflow: visible;
}

body.sidebar-mini.sidebar-collapse .app-sidebar .sidebar-menu .nav-link {
    position: relative;
    overflow: visible;
}

body.sidebar-mini.sidebar-collapse .app-sidebar .sidebar-menu .nav-link::after {
    content: attr(data-sidebar-tooltip);
    position: absolute;
    left: calc(100% + 0.65rem);
    top: 50%;
    transform: translate3d(-0.2rem, -50%, 0);
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
    z-index: 10;
}

body.sidebar-mini.sidebar-collapse .app-sidebar .sidebar-menu .nav-link::before {
    content: "";
    position: absolute;
    left: calc(100% + 0.65rem);
    top: 50%;
    transform: translate3d(-0.2rem, -50%, 0);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 0;
    border-right: 6px solid rgba(15, 23, 42, 0.95);
    opacity: 0;
    transition: opacity 0.12s ease;
    pointer-events: none;
    z-index: 10;
}

body.sidebar-mini.sidebar-collapse .app-sidebar .sidebar-menu .nav-link:hover::after,
body.sidebar-mini.sidebar-collapse .app-sidebar .sidebar-menu .nav-link:focus-visible::after {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
}

body.sidebar-mini.sidebar-collapse .app-sidebar .sidebar-menu .nav-link:hover::before,
body.sidebar-mini.sidebar-collapse .app-sidebar .sidebar-menu .nav-link:focus-visible::before {
    opacity: 1;
}

body.sidebar-mini.sidebar-collapse .app-sidebar .sidebar-menu .nav-link:not([data-sidebar-tooltip])::before,
body.sidebar-mini.sidebar-collapse .app-sidebar .sidebar-menu .nav-link:not([data-sidebar-tooltip])::after {
    content: none;
}

.form-check-input:checked {
    background-color: var(--so-primary-color);
    border-color: var(--so-primary-color);
}

.form-check-input[type=checkbox]:indeterminate {
    background-color: var(--so-primary-color);
    border-color: var(--so-primary-color);
}

.tooltip {
    /* --bs-tooltip-bg: var(--so-primary-color); */
}

.btn-outline-primary {
    --bs-btn-color: #696CFF;
    --bs-btn-border-color: #696CFF;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #696CFF;
    --bs-btn-hover-border-color: #696CFF;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #696CFF;
    --bs-btn-active-border-color: #696CFF;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #696CFF;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #696CFF;
    --bs-gradient: none;
}

.btn-secondary-2 {
    --bs-btn-color: #8592A3;
    --bs-btn-bg: #ebedf0;
    --bs-btn-border-color: #ebedf0;
    --bs-btn-hover-color: #8592A3;
    --bs-btn-hover-bg: #dfe1e4;
    --bs-btn-hover-border-color: #dfe1e4;
    --bs-btn-focus-shadow-rgb: 130, 138, 145;
    --bs-btn-active-color: #8592A3;
    --bs-btn-active-bg: #d2d4d8;
    --bs-btn-active-border-color: #d2d4d8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #8592A3;
    --bs-btn-disabled-bg: #ebedf0;
    --bs-btn-disabled-border-color: #ebedf0;
}


.pagination {
    --bs-pagination-active-bg: #696CFF;
    --bs-pagination-active-border-color: #696CFF;
}

.email-template-dropdown-menu,
.sms-template-dropdown-menu {
    width: 100%;
    min-width: 100%;
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.email-template-dropdown-toggle,
.sms-template-dropdown-toggle {
    background-color: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    color: var(--bs-body-color);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    text-align: left;
    gap: 0.75rem;
}

.email-template-dropdown-toggle:hover,
.email-template-dropdown-toggle:focus,
.sms-template-dropdown-toggle:hover,
.sms-template-dropdown-toggle:focus {
    border-color: #696CFF;
    color: var(--bs-body-color);
}

.email-template-dropdown-toggle:focus,
.sms-template-dropdown-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(105, 108, 255, 0.25);
    outline: 0;
}

.email-template-dropdown-toggle .fa-chevron-down,
.sms-template-dropdown-toggle .fa-chevron-down {
    pointer-events: none;
}

.email-template-dropdown-menu .dropdown-item,
.sms-template-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    white-space: normal;
}

.email-template-dropdown-menu .dropdown-item .template-name,
.sms-template-dropdown-menu .dropdown-item .template-name {
    flex: 1 1 auto;
}

.email-template-dropdown-menu .template-delete-btn,
.sms-template-dropdown-menu .sms-template-delete-btn {
    color: #dc3545;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.email-template-dropdown-menu .template-delete-btn.disabled,
.email-template-dropdown-menu .template-delete-btn[aria-disabled="true"],
.sms-template-dropdown-menu .sms-template-delete-btn.disabled,
.sms-template-dropdown-menu .sms-template-delete-btn[aria-disabled="true"] {
    color: #adb5bd;
    cursor: default;
    pointer-events: none;
}

.nav {
    --bs-nav-link-hover-color: var(--lte-sidebar-color);
    --bs-nav-link-hover-bg: rgba(105, 108, 255, 0.16);
    --bs-nav-link-disabled-color: #6c757d;
}

.nav-pills {
    --bs-nav-pills-border-radius: var(--bs-border-radius);
    --bs-nav-pills-link-active-color: #fff;
    --bs-nav-pills-link-active-bg: #696CFF;
    --bs-nav-pills-link-hover-bg: #585ad8;
}

.nav-link:focus,
.nav-link:hover {
    color: var(--bs-nav-link-hover-color);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #696CFF;
    --bs-btn-border-color: #696CFF;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #585ad8;
    --bs-btn-hover-border-color: #585ad8;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #585ad8;
    --bs-btn-active-border-color: #585ad8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #696CFF;
    --bs-btn-disabled-border-color: #696CFF;
}

/* For WebKit browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background: #f3f4f4;
    border-radius: 0.75rem;
}

::-webkit-scrollbar-thumb {
    background: #808d9d;
    border-radius: 0.75rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #808d9d;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #808d9d #f3f4f4;
}

.modal .modal-header {
    border-bottom: none;
}

.modal .modal-header .modal-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.modal .modal-header .btn-close {
    font-size: 0.6rem;
}

.view-as-notice {
    border: 1px solid #696CFF;
    border-radius: 6px;
    color: #696CFF;
    background: #E7E7FF;
    padding: 0.5rem 1rem;
}

.alert.alert-warning {
    border: 1px solid #696CFF;
    background-color: transparent;
}

.view-as-notice a {
    text-decoration: underline;
    cursor: pointer;
}

.fw-bold {
    font-weight: 600 !important;
}

.sidebar-brand {
    height: auto;
    border-bottom: none;
}

.sidebar-brand .brand-link .brand-image {
    max-height: initial;
    width: 100%;

}

[data-bs-theme=dark] .app-sidebar,
[data-bs-theme=dark].app-sidebar {
    --lte-sidebar-hover-color: #fff;
    --lte-sidebar-menu-active-color: #3f5166;
    --lte-sidebar-menu-active-bg: #fff;
    --lte-sidebar-submenu-active-color: #3f5166;
}

body {
    --bs-primary: #696CFF;
}

.app-header h2 {
    /*font-weight: bold;*/
}

.app-header {
    margin-top: 2rem;
    border-radius: 6px;
}

.popup-form {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ccc;
    padding: 1em;
    border-radius: 5px;
}

.popup-title {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.so-body-bg {
    background-color: rgba(248, 249, 250, 1);
}

.top-search-input {
    background-color: rgba(248, 249, 250, 1);
    border-left: none;
}

.btn-top-search {
    border: 1px solid #ccc;
    color: var(--bs-body-color);
    min-width: 6rem;
}

.btn-top-search:hover {
    border: 1px solid #0071f2;
    color: #0071f2;
}

.sidebar-wrapper,
.sidebar-wrapper nav,
.sidebar-wrapper nav ul {
    overflow: auto;
}

.alert .btn-close {
    position: absolute;
    font-size: 0.7rem;
    right: 0.5rem;
}

.loading img {
    width: 48px;
}

.loading-indicator {
    text-align: center;
}

#product-image-container {
    min-height: 100px;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 100px;
}

.dropzone {
    border: 2px dashed #dfe1e4;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #333;
    cursor: pointer;
}

.dropzone.dz-clickable .dz-message,
.dropzone.dz-clickable .dz-message * {
    color: rgba(34, 48, 62, 0.9);
}


.dropzone .dz-message .ph {
    font-size: 2rem;
}

.dz-progress {
    display: none !important;
}

.dz-image img {
    display: inline-block;
}

table .actions i {
    cursor: pointer;
    margin-right: 0.25rem;
    font-size: 1.125rem;
}

table .actions {
    text-align: center;
    position: relative;
    overflow: visible;
}

.stripe-settings .ph {
    cursor: pointer;
    line-height: 2.5rem;
}

.card-header input::placeholder {
    font-size: 0.875rem;
}

.card-body p {
    margin-bottom: 0.4rem;
}

.card-body {
    font-size: 0.95rem;
}

.store-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.table-quick-action {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.table-quick-action:hover,
.table-quick-action:focus {
    color: #111827;
    outline: none;
}

.table-quick-action i {
    pointer-events: none;
    font-size: 1.125rem;
    margin: 0;
}

.action-menu {
    position: relative;
}

.dataTables_scrollBody {
    overflow: visible !important;
}

.action-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 180px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    display: none;
    z-index: 20;
}

.action-menu-dropdown.open {
    display: flex;
    flex-direction: column;
}

.action-menu-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(15, 23, 42, 0.05);
}

.action-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #1f2937;
    text-align: left;
    cursor: pointer;
}

.action-menu-item i {
    pointer-events: none;
    font-size: 1rem;
    width: 1rem;
    text-align: center;
}

.action-menu-item span {
    pointer-events: none;
    flex: 1;
}

.action-menu-item:hover,
.action-menu-item:focus {
    background-color: #f1f5f9;
    outline: none;
}

.action-menu-item-danger {
    color: #dc2626;
}

.action-menu-item-danger:hover,
.action-menu-item-danger:focus {
    background-color: rgba(220, 38, 38, 0.1);
}

.card .btn {
    /*min-width: 70px;*/
}

.order-card {
    border-radius: 0.5rem;
    position: relative;
    padding-left: 2rem !important;
    box-shadow: 0px 3px 8px rgba(34, 48, 62, 0.1);
}

.other-card {
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    position: relative;
    font-size: 0.9rem;
}

.other-card p {
    margin-bottom: 0;
}

.other-card .status-tag-small {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    position: absolute;
    right: 0.75rem;
    top: 0.75rem
}

.order-card .btn-expand,
.order-card .btn-collapse {
    cursor: pointer;
}

.order-card .status-tag-small {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
}

.order-card .status-tag {
    font-size: 1rem;
    padding: 0 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
}

.order-card .btn-hide-details {
    color: var(--bs-primary);
}

.order-card a {
    text-decoration: none;
}

.status-default {
    background-color: #f0f0f0;
    color: #333;
}

.status-on_hold,
.status-waiting_list {
    background-color: rgba(255, 171, 0, 0.16);
    color: #FFAB00;
    border-radius: 0.25rem;
}

.status-due {
    background-color: #ff9800;
    color: #fff;
}

.status-overdue {
    background-color: #f44336;
    color: #fff;
}

.order-container {
    min-height: 20rem;
}

.stage-column.card {
    height: 100%;
    border: none;
    background-color: transparent;
    box-shadow: none;
}

.stage-column .btn-add-card {
    border-radius: 3rem;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    background: #696CFF;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.stage-column .card-title {
    font-weight: 600;
    font-size: 1rem;
}

.stage-column .show-count {
    color: rgba(34, 48, 62, 0.9);
    opacity: 0.6;
}

.stage-column .card-body>.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(204, 204, 204, 1);
    border-radius: 0.35rem;
    padding: 0 0.5rem;

}

.stage-column .card-body {
    padding: 0.5rem;
}

.order-card .order-card-details .controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.order-card-details-offcanvas {
    --bs-offcanvas-width: min(580px, 100vw);
    color: #1f2730;
}

.order-card-details-offcanvas .order-card-patient-name {
    font-weight: normal
}

.offcanvas-header .btn-close {
    font-size: 0.7rem;
}

.order-card-details-offcanvas .offcanvas-header {
    align-items: flex-start;
    gap: 0.75rem;
}

.order-card-details-offcanvas .order-card-details-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.offcanvas-header .offcanvas-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.order-card-details-offcanvas .order-card-created {
    color: #8d92a5;
}

.order-card-details-offcanvas .order-card-details-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card-details-offcanvas .order-card-details-printable {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card-details-offcanvas .detail-row {
    display: grid;
    grid-template-columns: 6rem 1.25rem 1fr;
    align-items: center;
    gap: 0.25rem 0.5rem;
}

.order-card-details-offcanvas .detail-label {
    font-size: 0.875rem;
    color: rgba(34, 48, 62, 0.7);
    font-weight: 600;
    text-transform: none;
    text-align: right;
}


.order-card-details-offcanvas .detail-row .divider {
    width: 1rem;
    height: 1px;
    background-color: #e0e0e0;
    margin: 0.5rem 0;
}

.order-card-details-offcanvas .detail-value-container {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;

}

.order-card-details-offcanvas .detail-value {
    display: inline-block;
    box-shadow: var(--so-box-shadow);
    border-radius: 6px;
    padding: 0.75rem;
}

.order-card-details-offcanvas .order-card-status {
    background-color: rgba(110, 99, 242, 0.12);
    color: #6e63f2;
    font-weight: 600;
}

.order-card-details-offcanvas .order-card-waiting-list .status-tag {
    background-color: rgba(110, 99, 242, 0.12);
    color: #6e63f2;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.order-card-details-offcanvas .order-card-product-image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

.order-image-preview-modal .modal-dialog {
    max-width: 520px;
}

.order-image-preview-modal .modal-content {
    border-radius: 16px;
    border: none;
    background-color: #D9D9D9;
    position: relative;
    box-shadow: 0px 4px 12px rgba(34, 48, 62, 0.14);
    border-radius: 0.5rem;
    border: 1rem solid #D9D9D9;
}

.order-image-preview-modal .modal-body {
    padding: 0;
}

.order-image-preview-modal .btn-close {
    position: absolute;
    top: -2rem;
    right: -2rem;
    z-index: 1;
    background-color: #D9D9D9;
    opacity: 1;
    color: #a7acb2;
    background-size: 50%;
}

.order-image-preview-modal .order-image-modal-img {
    display: block;
    width: 100%;
    border-radius: 12px;
}

.order-card-details-offcanvas .btn-copy-product,
.order-card-details-offcanvas .btn-copy-barcode {
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.order-card-details-offcanvas .order-card-details-actions .detail-actions-title {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.order-card-details-offcanvas .order-card-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.message-details-offcanvas {
    --bs-offcanvas-width: min(480px, 100vw);
    color: #1f2730;
}

.message-details-offcanvas .offcanvas-header {
    align-items: flex-start;
    gap: 0.75rem;
}

.message-details-offcanvas .offcanvas-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.message-details-offcanvas .message-details-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.message-details-offcanvas .message-details-subject {
    font-size: 0.95rem;
    color: #1f2937;
}

.message-details-offcanvas .message-details-meta {
    color: #8d92a5;
    font-size: 0.85rem;
}

.message-details-offcanvas .message-details-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-details-offcanvas .message-details-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

.message-details-offcanvas .message-details-content p {
    margin-bottom: 1rem;
}

.message-details-offcanvas .message-details-content p:last-child {
    margin-bottom: 0;
}

.offcanvas .btn {
    font-weight: 500;
    font-size: 0.9rem;
    /* padding: 0.65rem 0.75rem; */
}

.offcanvas .btn-outline-primary {
    border-color: #6e63f2;
    color: #6e63f2;
}


.offcanvas .btn-outline-primary:hover,
.offcanvas .btn-outline-primary:focus {
    background-color: #6e63f2;
    color: #fff;
}

.offcanvas .btn-outline-danger {
    border-color: #ff5c5c;
    color: #ff5c5c;
}

.offcanvas .btn-outline-danger:hover,
.offcanvas .btn-outline-danger:focus {
    background-color: #ff5c5c;
    color: #fff;
}

.order-card .controls button {
    margin-left: 0;
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
    border: 1px solid #ccc;
    margin-bottom: 0.25rem;
}

.order-card .product-thumbnail {
    cursor: pointer;
    width: 2rem;
}

.product-preview-image {}

.order-card .controls .btn-delete-order {
    color: var(--bs-danger);
}

.stage-column .controls .btn-sort,
.stage-column .controls .btn-filter {
    cursor: pointer;
}

.stage-column .card-header {
    padding: 0.5rem 0.5rem 0 0.5rem;
    border: none;
}

.stage-column input.form-control {
    padding: 0;
}

.order-card.order-card-default {
    /* border-left: 0.5rem solid #ccc; */
}

.order-card.order-card-on_hold {
    /* border-left: 0.5rem solid #ffeb3b; */
}

.order-card.order-card-due {
    /* border-left: 0.5rem solid #ff9800; */
}

.order-card.order-card-overdue {
    /* border-left: 0.5rem solid #f44336; */
}

.other-card.other-card-default {
    border-left: 0.5rem solid #ccc;
}

.other-card.other-card-on_hold {
    border-left: 0.5rem solid #ffeb3b;
}

.other-card.other-card-due {
    border-left: 0.5rem solid #ff9800;
}

.other-card.other-card-overdue {
    border-left: 0.5rem solid #f44336;
}

.blinking-border {
    border: 2px solid red;
    animation: blinkBorder 1s infinite;
}

.blinking-border-blue {
    border: 2px solid #0d6efd;
    animation: blinkBorderBlue 1s infinite;
}


@keyframes blinkBorder {
    0% {
        border-color: var(--bs-danger) !important;
    }

    50% {
        border-color: transparent;
    }

    100% {
        border-color: var(--bs-danger) !important;
    }
}

@keyframes blinkBorderBlue {
    0% {
        border-color: #0d6efd;
    }

    50% {
        border-color: transparent;
    }

    100% {
        border-color: #0d6efd;
    }
}

.stage-column .btn-load-more {
    text-decoration: none;
}

.stage-column .btn-add-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stage-column .input-search-in-stage:focus {
    box-shadow: none;
}

.stage-column .input-search-in-stage {
    background-color: transparent;
    font-size: 0.85rem;
    padding: 0.3rem !important;
    box-shadow: none;
    border: none;
}

.stage-column .btn-load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-summary-buttons i {
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
}

.order-card-summary p {
    font-size: 0.75rem;
}

.bg-body-secondary {
    --bs-bg-opacity: 1;
    background-color: rgba(0, 24, 51, var(--bs-bg-opacity)) !important;
}

.popover .btn-filter-close {
    top: -3.5rem;
    right: -0.5rem;
    font-size: 0.5rem;
}

label .required {
    color: var(--bs-danger);
}

.btn-copy-barcode,
.btn-copy-product {
    cursor: pointer;
}

a {
    text-decoration: none;
}

.popover {
    max-width: none;
    /* removes the 276px cap */
}

.customer-controls .btn {
    min-width: 8rem;
}

.order-card-form .modal-content {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.order-card-form .modal-header,
.order-card-form .modal-footer {
    flex-shrink: 0;
}

.order-card-form .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

.order-card-form .btn-close {
    margin: 0;
}

.order-card-form .btn-print-order-form {
    /* margin: calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto; */
}

.notes-body {
    max-height: 500px;
    overflow-y: auto;
}

.order-notes-modal .modal-dialog {
    max-width: 600px;
}

.order-notes-modal .modal-content {
    border: none;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    max-height: 95vh;
    overflow: auto;
}

.order-notes-modal .modal-header,
.order-notes-modal .modal-footer {
    border: none;
    padding: 1.5rem;
}

.order-notes-modal .modal-body {
    padding: 1.5rem;
}

.order-notes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 18rem;
    overflow-y: auto;
}

.order-notes-load-more {
    display: none;
    margin-top: -0.25rem;
    text-align: center;
}

.order-notes-load-more .btn {
    align-self: flex-start;
    padding: 0;
    font-weight: 500;
}

.order-notes-divider {
    margin: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    opacity: 1;
}

.order-note-editor-section .order-note-editor-label {
    font-weight: 600;
    color: #111827;
}

.order-note-editor-section .note-editor {
    border-radius: 12px;
    border-color: #e5e7eb;
    overflow: hidden;
}

.order-note-editor-section .note-editor .note-editable {
    min-height: 120px;
}

.order-note-editor-section .note-toolbar {
    border-bottom: 1px solid #e5e7eb;
}

.order-note-editor-section .note-initials {}

.order-note {
    border: 1px solid #e6ebeb;
    background: #696cff0a;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    margin-right: 0.5rem;
}

.order-note-header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.order-note-text {
    flex: 1;
}

.order-note-text .note-editor {
    background: white;
}

.order-note-actions {
    display: flex;
    gap: 0.5rem;
    color: #000000;
}

.order-note-actions .edit-note,
.order-note-actions .delete-note {
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease-in-out;
}

/* .order-note-actions .delete-note {
    color: #ef4444;
} */

.order-note-actions .edit-note:hover {
    color: #4338ca;
}

.order-note-actions .delete-note:hover {
    color: #dc2626;
}

.order-note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.order-note-meta-separator {
    color: #cbd5f5;
}

.order-notes-empty {
    padding: 1rem;
    text-align: center;
    background-color: #f1f5f9;
    border-radius: 12px;
}

.order-note-edit-controls .form-label {
    /* color: #4338ca; */
    font-weight: 600;
}

.order-note-edit-controls .btn {
    min-width: 96px;
}

.order-notes-modal .btn-add-note {
    font-weight: 600;
    min-width: 15rem;
}

.order-notes-modal .btn-primary {
    font-weight: 600;
    min-width: 96px;
}

.order-note .edit-note,
.order-note .delete-note,
.order-reminder .edit-reminder,
.order-reminder .delete-reminder {
    cursor: pointer;
}

.supplier-modal {
    z-index: 1065;
}

/* Dim background modals when another modal is on top */
.modal-dimmed {
    opacity: 0;
}

.order-card-checkbox {
    position: absolute;
    left: 0.5rem;
    top: 40%;
}

.bulk-action-row {
    margin-top: 0.5rem;
}

/* .nav-item-notifications {
    color: var(--bs-primary);
}
 */
#notification-icon {
    position: relative;
}

#notification-icon .ph-bell {
    position: relative;
    cursor: pointer;
    font-size: 1.4rem;
}

.notification-container {
    font-size: 1rem;
    padding: 0;
}

.notification-container .ph {
    font-size: 1.25rem;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-order-dropdown,
.notification-filter-dropdown {
    position: relative;
}

.notification-order-dropdown .notification-order-menu,
.notification-filter-dropdown .notification-filter-menu {
    position: absolute;
    right: 0;
    top: 120%;
    min-width: 9.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.25rem 0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    z-index: 1060;
}

.notification-order-dropdown .notification-order-menu,
.notification-filter-dropdown .notification-filter-menu {
    display: none;
}

.notification-order-dropdown .notification-order-menu.show,
.notification-filter-dropdown .notification-filter-menu.show {
    display: block;
}

.notification-order-dropdown .notification-order-option,
.notification-filter-dropdown .notification-filter-option {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 0;
    text-align: left;
    font-size: 0.875rem;
    color: #1e293b;
    cursor: pointer;
}

.notification-order-dropdown .notification-order-option:hover,
.notification-order-dropdown .notification-order-option:focus,
.notification-filter-dropdown .notification-filter-option:hover,
.notification-filter-dropdown .notification-filter-option:focus {
    background-color: #f8fafc;
    outline: none;
}

.notification-order-dropdown .notification-order-option.active,
.notification-filter-dropdown .notification-filter-option.active {
    font-weight: 600;
    background-color: rgba(105, 108, 255, 0.16);
    color: #696CFF;
}

.stage-column .column-sort-menu {
    position: absolute;
    right: 0;
    top: 120%;
    min-width: 9.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.25rem 0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    z-index: 1060;
    display: none;
}

.stage-column .column-sort-menu.show {
    display: block;
}

.stage-column .column-sort-option {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 0;
    text-align: left;
    font-size: 0.875rem;
    color: #1e293b;
    cursor: pointer;
}

.stage-column .column-sort-option:hover,
.stage-column .column-sort-option:focus {
    background-color: #f8fafc;
    outline: none;
}

.stage-column .column-sort-option.active {
    font-weight: 600;
    background-color: rgba(105, 108, 255, 0.16);
    color: #696CFF;
}

.notification-list .loading,
.notification-list .load-more {
    text-align: center;
}



.notification-item-buttons .fas {
    margin-left: 8px;
    cursor: pointer;
}

.notification-list .notification {
    cursor: pointer;
    padding: 0.5rem 0;
    border-bottom: 1px solid #CED1D5;
    display: grid;
    grid-template-columns: 3rem auto 4rem;
}

.notification-list .notification .notification-type-icon,
.notification .notification-item-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-list .notification .notification-type-icon.reminder {
    color: #028AF4;
}

.notification-list .notification .notification-type-icon.info {
    color: var(--bs-warning);
}

.notification-list .notification-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.notification-list .time-info {
    font-size: 0.7rem;
    color: rgba(34, 48, 62, 0.7);
    margin-bottom: 0.25rem;
}

.notification-list .notification-text {
    font-size: 0.75rem;
    color: rgba(34, 48, 62, 0.9);

}

.notification-list {
    max-height: 100vh;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.notification-list .notification.unread {
    background-color: #f5f5f9;
}

.notification-offcanvas .btn-clear-notifications {
    font-size: 0.875rem;
    text-decoration: none;
}

.notification-offcanvas .btn-clear-notifications:hover {
    text-decoration: underline;
}

.badge-notification,
.badge-cart {
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 2px 3px;
    border-radius: 50%;
    background-color: #FF3E1D;
    color: #FF3E1D;
    font-size: 0.21rem;
    border: 1.5px solid #F5F5F9;
}

.notification-body .card-title {
    float: unset;
    margin: 0;
    font-size: unset;
    font-weight: unset
}

.bootstrap-tagsinput .tag {
    background: #e5e5e5;
    border-radius: 0.4rem;
    padding: 5px 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 5px;
    margin-bottom: 4px;
    color: #555;
}
.order-tags-input-container {
    position: relative;
}
.order-tags-input-container .bootstrap-tagsinput {
    width: 100%;
}

.order-tags-suggestions {
    max-height: 240px;
    overflow-y: auto;
}
.order-tags-suggestions.show {
    display: block;
}
.order-tag-pill {
    font-size: 0.75rem;
    color: rgba(105, 108, 255, 0.9);
    background-color: rgba(105, 108, 255, 0.16);
    border-radius: 0.25rem;
}

.order-card-form section {
    position: relative;
}

.order-card-form section .section-title {
    position: absolute;
    top: -1rem;
    left: 1rem;
    background-color: white;
    padding: 0 0.5rem;
    font-weight: bold;
    color: #333;
}

.add-customer-form {
    background-color: #f5f6f8;
    padding: 1rem;
    border-radius: 0.5rem;
}

.add-new-customer-section .not-found-message {
    padding: 1rem;
    border: 1px solid #ffab00;
    color: #ffab00;
    text-align: center;
    border-radius: 0.5rem;
}

.add-new-customer-section .not-found-message .title {
    font-weight: 500;
    font-size: 1.125rem;
}

.add-customer-form .btn-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.add-customer-form .btn-controls button {
    margin-left: 0.5rem;
    min-width: 8rem;
}

.stripe-settings label {
    min-width: 10em;
}

/* My Plan page specific styles (extracted from tmp/samples/style.css) */
.subscription-status {
    font-weight: bold;
}

.default-text {
    font-size: 0.9rem;
    background: #efefef;
    border-radius: 5px;
    padding: 0.1rem;
}

.delete-card {
    border: none;
    background: #efefef;
    width: 1.2em;
    text-align: center;
    cursor: pointer;
    display: inline-block;
}

.validation-tooltip {
    position: absolute;
    background-color: #fff;
    border: 1px solid #777;
    border-radius: 3px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9em;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 1099;
    max-width: 250px;
    word-wrap: break-word;
    position: absolute;
}

.validation-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #777 transparent;
}

.tooltip-close {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.tooltip-close:hover {
    color: #000;
}

.app-sidebar {
    container-type: inline-size;
    /* enables container queries */
    filter: drop-shadow(0px 2px 6px rgba(34, 48, 62, 0.08));
}

@container (max-width: 5rem) {
    .sidebar-brand a img {
        content: url("/images/so_logo_s.jpg");
    }
}

@container (min-width: 5rem) and (max-width: 50rem) {
    .sidebar-brand a img {
        content: url("/images/so_logo.png");
    }
}

.sidebar-wrapper .nav-header {
    color: rgba(34, 48, 62, 0.4);
}

.sidebar-wrapper .nav-item .ph {
    font-size: 1.2rem;
    height: 1.5rem;
}

/* Scope only to DataTables pagers you mark with .fancy-pagination */
.dataTables_wrapper .pagination.fancy-pagination {
    --pg-bg: #f3f4f6;
    --pg-fg: #334155;
    --pg-hover-bg: #eef2ff;
    --pg-active-bg: #6366f1;
    --pg-active-fg: #fff;
    --pg-disabled-bg: #f1f5f9;
    --pg-shadow: 0 3px 10px rgba(0, 0, 0, .08);
    --pg-shadow-hover: 0 8px 20px rgba(0, 0, 0, .10);
    gap: .5rem;
    margin-top: .75rem;
}

.dataTables_wrapper .pagination.fancy-pagination .page-item {
    margin: 0;
}

.dataTables_wrapper .pagination.fancy-pagination .page-link {
    border: 0;
    background: rgba(34, 48, 62, 0.06);
    color: var(--pg-fg);
    border-radius: .4rem;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 .6rem;
    line-height: 2.25rem;
    text-align: center;
    /* box-shadow: var(--pg-shadow); */
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
}

/* Hover (only when enabled) */
.dataTables_wrapper .pagination.fancy-pagination .page-item:not(.disabled) .page-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--pg-shadow-hover);
    text-decoration: none;
}

/* Active page */
.dataTables_wrapper .pagination.fancy-pagination .page-item.active .page-link {
    background: var(--pg-active-bg);
    color: var(--pg-active-fg);
    box-shadow: 0 10px 24px rgba(99, 102, 241, .2);
}

/* Disabled (Prev/First at page 1; Next/Last at end) */
.dataTables_wrapper .pagination.fancy-pagination .page-item.disabled .page-link {
    background: var(--pg-disabled-bg);
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Focus ring */
.dataTables_wrapper .pagination.fancy-pagination .page-link:focus {
    outline: 0;
    box-shadow: 0 0 0 .22rem rgba(99, 102, 241, .25);
}

.dataTables_wrapper th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(34, 48, 62, 0.7);
}

.dataTables_wrapper th input {
    font-size: 1rem;
}

.table>:not(caption)>*>* {
    color: rgba(34, 48, 62, 0.9);
}

.btn-reset-filters {
    cursor: pointer;
    color: var(--bs-primary);
    line-height: 2.5rem;
    align-self: center;
}

.btn-open-filters {
    position: relative;
}

.highlight-dot {
    position: absolute;
    top: 3px;
    right: -5px;
    padding: 0;
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 50%;
    background-color: #FF3E1D;
    color: #FF3E1D;
    font-size: 0.21rem;
    border: 1.5px solid #F5F5F9;
}

.card-summary-buttons i .highlight-dot {
    top: 0;
    right: -2px;

}

.btn-open-filters .highlight-dot {
    top: 3px;
    right: -5px;
    height: 0.6rem;
    width: 0.6rem;
    display: none;
}

.search-form .form-control,
.search-form .input-group-text {
    background-color: white !important;
}

.offcanvas button.btn,
.modal-footer button.btn {
    min-width: 6rem;
}

/* Order history modal timeline styling */
.order-history-modal .modal-dialog {}

.order-history-modal .order-history-card {
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.order-history-modal .order-history-header {
    border-bottom: none;
    padding: 1.5rem 1.75rem 0.5rem;
}

.order-history-modal .order-history-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.order-history-body {
    padding: 0.75rem 1.75rem 1.75rem;
    max-height: 26rem;
    overflow-y: auto;
    background-color: #fff;
}

.order-history-entry {
    display: flex;
    gap: 1rem;
    position: relative;
    padding-bottom: 1.25rem;
}

.order-history-entry:last-child {
    padding-bottom: 0;
}

.order-history-marker {
    position: relative;
}

.order-history-marker::after {
    content: '';
    position: absolute;
    top: 1.3rem;
    left: 0.3rem;
    width: 2px;
    height: calc(100% - 1.25rem);
    background: #e2e8f0;
}

.order-history-entry:last-child .order-history-marker::after {
    display: none;
}

.order-history-dot {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.35);
}

.order-history-dot--violet {
    background: linear-gradient(135deg, #696cff 0%, #696cff 100%);
}

.order-history-dot--teal {
    background: linear-gradient(135deg, #22d3ee 0%, #2dd4bf 100%);
    box-shadow: 0 6px 12px rgba(34, 211, 238, 0.35);
}

.order-history-dot--amber {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    box-shadow: 0 6px 12px rgba(249, 115, 22, 0.35);
}

.order-history-info {
    flex: 1;
}

.order-history-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.order-history-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-history-description {
    font-weight: 500;
    line-height: 1.35;
}

.order-history-initials {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
}

.order-history-date {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

.order-history-empty {
    text-align: center;
    padding: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Settings pages */
.settings-card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    background-color: #fff;
}

.settings-tab-content h4 {
    font-size: 1.125rem;
}

.settings-section {
    padding: 1rem 1.5rem;
}

.settings-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.settings-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.75rem 0;
    color: #64748b;
    font-weight: 600;
    background: transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.settings-tabs .nav-link.active {
    color: #696CFF;
    border-bottom-color: #696CFF;
    background: transparent;
}

.settings-tabs .nav-link:focus,
.settings-tabs .nav-link:hover {
    color: #696CFF;
}

.settings-tab-content .tab-pane {
    animation: settingsTabFade 0.2s ease-in-out;
}

@keyframes settingsTabFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .settings-section {
        padding: 24px;
    }

    .settings-tabs {
        gap: 16px;
        flex-wrap: wrap;
    }
}

.settings-tab-content .stripe-setting-action-btn {
    padding: 0 0.75rem;
}

.order-table-product-img {
    max-width: 2.5rem;
    max-height: 2.5rem;
}

.column-visibility-dropdown {
    width: 100%;
}

.note-toolbar {
    background-color: transparent;
}

.note-btn {
    border: 1px solid transparent;
}

.note-resizebar,
.note-statusbar {
    display: none;
}

.note-icon-caret {
    display: none;
}

.template-placeholder-info {
    box-shadow: 0px 3px 8px rgba(34, 48, 62, 0.1);
    display: inline-block;
}

.template-placeholder-info ul {
    list-style: none;
    padding: 0;
}

.message-history-card {
    border: none;
    border-radius: 20px;
    background: #f5f7ff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.mh-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1.25rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    min-height: 100%;
}

.mh-panel-header {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}

.mh-panel-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
}

.mh-search {
    position: relative;
    display: flex;
    align-items: center;
}

.mh-search-inline {
    margin-bottom: 0;
    min-width: 210px;
}

.mh-search input {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
    height: 42px;
    font-size: 0.9rem;
    border: none;
    box-shadow: none;
}

.mh-search input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.1rem rgba(99, 102, 241, 0.15);
}

.mh-search-icon {
    position: absolute;
    left: 0.85rem;
    color: #94a3b8;
    font-size: 0.95rem;
}

.mh-search .btn-clear {
    position: absolute;
    right: 0.5rem;
    display: none;
    color: #94a3b8;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.95rem;
}

.mh-search input:not(:placeholder-shown)~.btn-clear {
    display: inline-flex;
}

.mh-filter {
    position: relative;
}

.mh-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    padding: 0.35rem 0.55rem;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s ease-in-out;
}

.mh-filter-btn:focus,
.mh-filter-btn:hover {
    border-color: #6366f1;
    color: #4338ca;
    background: #eef2ff;
    outline: none;
}

.mh-filter-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    z-index: 1050;
}

.mh-filter-dropdown.show {
    display: block !important;
}

.mh-filter-section+.mh-filter-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.mh-filter-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.65rem;
}

.mh-filter-range {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mh-filter-range+.mh-filter-range {
    margin-top: 0.75rem;
}

.mh-filter-range .form-control {
    font-size: 0.85rem;
    height: 40px;
}

.mh-sort-option+.mh-sort-option {
    margin-top: 0.35rem;
}

.mh-sort-option .form-check-label {
    font-size: 0.85rem;
    color: #475569;
}

.mh-filter-actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.mh-filter-actions .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.mh-filter-actions .btn-link {
    color: #64748b;
}

.mh-filter-actions .btn-link:hover,
.mh-filter-actions .btn-link:focus {
    color: #4338ca;
    text-decoration: none;
}

.mh-customer-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.mh-customer-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem;
    border-bottom: 1px solid var(--bs-border-color);
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.mh-customer-item:last-child {
    margin-bottom: 0;
}

.mh-customer-item:hover {
    /* box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08); */
    border-color: #6366f1;

}

.mh-customer-item.active {
    background: rgba(99, 102, 241, 0.05);
}

.mh-customer-main {
    flex: 1 1 auto;
}

.mh-customer-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.2rem;
}

.mh-customer-contact,
.mh-customer-meta {
    color: #64748b;
    font-size: 0.8rem;
}

.mh-customer-actions .btn {
    color: #94a3b8;
}

.mh-message-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mh-message-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
}


.mh-message-check {
    margin-top: 0.2rem;
}

.mh-message-checkbox {
    width: 1rem;
    height: 1rem;
}

.mh-message-content {
    flex: 1 1 auto;
}

.mh-message-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.35rem;
}

.mh-message-meta {
    margin-bottom: 0.45rem;
    color: #94a3b8 !important;
}

.mh-message-body {
    font-size: 0.9rem;
    color: #64748b !important;
}

.mh-message-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mh-message-actions .btn {
    padding: 0.25rem 0.35rem;
}

.mh-empty {
    border-radius: 14px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.9rem;
}

.mh-loading {
    font-size: 0.9rem;
    color: #94a3b8;
}

.mh-message-controls {
    width: 100%;
}

.mh-message-controls-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.mh-message-controls-actions .mh-search-inline {
    flex: 1 1 220px;
}

.mh-select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    padding-left: 0;
    margin-bottom: 0;
}

.mh-select-all .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0;
    margin-left: 0;
    cursor: pointer;
}

.mh-select-all:hover {
    color: #4338ca;
}

.mh-select-all.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mh-select-all.is-disabled .form-check-input {
    cursor: not-allowed;
}

#customer-load-more {
    border-radius: 12px;
    padding: 0.55rem 1rem;
    font-weight: 600;
}

#selected-customer-summary .text-muted {
    color: #64748b !important;
}

.btn-send-notification-to-all {
    cursor: pointer;
    zoom: 0.9;
}

.btn-send-notification-to-all .ph-bell-simple {
    position: relative;
    font-size: 1.75rem;
}

.btn-send-notification-to-all .ph-paper-plane-tilt {
    position: absolute;
    font-size: 0.5rem;
    left: 0.9rem;
    top: 0.25rem;
    background: white;
    font-weight: bold;
}

@media (max-width: 991.98px) {
    .mh-panel {
        padding: 1rem;
    }

    .mh-message-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .mh-message-actions {
        align-self: flex-end;
    }
}

@media (max-width: 575.98px) {
    .mh-message-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .mh-message-controls-actions {
        width: 100%;
        margin-left: 0;
    }

    .mh-message-controls-actions .mh-search-inline,
    .mh-search-inline {
        width: 100%;
        flex: 1 1 100%;
    }
}

.custom-toast-container {
    position: fixed;
    top: 50%;
    right: 50%;
    z-index: 1080;
    display: flex;
    gap: 0.75rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-toast-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.custom-toast {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    font-size: 0.95rem;
    max-width: min(20rem, 84vw);
}

.custom-toast__icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding: 0.4rem;
}

.custom-toast--success .custom-toast__icon {
    color: white;
    background: #71dd37;
}

.custom-toast--error .custom-toast__icon {
    background: rgba(var(--bs-danger-rgb), 1);
    color: white;
}

.custom-toast__message {
    line-height: 1.4;
}

.subscription-details-table th {
    font-weight: 400;
}

.customer-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 32px;
}

.customer-action-btn .btn-progress-indicator {
    display: none;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: customer-action-spin 0.65s linear infinite;
    opacity: 0.85;
}

.customer-action-btn .btn-label {
    display: inline-flex;
    align-items: center;
}

.customer-action-btn.is-processing {
    pointer-events: none;
    opacity: 0.9;
}

.customer-action-btn.is-processing .btn-progress-indicator {
    display: inline-flex;
}

.notification-recipient-section .bootstrap-tagsinput {
    width: 100%;
}

.profile-card {
    box-shadow: none;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}

.profile-avatar-edit {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 8px 20px rgba(20, 32, 54, 0.15);
}

.profile-cropper-preview {
    width: 160px;
    height: 160px;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px dashed #dfe1e4;
    background: #f8f9fa;
}

.profile-cropper-canvas {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    height: auto;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0 auto;
}

.profile-cropper-controls .btn {
    min-width: 2.5rem;
}

.dropdown-menu[data-bs-popper] {
    left: -240%;
}

@keyframes customer-action-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.tag-page-toolbar .btn {
    min-height: 40px;
}

.tag-search-input .input-group-text {
    border-right: 0;
}

.tag-search-input .form-control {
    border-left: 0;
    box-shadow: none;
}

.tag-grid {
    min-height: 120px;
}

.tag-card {
    background: #ffffff;
    border: 1px solid #e7e8ef;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 10px rgba(67, 89, 113, 0.05);
}

.tag-name-text {
    font-weight: 600;
    color: #2f3349;
}

.tag-count {
    min-width: 36px;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: #f2f4f8 !important;
}

.tag-actions .btn-link {
    text-decoration: none;
}

.tag-filter-menu {
    min-width: 230px;
    border-radius: 12px;
}

.tag-modal-content {
    border-radius: 14px;
}

.tag-chip-list {
    min-height: 160px;
    max-height: 280px;
    overflow-y: auto;
    background: #f8f9fb;
}

.tag-chip-item {
    background: #ffffff;
    border: 1px solid #e5e7ec;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.tag-chip-item:last-child {
    margin-bottom: 0;
}

.tag-edit-input {
    max-width: 320px;
}

#orders_wrapper .dataTables_scrollHeadInner,
#orders_wrapper .dataTables_scrollHeadInner table,
#orders_wrapper .dataTables_scrollBody table {
    width: 100% !important;
}

#orders_wrapper .dataTables_scrollBody {
    overflow-x: auto !important;
    overflow-y: auto !important;
}
