.card-modal .card-left-panel .card-comments .comment-danger {
    font-size: 13px;
    background-color: #ffe5e5;
    color: #3e4852;
    margin-bottom: 10px;
    border-radius: 5px;
}

.iti-phone-container .iti {
    display: block !important;
}

.card-wrapper {
    padding: 0;
    margin-right: 2px;
}

.circle {
    display: flex;
    width: 50px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
    border-radius: 4px;
    margin-bottom: 20px;
}

.circle-text {
    font-size: 30px;
    font-weight: 700;
}

.custom-line {
    border-top: solid 2px;
    border-color: #eae7e7;
    margin-top: 5px;
}
.divider-label {
    border-left: 1px solid #898989;
    padding: 7px 12px;
}

.card-border {
    border: 1px solid rgb(38, 36, 36);
    border-radius: 10px;
}
.card-border-disabled {
    border-radius: 10px;
    border: 2px solid grey;
    opacity: 0.6;
}
.card-border-approved {
    border-radius: 10px;
    border: 2px solid grey;
}

.card-header {
    text-align: center;
    background: none;
    border: 0;
    padding: 0;
    margin-bottom: 20px;
}

.card-header h3 {
    color: #000;
    font-size: 16px;
    font-weight: 500;
}

.stage-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 4px;
    border: 1px solid #4285f4;
    background: #ffffff;
}

.div_skip {
    color: white;
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 16px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    transition: 0.4s;
    border-radius: 100px;
    border: 2px solid #0068c4;
    background: #ebf1f7;
}

.slider::before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    left: 2px;
    top: 50%;
    background-color: #0068c4;
    transition: 0.4s;
    border-radius: 100px;
    transform: translate(0, -50%);
}

input:checked + .slider {
    background-color: transparent;
}

input:checked + .slider::before {
    transform: translate(15px, -50%);
}

.text-truncate-one-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 576px) {
    .card-body.tab-body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/** START GCP Opportunities Cards **/
.gcp-board {
    min-height: 568px;
    position: relative;
    white-space: nowrap;
    display: flex;
    padding-bottom: 16px;
    overflow-x: auto;
    /* overflow-y: hidden; */
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
}

.gcp-card {
    width: 300px;
    display: inline-flex;
    vertical-align: top;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 auto;
    border-radius: 2px;
}

.gcp-card .card-body {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gcp-card.disabled-visual {
    opacity: 0.5;
}

.gcp-card .card-footer {
    background: none;
    border: 0;
}

.card-gradient-blue .card-body {
    background: linear-gradient(to bottom, #d5edff, #459dde);
    border-radius: 8px;
}

.card-gradient-light-blue .card-body {
    background: linear-gradient(145deg, #e7f1ff, #d0e0ff);
    border-radius: 8px;
}

.card-gradient-gray .card-body {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
}

.card-gradient-yellow .card-body {
    background: linear-gradient(145deg, #fff7e6, #ffe8b3);
    border-radius: 8px;
}

.white-block {
    background: white;
    color: #000000;
    padding: 8px 12px;
    border-radius: 6px;
}

.board .card-primary {
    border-top: 10px solid#4285f4;
}

.board .card-info {
    border-top: 10px solid #048bb6;
}

.board .card-success {
    border-top: 10px solid #28a745;
}

.board .card-warning {
    border-top: 10px solid #e8a801;
}

.board .card-danger {
    border-top: 10px solid #c3391b;
}

.board .card-primary .circle {
    border: 1px solid #4285f4;
    background: rgba(66, 133, 244, 0.1);
    color: #4285f4;
}

.board .card-info .circle {
    border: 1px solid #048bb6;
    background: rgba(4, 139, 182, 0.1);
    color: #048bb6;
}

.board .card-success .circle {
    border: 1px solid #02954e;
    background: rgba(2, 149, 78, 0.1);
    color: #02954e;
}

.board .card-warning .circle {
    border: 1px solid #e8a801;
    background: rgba(232, 168, 1, 0.1);
    color: #e8a801;
}

.board .card-danger .circle {
    border: 1px solid #c3391b;
    background: rgba(195, 57, 27, 0.1);
    color: #c3391b;
}

.gcp-card:first-child {
    border-top-left-radius: 8px;
}

.gcp-card:last-child {
    border-top-right-radius: 8px;
}

.switch-container > span {
    font-size: 15px;
    font-weight: 400;
    color: #000000;
}

.card-cta-button {
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    padding: 6px 12px;
    text-align: center;
    width: 100%;
}

.card-cta-button:disabled {
    opacity: 0.3;
}

.card-cta-button:focus {
    outline: none;
}

.card-cta-button.outlined-primary {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #003ca4;
}

.card-cta-button.primary {
    background-color: #003ca4;
    color: #ffffff;
    border: 1px solid #003ca4;
}

.card-cta-button.primary:hover {
    background-color: rgba(0, 60, 164, 0.7);
}

.icon_step {
    height: 100px;
}

.opportunity-info-card {
    padding: 10px 15px;
    border-radius: 8px;
    background: #f6f9fa;
}

.customer-info-card {
    padding: 10px 15px;
    border-radius: 6px;
    background: #ffffff;
}

.customer-info {
    background: #ffffff;
    padding: 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.info-label {
    color: #585858;
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    color: #003ca4;
    font-size: 14px;
    font-weight: 600;
}

.phase-header {
    padding: 0 20px 10px 20px;
}

.board .card-primary .phase-header {
    background: #4285f4;
}

.board .card-info .phase-header {
    background: #048bb6;
}

.board .card-success .phase-header {
    background: #28a745;
}

.board .card-warning .phase-header {
    background: #e8a801;
}

.board .card-danger .phase-header {
    background: #c3391b;
}

.phase-header .phase-order {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.phase-header .phase-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.phase-header .phase-time-label {
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
}

.phase-header .phase-time-value {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.phase-content-container {
    padding: 10px;
}

.stage-content-header {
    gap: 30px;
    padding: 10px;
}

.stage-content-title {
    color: #000000;
    font-size: 13px;
    font-weight: 400;
    width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stage-content-time {
    color: #000000;
    font-size: 13px;
    font-weight: 400;
}

.stage-content-details {
    background: #ebf1f7;
    padding: 10px;
}

.stage-detail-label {
    color: #000000;
    font-size: 12px;
    font-weight: 400;
}

.stage-detail-label.primary {
    color: #003ca4;
}

.stage-detail-value {
    color: #000000;
    font-size: 14px;
    font-weight: 500;
}

@media (min-width: 576px) {
    .board.card-deck {
        margin-right: -8px;
        margin-left: -8px;
    }
    .board.card-deck .card {
        margin-right: 8px;
        margin-left: 8px;
        min-height: 568px;
    }
}

@media (max-width: 1023px) {
    .gcp-board .d-flex {
        display: flex !important;
    }
}
/** END GCP Opportunities Cards **/

/** Chart **/
#progress_chart .apexcharts-legend,
#linear_progress .apexcharts-legend {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    gap: 16px;
}

#progress_chart .apexcharts-legend-series,
#linear_progress .apexcharts-legend-series {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    background: #ffffff;
    border-radius: 6px;
    padding: 12px 16px;
    flex: 1;
    margin: 0 !important;
}

#progress_chart .apexcharts-legend-marker,
#linear_progress .apexcharts-legend-marker {
    display: none !important;
}

.legend-card {
    display: flex;
    align-items: center;
}

.legend-color {
    width: 15px !important;
    height: 40px !important;
    border-radius: 4px;
    margin-right: 8px;
}

.legend-content {
    color: #5b676d;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legend-label {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legend-value {
    font-size: 14px;
}
/** End Chart **/

.btn-circle-flex {
    border-radius: 100%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    padding: 0;
}

/* NABIL (refactor with CSS variables) */

/* =========================================================
   1) Theme tokens
   ========================================================= */
:root {
    /* Typography */
    --font-sans: "Inter", sans-serif;

    /* Core colors */
    --color-black: #000000;
    --color-white: #ffffff;

    /* Slate / neutrals */
    --slate-900: #0f172a;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #ebf1f7;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;

    /* Brand blues */
    --blue-900: #002880;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-300: #60a5fa;
    --blue-200: #bfdbfe;
    --blue-100: #eff6ff;

    /* Success / greens */
    --green-700: #047857;
    --green-300: #34d399;
    --success-100: #ecfdf5;
    --success-200: #d1fae5;

    /* Danger / reds */
    --red-700: #b91c1c;
    --red-300: #f88b7d;
    --danger-100: #fef2f2;
    --danger-200: #fee2e2;

    /* Warning / amber */
    --warning-100: #fffbeb;
    --warning-200: #fef3c7;
    --warning-400: #fcd34d;
    --warning-300: #f8b07d;
    --warning-700: #ff9041;

    /* Purple */
    --purple-600: #9333ea;
    --purple-100: #faf5ff;
    --purple-200: #e9d5ff;

    /* Cyan */
    --cyan-100: #daf5fb;
    --cyan-600: #0891b2;

    /* Misc */
    --row-divider: #eef2f7;
    --row-hover-bg: #f8fafe;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 50px;

    /* Shadows */
    --shadow-primary: 0 10px 24px rgba(15, 23, 42, 0.06);
    --shadow-dropdown:
        0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.01),
        0 5px 5px -3px rgba(0, 0, 0, 0.1);

    --shadow-table: 0 10px 24px rgba(15, 23, 42, 0.06);

    /* Components */
    --progress-track: #93c5fd; /* default track fallback */
    --progress-bar: var(--blue-600);

    --summary-row-bg: #0033a0;

    /* Text sizes */
    --text-xs: 10px;
    --text-sm: 11px;
    --text-md: 16px;
    --text-lg: 24px;
    --text-xl: 32px;

    /* Custom text sizes */
    --text-12: 12px;
    --text-14: 14px;

    /* Custom gaps */
    --gap-10: 10px;
    --gap-20: 20px;

    /* dialogs sizes */
    --dialog-sm: 592px;
    --dialog-lg: 950px;
    --dialog-xl: 1100px;
}

/* =========================================================
   2) Base
   ========================================================= */
body,
html {
    font-family: var(--font-sans);
}

.wrap {
    flex-wrap: wrap;
}
/* =========================================================
   3) Text utility colors
   ========================================================= */
.text-black {
    color: var(--color-black) !important;
}

.text-white {
    color: var(--color-white) !important;
}

.text-blue {
    color: var(--blue-600) !important;
}

.text-blue-200 {
    color: var(--blue-200) !important;
}

.text-blue-300 {
    color: var(--blue-300) !important;
}

.text-blue-700 {
    color: var(--blue-700) !important;
}

.text-blue-900 {
    color: var(--blue-900) !important;
}

.text-green {
    color: var(--green-700) !important;
}

.text-warning-300 {
    color: var(--warning-300) !important;
}

.text-warning-400 {
    color: var(--warning-400) !important;
}

.text-warning-700 {
    color: var(--warning-700) !important;
}

.text-green-300 {
    color: var(--green-300) !important;
}

.text-green-700 {
    color: var(--green-700) !important;
}

.text-purple {
    color: var(--purple-600) !important;
}

.text-purple-100 {
    color: var(--purple-100) !important;
}

.text-purple-200 {
    color: var(--purple-200) !important;
}

.text-slate-200 {
    color: var(--slate-200) !important;
}

.text-slate-300 {
    color: var(--slate-300) !important;
}

.text-slate-400 {
    color: var(--slate-400) !important;
}

.text-slate-500 {
    color: var(--slate-500) !important;
}

.text-slate-700 {
    color: var(--slate-700) !important;
}

.text-slate-900 {
    color: var(--slate-900) !important;
}

.text-red-300 {
    color: var(--red-300) !important;
}

.text-red-700 {
    color: var(--red-700) !important;
}

.text-cyan-600 {
    color: var(--cyan-600) !important;
}
/* =========================================================
   4) Background utility colors
   ========================================================= */
.bg-purple-100 {
    background-color: var(--purple-100) !important;
}

.bg-blue-100 {
    background-color: var(--blue-100) !important;
}

.bg-blue-200 {
    background-color: var(--blue-200) !important;
}

.bg-blue-300 {
    background-color: var(--blue-300) !important;
}

.bg-blue-600 {
    background-color: var(--blue-600) !important;
}

.bg-blue-700 {
    background-color: var(--blue-700) !important;
}

.bg-blue-900 {
    background-color: var(--blue-900) !important;
}

.bg-warning-100 {
    background-color: var(--warning-100) !important;
}

.bg-warning-200 {
    background-color: var(--warning-200) !important;
}

.bg-warning-300 {
    background-color: var(--warning-300) !important;
}

.bg-lime {
    background-color: var(--warning-400) !important;
}

.bg-success-100 {
    background-color: var(--success-100) !important;
}

.bg-success-200 {
    background-color: var(--success-200) !important;
}

.bg-green-300 {
    background-color: var(--green-300) !important;
}

.bg-green-700 {
    background-color: var(--green-700) !important;
}

.bg-slate-100 {
    background-color: var(--slate-100) !important;
}

.bg-slate-300 {
    background-color: var(--slate-300) !important;
}

.bg-slate-400 {
    background-color: var(--slate-400) !important;
}

.bg-slate-900 {
    background-color: var(--slate-900) !important;
}

.bg-danger-100 {
    background-color: var(--danger-100) !important;
}

.bg-danger-200 {
    background-color: var(--danger-200) !important;
}

.bg-danger-700 {
    background-color: var(--red-700) !important;
}

.bg-cyan-100 {
    background-color: var(--cyan-100) !important;
}

.bg-purple {
    background-color: var(--purple-600) !important;
}
/* =========================================================
   5) Borders utility colors
   ========================================================= */
.border-slate-100 {
    border-color: var(--slate-100) !important;
}

.border-slate-200 {
    border-color: var(--slate-200) !important;
}

.border-slate-400,
.border-default {
    border-color: var(--slate-400) !important;
}

.border-blue-300,
.border-info {
    border-color: var(--blue-300) !important;
}

.border-lime {
    border-color: var(--warning-400) !important;
}

.border-success {
    border-color: var(--green-700) !important;
}

.border-success-200 {
    border-color: var(--success-200) !important;
}

.border-danger {
    border-color: var(--red-700) !important;
}

.border-danger-200 {
    border-color: var(--danger-200) !important;
}

.border-danger-700 {
    border-color: var(--red-700) !important;
}

.border-warning {
    border-color: var(--warning-400) !important;
}

.border-warning-200 {
    border-color: var(--warning-200) !important;
}

.border-dashed {
    border: 2px dashed #f1f5f9; /* same color as Bootstrap border */
}

.border-blue-600 {
    border-color: var(--blue-600) !important;
}

.border-blue-700 {
    border-color: var(--blue-700) !important;
}

.border-green-700 {
    border-color: var(--green-700) !important;
}
.border-purple {
    border-color: var(--purple-600) !important;
}

/* Base class: No borders by default (Mobile) */
.border-md-right,
.border-md-left {
    border: 0;
}

@media (min-width: 768px) {
    .border-md-right {
        border-right: 1px solid;
    }
    .border-md-left {
        border-left: 1px solid;
    }
}
/* =========================================================
   6) Border Radius && Thickness utility classes
   ========================================================= */

.radius-sm {
    border-radius: var(--radius-sm) !important;
}
.radius-md {
    border-radius: var(--radius-md) !important;
}
.radius-lg {
    border-radius: var(--radius-lg) !important;
}
.radius-pill {
    border-radius: var(--radius-pill) !important;
}

.thickness-2 {
    border-width: 2px !important;
}

.thickness-3 {
    border-width: 3px !important;
}

.thickness-4 {
    border-width: 4px !important;
}

/* =========================================================
   7) Opacity utility classes
   ========================================================= */

.opacity-100 {
    opacity: 1 !important;
}
.opacity-75 {
    opacity: 0.75 !important;
}
.opacity-50 {
    opacity: 0.5 !important;
}
.opacity-25 {
    opacity: 0.25 !important;
}
.opacity-0 {
    opacity: 0 !important;
}

/* =========================================================
   8) Line height utility classes
   ========================================================= */

.lh-1 {
    line-height: 1;
}

.lh-12 {
    line-height: 1.2;
}

.lh-15 {
    line-height: 1.5;
}

.lh-18 {
    line-height: 1.8;
}

/* =========================================================
   9) Fonts utility classes
   ========================================================= */
.text-xs {
    font-size: var(--text-xs) !important;
}

.text-sm {
    font-size: var(--text-sm) !important;
}

.text-md {
    font-size: var(--text-md) !important;
}

.text-lg {
    font-size: var(--text-lg) !important;
}

.text-xl {
    font-size: var(--text-xl) !important;
}

.text-12 {
    font-size: var(--text-12) !important;
}

.text-14 {
    font-size: var(--text-14) !important;
}

.font-weight-black {
    font-weight: 900 !important;
}

/* =========================================================
   10) Gaps
   ========================================================= */
.gap-10 {
    gap: var(--gap-10) !important;
}

.gap-20 {
    gap: var(--gap-20) !important;
}

.gap-0 {
    gap: 0 !important;
}

.gap-6 {
    gap: 6px !important;
}

.gap-8 {
    gap: 8px !important;
}
/* =========================================================
   10b) Flex Basis
   ========================================================= */
.flex-basis-200 {
    flex-basis: 200px !important;
}
/* =========================================================
   10c) Agreement header utilities
   ========================================================= */
.country-flag-img {
    width: 16px !important;
    height: 12px !important;
    object-fit: cover !important;
    border-radius: 2px !important;
}

/* =========================================================
   10c-i) Country flag switcher (<x-country-flag-select>, ACM-5)
   Utilities the component relies on. Scoped where they could
   otherwise leak (flag size, caret) so the shared .country-flag-img
   used by the agreement header keeps its 22x16 size.
   ========================================================= */
/* compact 16x12 flag inside the switcher only */
[data-country-flag-select] .country-flag-img {
    width: 16px !important;
    height: 12px !important;
}
/* use the phosphor caret, hide Bootstrap's default ::after caret */
[data-country-flag-select] > .dropdown-toggle::after {
    display: none;
}
.w-10px {
    width: 10px;
}
.h-10px {
    height: 10px;
}
/* let the 10px caret win over the global `.btn svg { 18px }` rule */
.btn svg.w-10px {
    width: 10px !important;
}
.btn svg.h-10px {
    height: 10px !important;
}
.max-h-93 {
    max-height: 93px;
}
.max-h-300 {
    max-height: 300px;
}

.text-amount-lg {
    font-size: 1.1rem !important;
}

.mb-30 {
    margin-bottom: 30px;
}
/* =========================================================
   11) Progress (thin)
   ========================================================= */
.progress--thin {
    width: 110px;
    height: 5px;
    border-radius: var(--radius-pill);
    background: var(--track-color, var(--progress-track));
}

.progress--thin .progress-bar {
    border-radius: var(--radius-pill);
    background: var(--bar-color, var(--progress-bar));
}

.progress--thin,
.progress--thin .progress-bar {
    opacity: 1 !important;
}
.progress--default {
    height: 10px;
    border-radius: var(--radius-pill);
    background: var(--track-color, var(--progress-track));
}

.progress--thin .progress-bar,
.progress--default .progress-bar {
    border-radius: var(--radius-pill);
    background: var(--bar-color, var(--progress-bar));
}

.progress--thin,
.progress--default,
.progress--thin .progress-bar,
.progress--default .progress-bar {
    opacity: 1 !important;
}

/* =========================================================
   12) Status pills + status text
   ========================================================= */
.status-pill {
    display: inline-block;
    padding: 2px 7px;
    font-size: var(--text-xs);
    font-weight: 700;
    border: 1px solid;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pill-success {
    color: var(--green-700);
    background-color: var(--success-100);
    border-color: var(--success-200);
}

.status-pill-danger {
    color: var(--red-700);
    background-color: var(--danger-100);
    border-color: var(--danger-200);
}

.status-pill-blue {
    color: var(--blue-700);
    background-color: #dbeafe;
    border-color: var(--blue-200);
}

.status-pill-purple {
    color: var(--purple-600);
    background-color: var(--purple-100);
    border-color: var(--purple-200);
}

.status-pill-warning {
    color: var(--warning-700);
    background-color: var(--warning-100);
    border-color: var(--warning-200);
}

.status-pill-delivery-progress {
    color: #b45309;
    background-color: #fffbeb;
    border-color: #fde68a;
}

.status-pill-delivery-progress i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-right: 4px !important;
    border-radius: 9999px;
    background-color: #fef3c7;
    color: #b45309;
    font-size: 10px;
    line-height: 1;
}

.status-pill-default {
    color: var(--slate-700);
    background-color: var(--slate-100);
    border-color: var(--slate-200);
}

.status-pill-cyan {
    color: #0e7490;
    background-color: #ecfeff;
    border-color: #cffafe;
}

.status-pill-orange {
    color: #9a3412;
    background-color: #fff7ed;
    border-color: #ffedd5;
}

.status-text {
    font-weight: 700;
}

.status-text-success {
    color: var(--green-700);
}

.status-text-delivery-progress {
    color: #b45309;
}

.status-text-gray {
    color: var(--slate-500);
}

/* =========================================================
   13) Small text
   ========================================================= */
.text-small {
    font-size: var(--text-xs);
    font-weight: 400;
    line-height: 14px;
}

/* =========================================================
   14) Buttons / dropdown
   ========================================================= */

/* Base */
.btn {
    --btn-bg: transparent;
    --btn-color: var(--slate-900);
    --btn-border: var(--slate-200);

    --btn-bg-hover: var(--slate-100);
    --btn-color-hover: var(--btn-color);
    --btn-border-hover: var(--btn-border);

    --btn-bg-active: var(--slate-200);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    border-radius: var(--radius-sm);
    border: 1px solid var(--btn-border);
    background: var(--btn-bg) !important;
    color: var(--btn-color);

    user-select: none;
    cursor: pointer;

    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        color 150ms ease,
        transform 60ms ease;
}

/* Sizes */
.btn-sm {
    height: 28px;
    padding: 0 10px;
    font-size: 11px;
}

.btn-md {
    height: 34px;
    padding: 0 22px;
    font-size: 11px;
}

.btn-lg {
    height: 52px;
    padding: 0 26px;
    font-size: 16px;
}

/* Hover/active/focus */
.btn:hover {
    background: var(--btn-bg-hover);
    color: var(--btn-color-hover);
    border-color: var(--btn-border-hover);
}

.btn:active {
    background: var(--btn-bg-active);
    transform: translateY(1px);
}

.btn:focus {
    outline: none;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Disabled */
.btn:disabled,
.btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

/* ---------------------------------------
   15) VARIANTS
---------------------------------------- */

.btn-primary {
    --btn-bg: var(--blue-700);
    --btn-color: var(--color-white);

    --btn-bg-hover: #001f66;
    --btn-bg-active: #001a55;

    border: 0;
}

.btn-danger {
    --btn-bg: var(--red-700);
    --btn-color: var(--color-white);

    --btn-bg-hover: #991b1b;
    --btn-bg-active: #7f1d1d;

    border: 0;
}

.btn-success {
    --btn-bg: var(--green-700);
    --btn-color: var(--color-white);

    --btn-bg-hover: #15803d;
    --btn-bg-active: #166534;

    border: 0;
}

.btn-purple {
    --btn-bg: var(--purple-700);
    --btn-color: var(--color-white);

    --btn-bg-hover: #7c3aed;
    --btn-bg-active: #6b21a8;

    border: 0;
}

.btn-warning {
    --btn-bg: var(--warning-700);
    --btn-color: var(--color-white);

    --btn-bg-hover: #b45309;
    --btn-bg-active: #78350f;

    border: 0;
}

.btn-primary:hover {
    border: 0;
}

.btn-outline-primary {
    --btn-bg: var(--blue-100);
    --btn-color: var(--blue-700);
    --btn-border: var(--blue-700);

    --btn-bg-hover: var(--blue-100);
    --btn-border-hover: var(--blue-700);
    --btn-bg-active: var(--blue-200);
}

/* .btn-outline-primary:focus{
    --btn-bg: var(--blue-700);
    background-color: var(--blue-700);
    border-color: var(--blue-700);
} */

.btn-outline-danger {
    --btn-bg: var(--danger-100);
    --btn-color: var(--red-700);
    --btn-border: var(--red-700);

    --btn-bg-hover: var(--danger-100);
    --btn-border-hover: var(--red-700);
    --btn-bg-active: var(--danger-200);
}

.btn-outline-danger:focus-visible {
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.22);
}

.btn-outline-warning {
    --btn-bg: var(--warning-100);
    --btn-color: var(--warning-700);
    --btn-border: var(--warning-400);

    --btn-bg-hover: var(--warning-100);
    --btn-border-hover: var(--warning-400);
    --btn-bg-active: #fff3c7;
}

.btn-outline-success {
    --btn-bg: var(--success-100);
    --btn-color: var(--green-700);
    --btn-border: var(--green-300);

    --btn-bg-hover: var(--success-100);
    --btn-border-hover: var(--green-300);
    --btn-bg-active: #d1fae5;
}

.btn-outline-default {
    --btn-bg: var(--slate-100);
    --btn-color: var(--slate-500);
    --btn-border: var(--slate-200);

    --btn-bg-hover: var(--slate-100);
    --btn-border-hover: var(--slate-200);
    --btn-bg-active: var(--slate-300);
}

.btn-outline-warning:focus-visible {
    box-shadow: 0 0 0 3px rgba(252, 211, 77, 0.28);
}

.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.show > .btn-outline-primary.dropdown-toggle,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.focus {
    color: var(--blue-700) !important;
}
/* ---------------------------------------
   16) ICON HELPERS (arrow on the right)
---------------------------------------- */

.btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn .btn-icon-right {
    margin-left: 8px;
    color: var(--btn-color);
}

.action-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    padding: 0;
    border-color: transparent;
    background: var(--slate-100);
    opacity: 1;
}

.action-btn:hover {
    background: var(--blue-100);
}

.action-btn:hover * {
    opacity: 0.7;
}

.action-btn:focus {
    border: 0;
    outline: none;
}

/* If you use inline SVG */
.btn svg {
    width: 18px;
    height: 18px;
}

.btn-outline-secondary {
    color: var(--slate-400);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
}

.btn-outline-secondary:hover {
    color: var(--blue-600);
    border: 1px solid var(--blue-600);
}

.btn-secondary:hover,
.btn-secondary.disabled:hover {
    color: var(--slate-900) !important;
    border: 1px solid var(--slate-200);
}

.dropdown-menu {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-dropdown) !important;
}

a.dropdown-item {
    font-weight: 500;
    font-size: var(--text-sm);
}

/* Button Groups */
.btn-group {
    gap: 10px;
    border-radius: 0;
    width: auto;
}

@media (max-width: 1023px) {
    .btn-group {
        width: 100%;
    }
}

.btn-group .btn {
    border-radius: var(--radius-sm) !important;
    font-size: var(--text-sm);
    font-weight: 700;
    padding: 7px 17px;
    text-align: center;
    color: var(--slate-600);
    border-color: var(--slate-200);
    background-color: var(--color-white);
}

.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
    border-color: var(--blue-700);
    background-color: var(--blue-700);
}

.btn-group .btn:focus {
    opacity: 1;
    box-shadow: 0;
}

.billing-tabs-wrapper {
    background: #e9edf3;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.billing-tab {
    border: 0;
    background: transparent;
    color: #8a94a6;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    padding: 14px 22px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none;
    outline: none !important;
    box-shadow: none !important;
}

.billing-tab:hover {
    text-decoration: none;
    color: #5f6b7c;
    background: rgba(255, 255, 255, 0.35);
}

.billing-tab.active {
    background: #f7f8fb;
    color: #0f3ea8;
}

.billing-tab svg {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    stroke: currentColor;
    flex-shrink: 0;
}

.billing-tab:focus {
    box-shadow: none;
}

/* Filters Pill */
.filter-pill {
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 700;
    padding: 7px 17px;
    text-align: center;
    color: var(--slate-600);
    border-color: var(--slate-200);
    background-color: var(--color-white);
    box-shadow: var(--shadow-primary);
}

/* =========================================================
   Reusable state-class visuals — add the component class to any element
   and toggle `.is-active` / `.is-selected` to drive the look from CSS.
   ========================================================= */

/* chip-toggle — pill button with slate resting + filled active state.
   inline-flex centring + min-height keeps text chips and image (flag) chips the same size. */
.chip-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    line-height: 1.2;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.7rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-black);
    background-color: var(--slate-100);
}

/* Flag image chip sits flush inside the chip. */
.chip-toggle .country-flag-img {
    display: block;
}

.chip-toggle.is-active {
    background-color: var(--blue-700) !important;
    color: var(--color-white) !important;
    font-weight: 700 !important;
}

/* No focus outline on chips — the active fill already signals selection. */
.chip-toggle:focus,
.chip-toggle:focus-visible,
.chip-toggle:active {
    outline: none;
    box-shadow: none;
}

/* Disabled chip (e.g. a country outside the user's reach, ACM-7): greyed and non-clickable.
   The JS click handler also skips these; this is the visual + pointer-events guard. */
.chip-toggle.is-disabled,
.chip-toggle:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Filter-chip visibility toggles. Bootstrap's .d-flex/.d-block utilities carry !important,
   and on a single-class tie the later-declared utility wins — so a plain .d-none can never
   hide a chip wrapper that also has .d-flex (the Show More popover items). These compound
   selectors outrank the utilities, letting JS hide chips/wrappers for search + billing
   cascade reliably. Two classes so the two filters don't clobber each other's state. */
.chip-toggle.js-search-hidden,
.col-4.js-search-hidden,
.col-6.js-search-hidden,
.chip-toggle.js-billing-hidden,
.col-4.js-billing-hidden,
.col-6.js-billing-hidden {
    display: none !important;
}

/* filter-label — small slate label that sits above a filter chip group / form field. */
.filter-label {
    display: block;
    margin-bottom: 0.5rem !important;
    font-size: var(--text-xs) !important;
    font-weight: 600 !important;
    color: var(--slate-700) !important;
}

/* 5-per-row grid column (Bootstrap has no native 1/5). Used by the agreements filter groups. */
@media (min-width: 992px) {
    .col-lg-5th {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Custom-day filter row (filter-chip-group "Custom" entry): fixed-width operator select so the
   number field takes the rest, spinner-free number input, and square confirm/cancel icon buttons.
   Generic to any filter-chip-group rendered with allowCustom. */
.js-custom-form .js-custom-operator,
.js-custom-form .select2-container {
    flex: 0 0 72px;
    width: 72px !important;
}

.js-custom-form .select2-container .select2-selection--single {
    height: calc(1.5em + 0.5rem + 2px);
    display: flex;
    align-items: center;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.js-custom-form .select2-container .select2-selection__rendered {
    padding-left: 0.5rem;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-600);
    line-height: 1.5;
}

.js-custom-input::-webkit-outer-spin-button,
.js-custom-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.js-custom-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.js-custom-form .input-group-append .btn {
    padding: 0;
    width: 30px;
}

.js-custom-form .input-group-append .btn svg {
    width: 15px;
    height: 15px;
}

.js-custom-form .js-custom-confirm svg,
.js-custom-form .js-custom-confirm:hover svg {
    color: var(--green-700);
}

/* tab-underline — text tab with blue underline when active. */
.tab-underline {
    color: var(--color-black);
    border-bottom-color: var(--slate-100) !important;
}
.tab-underline.is-active {
    color: var(--blue-700) !important;
    font-weight: 700 !important;
    border-bottom-color: var(--blue-700) !important;
    border-bottom-width: 2px !important;
}

/* option-card-select — bordered card that highlights when selected. */
.option-card-select.is-selected {
    border-color: var(--blue-300) !important;
    border-width: 2px !important;
}

/* label-toggle — text label that turns blue+bold when its sibling is active. */
.label-toggle.is-active {
    color: var(--blue-700) !important;
    font-weight: 700 !important;
}

/* Recipient chip — bg derived from data-cat (matches the team-color map). */
.alert-recipient-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-black);
    background-color: var(--slate-100);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: var(--text-sm);
}
.alert-recipient-chip[data-cat="Operations"] {
    background-color: var(--blue-100);
}
.alert-recipient-chip[data-cat="Sales"] {
    background-color: var(--success-100);
}
.alert-recipient-chip[data-cat="Finance"] {
    background-color: var(--warning-100);
}
.alert-recipient-chip[data-cat="Management"] {
    background-color: var(--purple-100);
}
.alert-recipient-chip[data-cat="Tech"] {
    background-color: var(--cyan-100);
}
.alert-recipient-chip-close {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--color-black);
    line-height: 1;
    cursor: pointer;
}

/* Agreement-scope chip — appears inside the picker's selected-tags strip. */
.ag-scope-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--slate-100);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: var(--text-sm);
    color: var(--color-black);
}
.ag-scope-chip-code {
    background-color: var(--color-white);
    color: var(--slate-700);
    border-radius: var(--radius-sm);
    padding: 0 4px;
    font-size: var(--text-xs);
    font-weight: 700;
}
.ag-scope-chip-remove {
    color: var(--slate-400);
    cursor: pointer;
    line-height: 1;
    font-size: 14px;
}
/* =========================================================
   17) Table responsive wrapper + table styles
   ========================================================= */
.table-responsive {
    overflow: auto;
    max-height: 100vh;
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-table);
}

.table-responsive table,
#ag-table {
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}

.table-responsive table,
#dl-table {
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}

.table-responsive table thead th,
.table-responsive table thead td {
    background: var(--slate-100);
    border: 0;
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--slate-500);
    white-space: nowrap;
    padding: 14px;
    text-transform: uppercase;
    border-radius: 0;
}

.table-responsive table thead th {
    border: 0.5px solid #d7dde5;
    text-align: center;
}

.table-responsive table thead th.sub-head {
    font-size: var(--text-xs);
    font-weight: 400;
}

.table-responsive table thead th:first-child,
.table-responsive table thead th:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.table-responsive tbody td {
    border: 0;
    padding: 18px 20px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--slate-400);
    vertical-align: middle;
}

.table-responsive tbody tr td {
    border-bottom: 1px solid var(--row-divider) !important;
}

.table-responsive tbody tr:last-child td {
    border-bottom: 0 !important;
}

.table-responsive .sorting-icons i {
    font-size: var(--text-sm);
    opacity: 0.65;
}

.table-responsive tbody tr:hover td {
    background: var(--row-hover-bg);
}

.table-responsive tbody tr:hover td table td {
    background: inherit;
}

.table-responsive .page-item.active .page-link {
    background-color: var(--blue-600);
    border-color: var(--blue-600);
}

.table-responsive .sticky-col {
    position: sticky;
    left: 0;
    text-align: left;
    min-width: 150px;
    background-color: var(--color-white);
    box-shadow: 3px 0 6px rgba(0, 0, 0, 0.06);
}

.table-responsive thead .sticky-col {
    z-index: 5;
}

.table-responsive .section-row td,
.table-responsive .section-row .sticky-col {
    background: var(--blue-100);
    font-weight: 900;
}

.table-responsive .pagination {
    margin: 0;
}

.table-responsive .pagination li {
    margin: 0 2px;
}

.table-responsive .page-link {
    margin: 0;
    border-color: var(--row-divider);
}

table th a,
.table th a {
    color: var(--slate-500) !important;
    text-decoration: none;
}

.table.layout-fixed {
    table-layout: fixed;
}

.table-items-listing .table-listing-item {
    border-bottom: 1px solid var(--row-divider);
}
.table-items-listing .table-listing-item:last-child {
    border-bottom: 0;
}

.sticky-row {
    position: sticky;
    top: 0;
    z-index: 1;
}

.group-head.sticky-row {
    height: 45.5px;
}

.sub-head.sticky-row {
    top: 45.5px;
}
/* =========================================================
   18) Form Inputs
   ========================================================= */
.form-group label {
    color: var(--slate-700);
    font-weight: 700;
    font-size: var(--text-xs);
    margin-bottom: 4px;
    display: block;
}

.form-group .form-control {
    border-color: var(--slate-200);
    border-radius: var(--radius-sm);
    color: var(--slate-600);
    font-weight: 500;
}

.form-control.form-control-sm,
.select2-selection__placeholder {
    font-size: 12px !important;
}

.select2-selection__rendered {
    line-height: 20px;
}

[type="checkbox"]:checked + label:before {
    background: url("../../public/images/check.svg") center center no-repeat;
    background-size: cover;
    border: 0 !important;
    top: -3px;
    left: 0;
    width: 20px;
    height: 20px;
    transform: none;
}

[type="checkbox"] + label:before {
    transition: none;
}

.custom-checkbox .custom-control-indicator {
    top: 4px;
}
/* =========================================================
   19) Agreements list table (specific)
   ========================================================= */
#ag-table h3 {
    font-size: 12.25px;
    line-height: 17.5px;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0;
    text-transform: capitalize;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#ag-table .text-small {
    color: var(--slate-400);
}

#ag-table .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 14px;
    flex-grow: 0;
    flex-shrink: 0;
    color: var(--color-white);
    background-color: var(--slate-500);
    border-radius: var(--radius-sm);
}

tr.summary-row td,
.table-responsive table thead tr.summary-row td,
tr.summary-row:hover td,
.table-responsive table thead tr.summary-row:hover td {
    background: var(--summary-row-bg) !important;
}

.table-responsive table thead tr.summary-row td.bg-blue-900 {
    background: var(--blue-900) !important;
}

/* =========================================================
   20) Cards
   ========================================================= */
.card {
    background-color: transparent;
    background: none;
}

.card.ag-card {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--color-white);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--slate-400);
}

.ag-card .card-header {
    padding: 1.25rem;
    margin: 0;
}

.ag-card .card-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 0;
    padding-bottom: 0;
}

.ag-card .card-footer {
    margin: 1.25rem;
    padding: 0;
}

.ag-card h3 {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-black);
    line-height: 30px;
}

.ag-card .badge {
    padding: 7px;
    border-radius: var(--radius-md);
}

a.card {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

a.card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   21) Charts
   ========================================================= */

#spend_chart .apexcharts-legend {
    margin-top: 10px;
}

#commitmentChart .apexcharts-legend,
#daily_cost_chart .apexcharts-legend {
    margin-top: 10px;
}

@media (max-width: 1023px) {
    .apexcharts-text tspan {
        font-size: 8px;
    }
}

/* =========================================================
   22) Popups / Modals
   ========================================================= */
.card-modal .modal-dialog.dialog-sm {
    max-width: var(--dialog-sm) !important;
}

.card-modal .modal-dialog.dialog-lg {
    max-width: var(--dialog-lg) !important;
}

.card-modal .modal-dialog.dialog-xl {
    max-width: var(--dialog-xl) !important;
}

/* Maximize icon is removed in small pop ups */
.modal .dialog-sm .modal-header button.maximize {
    display: none !important;
}

#cardModalTabMenuMultiple {
    overflow-y: auto;
}

.card-modal .card-right-panel {
    width: 290px;
    flex-shrink: 0;
    border-bottom-right-radius: var(--radius-lg);
    overflow-y: auto;
}

.card-modal .modal-dialog .modal-header h2 {
    font-weight: 900;
}

/*hide modal maximize button */
.card-modal .modal-dialog.no-maximize .modal-header button.maximize {
    display: none !important;
}

.modal .modal-dialog .modal-header button.close,
.modal .modal-dialog .modal-header button.maximize {
    position: static;
    padding: 0;
    top: inherit;
    right: inherit;
    background: none;
    border: 0;
    margin: 0;
    color: var(--slate-500);
}

.modal .modal-dialog .modal-content #cardModalTabMenuMultiple ul,
.card-modal .modal-dialog .modal-content #cardModalTabMenu ul {
    background: none;
    flex-direction: column;
    padding: 10px;
}

.modal .modal-dialog .modal-content #cardModalTabMenuMultiple ul li,
.card-modal .modal-dialog .modal-content #cardModalTabMenu ul li {
    display: block;
    background: none;
    margin: 0 3px;
}

.modal .modal-dialog .modal-content #cardModalTabMenuMultiple ul li a,
.card-modal .modal-dialog .modal-content #cardModalTabMenu ul li a {
    background: none;
    display: flex;
    align-items: center;
    font-size: var(--text-xs);
    color: var(--slate-500);
    font-weight: 700;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    gap: 10px;
    border-color: transparent;
}

.modal .modal-dialog .modal-content #cardModalTabMenuMultiple ul li a.active,
.card-modal .modal-dialog .modal-content #cardModalTabMenu ul li a.active {
    color: var(--blue-700);
    background: var(--color-white);
    font-weight: 700;
}

.card-modal .modal-dialog .modal-content {
    border-radius: var(--radius-lg);
}

.card-modal .modal-dialog.is-maximized {
    max-width: 100% !important;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.is-maximized #cardModalContent {
    height: 100vh;
}

.is-maximized .card-right-panel {
    width: 400px;
}

.card-modal .modal-dialog {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    margin-top: inherit;
    margin-bottom: inherit;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 0;
    transform: none;
}

.card-modal .modal-dialog .modal-content {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.card-modal .card-left-panel {
    overflow-y: auto;
}

.modal-actions-panel {
    position: sticky;
    bottom: 0;
    width: 100%;
    left: 0;
}

@media (max-width: 1023px) {
    .card-modal .modal-dialog .modal-content {
        overflow-y: auto;
    }

    .card-modal .card-right-panel {
        padding-bottom: 20px;
    }

    #cardModalTabMenu,
    .card-modal .card-right-panel {
        width: 100%;
    }

    #cardModalTabMenuMultiple,
    .modal .card-right-panel {
        width: 100%;
    }

    .card-modal .modal-dialog .modal-content #cardModalTabMenu ul {
        display: block;
    }
    .modal .modal-dialog .modal-content #cardModalTabMenuMultiple ul {
        display: block;
    }

    .card-modal .modal-dialog .modal-content #cardModalTabMenu ul li {
        display: inline-block;
    }
    .modal .modal-dialog .modal-content #cardModalTabMenuMultiple ul li {
        display: inline-block;
    }

    .card-modal .card-left-panel {
        max-height: 50%;
    }
}

.card-modal .modal-dialog.dialog-lg > form,
.card-modal .modal-dialog.dialog-xl > form {
    width: 100% !important;
    height: 100% !important;
}

.card-modal .modal-dialog.dialog-sm > form {
    height: auto;
    width: 100%;
    min-height: 250px;
}

/* =========================================================
   23) Custom classes
   ========================================================= */

.x-assigned-user {
    display: inline-block;
}

.x-assigned-avatar {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.card-modal .card-right-panel .x-assigned-user {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-modal .card-right-panel .x-assigned-user img {
    width: 25px;
    height: 25px;
}

.card-modal .card-right-panel .x-assign-new,
.card-modal .card-right-panel .x-assign-remove {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.x-assign-new {
    color: var(--blue-600);
    background: var(--blue-100);
    border: 1px dashed var(--blue-200);
}

.x-assign-remove {
    color: var(--red-700);
    background: var(--danger-100);
    border: 1px dashed var(--danger-200);
}

/* Assigned users — overlapping avatar stack */
.x-assigned-stack {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.card-modal .card-right-panel .x-assigned-stack .x-assigned-user {
    margin-left: -8px;
    position: relative;
    border-radius: 50%;
    transition: transform 0.15s ease;
}

.card-modal .card-right-panel .x-assigned-stack .x-assigned-user:first-child {
    margin-left: 0;
}

.card-modal .card-right-panel .x-assigned-stack .x-assigned-user img {
    border: 2px solid var(--color-white);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.card-modal .card-right-panel .x-assigned-stack .x-assigned-user:hover {
    transform: translateY(-2px);
    z-index: 2;
}

/* Assigned users — sushi / kebab "manage assignees" menu */
.x-assigned-menu {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    color: var(--slate-500);
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 50%;
    cursor: pointer;
    transition:
        color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.x-assigned-menu:hover {
    color: var(--blue-600);
    background: var(--blue-100);
    border-color: var(--blue-200);
    transform: scale(1.08);
}

.x-assigned-menu svg {
    width: 16px;
    height: 16px;
}

.card-popover .popover-header {
    margin-top: 3px;
    margin-bottom: 10px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-black);
    text-transform: uppercase;
    border: 0;
}

.popover-close {
    padding: 0 5px;
    background: var(--slate-200);
    border-radius: var(--radius-sm);
}

.popover-close .ti-close {
    font-weight: 700;
    font-size: var(--text-xs);
}

/** jconfirm modals **/
.jconfirm.jconfirm-modern .jconfirm-box {
    padding: 10px;
}

/* Danger */
.jconfirm-type-danger.jconfirm-box {
    border-top: 5px solid var(--red-700);
}

/* Info */
.jconfirm-type-info.jconfirm-box {
    border-top: 5px solid var(--blue-700);
}

/* Success */
.jconfirm-type-success.jconfirm-box {
    border-top: 5px solid var(--green-700);
}

/* Warning */
.jconfirm-type-warning.jconfirm-box {
    border-top: 5px solid var(--warning-700);
}

/**jconfirm buttons**/
.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button {
    height: 34px !important;
    padding: 0 22px !important;
    font-size: 11px !important;
}

/* Select 2 fixes */
.form-group .select2-container:nth-of-type(2) {
    display: none;
}

/* "Rows per page" select2 width (reusable across paginated lists) */
.js-per-page + .select2-container {
    width: 60px !important;
}

/* Breadcrumb */
.page-titles .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    font-size: 10px;
}

#header-search svg {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
}

/* Kanban Board */
.kanban .kanban-wrapper .boards .board .board-body {
    border-right: 1px solid;
    border-left: 1px solid;
    border-bottom: 1px solid;
    border-top: 4px solid;
}

.kanban .kanban-wrapper .boards .board .board-body .content {
    overflow-y: auto;
    overflow-x: hidden;
}

.kanban .kanban-card {
    box-shadow: none;
    border: 0;
    border-radius: var(--radius-sm);
    background-color: var(--slate-100);
}

/* Browser scrollbars */
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

/* Firefox */
body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

/* General Layout Fixes */
.left-sidebar {
    border-right: 1px solid var(--slate-100);
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.05);
}

/* Expanded sidebar: drop the gray border under the logo/navbar-header so the
   sidebar reads as one continuous surface (theme default adds a 1px bottom
   border — see themes/default/css/style.css .navbar-header). */
body:not(.mini-sidebar) .topbar .top-navbar .navbar-header {
    border-bottom: 0;
}

/* Expanded sidebar: shrink the reseller logo (theme default caps it at
   50x45 — see themes/default/css/style.css .logo-large). */
body:not(.mini-sidebar) .logo-large {
    max-width: 150px;
    max-height: 30px;
}

.topbar .profile-pic {
    border-left: 0;
}

#main-sidenav {
    padding-right: 0;
}

.mini-sidebar .sidebar-nav #sidebarnav > li > a {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 0;
    margin: 0 10px;
    width: 50px;
    color: var(--slate-400);
}

@media (max-width: 1023px) {
    .mini-sidebar .sidebar-nav #sidebarnav > li > a {
        width: 100%;
        display: block;
    }
}

.mini-sidebar .sidebar-nav #sidebarnav > li > a:hover {
    background: var(--slate-100);
}

.sidebar-nav > ul > li.active > a,
.mini-sidebar .sidebar-nav #sidebarnav > li.active > a:hover {
    background: var(--blue-700);
    color: var(--color-white) !important;
}

/* Collapsed sidebar: the submenu (ul) detaches into a hover flyout. Style it
   as a floating card — white surface, rounded corners, border and dropdown
   shadow — instead of the flat grey rectangle inherited from the theme. */
.mini-sidebar .sidebar-nav #sidebarnav > li > ul {
    left: inherit;
    right: 0;
    margin-right: 10px;
    width: 230px;
    background: var(--color-white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-dropdown);
    padding: 6px;
    overflow: hidden;
}

.mini-sidebar .sidebar-nav #sidebarnav > li > ul li {
    margin: 0;
}

/* Flyout items: full-width pills with comfortable padding, truncated labels,
   and hover/active states matching the rest of the expanded-sidebar UI. */
.mini-sidebar .sidebar-nav #sidebarnav > li > ul li > a {
    display: block;
    padding: 8px 12px !important;
    margin: 1px 0 !important;
    border-radius: var(--radius-sm);
    font-size: 12px !important;
    line-height: 1.3;
    color: var(--slate-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-sidebar .sidebar-nav #sidebarnav > li > ul li > a:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.mini-sidebar .sidebar-nav #sidebarnav > li > ul li > a.active {
    background: var(--blue-100);
    color: var(--blue-700);
    font-weight: 500;
}

.sidebar-nav .has-arrow::after,
.sidebar-nav .active > .has-arrow::after,
.sidebar-nav li > .has-arrow.active::after,
.sidebar-nav .has-arrow[aria-expanded="true"]::after {
    top: 50%;
}

.sidebar-nav .active > .has-arrow::after {
    border-color: var(--color-white);
}

/* Expanded sidebar: smaller labels, and keep the resting icon colour
   the same slate tone used while the sidebar is collapsed. Active items
   keep their white-on-blue pill, matching the collapsed behaviour. */
body:not(.mini-sidebar) .sidebar-nav #sidebarnav > li {
    margin: 7px;
}

body:not(.mini-sidebar) .sidebar-nav #sidebarnav > li > a {
    border-radius: 4px;
}

body:not(.mini-sidebar) .sidebar-nav #sidebarnav > li > a span {
    font-size: 10px;
    color: var(--slate-400);
}

body:not(.mini-sidebar) .sidebar-nav #sidebarnav > li.active > a span {
    color: var(--white);
}

body:not(.mini-sidebar) .sidebar-nav #sidebarnav > li:not(.active) > a svg {
    color: var(--slate-400);
}

/* Expanded sidebar: restyle the open submenu (ul.collapse) so its items match
   the compact top-level pills. A subtle guide line ties each child back to its
   parent; items get smaller labels, slate resting colour, hover and active
   states consistent with the rest of the expanded sidebar. */
body:not(.mini-sidebar) .sidebar-nav #sidebarnav > li > ul.collapse,
body:not(.mini-sidebar) .sidebar-nav #sidebarnav > li > ul.collapse.in {
    position: relative;
    padding: 2px 0 4px 28px;
    margin: 2px 0 4px 12px;
    border-left: 1px solid var(--slate-200);
}

body:not(.mini-sidebar) .sidebar-nav #sidebarnav > li > ul.collapse li {
    margin: 0;
}

.sidebar-nav #sidebarnav > li > ul li > a {
    font-size: 11px !important;
    padding: 6px 10px !important;
    margin: 1px 6px 1px 0 !important;
    position: relative;
    border-radius: var(--radius-sm);
    font-weight: 400;
    line-height: 1.3;
    color: var(--slate-400);
}

/* Connector dot linking each item to the guide line. */
body:not(.mini-sidebar)
    .sidebar-nav
    #sidebarnav
    > li
    > ul.collapse
    li
    > a::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--slate-200);
    transform: translateY(-50%);
    transition: background-color 0.15s ease;
}

body:not(.mini-sidebar)
    .sidebar-nav
    #sidebarnav
    > li
    > ul.collapse
    li
    > a:hover {
    background: var(--slate-100);
    color: var(--slate-600);
}

body:not(.mini-sidebar)
    .sidebar-nav
    #sidebarnav
    > li
    > ul.collapse
    li
    > a:hover::before {
    background: var(--slate-400);
}

body:not(.mini-sidebar)
    .sidebar-nav
    #sidebarnav
    > li
    > ul.collapse
    li
    > a.active {
    background: var(--blue-100);
    color: var(--blue-700);
    font-weight: 500;
}

body:not(.mini-sidebar)
    .sidebar-nav
    #sidebarnav
    > li
    > ul.collapse
    li
    > a.active::before {
    background: var(--blue-700);
}

.mini-sidebar .top-navbar .navbar-header {
    border-bottom: 0;
}
/* top header */
.topbar .navbar-collapse {
    border-bottom: 1px solid var(--slate-100);
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.05);
}

.top-search-container .magnifier {
    display: block;
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
}

.top-search-container input {
    padding-left: 40px;
}

.topbar .navbar-light .navbar-nav .nav-item > a.nav-link {
    color: var(--slate-400) !important;
}

/* Table */

.legend-marker {
    width: 8px;
    height: 8px;
}

.icon-label-md {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-label-lg {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Custom Charts */

.custom-progress {
    border-radius: var(--radius-pill);
    overflow: hidden;
    background-color: var(--slate-300);
}

.custom-progress-lg {
    height: 20px;
}

.custom-progress .progress-bar {
    opacity: 0.8;
    border-radius: var(--radius-pill);
}

.progress-marker {
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    /* transform: translateX(-50%); */
    z-index: 2;
    border-radius: 2px;
}

.expected-marker {
    background-color: var(--slate-900);
}

.projected-marker {
    background-color: var(--warning-700);
}

/* Custom Yes/No Toggle */
.toggle-container {
    height: 35px !important;
}

.toggle-label {
    border: 2px solid transparent !important;
}

[type="radio"] + label:before,
[type="radio"] + label:after {
    display: none;
}

.toggle-container input[value="1"]:checked + .label-yes {
    color: var(--green-700);
    background-color: var(--success-100);
    border-color: var(--green-700) !important;
}

.toggle-container input[value="0"]:checked + .label-no {
    color: var(--red-700);
    background-color: var(--danger-100);
    border-color: var(--red-700) !important;
}

/* Sticky footer- google registration/MS & supprt */
.sticky-total-footer {
    margin-bottom: 15px;
}

#sticky-total-display {
    color: var(--blue-700) !important;
}
/* Agreement Indicator Icons */
.indicator-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-right: 6px;
    flex-shrink: 0;
}

.indicator-icon-box i,
.indicator-icon-box svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5px;
}

.bg-indicator-orange {
    background-color: var(--warning-100);
    color: var(--warning-700);
}
.bg-indicator-blue {
    background-color: var(--blue-100);
    color: var(--blue-600);
}
.bg-indicator-purple {
    background-color: var(--purple-100);
    color: var(--purple-600);
}
.bg-indicator-green {
    background-color: var(--success-100);
    color: var(--green-700);
}
.bg-indicator-grey {
    background-color: var(--slate-100);
    color: var(--slate-600);
}

/* Timeline Styles */
.timeline-bar-wrapper {
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
}

.timeline-track {
    height: 4px;
    background-color: #f1f5f9;
    width: 100%;
    border-radius: 2px;
}

.timeline-track.actual {
    background-color: #0f172a;
}

.timeline-phase {
    position: absolute;
    height: 100%;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.phase-text {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #cbd5e1;
    background: white;
    padding: 0 4px;
    margin-bottom: 24px;
    position: absolute;
    top: 0;
}

.phase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 2px solid #cbd5e1;
    position: absolute;
    z-index: 2;
}

.phase-dot.start {
    left: -6px;
}

.phase-dot.end {
    right: -6px;
}

.timeline-phase.migration .phase-dot {
    border-color: #cbd5e1;
}

.timeline-phase.migration .phase-dot.end {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.timeline-phase.actual-migration .phase-dot {
    background-color: #0f172a;
    border-color: #0f172a;
}

.timeline-phase.actual-migration .phase-dot.end {
    background-color: white;
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

.timeline-phase.actual-consumption .phase-dot.end {
    background-color: white;
    border-color: #3b82f6;
}

.timeline-label {
    position: absolute;
    font-size: 10px;
    font-weight: bold;
    color: #64748b;
    top: -15px;
}

.start-label {
    left: 0;
}

.end-label {
    right: 0;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.cursor-pointer {
    cursor: pointer;
}

/* GCP Consumption fund POC - POC & DAF */
#project-dropdown {
    position: absolute;
    width: 100%;
    z-index: 9999;
    border: 1px solid var(--slate-300);
    background: #fff;
}

.billing-caret-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-300);
    pointer-events: none;
}

.project-caret-icon {
    position: absolute;
    right: 0.9375rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-300);
    pointer-events: none;
}

.project-opt,
.billing-opt,
.billing-chip {
    background: var(--slate-300);
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.billing-card,
.delivery-billing-card {
    border-width: 0.125rem;
    border-style: solid;
}

.delivery-project-card-trigger.form-control,
.project-card-trigger.form-control {
    height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.selected-billing-container {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
}

#billing-options-container,
#delivery-billing-opts-wrapper {
    max-height: 15.625rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.25rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.opt-delivery-billing-item,
.billing-opt {
    min-height: 3.125rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    word-break: break-all;
}

.cursor-pointer {
    cursor: pointer;
}

/* Reports GCP list */
.accordion-indicator {
    transition: transform 0.3s ease;
}

[aria-expanded="true"] .accordion-indicator,
.billing-toggle-icon:not(.collapsed) .accordion-indicator {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.list-page-actions {
    gap: 8px;
}

/* Alert Boxes */
.alert {
    font-size: 11px;
}

.alert-success {
    border-color: var(--green-700);
}

.alert-warning {
    border-color: var(--warning-400);
}

.alert-info {
    border-color: #048bb6;
}
/* Switch toggle */
.switch label input[type="checkbox"]:checked + .lever.switch-col-light-blue {
    background-color: var(--blue-600);
}

/* no results found state */
.dropdown-no-results-found {
    background-color: var(--red-700);
}

.right-sidepanel-menu {
    color: var(--blue-700);
    font-size: var(--text-sm);
    font-weight: 400;
    display: inline-block;
    text-align: center;
    padding: 2px 5px;
    border-radius: var(--radius-sm);
}

.right-sidepanel-menu.active {
    color: var(--color-white);
    background: var(--blue-700);
}

.u-img {
    width: 80px;
    height: 80px;
    overflow: hidden;
}

.u-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-table-wrapper {
    min-height: auto;
}

.reminders-side-panel {
    right: -400px;
}

.reminders-side-panel.shw-rside {
    width: 400px;
    right: 0;
}

.timeline .x-description {
    display: inline-block;
}
/* NAV TABS */
.nav-tabs {
    gap: 10px;
    border-bottom: 0;
}

.nav-tabs li a.nav-link {
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 700;
    padding: 7px 17px;
    color: var(--slate-600);
    border-color: var(--slate-200);
    background-color: var(--blue-100);
}

.nav-tabs li a.nav-link.active {
    border-color: var(--blue-700);
    background-color: var(--blue-700);
    color: var(--color-white);
}

/** Date Time Picker **/
.datepicker-days {
    overflow-x: auto;
}

.datepicker table tr td,
.datepicker table tr th {
    border-radius: 0;
}

.datepicker table thead th:first-child,
.datepicker table thead th:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.datepicker table thead th:last-child,
.datepicker table thead th:last-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.timepicker {
    display: flex;
    justify-content: center;
}

.bootstrap-timepicker-widget.dropdown-menu.open {
    display: none !important;
    visibility: hidden;
}

.shadow-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15%;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 1) 100%
    );
}

/* Activity Timeline */
.timeline .x-title .x-title-details > span {
    display: block;
}

.timeline .x-description {
    color: var(--blue-700);
    background-color: #dbeafe;
    border-color: var(--blue-200);
}
/* --- FLATPICKR CUSTOM STYLING --- */
.flatpickr-calendar {
    font-size: var(--text-xs) !important;
    z-index: 99999 !important;
}

.flatpickr-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.flatpickr-calendar.static {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) scale(0.9) !important;
    transform-origin: top center !important;
    margin-top: 0.25rem;
    display: block;
}
/* --- FLATPICKR CUSTOM STYLING --- */

/* --- Spinner --- */
.custom-spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;

    background: conic-gradient(
        from 0deg,
        #0d47a1,
        #1e88e5,
        #64b5f6,
        transparent 70%
    );

    -webkit-mask: radial-gradient(farthest-side, transparent 70%, black 71%);
    mask: radial-gradient(farthest-side, transparent 70%, black 71%);

    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
.no-results-container {
    min-height: 400px !important;
}

.select2-container--bootstrap
    .select2-selection--multiple
    .select2-search--inline
    .select2-search__field {
    padding-top: 8px !important;
    font-size: 11px !important;
}

.bg-transparent {
    background: none !important;
    background-color: transparent !important;
}

.gcp-board {
    min-height: auto;
}

/* Reset height if these specific forms exist */
.card.min-h-300:has(#settingsFormEmailGeneral),
.card.min-h-300:has(#fix-form-email-templates),
.card.min-h-300:has(#settingsFormClients),
.card.min-h-300:has(#settingsFormProjects),
.card.min-h-300:has(#settingsFormProjectsStaff),
.card.min-h-300:has(#settingsFormProjectsClient),
.card.min-h-300:has(#settings-projects-automation),
.card.min-h-300:has(#task-stages),
.card.min-h-300:has(#task-priorities),
.card.min-h-300:has(#lead-stages),
.card.min-h-300:has(#demo-foo-addrow),
.card.min-h-300:has(#demo-webform-addrow) {
    min-height: auto !important;
}

/* Strip the shared settings card-body padding for the task/lead status tables so they sit flush.
   The no-results-container selector covers the empty state, where the id'd table is not rendered. */
#embed-content-container.card-body:has(#task-stages),
#embed-content-container.card-body:has(#task-priorities),
#embed-content-container.card-body:has(#lead-stages),
#embed-content-container.card-body:has(.no-results-container) {
    padding: 0;
}

/* Remove padding/background for the email queue and log table parent */
.card:has(#demo-email-addrow) .card-body,
.card:has(#demo-foo-addrow) .card-body,
.card:has(#demo-webform-addrow) .card-body,
.card:has(.webmail-templates-table .no-results-container) .card-body {
    padding: 0 !important;
    background: none !important;
    background-color: transparent !important;
}

/* Alerts modal */
.alert-recipient-row.is-hidden {
    display: none !important;
}

/* switch-emphasized — both states look "on" (blue).
   Use for binary-mode pickers where each side is a valid choice
   (Invoice Month / Daily, Percentage / Absolute). */
.switch.switch-emphasized .slider,
.switch.switch-emphasized input:checked + .slider {
    background: var(--blue-700) !important;
    background-color: var(--blue-700) !important;
}

.switch.switch-emphasized .slider::before,
.switch.switch-emphasized input:checked + .slider::before {
    background: var(--color-white) !important;
    background-color: var(--color-white) !important;
}

/* switch-standard — true on/off boolean. Off is muted, on is blue.
   Use for togglable booleans (Include Credits, etc.). */
.switch.switch-standard .slider {
    background-color: var(--slate-200) !important;
    border-color: var(--slate-200) !important;
}

.switch.switch-standard .slider::before {
    background-color: var(--color-white) !important;
}

.switch.switch-standard input:checked + .slider {
    background-color: var(--blue-700) !important;
    border-color: var(--blue-700) !important;
}

.switch.switch-standard input:checked + .slider::before {
    background-color: var(--color-white) !important;
}

/* Make #commonModalBody a flex column whenever an injected partial wants its action
   footer pinned to the bottom regardless of content height. */
.card-modal
    .modal-dialog
    .modal-content:has(.flex-modal-body)
    #commonModalBody {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

#dashboard-team-events {
    overflow-y: auto;
}

/* Zubaida (skip execution checkbox) */
/* visible checkbox box */
.custom-control-indicator {
    background-color: #f1f5f9 !important;
    border: 1px solid #868d93 !important;
}

/* checked state */
.custom-control-input:checked ~ .custom-control-indicator {
    background-color: #1565c0 !important;
    border-color: #1565c0 !important;
}
/* End skip execution checkbox */

#cardModalTabMenu {
    width: 160px;
}

/* Phosphor icons inside task card meta rows / headings — align like the legacy font icons */
.card-modal .card-right-panel .x-element > svg {
    vertical-align: middle;
    margin-bottom: -3px;
    margin-right: 4px;
    flex-shrink: 0;
}

.card-modal .card-left-panel .x-heading > svg {
    vertical-align: middle;
    margin-right: 5px;
}

/* ============================================================
   Generic, reusable utilities
   Small primitives the bundled Bootstrap 4 build / theme lack.
   Grouped by concern; pixel sizes use a `px` suffix to avoid
   clashing with the theme's percentage `.w-6` / `.w-18` etc.
   ============================================================ */

/* Position offsets */
.top-0 {
    top: 0;
}
.top-100 {
    top: 100%;
}
.top-50 {
    top: 50%;
}
.right-0 {
    right: 0;
}
.bottom-0 {
    bottom: 0;
}

/* Fixed width / height (px) */
.w-160 {
    width: 160px;
}
.w-400 {
    width: 400px;
    max-width: 92vw;
}
.w-6px {
    width: 6px;
}
.h-6px {
    height: 6px;
}
.w-18px {
    width: 18px;
}
.h-18px {
    height: 18px;
}
.w-70px {
    width: 70px;
}
.h-450 {
    height: 450px !important;
}

/* Min / max sizing (flexbox + scroll helpers) */
.min-w-0 {
    min-width: 0;
}
.min-w-240px {
    min-width: 240px;
}
.min-h-0 {
    min-height: 0;
}
.min-h-200 {
    min-height: inherit !important;
}
.max-h-600 {
    max-height: 600px;
}

/* Overflow */
.overflow-y-auto {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Misc */
.outline-none {
    outline: none !important;
    box-shadow: none !important;
}

/* Pull an absolutely-positioned badge onto the top-right corner of its host. */
.translate-corner {
    transform: translate(35%, -35%);
}
.translate-y-center {
    transform: translateY(-50%);
}

/* Clamp text to 2 lines with an ellipsis. */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
 * APP SPINNER — single source of truth for loading spinners.
 * Used by the <x-spinner> component and replaces the legacy
 * /public/images/loading.gif spinner across all tables, screens
 * and preloaders (driven by the AJAX loading-target system).
 * ============================================================ */
.app-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(66, 133, 244, 0.2);
    border-top-color: #4285f4;
    border-radius: 50%;
    box-sizing: border-box;
    vertical-align: middle;
    animation: app-spinner-spin 0.7s linear infinite;
}
.app-spinner--sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}
.app-spinner--md {
    width: 32px;
    height: 32px;
    border-width: 3px;
}
.app-spinner--lg {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

.app-spinner-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.app-spinner--center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 24px 0;
}
.app-spinner-label {
    color: #5f6368;
    font-size: 0.875rem;
}

@keyframes app-spinner-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ------------------------------------------------------------
 * Drop the legacy GIF and render the CSS spinner everywhere the
 * AJAX framework toggles these classes (tables, tabs, screens).
 * custom.css loads after the theme stylesheet, so these win.
 * ------------------------------------------------------------ */
.loading:after,
.loading-before:before,
.loading-before-centre:before,
.loading-tabs:before,
.loading-placeholder:after,
.loader-loading:after {
    content: "";
    background-image: none;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(66, 133, 244, 0.2);
    border-top-color: #4285f4;
    border-radius: 50%;
    box-sizing: border-box;
    animation: app-spinner-spin 0.7s linear infinite;
    /* Be self-sufficient: don't rely on the theme cascade for stacking.
       Positioned + raised above the table/tab content so the spinner is
       never hidden behind the table-responsive container. */
    position: absolute;
    z-index: 1000;
}

/* The loading classes are toggled on the table/tab wrappers, so the
   absolutely-positioned spinner needs a positioned ancestor to anchor to. */
.loading,
.loading-before,
.loading-before-centre,
.loading-tabs,
.loading-placeholder,
.loader-loading {
    position: relative;
}

/* Re-centre the spinner now that it is a fixed 32px box. */
.loading:after {
    left: calc(50% - 16px);
    top: calc(50% - 16px);
}
.loading-before-centre:before,
.loading-tabs:before {
    left: calc(50% - 16px);
}
.loading-before:before {
    left: 0;
}
.loading-placeholder:after {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/*******************
Login page
*******************/
.login-shell {
    min-height: calc(100vh - 50px);
}
.login-card {
    max-width: 1100px;
    min-height: 560px;
}
.login-panel {
    width: 440px;
    flex-shrink: 0;
    border-radius: 15px;
    padding: 45px 60px;
}
.login-google-btn {
    width: 44px;
    height: 44px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.login-continue-btn {
    min-width: 160px;
}
.login-visual {
    display: flex;
}
/* Hide the product image and show only the centered login block below 1024px */
@media (max-width: 1023px) {
    .login-visual {
        display: none;
    }
    .login-card {
        max-width: 440px;
        min-height: auto;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    .login-panel {
        width: 100%;
        padding: 35px 28px;
    }
}

/* Expired billing cards: dim with a semi-transparent white overlay */
.card-expired {
    position: relative;
}

.card-expired::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
}

/* Pagination */

nav > ul.pagination {
    gap: 8px;
}

nav > ul.pagination li.page-item .page-link {
    border-radius: 4px;
    border-color: var(--slate-200);
    background-color: var(--white);
    padding-left: 14px;
    padding-right: 14px;
}

nav > ul.pagination li.page-item:first-child .page-link,
nav > ul.pagination li.page-item:last-child .page-link {
    border-radius: 4px;
    border: 0;
    border-color: transparent;
    background-color: transparent;
}

nav > ul.pagination li.page-item.active .page-link {
    background-color: var(--blue-700);
    color: var(--white);
}

/* ============================================================================
 * ACM-8 — RBAC role detail (Filament-Shield-style permission grid)
 * ============================================================================ */
.rbac-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 4px 0 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #eef2f7;
}
.rbac-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rbac-title .label {
    font-size: 11px;
}
.rbac-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.rbac-info-grid .form-group {
    margin-bottom: 0;
}
.rbac-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.rbac-section-label {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}
.rbac-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #fff;
}
.rbac-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
}
.rbac-card-head .group-name {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
}
.rbac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    padding: 16px;
}
.rbac-cell {
    border: 1px solid #eef2f7;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
}
.rbac-cell-label {
    font-weight: 500;
    font-size: 13px;
    color: #1e293b;
}
.rbac-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.rbac-controls select {
    max-width: 100%;
}
.rbac-controls .rbac-level {
    flex: 1 1 120px;
}
.rbac-controls .rbac-scope {
    flex: 1 1 130px;
}

/* iOS-style toggle for boolean/scope capabilities + select-all */
.perm-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex: 0 0 auto;
}
.perm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}
.perm-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #cbd5e1;
    border-radius: 22px;
    transition: 0.2s;
}
.perm-slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}
.perm-switch input:checked + .perm-slider {
    background: var(--blue-700, #2563eb);
}
.perm-switch input:checked + .perm-slider:before {
    transform: translateX(18px);
}
.perm-switch input:disabled + .perm-slider {
    opacity: 0.45;
    cursor: not-allowed;
}
.rbac-selectall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #475569;
    font-weight: 600;
}
.rbac-scope-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}
.rbac-scope-wrap.is-muted {
    opacity: 0.5;
}

/* Roles settings list filter bar — pin the select2 dropdown widths. In this horizontal
   flex row select2's width:'resolve' strategy collapses the containers to ~0, so force
   an explicit width (overrides select2's inline width) and let each label show. */
.js-roles-filter-form .select2-container {
    width: 180px !important;
}
.js-roles-filter-form select[data-filter="sort"] + .select2-container {
    width: 200px !important;
}

/* =========================================================
   Billing Tracker — expandable row detail (design preview)
   ========================================================= */
#billing-tracker-table .bt-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    color: #4338ca;
}
#billing-tracker-table .bt-toggle .bt-caret {
    display: inline-flex;
    align-items: center;
    transition: transform 0.15s ease;
}
#billing-tracker-table .bt-toggle.is-open .bt-caret {
    transform: rotate(90deg);
}
#billing-tracker-table .bt-toggle:focus,
#billing-tracker-table .bt-toggle:active {
    outline: none;
    box-shadow: none;
}
#billing-tracker-table .tracker-row.is-expanded > td {
    background-color: #eef2ff;
}
#billing-tracker-table .tracker-detail-row > .bt-detail-cell {
    padding: 0;
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}
/* Keep the detail area (tabs + nested sub-tables) from picking up the
   table-hover highlight. Bootstrap's `.table-hover tbody tr:hover` is a
   descendant selector, so it otherwise grays both the detail row and every
   nested sub-table row when the cursor is over the tabs or panel content. */
#billing-tracker-table.table-hover tbody tr.tracker-detail-row:hover,
#billing-tracker-table.table-hover
    tbody
    tr.tracker-detail-row:hover
    > .bt-detail-cell,
#billing-tracker-table.table-hover .bt-detail .bt-subtable tbody tr:hover {
    background-color: transparent;
}
#billing-tracker-table.table-hover
    tbody
    tr.tracker-detail-row:hover
    > .bt-detail-cell {
    background-color: #f8fafc;
}
.bt-detail .bt-count {
    display: inline-block;
    min-width: 18px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 9999px;
    background-color: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}
.bt-detail .tab-btn.btn-primary .bt-count {
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.bt-detail .bt-subtable {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.bt-detail .bt-subtable thead th {
    background-color: #f4f6fb;
    border-bottom: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.bt-detail .bt-subtable td {
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
}
.bt-detail .bt-subtable tbody tr:first-child td {
    border-top: none;
}
.bt-detail .bt-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: #2563eb;
}
.bt-detail .bt-pill-exclusive {
    background-color: #ede9fe;
    color: #6d28d9;
    font-size: 11px;
    font-weight: 600;
}
.bt-detail .bt-unspecified-row td {
    background-color: #fffbeb;
}

.table-responsive:hover .bt-detail .bt-unspecified-row td {
    background-color: #fffbeb;
}

.bt-detail .bt-totals-row td {
    background-color: #f4f6fb;
    border-top: 1px solid #e2e8f0;
}
.bt-detail .gap-40 {
    gap: 40px;
}
.bt-detail .bt-progress-narrow {
    width: 64px;
}

/* Billing Tracker — Link agreement picker (app-standard .modal card-modal).
   The modal chrome (header, backdrop, sizing) is inherited from the shared
   modal styles; only the search box and agreement list are bespoke. */
/* Search box */
.bt-link-search {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    background-color: #fff;
}
.bt-link-search:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.bt-link-search-input {
    border: 0;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #0f172a;
    background: transparent;
}
.bt-link-search-input::placeholder {
    color: #94a3b8;
}
/* Agreement list */
.bt-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
    border-top: 1px solid #e2e8f0;
}
.bt-link-item {
    padding: 14px 24px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.12s ease;
}
.bt-link-item:last-of-type {
    border-bottom: 0;
}
.bt-link-item:hover {
    background-color: #f4f6fb;
}

/* Billing Tracker — link picker & history modal card radius.
   Uses !important to beat Bootstrap's .rounded-lg (0.3rem !important). */
#btLinkModal .modal-content,
#btHistoryModal .modal-content {
    border-radius: 12px !important;
}

/* Billing Tracker — Activity history modal */
.bt-history-table thead th {
    background-color: #f4f6fb;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.bt-history-table td {
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
}
.bt-history-table tbody tr:first-child td {
    border-top: none;
}
