/* Minimal component styles to reduce Tailwind utility noise while matching the template */

.rev-range-bar .rev-range-chip.active {
    background: #ecfdf5;       /* soft green background */
    color: #065f46;            /* dark green text */
    border-color: #16a34a;     /* green border */
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.12);
}

/* Hide fiscal selectors per simplified fixed-quarter UI */
.fc_selector {
    display: none !important;
}

/* Layout */
.page-bg { min-height: 100vh; }
.layout-container { max-width: 95%; margin-left: auto; margin-right: auto;  }

/* Header */
.header-bar { display: flex; align-items: center;  }
.title-main { color: #134e4a; font-weight: 600; letter-spacing: -0.01em; }
.subtitle { color: rgba(19, 78, 74, 0.8); }

/* Buttons */
.button-outline { padding: 0.25rem 0.75rem; border: 1px solid #5FB0B7; color: #5FB0B7; background: white; border-radius: 0.375rem; }
.button-outline:hover { background: #fffbeb; }
.button-primary { padding: 0.25rem 0.75rem; border-radius: 0.375rem; color: #fff; background: linear-gradient(90deg,#5BC8AF 0%,rgba(95, 176, 183, 1) 33%, rgba(39, 139, 253, 1) 66%,  rgba(0, 3, 217, 1) 100%); }
.button-primary:hover { background: #0e665f; }
.button-secondary { padding: 0.25rem 0.75rem; border: 1px solid #cbd5e1; color: #334155; background: #fff; border-radius: 1rem; }
.button-secondary:hover { background: #f8fafc; }
.button-rounded { border-radius: 1rem; }
.button-plain { background: unset !important; color: #000 !important; border: 1px solid !important; }

/* Message bar */
.message-bar { border: 1px solid #fde68a; background: #fffbeb; color: #92400e; border-radius: 0.375rem; padding: 0.75rem; }
.message-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.hidden { display: none; }

/* Cards */
.card { background: #fff; border: 1px solid #ccfbf1; border-radius: 0.5rem; box-shadow: 0 1px 2px rgba(15, 118, 110, 0.05); }
.card.ring-amber { box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3); }
.card-body { padding: 1.5rem; }
@media (min-width: 950px) { .card-body { padding: 2rem; } }
.card-lg { border-radius: 1rem; }

.ring-amber .card-body {
    padding: 25px;
}

/* Details page */
.sticky-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #e5e7eb; }
.details-title { color: #0b2530; font-weight: 700; }
.percent-pill { padding: 0.25rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; background: #f1f5f9; color: #1f2937; }
.reserved-chart { height: 16rem; width: 100%; border: 1px dashed #e5e7eb; border-radius: 0.5rem; display: grid; place-items: center; color: #94a3b8; font-size: 0.875rem; }
.category-list { list-style: none; padding: 0; margin: 0; }
.cat-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 0.75rem; background: #fff; transition: background-color 120ms ease; }
.cat-btn:hover { background: #f8fafc; }
.cat-btn.is-active { border-color: #2dd4bf; background: rgba(31,181,172,0.06); }

/* Selected category in details list (works for combined and separate modes) */
#categoryList button.is-active {
    position: relative;
    outline: 5px solid #2dd4bf;
    outline-offset: 0px;
    background: rgba(31, 181, 172, 0.06);
    border-radius: 0;
}


/* Total score dial */
.score-dial { position: relative; height: 10rem; width: 10rem; border-radius: 9999px; background: #fff; box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.06); border: 1px solid #ccfbf1; display:flex; align-items:center; justify-content:center; }
.score-dial::before { content: ""; position: absolute; inset: 0.75rem; border-radius: 9999px; background-image: linear-gradient(to bottom, #ffffff, #f0fdfa); }


.score-dial .dial-title {
    position: absolute;
    top: -27px;
    left: 53%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(13, 148, 136, 0.8);
    width: 200px;
}

.score-dial .dial-value { font-size: 3rem; font-weight: 700; color: #5FB0B7; z-index:1; }

.trend {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 500;
    width: 200px;
    justify-content: center;
}
svg#dialRings { inset: 0; margin:auto; }

/* Summary */
.summary-block .summary-title { color: #0f172a; font-size: 1.25rem; font-weight: 600; margin-top: 0.25rem; }
.summary-block .summary-text { color: rgba(19, 78, 74, 0.75); font-size: 0.875rem; margin-top: 0.5rem; }
.chip { display: inline-block; padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; background: #fef3c7; color: #282828; }
.chips { display: none; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

/* Tabs */
.timeframe-tabs { width: 100%; max-width: 340px; }
.tabs-list { display: grid; grid-template-columns: 75px 60px 60px 60px 60px 90px; gap: 0.5rem; background: #5fb0b70f; justify-content: space-between; padding: 0.25rem; border-radius: 0.375rem; }
.tabs-list button { padding: 0.25rem 0.75rem; border-radius: 0.375rem; }
.tabs-list button[data-state="active"] { background: #fff; color: #278BFD; }
.tabs-caption { margin-top: 0.75rem; font-size: 0.75rem; color: #5FB0B7;}

/* Grid */
.assessments-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .assessments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .assessments-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .assessments-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Assessment card */
.assessment-card { transition: box-shadow 150ms ease; border: 1px solid #ccfbf1; border-radius: 0.5rem; background: #fff; }
.assessment-card:hover { box-shadow: 0 8px 20px rgba(15, 118, 110, 0.08); }
.assessment-card .card-header { padding: 1rem 1rem 0.5rem 1rem; }
.assessment-card .card-title { font-size: 0.875rem; font-weight: 500; color: #134e4a; }
.assessment-card .card-content { padding: 0 1rem 1rem 1rem; }
.current-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: rgba(19, 78, 74, 0.8); }
.current-value { font-size: 1.125rem; font-weight: 600; color: #115e59; }
.meta-row { margin-top: 0.75rem; display: flex; align-items: center; justify-content: space-between; }
.meta-text { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: rgba(13,148,136,0.7); }
.cta { height: 2rem; padding: 0 0.5rem; color: #278BFD; border-radius: 0.375rem; background: transparent; }
.cta:hover { color: #0e665f; background: #f0fdfa; }
.cta.primary { background: #278BFD; color: #fff; }
.cta.primary:hover { background: #0e665f; color: #fff; }


.iq-main .desc {
    display: none;
}

/* Empty state tweaks */
.assessment-card.is-empty .current-value { color: #64748b; }
.assessment-card.is-empty .meta-text { color: #64748b; }

/* Sparkline */
.sparkline-holder { margin-top: 0.75rem; height: 6rem; width: 100%; position: relative; }
.tooltip { pointer-events: none; white-space: nowrap; z-index: 10; }

/* Legend */
.legend-card { border: 1px solid #fde68a; border-radius: 0.5rem; background: #fff; }
.legend-body { padding: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.875rem; color: rgba(19, 78, 74, 0.8); }
.legend-dot { display: inline-block; height: 0.625rem; width: 0.625rem; border-radius: 9999px; }
.dot-init { background: #fca5a5; }
.dot-emerg { background: #fcd34d; }
.dot-estab { background: #86efac; }
.dot-opt { background: #2dd4bf; }

/* Profile band below header */
.profile-band { display:flex; align-items:center; justify-content:space-between; border:1px solid #e5e7eb; border-radius:0.75rem; padding:0.75rem 1rem; background:#fff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.profile-items { display:flex; flex-wrap:wrap; gap:1rem; font-size:0.875rem; color:#0b2530; }
.profile-item .label { text-transform: uppercase; font-size:0.75rem; color:#64748b; margin-right:0.25rem; }
.profile-actions { display:flex; align-items:center; gap:0.75rem; }
.profile-actions .last-updated { font-size:0.75rem; color:#64748b; }

/* Profile form */
.profile-form { border:1px solid #e5e7eb; border-radius:0.75rem; background:#fff; padding:1rem; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.profile-form .form-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:1rem; }
.profile-form .field { display:flex; flex-direction:column; gap:0.25rem; }
.profile-form .field.col-span-2 { grid-column: span 2 / span 2; }
.profile-form .label { font-size:0.875rem; color:#64748b; }
.profile-form .input { border:1px solid #e5e7eb; border-radius:0.75rem; padding:0.5rem 0.75rem; font-size:0.875rem; }
.segmented { display:inline-flex; gap:0.5rem; }
.seg-btn { border:1px solid #cbd5e1; border-radius:0.5rem; padding:0.375rem 0.75rem; background:#fff; color:#334155; }
.seg-btn.is-active { background:#ecfeff; border-color:#00A8A8; color:#00A8A8; }
.profile-form-footer { margin-top:0.75rem; display:flex; align-items:center; justify-content:space-between; }
.form-msg { margin-bottom:0.75rem; border-radius:0.75rem; padding:0.5rem 0.75rem; font-size:0.875rem; }
.form-msg.error { background:#fef2f2; border:1px solid #fecaca; color:#991b1b; }
.form-msg.success { background:#ecfeff; border:1px solid #99f6e4; color:#278BFD; }

/* Benchmarking grid */
.bm-grid { display:grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap:1rem; }
@media (min-width: 950px) { .bm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bm-card { border:1px solid #e5e7eb; border-radius:0.75rem; background:#fff; padding:0.75rem 1rem; display:flex; flex-direction:column; gap:10px;  }
.bm-title { font-size:0.875rem; color:#0f172a; font-weight:500; }
.bm-card-head { display:flex; align-items:center; justify-content:space-between;    margin-bottom: 5px; }
.bm-card-status { font-size:12px; font-weight:700; color:#00a6a6; }
.bm-card-status.is-behind { color:#b91c1c; }
.bm-mini-row { display:flex; align-items:center; gap:10px; }
.bm-mini-label { width:62px; font-size:12px; color:#34495e; }
.bm-mini-track { flex:1; background:#f7f9fb; border-radius:3px; height:18px; position:relative; }
.bm-mini-bar { height:100%; border-radius:3px; }
.bm-mini-bar.bm-peer { background:#6c7a89; }
.bm-mini-bar.bm-score { background:  linear-gradient(90deg, #5BC8AF 0%, rgba(95, 176, 183, 1) 33%, rgba(39, 139, 253, 1) 66%, rgba(0, 3, 217, 1) 100%); }
.bm-mini-val { min-width:32px; text-align:right; font-size:12px; font-weight:600; color:#2c3e50; }

/* Benchmarking collapsed panel styles */
.bm-collapsed { display:flex; gap:20px; }
.bm-inner { 
    flex:1; 
    background:#fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgb(0 0 0 / 5%);
    padding: 16px;
}
/* left/right wrappers intentionally share the same base styles via .bm-inner */
.bm-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.bm-title-main { font-size:18px; font-weight:600; color:#0b2530; margin:0; }
.bm-compare { color:#0ea5a6; font-weight:700; font-size:14px; }
.bm-sub { font-size:14px; color:#555; line-height:1.5; margin:9px 0 18px; }
.bm-row { display:flex; align-items:center; margin:12px 0; gap:12px; }
.bm-row-label { width:185px; font-size:14px; color:#34495e; }
.bm-row-track { flex:1; background:#f7f9fb; border-radius:6px; height:26px; position:relative; }
.bm-row-bar { height:100%; border-radius:6px; }
.bm-row-bar.bm-peer { background:#6c7a89; }
.bm-row-bar.bm-score { background:linear-gradient(90deg,#5BC8AF 0%,rgba(95, 176, 183, 1) 33%, rgba(39, 139, 253, 1) 66%,  rgba(0, 3, 217, 1) 100%); }
.bm-row-val { min-width:52px; text-align:left; font-size:14px; font-weight:600; color:#2c3e50; }
.bm-right-head { display:flex; align-items:center; justify-content:space-between; }
.bm-right-sub { font-size:14px; color:#555; line-height:1.5; margin-top:7px; }
.bm-summary { background:#f7f9fb; border-radius:8px; padding:12px 14px; margin-top:12px; }
.bm-summary .item { display:flex; justify-content:space-between; align-items:center; font-size:14px; margin:8px 0; }
.bm-summary .label { color:#34495e; }
.bm-summary .value { font-weight:600; color:#0d1c2e; }
.bm-summary .value.diff-up { color:#16a34a; }
.bm-summary .value.diff-down { color:#b91c1c; }
.bm-summary .value.highlight { color:#00a6a6; }
.expand-btn { background:transparent; border:1px solid #d0d7de; border-radius:6px; padding:6px 14px; font-size:13px; color:#2c3e50; }
.expand-btn:hover { background:#f1f4f8; }

/* Details page custom tweaks */
div#actionTitle { font-size: 20px; margin-top: 8px; margin-bottom: 13px; }
.selectedCat-stageWrap { background-color: #38bdf8; border-radius: 5px; padding: 6px 28px; margin-left: auto; }
div#selectedCategoryPercent { font-size: 17px; padding: 7px 27px; margin-left: -8px; }
.selectedCat-whyItMatters { margin-top: 18px; font-size: 16px !important; margin-bottom: 10px; }
.selectedCategoryTitleTop-wrap { margin-top: 50px; padding-bottom: 0px !important; }
.selectedCat-yourAnswers { font-size: 18px !important; }

/* Drag & drop visuals on next.html (removed) */

/* Semantic header buttons injected into host header */
.tpos-btn { display:inline-flex; align-items:center; gap:8px; text-decoration:none; border-radius:8px; padding:8px 12px; font-size:14px; }
.tpos-btn--primary { background:#0F172A; color:#fff; }
.tpos-btn--secondary { background:#ffffff; color:#0F172A; border:1px solid #E5E7EB; }
.tpos-btn:hover { filter: brightness(0.98); }
.back-to-category-btn:hover { background: rgba(255,255,255,0.25); }


.question_code {
    display: inline-block;
    background-color: #eee;
    padding: 2px 7px;
    margin-bottom: 4px;
    border-radius: 5px;
}

.next_page_header_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Delete icon on left list items */
.action-delete { position: absolute; right: 12px; bottom: 10px; color: #ef4444;  padding: 6px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; }

/* Question card tweaks */
.question-card-actions .stage-pill {
    font-size: 13px;
    padding: 4px 10px;
}
div#questionsContainer {
    padding: 6px;
}

span.postpone-status {
    background-color: #0077ff;
    color: #fff;
    padding: 1px 10px 2px 10px;
    border-radius: 3px;
}


.status-pill.button-secondary {
    padding: 6px 9px;
    border: 1px solid #cbd5e1;
    color: #334155;
    background: #fff;
    border-radius: 1rem;
    font-size: 13px;
}
.status-pill.button-primary {
    padding: 6px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    font-size: 13px;
    background: #0077ff;
    color: #fff;
}

.header-bar-logo {
    width: 117px;
    margin-right: 26px;
}


.header-buttons{
    flex: 1;
    display: flex;
    justify-content: flex-end;
}


.fixed-menu-header {
    position: fixed;
    width: 100%;
    left: 0px;
    top: 0px;
    z-index: 1000;
}

.fixed-menu-header {
    background-color: #fbfbfb;
    padding: 9px 0px;
}
.header-bar {
    margin-top: 50px !important;
    max-width: 100%;
    margin: 0 auto;
}

.fixed-menu-header-container {
    max-width: 1281px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.fixed-menu-logo {
    width: 152px;
}

div#overallPercent {
    color: #5FB0B7;
}


div#profileCountrySelectWrap {
    display: flex;
    align-items: center;
}

div#countryOtherWrap {
    margin-top: 0px;
    margin-left: 11px;
}

/* Adjust datalist dropdown indicator (Chrome/Edge/WebKit) for country-other input */
input#profileCountryOtherInput::-webkit-calendar-picker-indicator {
    position: relative;
    top: -3px; /* bring triangle ~3px up */
}
input#profileCountryOtherInput:hover::-webkit-calendar-picker-indicator {
    top: -3px;
}


span#bmSummaryYourMEFDiff {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    margin-right: 14px !important;
}

span#bmSummaryYourMEFDiff svg {
    margin-top: 3px;
    margin-right: 4px;
}

.mrg-top-65{
    margin-top: 65px  !important;
}

ul#ownersList > li {
    background-color: #f7f7f7;
    border: 0px;
}

#ownersHeader:has(svg) * {
    color: #7c7c7c !important;
}

button#schedDescToggle {
    flex: 1;
}
#schedStatus{
    display: flex;
    align-items: center;
    margin-top: 12px;
}
#schedStatus svg{ 
    margin-right: 4px;
}

#schedDesc{
    height: 38px;
    padding: 9px 15px;
}

.filter .label, .quick-filters .chip{
    background: #ffffff !important;
}

.filter[data-filter="assessment"] .options{
    min-width: 340px !important;
}

.postpone {
    display: none;
}

.status-pills{
    justify-content: center;
}

.status-pill{
    padding: 6px 20px !important;
}

#btnExport{
    display: none;
}
.selectedCategoryTitleTop-wrap {
    margin-bottom: 25px;
}

span#schedStatusText {
    display: flex;
    align-items: center;
}
div#schedStatus svg {
    margin-right: 7px;
    margin-top: 1px;
}

div#detailsPanel {
    position: sticky;
    top: 25px;
    overflow-y: scroll;
    max-height: calc(100vh - 125px);
}

.view-details .header-bar {
    max-width: 95%;
}

span#detailsStatusPill {
    font-size: 14px;
    position: absolute;
    right: 8px;
    top: 18px;
    padding: 7px 23px;
    z-index: 99;
}

.timeframe-tabs .tabs-caption {
    font-size: 16px;
}

button#profileCancelBtn {
    border-radius: 5px;
}

.below-country-wrap {
    display: flex;
    align-items: center;
}

.tabs-list {
    font-size: 14px;
}
.content_area{
    padding-bottom: 100px;
    max-width: 100vw;
}

/* Responsive: Tablet and below (<= 1199px) */
@media (max-width: 1199px) {
  .header-bar { flex-wrap: wrap; align-items: flex-start; gap: 10px; }
  .header-bar-logo { width: 100px; margin-right: 14px; }
  /* Dashboard hero grid: force two columns on tablet */
  .view-dashboard .ring-amber .grid { grid-template-columns: 1fr 1fr !important; align-items: start; }
  .timeframe-tabs { margin-top: 10px; }
  .bm-collapsed { flex-direction: column; }
  /* Details: two-column to stacked within the card grid */
  .view-details .layout-container.grid { grid-template-columns: 1fr !important; }
  .view-details .lg\:col-span-3, .view-details .lg\:col-span-9 { grid-column: auto / auto; }
  /* Next: two-pane to stacked */
  .view-next .layout-container.grid { grid-template-columns: 1fr !important; }
  .view-next .lg\:col-span-6 { grid-column: auto / auto; }
}


.subcategory-subtitle-mobile{
    display: none;
}

/* Responsive: Mobile (<= 950px) */
@media (max-width: 950px) {
  .layout-container { max-width: 94%; }
  .header-bar { flex-direction: column; align-items: flex-start; padding: 0px 11px;}
  .header-bar-logo { width: 88px; margin-right: 0; }
  .title-main { font-size: 1.25rem; }
  .subtitle { font-size: 0.875rem; }
  /* Dashboard hero: single column */
  .view-dashboard .ring-amber .grid { grid-template-columns: 1fr !important; }
  .score-dial { width: 8rem; height: 8rem; }
  .score-dial .dial-value { font-size: 2.25rem; }
  .score-dial .dial-title, .trend { width: 160px; }
  .profile-band { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* Benchmark rows tighter */
  .bm-row-label { width: 140px; }
  /* Details sticky panel becomes normal flow on small screens */
  .view-details #detailsPanel { position: static; max-height: none; overflow: visible; }
  .view-details .selectedCategoryTitleTop-wrap { margin-top: 20px; }
  /* Next view filter popovers fit viewport */
  .filter .options { min-width: 86vw !important; max-width: 92vw; }
  .filter[data-filter="assessment"] .options { min-width: 86vw !important; }
  .filters-wrap { grid-template-columns: 1fr; }
  .tabs-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 0.375rem; grid-template-columns: 1fr; }
  /* Next: search and list spacing */
  #nextSearch { font-size: 14px; }
  #actionsList { margin-top: 10px; }

  .ring-amber .card-body {
        padding: 22px 11px;
    }
    .score-dial {
        margin-top: 31px;
        margin-bottom: 28px;
    }
    #dialRings{
        left: -17px !important;
    }
    .ring-inner{
        margin-right: 0px !important;
    }
    .content_area {
        padding-bottom: 200px;
    }

    .container.mobile-marginLeft.header__container.media.justify-content-right {
        margin-left: 14px !important;
    }

    header .header__container > .mobile_user_menu {
        margin-left: auto !important;
    }
    .header_left {
        margin-left: 0px;
        margin-top: 7px;
    }
    .p-5.less-padding {
        padding: 10px 0px !important;
    }
    .ring-inner{
        order:2;
    }
    .summary-block{
        order:1;
    }
    .timeframe-tabs-wrap{
        order:3;
    }
    .view-details .header-bar {
        padding-bottom: 11px;
    }

    .sub-categories-wrap{ 
        padding: 0px !important;
    }
    .p-5.summary-block {
        padding: 10px 5px;
    }
    ul#maturityLegend {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .mobile-hidden{
        display: none;
    }
    .mobile-tm1{
        margin-top: -47px;
    }
    .selectedCategoryTitleTop-wrap {
        padding: 0px 21px;
    }
    .selectedCategoryTitleTop-wrap {
    padding: 0px 21px;
    }
    .question-card-top {
        display: block !important;
        position: relative;
    }
    .question-card-left {
        margin-bottom: 10px;
    }
    .add-next-btn {
        position: absolute;
        top: 0;
        right: 0;
    }
    .answers-aside-wrap{
        display: flex        ;
        flex-wrap: wrap;
    }
    .answers-aside-wrap > section{
            order: 2;
    } 
    .answers-aside-wrap > aside{
        order: 1;
    }
    .selectedCat-stageWrap {
        font-size: 13px !important;
    }
    .subcategory-subtitle-mobile{
        display: block;
        margin-bottom: 14px;
    }
    .filter-bar{
        max-width: 100vw !important;
    }
    /* Collapse behavior for filter bar on mobile */
    .filter-bar.mobile-collapsed{
        display: none !important;
    }
    .filters-toggle-btn{
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #ffffff;
        color: #252424;
        border: 1px solid #0F172A;
        padding: 5px 12px;
        border-radius: 10px;
        font-weight: 400;
        margin-bottom: 10px;
        font-size: 12px;
    }
    .filters-toggle-btn svg{
        width: 12px;
        height: 12px;
    }
    #actionsList{
        max-width: calc(100vw - 30px) !important;
    }
   
    .action-meta{
        flex-wrap: wrap;
    }
    div#detailsPanel {
        padding: 20px 11px;
    }
    .flex.items-center.gap-2.detail-chips
    {
        flex-direction: column;
        align-items: baseline;
    }

    /* Details: mobile overlay panel behavior */
    #detailsMobilePanel {
        position: fixed;
        left: 0;
        right: 0;
        top: 0px;
        bottom: 0;
        background: #fff;
        z-index: 9999999;
        transform: translateX(100%);
        transition: transform 240ms ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px 12px;
    }
    #detailsMobilePanel.is-open {
        transform: translateX(0);
    }

    /* Next: mobile overlay panel behavior */
    .view-next #detailsPanel {
        position: fixed;
        inset: 0;
        background: #fff;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 240ms ease;
        border-radius: 0;
        border: none;
        max-height: none;
        overflow-y: auto;
        top: 0px;
        z-index: 9999999;

    }
    .view-next #detailsPanel.is-open {
        transform: translateX(0);
    }
    /* Details: hide in-page details blocks on mobile; use overlay instead */
    .view-details .subcategory-title-wrap,
    .view-details .selectedCategoryTitleTop-wrap,
    .view-details .layout-container.pb-8.grid {
        display: none !important;
    }
    /* But explicitly show these blocks inside the mobile overlay */
    #detailsMobilePanel .subcategory-title-wrap,
    #detailsMobilePanel .selectedCategoryTitleTop-wrap,
    #detailsMobilePanel .layout-container.pb-8.grid {
        display: block !important;
    }
    /* Mobile Focused mode: selected card + details inline */
    body.next-mobile-focused .view-next #detailsPanel {
        position: static;
        transform: none !important;
        top: auto;
        z-index: auto;
        padding: 12px;
    }
    body.next-mobile-focused #actionsList + #detailsPanel {
        margin-top: 10px;
    }
    .show-all-actions-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99999999;
        background: #fbfbfb;
        padding: 10px 12px;
        box-shadow: 0px -1px 3px 1px #f1f1f1;
        display: none;
    }
    .show-all-actions-bar .show-all-btn {
        width: 100%;
        border-radius: 12px;
        background: #ffffff;
        color: #0F172A;
        border: 1px solid #E5E7EB;
        font-weight: 600;
        padding: 10px 12px;
    }
    /* Global fixed close button lives outside the transformed panel */
    .mobile-close-fixed {
        position: fixed;
        right: 12px;
        top: 17px;
        width: 40px;
        height: 40px;
        border-radius: 9999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #0F172A;
        color: #fff;
        border: 1px solid #0F172A;
        z-index: 99999999;
        box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    }
    .send-invite-title-wrap {
        display: block;
    }
    span#inviteCount {
        margin-top: 5px;
    }
    .ownership > .flex.items-center {
        flex-direction: column;
        align-items: stretch;
    }
    .ownership {
        padding-bottom: 33px;
    }

    #schedEmailsContainer{
        min-width: auto !important;
    }
    .details-panel-wrap {
        padding: 0;
    }

    .scheduling .flex:has(#schedDate, #schedDuration)  {
        display: grid;
        grid-template-columns: max-content 1fr;
    }
    textarea#schedDesc {
        min-width: 100%;
    }
    ul#ownersList > li > div {
        flex-wrap: wrap;
    }
    .filters-wrap {
        gap: 0px 6px !important;
    }
    .filter-bar .header-row {
        display: block;
    }
    .clear-all {
        background: #f9f9f9;
        height: 38px;
    }
    .font-size-13{
        font-size: 13px;
    }

    div#detailsMobilePanel .selectedCat-yourAnswers {
        margin-top: 28px;
    }
    div#detailsMobilePanel .subcategory-title-wrap {
        padding-left: 0px;
    }
}

/* Small mobile (<= 480px) */
@media (max-width: 480px) {
  .bm-row-label { width: 110px; font-size: 12px; }
  .bm-row-val { min-width: 42px; }
  .cta { height: 1.75rem; }
  .tabs-list button { padding: 0.25rem 0.5rem; }
  /* Tighten spacing on question cards */
  .question-card { padding: 12px !important; }
  .question-text { font-size: 14px; }
}


@media (min-width: 790px) and (max-width: 950px) {
   .filters-wrap .clear-all{
    margin-top: 10px;
   }
}


.details-section-title {
    margin-top: 36px;
    background: linear-gradient(90deg, #5BC8AF 0%, rgba(95, 176, 183, 1) 33%, rgba(39, 139, 253, 1) 66%, rgba(0, 3, 217, 1) 100%);
    color: #fff;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 5px;
}

.added-by {
    margin-top: 4px;
}

#schedTz{
    width: 198px;
}

.loader_text {
    margin-left: -65px;
    font-size: 20px;
    margin-bottom: 95px;
}

@media (max-width: 950px) {
    #schedTz{
        width: 100%;
    }
}

.save_mode_sel {
    border: 1px solid #eee;
    margin-bottom: 7px;
    padding: 10px 10px;
    border-radius: 7px;
    cursor: pointer;
}

#revTotalSection .field, #cogsTotalSection .field, #opexTotalSection .field, #headTotalSection .field{
    flex-direction: row;
    align-items: center;
    margin-top: 13px;
    margin-bottom: 16px;
}
#revTotalSection .field label, #cogsTotalSection .field label, #opexTotalSection .field label, #headTotalSection .field label{
    margin-right: 9px;
}

span.brakclass {
    color: #278bfd;
}
#revTotalOuter{
    z-index: 5;
    position: relative;
}

#cogsBreakdownSection + .total-line{
    margin-top: -56px !important; 
}
div#cogsTotalOuter {
    margin-top: 33px !important;
}