body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    min-height: 100vh;
}

.hidden {
    display: none;
}

/*Loading Skeleton*/
.skeleton {
    background: linear-gradient(90deg,
            #eee 25%,
            #f5f5f5 37%,
            #eee 63%);
    background-size: 400% 100%;
    animation: skeleton 1.4s ease infinite;
    border-radius: 4px;
}

@keyframes skeleton {
    0% {
        background-position: 100% 0
    }

    100% {
        background-position: 0 0
    }
}

/* Utility Classes */
/*--Status Colours--*/
.status-unset {
    color: #a4a5a8;
}

.status-part {
    color: #ff9800;
    /* For part picked / part dispatched etc */
}

.status-confirmed {
    color: #4caf50;
}

.status-error {
    color: #f44336;
}

/* Modal Stacking Control */
.modal.cm-underneath {
    pointer-events: none;
}

.modal.cm-underneath .modal-background,
.modal.cm-underneath .modal-card,
.modal.cm-underneath .modal-content {
    pointer-events: none;
}

/* Bulma Overrides */

.button.has-tooltip {
    position: relative;
    z-index: 9999;
}

/* 1) IMPORTANT in flex layouts: allow children to shrink so overflow can happen */
.columns,
.column,
.box {
    min-width: 0;
}

/* 2) Ensure the table wrapper can scroll horizontally */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 3) Force the table to prefer its content width (so it overflows when needed) */
.table {
    width: max-content;
    min-width: 100%;
}

/* 4) Prevent wrapping that “hides” overflow */
.table th,
.table td {
    white-space: nowrap;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
}

.modal.is-wide .modal-card {
    max-width: 1200px;
    width: 100%;
}

/* 5) Ensure dropdown menus are visible above the table */
.table .dropdown .dropdown-menu {
    z-index: 1000;
}

/* Bulma Additions */

.tab-content {
    display: none;
}

@media screen and (min-width: 768px) {

    .is-full-subheight {
        height: calc(100vh - 6rem);
    }

    .is-full-subheight-limited {
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
    }

        /* Make the box have a real height so the table area can scroll */
        .cm-table-box {
            height: calc(100vh - 6rem);
            /* adjust for your header/top padding etc */
        }
}

@media screen and (max-width: 767px) {

    .is-full-subheight {
        height: calc(100vh + 4rem);
    }

    .is-full-subheight-limited {
        max-height: none;
        overflow-y: visible;
    }
}

.cm-table-box {
    min-height: 0;
    /* critical in flex layouts */
}


/* Make the table container take remaining space and scroll vertically */
.cm-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    /* critical: allows the container to be smaller than its content */
    overflow-y: auto;
    max-height: calc(100vh - 6rem);
    /* adjust for your header/top padding etc */
}

.cm-table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    /* keep it above body rows */
    background: white;
    /* MUST set a background or rows show through */
}

.cm-table-scroll tbody td:first-child,
.cm-table-scroll thead th:first-child {
    position: sticky;
    left: 0;
    background: #fff;
}

/* First column body cells */
.cm-table-scroll tbody td:first-child {
    z-index: 2;
}

/* Top-left corner cell (header + first column) */
.cm-table-scroll thead th:first-child {
    z-index: 4;
}

tr .is-selected {
    background-color: #e0e0e0;
}

.is-clickable {
    cursor: pointer;
}

.is-link-text {
    text-decoration: underline;
}

.is-link-text:hover {
    font-style: italic;
}

.autocompletedropdown {
    display: block;
}

.mt--1 {
    margin-top: -0.25rem;
}

.mb--1 {
    margin-bottom: -0.25rem;
}

.mt--2 {
    margin-top: -0.5rem;
}

.mb--2 {
    margin-bottom: -0.5rem;
}

.mt--3 {
    margin-top: -0.75rem;
}

.mb--3 {
    margin-bottom: -0.75rem;
}

.mt--4 {
    margin-top: -1rem;
}

.mb--4 {
    margin-bottom: -1rem;
}

.mt--5 {
    margin-top: -1.5rem;
}

.mb--5 {
    margin-bottom: -1.5rem;
}

.mt--6 {
    margin-top: -3.0rem;
}

.mb--6 {
    margin-bottom: -1.5rem;
}

.pt-4-5 {
    padding-top: 1.125rem;
}

.pad-7-15 {
    padding: 0.4375rem 0.9375rem;
}

/* Table Status Classes */

.sales-order-row td {
    vertical-align: middle;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}


.order-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 2px solid;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 100px;
}

.order-status.status-open {
    background-color: #f5f5f5;
    border-color: #dddddd;
    color: #666666;
}


.order-status.status-picked {
    background-color: #fff7db;
    border-color: #ffd54f;
    color: #7a5a00;
}

.order-status.status-dispatched {
    background-color: #e3f2fd;
    border-color: #64b5f6;
    color: #0d47a1;
}

.order-status.status-invoiced {
    background-color: #f3e5f5;
    border-color: #ba68c8;
    color: #4a148c;
}

.order-status.status-complete {
    background-color: #e8f5e9;
    border-color: #66bb6a;
    color: #1b5e20;
}

/*Filter Boxes */

.filter-wrapper {
    position: relative;
    display: inline-block;
}

.filter-box {
    padding: 24px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    background-color: hsl(0, 0%, 96%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    z-index: 99999;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: all 0.15s ease;
    width: 360px;
}

.filter-box.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Order Entry Tables */

.order-lines-table {
    table-layout: fixed;
    width: 100%;
}


.order-line-entry-container {
    min-height: 150px;
}

tr.is-dirty {
    /* recently edited but not yet saved */
    background-color: #fff8e1;
    /* very light amber */
}

tr.is-dirty input,
tr.is-dirty select {
    background-color: #fff8e1;
    /* very light amber */
}

tr.is-dirty td:first-child {
    border-left: 4px solid #ff9800;
    /* amber accent */
}

.w-20 {
    width: 20px;
}

.w-40 {
    width: 40px;
}

.w-60 {
    width: 60px;
}

.w-80 {
    width: 80px;
}

.w-100 {
    width: 100px;
}

.w-120 {
    width: 120px;
}

.w-160 {
    width: 160px;
}

.w-200 {
    width: 200px;
}

.order-lines-table input,
.order-lines-table select {
    width: 100%;
    min-width: 0;
}

/* ----- TOASTS / NOTIFICATIONS ----- */

.toast-container {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 10px;

    /* prevents container from blocking clicks behind it except on toasts */
    pointer-events: none;
}

.toast {
    pointer-events: auto;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    min-width: 280px;
    max-width: 420px;

    padding: 12px 14px;
    border-radius: 8px;

    background: #323232;
    color: #fff;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font-size: 0.95rem;
    line-height: 1.25;

    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast .toast-msg {
    flex: 1;
    word-break: break-word;
}

.toast .delete {
    flex: 0 0 auto;
    margin-left: 4px;
    margin-top: 2px;

    background: rgb(83, 83, 83);
}

.toast .delete:hover {
    background: rgba(41, 40, 40, 0.28);
}

/* Types */
.toast.is-error {
    background: hsl(347, 90%, 96%);
    color: hsl(348, 100%, 61%);
}

.toast.is-success {
    background: hsl(142, 52%, 96%);
    color: hsl(141, 71%, 48%);
}

.toast.is-warning {
    background: hsl(48, 100%, 96%);
    color: hsl(48, 81%, 51%);
}

.toast.is-info {
    background: hsl(206, 70%, 96%);
    color: hsl(204, 86%, 53%);
}


/* Mobile */
@media (max-width: 600px) {
    .toast-container {
        left: 12px;
        right: 12px;
        top: 12px;
    }

    .toast {
        max-width: none;
        min-width: 0;
    }
}

/* ----- END TOASTS / NOTIFICATIONS ----- */

/* ----- Chart of Accounts Specific ----- */


/* Tree column */
td.coa-tree {
    position: relative;
    white-space: nowrap;
}

/* The indent block is what creates space + the vertical guide line */
.coa-indent {
    display: inline-block;
    height: 1.2em;
    vertical-align: middle;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    margin-right: 8px;
}

/* Horizontal connector from guide line to the code */
.coa-branch {
    display: inline-block;
    width: 14px;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin-right: 6px;
    vertical-align: middle;
}

/* Chevron for parents */
.coa-chevron {
    display: inline-block;
    width: 14px;
    margin-right: 6px;
    opacity: 0.65;
    vertical-align: middle;
}

/* Slight emphasis for parents (has children) */
tr.coa-parent-row td {
    font-weight: 600;
}

/* Optional: subtle level striping to help scanning */
tr.coa-level-0 {
    background: rgba(0, 0, 0, 0.00);
}

tr.coa-level-1 {
    background: rgba(0, 0, 0, 0.01);
}

tr.coa-level-2 {
    background: rgba(0, 0, 0, 0.02);
}

tr.coa-level-3 {
    background: rgba(0, 0, 0, 0.03);
}

/* Keep code slightly “ledger-like” */
.coa-code {
    font-variant-numeric: tabular-nums;
}

/* Normal-balance side colouring */
.coa-balance.coa-debit {
    color: #1e4e8c;
}

/* debit-normal (Assets/Expenses) */
.coa-balance.coa-credit {
    color: #7a1e8c;
}

/* credit-normal (Liab/Equity/Income) */

/* Additional states */
.coa-balance.coa-negative {
    opacity: 0.95;
    font-weight: 600;
}

/* stands out a bit */
.coa-balance.coa-zero {
    opacity: 0.55;
}

/* muted zeros */
.coa-balance.coa-parent {
    font-weight: 700;
}

/* parents/control */

.coa-balance {
    text-align: right;
    white-space: nowrap;
}

.coa-drcr {
    opacity: 0.7;
    font-size: 0.85em;
    margin-left: 6px;
}

/* Parent balance layout */
.coa-balance-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.coa-balance-total {
    font-weight: 700;
}

.coa-balance-own {
    opacity: 0.55;
    font-size: 0.82em;
    margin-top: 2px;
}

.coa-balance-label {
    opacity: 0.6;
    margin-right: 6px;
}

/* Balance hierarchy */
.coa-balance.coa-rollup {
    opacity: 0.75;
    font-style: italic;
    font-weight: 500;
}

.coa-balance.coa-leaf {
    font-style: normal;
    font-weight: 700;
    opacity: 1;
}

/* Optional Σ prefix styling */
.coa-sigma {
    display: inline-block;
    margin-right: 6px;
    opacity: 0.6;
    font-weight: 700;
}

/* ----- End Chart of Accounts Specific ----- */


/* Sales Order Line Helper (overlay) */
.sales-order-line-helper {
    position: fixed;
    right: 48px;
    top: 150px;
    /* bottom: 32px; */
    width: min(500px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid rgba(10, 10, 10, .12);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(10, 10, 10, .18);
    z-index: 60;
    /* above modals backdrop? adjust if needed */
    overflow: hidden;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    opacity: .95;
    transition: opacity .15s ease, transform .15s ease;
}

.sales-order-line-helper:hover,
.sales-order-line-helper:focus-within {
    opacity: 1;
}

.solh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .03), rgba(0, 0, 0, 0));
    border-bottom: 1px solid rgba(10, 10, 10, .08);
}

.solh-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: rgba(10, 10, 10, .9);
}

.solh-subtitle {
    font-weight: 600;
    font-size: 12px;
    color: rgba(10, 10, 10, .55);
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.solh-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #48c774;
    /* green-ish */
    box-shadow: 0 0 0 3px rgba(72, 199, 116, .18);
}

.solh-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.solh-btn {
    appearance: none;
    border: 1px solid rgba(10, 10, 10, .12);
    background: #fff;
    color: rgba(10, 10, 10, .7);
    border-radius: 8px;
    width: 30px;
    height: 28px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.solh-btn:hover {
    background: rgba(10, 10, 10, .03);
}

.solh-btn--close {
    color: rgba(10, 10, 10, .55);
}

.solh-body {
    padding: 12px;
}

.solh-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.solh-section {
    border: 1px solid rgba(10, 10, 10, .08);
    border-radius: 10px;
    padding: 10px;
    background: rgba(10, 10, 10, .015);
}

.solh-section--span {
    grid-column: 1 / -1;
}

.solh-section-title {
    font-size: 11px;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(10, 10, 10, .5);
    margin-bottom: 8px;
}

.solh-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.solh-profit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.solh-kpi {
    padding: 8px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(10, 10, 10, .06);
}

.solh-kpi-label {
    font-size: 11px;
    color: rgba(10, 10, 10, .5);
    margin-bottom: 2px;
}

.solh-kpi-value {
    font-weight: 800;
    font-size: 14px;
    color: rgba(10, 10, 10, .88);
}

.solh-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    padding: 4px 2px;
    color: rgba(10, 10, 10, .82);
}

.solh-row--strong {
    font-weight: 800;
    padding-top: 6px;
}

.solh-muted {
    color: rgba(10, 10, 10, .55);
}

.solh-pill {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(10, 10, 10, .10);
    background: #fff;
    color: rgba(10, 10, 10, .75);
    white-space: nowrap;
}

.solh-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.solh-flag {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(10, 10, 10, .10);
    background: #fff;
    color: rgba(10, 10, 10, .72);
}

.solh-flag--ok {
    border-color: rgba(72, 199, 116, .35);
    background: rgba(72, 199, 116, .10);
    color: rgba(46, 125, 73, .95);
}

.solh-flag--warn {
    border-color: rgba(255, 221, 87, .55);
    background: rgba(255, 221, 87, .18);
    color: rgba(145, 113, 0, .95);
}

.solh-flag--bad {
    border-color: rgba(241, 70, 104, .45);
    background: rgba(241, 70, 104, .12);
    color: rgba(156, 29, 52, .95);
}

.solh-mini-note {
    margin-top: 8px;
    font-size: 11px;
    color: rgba(10, 10, 10, .55);
    line-height: 1.35;
}

/* Collapsed state */
.sales-order-line-helper.is-collapsed .solh-body {
    display: none;
}

.sales-order-line-helper.is-hidden {
    display: none;
}

.sales-order-line-helper.is-dismissed {
    display: none;
}

/* Mobile tweak */
@media (max-width: 480px) {
    .solh-grid {
        grid-template-columns: 1fr;
    }

    .solh-kpis {
        grid-template-columns: repeat(3, 1fr);
    }
}


/*--------- END Sales Order Line Helper ----- */

/*----------Product Import Loader---------*/
.cm-page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(2px);
}

.cm-page-loader.is-hidden {
    display: none;
}

.cm-page-loader__box {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 10px;
    padding: 24px 28px;
    min-width: 280px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cm-page-loader__spinner {
    width: 46px;
    height: 46px;
    border: 4px solid #dbdbdb;
    border-top-color: #3273dc;
    border-radius: 50%;
    display: inline-block;
    animation: cm-spin 0.8s linear infinite;
}

.cm-page-loader__text {
    margin-top: 14px;
    font-weight: 600;
}

@keyframes cm-spin {
    to {
        transform: rotate(360deg);
    }
}

/*--------- END Product Import Loader --------- */

/*---------QUICK ACTIONS MENU ---------*/

.cm-quick-actions {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 180px;
    height: 230px;
    z-index: 9999;
    pointer-events: none;
}

/* Main floating buttons */
.cm-qa-btn {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    pointer-events: auto;
    background: #1f2937;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    font-size: 18px;
}

.cm-qa-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    background: #111827;
    color: #fff;
}

.cm-qa-centre {
    left: 64px;
    bottom: 94px;
    width: 56px;
    height: 56px;
    background: #2563eb;
    font-size: 20px;
}

.cm-qa-centre:hover {
    background: #1d4ed8;
}

.cm-qa-top {
    left: 66px;
    bottom: 156px;
}

.cm-qa-left {
    left: 0;
    bottom: 96px;
}

.cm-qa-right {
    left: 132px;
    bottom: 96px;
}

.cm-qa-bottom {
    left: 66px;
    bottom: 30px;
}

/* Small arrow toggle */
.cm-qa-toggle {
    position: absolute;
    left: 70px;
    bottom: -8px;
    width: 44px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cm-qa-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.cm-quick-actions.cm-qa-open .cm-qa-toggle i {
    transform: rotate(180deg);
}

/* Management panel */
.cm-qa-panel {
    position: absolute;
    left: 0;
    bottom: 40px;
    width: 320px;
    max-height: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: auto;
}

.cm-quick-actions.cm-qa-open .cm-qa-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cm-qa-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #111827;
    background: #f9fafb;
}

.cm-qa-panel-close {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #6b7280;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.cm-qa-panel-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.cm-qa-panel-body {
    padding: 10px;
    max-height: 360px;
    overflow-y: auto;
}

.cm-qa-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eceff3;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #fff;
}

.cm-qa-row-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cm-qa-row-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-qa-row-text {
    min-width: 0;
}

.cm-qa-row-label {
    font-weight: 600;
    font-size: 12px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-qa-row-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.cm-qa-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cm-qa-row-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-qa-row-btn:hover {
    background: #f9fafb;
    color: #111827;
}

.cm-qa-row-btn-danger:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.cm-qa-add-btn {
    width: 100%;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #1f2937;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cm-qa-add-btn:hover {
    background: #f1f5f9;
}

.cm-qa-empty {
    padding: 18px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
    .cm-quick-actions {
        left: 16px;
        bottom: 16px;
        width: 160px;
        height: 210px;
    }

    .cm-qa-btn {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .cm-qa-centre {
        left: 56px;
        bottom: 86px;
        width: 52px;
        height: 52px;
        font-size: 18px;
    }

    .cm-qa-top {
        left: 56px;
        bottom: 136px;
    }

    .cm-qa-left {
        left: 0;
        bottom: 86px;
    }

    .cm-qa-right {
        left: 112px;
        bottom: 86px;
    }

    .cm-qa-bottom {
        left: 56px;
        bottom: 28px;
    }

    .cm-qa-toggle {
        left: 58px;
    }

    .cm-qa-panel {
        width: min(320px, calc(100vw - 32px));
    }
}

/*---------END OF QUICK ACTIONS -----------*/

/*----------CUSTOMER STAR RATING---------*/

.cm-star-rating {
    display: flex;
    gap: 4px;
}

.cm-star {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 1.6rem;
    color: #d1d5db;
}

.cm-star:hover {
    /*color: #dfec1e;*/
    scale: 1.1;
}

.cm-star i {
    pointer-events: none;
}

.cm-star.active {
    color: #f5b301;
}

/*----------END OF CUSTOMER STAR RATING---------*/

/*-----------Page Tool Bar-----------*/
.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    width: 100%;
}

.page-toolbar__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.page-toolbar__group--left {
    flex: 1 1 auto;
}

.page-toolbar__group--right {
    flex: 0 1 auto;
    justify-content: flex-end;
}

.page-toolbar__search {
    margin-bottom: 0 !important;
    min-width: 260px;
    max-width: 280px
}

.page-toolbar__search .control.is-expanded {
    min-width: 0;
}

.page-toolbar__search .input {
    min-width: 0;
}

@media screen and (max-width: 768px) {
    .page-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .page-toolbar__group--left,
    .page-toolbar__group--right {
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .page-toolbar__search {
        width: 100%;
        max-width: none;
    }

    .page-toolbar__search .control.is-expanded {
        flex: 1 1 auto;
    }

}




/*-----------END OF Page Tool Bar-----------*/