/* Paper controls. Layered important rules override asynchronously loaded legacy styles. */
@layer inda-light-actions {
  .inda-add-canon, .inda-add-canon__head, .inda-add-canon__foot,
  .inda-add-canon > [class*="overflow-y-auto"], .inda-add-canon__body,
  .inda-add-canon :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea) {
    background: var(--doc-paper, #fbfaf7) !important;
  }
  :where(.inda-btn-primary, .inda-btn-primary-action, .inda-btn-bronze, .inda-in-pill, .inda-in-panel-send-btn, #dashboard-ai-omni-plus-btn, .inda-doc-card__page.is-active, .w-st.is-on, .fc-button-primary, .fc-day-today .fc-daygrid-day-number, .flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange),
  :where(button, a, [role="button"], input[type="submit"], label:has(input[type="file"])):is([class~="bg-gray-700"], [class~="bg-gray-800"], [class~="bg-gray-900"], [class~="bg-gray-950"], [class~="bg-stone-700"], [class~="bg-stone-800"], [class~="bg-stone-900"], [class~="bg-black"], [class~="bg-slate-900"], [class~="bg-zinc-900"], [class~="bg-neutral-900"], [class~="hover:bg-gray-800"], [class~="hover:bg-gray-900"], [class~="hover:bg-gray-700"], [class~="hover:bg-black"], [class~="dark:hover:bg-gray-800"], [class~="dark:bg-gray-800"], [class~="dark:bg-gray-900"]) {
    background: var(--doc-paper, #fbfaf7) !important;
    color: var(--doc-ink, #1c1917) !important;
    border: 1px solid var(--doc-hair, #e4e0d6) !important;
    box-shadow: none !important;
  }
  :where(.inda-btn-primary, .inda-btn-primary-action, .inda-btn-bronze, .inda-in-pill, .inda-in-panel-send-btn, #dashboard-ai-omni-plus-btn, .inda-doc-card__page.is-active, .w-st.is-on, .fc-button-primary, .fc-day-today .fc-daygrid-day-number, .flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange):hover:not(:disabled),
  :where(button, a, [role="button"], input[type="submit"], label:has(input[type="file"])):is([class~="bg-gray-700"], [class~="bg-gray-800"], [class~="bg-gray-900"], [class~="bg-gray-950"], [class~="bg-stone-700"], [class~="bg-stone-800"], [class~="bg-stone-900"], [class~="bg-black"], [class~="bg-slate-900"], [class~="bg-zinc-900"], [class~="bg-neutral-900"], [class~="hover:bg-gray-800"], [class~="hover:bg-gray-900"], [class~="hover:bg-gray-700"], [class~="hover:bg-black"], [class~="dark:hover:bg-gray-800"], [class~="dark:bg-gray-800"], [class~="dark:bg-gray-900"]):hover:not(:disabled) {
    background: var(--doc-stone, #f1efe9) !important;
    border-color: var(--doc-muted, #9c968a) !important;
  }
  :where(.inda-btn-primary, .inda-btn-primary-action, .inda-btn-bronze, .inda-in-pill, .inda-in-panel-send-btn, #dashboard-ai-omni-plus-btn, .inda-doc-card__page.is-active, .w-st.is-on, .fc-button-primary, .fc-day-today .fc-daygrid-day-number, .flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange):focus-visible,
  :where(button, a, [role="button"], input[type="submit"], label:has(input[type="file"])):is([class~="bg-gray-700"], [class~="bg-gray-800"], [class~="bg-gray-900"], [class~="bg-gray-950"], [class~="bg-stone-700"], [class~="bg-stone-800"], [class~="bg-stone-900"], [class~="bg-black"], [class~="bg-slate-900"], [class~="bg-zinc-900"], [class~="bg-neutral-900"], [class~="hover:bg-gray-800"], [class~="hover:bg-gray-900"], [class~="hover:bg-gray-700"], [class~="hover:bg-black"], [class~="dark:hover:bg-gray-800"], [class~="dark:bg-gray-800"], [class~="dark:bg-gray-900"]):focus-visible {
    outline: 2px solid var(--doc-muted, #9c968a) !important;
    outline-offset: 3px !important;
  }
  :where(.inda-btn-primary, .inda-btn-primary-action, .inda-btn-bronze, .inda-in-pill, .inda-in-panel-send-btn, #dashboard-ai-omni-plus-btn, .inda-doc-card__page.is-active, .w-st.is-on, .fc-button-primary, .fc-day-today .fc-daygrid-day-number, .flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange):disabled,
  :where(button, a, [role="button"], input[type="submit"], label:has(input[type="file"])):is([class~="bg-gray-700"], [class~="bg-gray-800"], [class~="bg-gray-900"], [class~="bg-gray-950"], [class~="bg-stone-700"], [class~="bg-stone-800"], [class~="bg-stone-900"], [class~="bg-black"], [class~="bg-slate-900"], [class~="bg-zinc-900"], [class~="bg-neutral-900"], [class~="hover:bg-gray-800"], [class~="hover:bg-gray-900"], [class~="hover:bg-gray-700"], [class~="hover:bg-black"], [class~="dark:hover:bg-gray-800"], [class~="dark:bg-gray-800"], [class~="dark:bg-gray-900"]):disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
  }
  .inda-add-canon :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea) {
    border-radius: 12px !important;
    border-color: var(--doc-hair, #e4e0d6);
  }
  /* Legacy button contents sometimes have their own text-white utility. */
  :where(.inda-btn-primary, .inda-btn-primary-action, .inda-btn-bronze, .inda-in-pill, .inda-in-panel-send-btn, #dashboard-ai-omni-plus-btn, .inda-doc-card__page.is-active, .w-st.is-on, .fc-button-primary, .fc-day-today .fc-daygrid-day-number, .flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange) :is(.text-white, [class~="text-gray-50"]),
  :where(button, a, [role="button"], input[type="submit"], label:has(input[type="file"])):is([class~="bg-gray-700"], [class~="bg-gray-800"], [class~="bg-gray-900"], [class~="bg-gray-950"], [class~="bg-stone-700"], [class~="bg-stone-800"], [class~="bg-stone-900"], [class~="bg-black"], [class~="bg-slate-900"], [class~="bg-zinc-900"], [class~="bg-neutral-900"], [class~="hover:bg-gray-800"], [class~="hover:bg-gray-900"], [class~="hover:bg-gray-700"], [class~="hover:bg-black"], [class~="dark:hover:bg-gray-800"], [class~="dark:bg-gray-800"], [class~="dark:bg-gray-900"]) :is(.text-white, [class~="text-gray-50"]) {
    color: inherit !important;
  }
  :is(.inda-btn-primary,.inda-btn-secondary,.inda-btn-primary-action) {
    font-family: var(--inda-font-sans, 'Montserrat', system-ui, sans-serif) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    background: var(--doc-paper, #fbfaf7) !important;
    color: var(--doc-ink, #1c1917) !important;
    border: 1px solid var(--doc-hair, #e4e0d6) !important;
    border-radius: 10px !important;
    min-height: 44px !important;
    padding: 8px 14px !important;
    box-shadow: none !important;
  }
  .inda-in-pill {
    box-shadow: 0 3px 14px rgb(28 25 23 / 8%) !important;
  }
  /* Selected filters. */
  :is([data-qr-filter], [data-pa-bind-action="kind-asset"], [data-pa-bind-action="kind-vehicle"], .onb-cond-btn, .property-contract-cat-chip, [data-activity-filter], .inda-pill-active):is(.bg-gray-900, [aria-pressed="true"], [aria-selected="true"]),
  .inda-doc-card__page.is-active,
  .w-st.is-on, .fc-button-active, .fc-day-today .fc-daygrid-day-number,
  .flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
  :is(button, [role="button"])[aria-pressed="true"],
  :is(.vault-est-pill, .inda-pill-active).bg-gray-900 {
    background: var(--doc-stone, #f1efe9) !important;
    border-color: var(--doc-muted, #9c968a) !important;
    box-shadow: inset 0 -2px 0 var(--doc-muted, #9c968a) !important;
  }
  /* Paper badges; exclude progress bars and QR dots. */
  :where(.inda-card--dark, .inda-chip-dark, .inda-in-agent-mark,
    .bg-gray-900.items-center, .bg-gray-900.text-white:not(button):not(a):not([role="button"]),
    #inda-avatar-drawer-initials, #profile-avatar-display, [data-asset-check]:has(svg)) {
    background: var(--doc-paper, #fbfaf7) !important;
    color: var(--doc-ink, #1c1917) !important;
    border: 1px solid var(--doc-hair, #e4e0d6) !important;
  }
  :where(.inda-card--dark, .inda-chip-dark, .inda-in-agent-mark, .bg-gray-900.items-center,
    .bg-gray-900.text-white:not(button):not(a):not([role="button"]), [data-asset-check]),
  :where(.inda-card--dark, .inda-chip-dark, .inda-in-agent-mark, .bg-gray-900.items-center,
    .bg-gray-900.text-white:not(button):not(a):not([role="button"]), [data-asset-check])
    :is(.text-white, [class~="text-gray-50"], [class~="text-gray-100"], .inda-card-title, .inda-card-metric, .inda-card-secondary, .inda-card-cta, svg) {
    color: var(--doc-ink, #1c1917) !important;
  }
  /* Selected checkboxes. */
  .inda-omni-thread-row.is-selected .inda-omni-thread-select-box,
  .inda-omni-thread-select-input:checked + .inda-omni-thread-select-box,
  input.peer:checked ~ [class~="peer-checked:bg-gray-900"] {
    background: var(--doc-stone, #f1efe9) !important;
    color: var(--doc-ink, #1c1917) !important;
    border-color: var(--doc-muted, #9c968a) !important;
    box-shadow: none !important;
  }
  .inda-omni-thread-row.is-selected .inda-omni-thread-select-box::after,
  .inda-omni-thread-select-input:checked + .inda-omni-thread-select-box::after {
    content: "";
    display: block;
    width: 4px;
    height: 7px;
    margin: 1px auto;
    border: solid var(--doc-ink, #1c1917);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
  }
  input.peer:checked ~ [class~="peer-checked:bg-gray-900"] svg { color: var(--doc-ink, #1c1917) !important; }
  input:checked + .slider, #pricing-toggle[aria-pressed="true"] {
    background: var(--doc-stone, #f1efe9) !important;
    box-shadow: inset 0 0 0 1px var(--doc-muted, #9c968a) !important;
  }
  .slider::before, #pricing-toggle-dot {
    border: 1px solid var(--doc-muted, #9c968a);
  }
  input:focus-visible + .slider { outline: 2px solid var(--doc-muted, #9c968a); outline-offset: 3px; }
}
