a.editable-click {
    color: black;
    border-bottom: none !important;
}
a.editable-click:hover {
    text-decoration: none important;
    border-bottom: dashed 1px #0088cc !important;
}
.editable-container .editable-buttons .btn {
    font-size: 14px;
    padding: 6px 12px;
    margin: 0 2px;
}
.editable {
    font-size: 18px;
    line-height: 26px;
}

.note-group-select-from-files {
    display: none;
}

hr  {
    margin-top: 10px;
    margin-bottom: 10px;
}

.js-user-filter-select + .select2-container {
    display: block;
    width: 100% !important;
}

.js-user-filter-select + .select2-container .select2-selection--single {
    height: calc(1.5em + 0.5rem + 2px) !important;
    min-height: calc(1.5em + 0.5rem + 2px) !important;
    padding: 0.25rem 2rem 0.25rem 0.75rem !important;
    background-color: #fff !important;
    border: 1px solid #d9dee3 !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

.js-user-filter-select + .select2-container .select2-selection__rendered {
    display: block !important;
    padding: 0 !important;
    color: #566a7f !important;
    line-height: 1.5 !important;
}

.js-user-filter-select + .select2-container .select2-selection__placeholder {
    color: #a8aaae !important;
}

.js-user-filter-select + .select2-container .select2-selection__arrow {
    top: 50% !important;
    right: 0.75rem !important;
    width: 0.75rem !important;
    height: 0.75rem !important;
    transform: translateY(-50%) !important;
}

.js-user-filter-select + .select2-container .select2-selection__arrow b {
    border-color: #6f6b7d transparent transparent transparent !important;
}

.select2-dropdown.user-filter-select2-dropdown {
    background-color: #fff !important;
    z-index: 9999 !important;
}

.select2-dropdown.user-filter-select2-dropdown .select2-results,
.select2-dropdown.user-filter-select2-dropdown .select2-results__options,
.select2-dropdown.user-filter-select2-dropdown .select2-results__option,
.select2-dropdown.user-filter-select2-dropdown .select2-results__group {
    background-color: #fff !important;
}

.select2-dropdown.user-filter-select2-dropdown > .select2-results > .select2-results__options {
    max-height: 360px !important;
    overflow-y: auto !important;
}

.select2-dropdown.user-filter-select2-dropdown .select2-results__options--nested {
    max-height: none !important;
    overflow: visible !important;
}

.select2-dropdown.user-filter-select2-dropdown .select2-results__option {
    clear: both !important;
    display: block !important;
    float: none !important;
    min-height: 36px !important;
    line-height: 20px !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
}

.select2-dropdown.user-filter-select2-dropdown .select2-results__group {
    clear: both !important;
    display: block !important;
    min-height: 34px !important;
    line-height: 20px !important;
    padding: 8px 12px 6px !important;
    font-weight: 600 !important;
}

.select2-dropdown.user-filter-select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background-color: #5b8def !important;
    color: #fff !important;
}

.dashboard-filter-row {
    --bs-gutter-y: 0.75rem;
}

.dashboard-filter-row .form-label {
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.dashboard-filter-row .form-select,
.dashboard-filter-row .form-control,
.dashboard-filter-row .select2-container {
    width: 100% !important;
}

.dashboard-filter-row.is-loading {
    opacity: 0.65;
}

.dashboard-data-shell {
    position: relative;
}

.dashboard-data-shell.is-loading::before {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: block;
    content: "";
    background: #fff;
    border-radius: 0.375rem;
}

.dashboard-data-shell.is-loading .dashboard-data-content {
    opacity: 0;
}

.dashboard-loading-feedback {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 9;
    width: 100%;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.dashboard-loading-feedback.is-loading {
    display: block;
}

.dashboard-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.2rem;
}

.dashboard-skeleton-card {
    min-height: 168px;
    padding: 1.2rem;
    background: #fff;
    border: 1px solid #edf1f6;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.04);
}

.dashboard-skeleton-card--small {
    grid-column: span 3;
}

.dashboard-skeleton-card--wide,
.dashboard-skeleton-card--table {
    grid-column: span 6;
    min-height: 260px;
}

.dashboard-skeleton-line,
.dashboard-skeleton-chart,
.dashboard-skeleton-row {
    display: block;
    overflow: hidden;
    background: #eef2f7;
    border-radius: 0.35rem;
    position: relative;
}

.dashboard-skeleton-line::after,
.dashboard-skeleton-chart::after,
.dashboard-skeleton-row::after {
    position: absolute;
    inset: 0;
    content: "";
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    animation: dashboard-skeleton-shimmer 1.2s infinite;
}

.dashboard-skeleton-line {
    height: 0.8rem;
    margin-bottom: 0.85rem;
}

.dashboard-skeleton-line--sm {
    width: 44%;
}

.dashboard-skeleton-line--md {
    width: 58%;
}

.dashboard-skeleton-line--lg {
    width: 72%;
    height: 1.55rem;
}

.dashboard-skeleton-chart {
    height: 64px;
    margin-top: 1.15rem;
}

.dashboard-skeleton-chart--tall {
    height: 170px;
}

.dashboard-skeleton-row {
    height: 2.3rem;
    margin-top: 0.85rem;
}

@keyframes dashboard-skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 767.98px) {
    .dashboard-filter-row {
        --bs-gutter-x: 0.75rem;
        align-items: flex-start !important;
    }

    .dashboard-filter-row > .dashboard-filter-field {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }

    .dashboard-filter-row > .dashboard-date-range-field {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .dashboard-filter-row .form-label {
        display: block;
        min-height: 1.1rem;
        font-size: 0.8125rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .dashboard-filter-row .form-select,
    .dashboard-filter-row .form-control,
    .dashboard-filter-row .js-user-filter-select + .select2-container .select2-selection--single {
        min-height: 38px !important;
        font-size: 0.875rem !important;
    }
}

@media (max-width: 991.98px) {
    .dashboard-skeleton-card--small {
        grid-column: span 6;
    }

    .dashboard-skeleton-card--wide,
    .dashboard-skeleton-card--table {
        grid-column: span 12;
    }
}

@media (max-width: 575.98px) {
    .dashboard-skeleton-grid {
        gap: 0.85rem;
    }

    .dashboard-skeleton-card {
        grid-column: span 12;
        min-height: 140px;
        padding: 1rem;
    }
}

@media (max-width: 359.98px) {
    .dashboard-filter-row > .dashboard-filter-field,
    .dashboard-filter-row > .dashboard-date-range-field {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* --------------------------------------------------------------------------
   Keep Select2's hidden original <select> out of the layout.

   Select2 leaves the real <select> in the DOM for accessibility, shrunk to 1px
   and positioned absolutely. Rules like

       .dashboard-filter-row .form-select { width: 100% !important; }

   outrank Select2's own (0,2,0 beats 0,1,0) and blow that hidden element back
   up to full width. Because it is absolutely positioned and #app-layout is not
   positioned, overflow:hidden cannot clip it - so it sticks ~200px past the
   right edge and the page scrolls sideways on phones. That also pushes
   position:fixed elements (the chat launcher) off-screen, since mobile browsers
   widen the layout viewport to fit the overflow.

   The compound selectors below outrank those container rules and restore
   Select2's intent wherever it is used.
   -------------------------------------------------------------------------- */
select.select2-hidden-accessible,
.dashboard-filter-row select.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    max-width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

/* --------------------------------------------------------------------------
   Page container normalization (all admin/manager/sale/operation pages)

   Pages were mixing `.container` (1140px), `.container-xxl` (1320px) and no
   container at all inside `.content-page`. Because `.content-page` is offset
   by the 260px sidebar, a fixed-width centered container leaves a lopsided
   gap that jumps every time the sidebar is toggled, and the topbar (which
   uses `.container-xxl`) never lines up with the content below it.

   One gutter, defined here, is applied by the page shell itself; every
   container inside it becomes fluid so content always starts and ends on the
   same vertical line as the topbar, in both sidebar states.
   -------------------------------------------------------------------------- */
:root {
    /* Horizontal gutter for the page shell; scaled per breakpoint below. */
    --app-gutter: 2rem;
    /* Extra vertical breathing room above the first element on a page. */
    --app-gutter-y: 0.75rem;
}

.content-page {
    padding-top: var(--app-gutter-y);
    padding-right: var(--app-gutter);
    padding-bottom: 65px;
    padding-left: var(--app-gutter);
    max-width: 100%;
}

.topbar-custom {
    padding-right: var(--app-gutter);
    padding-left: var(--app-gutter);
}

.content-page .container,
.content-page .container-sm,
.content-page .container-md,
.content-page .container-lg,
.content-page .container-xl,
.content-page .container-xxl,
.content-page .container-fluid,
.topbar-custom .container,
.topbar-custom .container-xxl,
.topbar-custom .container-fluid {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
}

/* The topbar's own gutter already provides the left offset. */
.topbar-custom .topnav-menu > li:first-child .nav-link {
    padding-left: 0;
}

/* Wide data tables scroll inside their card instead of stretching the page. */
.content-page .table-responsive {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Responsive gutter scale

   One token drives the page shell's horizontal gutters and a second drives its
   vertical rhythm, so every page breathes the same amount at a given viewport
   and the topbar stays aligned with the content beneath it. Values step down
   on the Bootstrap 5 breakpoints the rest of the app already uses.
   -------------------------------------------------------------------------- */

/* Ultra-wide (>= 1920px): more air so full-bleed content is not edge-to-edge */
@media (min-width: 1920px) {
    :root {
        --app-gutter: 2.5rem;
        --app-gutter-y: 1rem;
    }
}

/* Large desktop (1200px - 1399.98px) */
@media (max-width: 1399.98px) {
    :root {
        --app-gutter: 1.75rem;
        --app-gutter-y: 0.75rem;
    }
}

/* Small desktop / large tablet (992px - 1199.98px) */
@media (max-width: 1199.98px) {
    :root {
        --app-gutter: 1.5rem;
        --app-gutter-y: 0.75rem;
    }
}

/* Tablet (768px - 991.98px) - sidebar is off-canvas from here down */
@media (max-width: 991.98px) {
    :root {
        --app-gutter: 1.25rem;
        --app-gutter-y: 0.5rem;
    }

    /* app.min.css sets `padding: 0 10px` with a !important margin here */
    .content-page {
        padding-right: var(--app-gutter) !important;
        padding-left: var(--app-gutter) !important;
    }
}

/* Landscape phone (576px - 767.98px) */
@media (max-width: 767.98px) {
    :root {
        --app-gutter: 1rem;
        --app-gutter-y: 0.5rem;
    }
}

/* Phone (< 576px) */
@media (max-width: 575.98px) {
    :root {
        --app-gutter: 0.875rem;
        --app-gutter-y: 0.25rem;
    }
}
