:root{
  /* Core palette */
  --bg-page: #f4f5f7;
  --bg-surface: #ffffff;
  --bg-elevated: #fbfbfc;
  --bg-dark: #111315;
  --bg-dark-2: #1a1d21;

  /* Text */
  --text-strong: #181a1d;
  --text-body: #2c3137;
  --text-muted: #6b7280;
  --text-on-dark: #f8fafc;

  /* Borders / shadow */
  --border-soft: #e5e7eb;
  --border-mid: #d1d5db;
  --shadow-soft: 0 8px 24px rgba(0,0,0,.08);
  --shadow-strong: 0 12px 32px rgba(0,0,0,.14);

  /* Brand accents */
  --accent-red: #c5162e;
  --accent-red-hover: #a81226;
  --accent-red-soft: #fdf0f2;
  --accent-line: linear-gradient(90deg, #111315 0%, #111315 72%, #c5162e 100%);
  --accent-stripe: linear-gradient(90deg, #0f1113 0%, #0f1113 82%, #c5162e 82%, #c5162e 100%);

  /* Optional secondary accent */
  --accent-steel: #8b949e;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
}

.app-header{
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  position: relative;
}

.app-header::after{
  content: "";
  display: block;
  height: 5px;
  width: 100%;
  background: var(--accent-stripe);
}

.nav-shell{
  background: var(--bg-dark);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0 12px;
  box-shadow: var(--shadow-soft);
}

.header-nav_item{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin: 0 2px;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: rgba(255,255,255,.84);
  font-weight: 600;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.header-nav_item:hover{
  background: rgba(255,255,255,.06);
  color: #fff;
}

.header-nav_item.is-active,
.header-nav_item.active,
.header-nav_item[aria-selected="true"]{
  background: rgba(255,255,255,.04);
  color: #fff;
}

.header-nav_item.is-active::after,
.header-nav_item.active::after,
.header-nav_item[aria-selected="true"]::after{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-red);
}

.header-nav_item.is-active,
.header-nav_item.active,

.card,
.section-panel,
.content-panel{
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.section-title{
  color: var(--text-strong);
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.section-title::after{
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-red), #2a2f35);
}

.btn-primary,
.btn-danger,
.cpc-sticky-btn{
  background: linear-gradient(180deg, #cf1a33 0%, #b8142a 100%);
  color: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(197,22,46,.22);
}

.btn-primary:hover,
.btn-danger:hover,
.cpc-sticky-btn:hover{
  background: linear-gradient(180deg, #d91d37 0%, #a81226 100%);
  transform: translateY(-1px);
}

.btn-secondary,
.btn-default{
  background: #fff;
  color: var(--text-strong);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
}

.btn-secondary:hover,
.btn-default:hover{
  background: #f8fafc;
  border-color: #b8c0cc;
}

.badge-alert,
.notice-critical{
  background: var(--accent-red-soft);
  color: #8f1024;
  border: 1px solid #f3c2c9;
  border-radius: 999px;
}

table.dataTable thead th{
  background: #f7f8fa;
  color: var(--text-strong);
  border-bottom: 1px solid var(--border-soft) !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

table.dataTable tbody tr:hover{
  background: #fafafa !important;
}

table.dataTable tbody tr.selected{
  background: #fff6f7 !important;
}

table.dataTable tbody tr.selected td{
  box-shadow: inset 0 0 0 9999px rgba(197,22,46,.05);
}

@media (max-width: 860px){
  .app-header .cpc-nav-menu{
    background: linear-gradient(180deg, #14171a 0%, #1b1f24 100%) !important;
    border-top: 4px solid var(--accent-red);
  }

  .app-header.menu-open .cpc-nav-menu .header-nav_item{
    color: #fff !important;
    background: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
  }

  .app-header.menu-open .cpc-nav-menu .header-nav_item:hover{
    background: rgba(255,255,255,.08) !important;
  }

  .app-header.menu-open .cpc-nav-menu .header-nav_item .nav-icon svg{
    color: #ff5a6e !important;
  }
}

/* =========================================================
   ESTIMATE HEADER STRIP + META CARDS
   Put near END of file
   ========================================================= */

.estimate-header,
.claim-header,
.summary-header {
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px 20px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}

/* black + red accent line instead of red block */
.estimate-header::before,
.claim-header::before,
.summary-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #111315 0%, #111315 82%, #c5162e 82%, #c5162e 100%);
}

/* main title */
.estimate-header h1,
.estimate-header h2,
.claim-header h1,
.claim-header h2,
.summary-header h1,
.summary-header h2 {
  margin: 0 0 6px 0;
  color: #17191c;
  font-weight: 700;
  letter-spacing: .01em;
}

/* secondary id / subtitle */
.estimate-header .subtle-id,
.claim-header .subtle-id,
.summary-header .subtle-id,
.estimate-header .text-muted,
.claim-header .text-muted,
.summary-header .text-muted {
  color: #6b7280 !important;
}

/* fancy meta cards row */
.estimate-meta-grid,
.claim-meta-grid,
.summary-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.estimate-meta-card,
.claim-meta-card,
.summary-meta-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  min-height: 86px;
  position: relative;
}

.estimate-meta-card::before,
.claim-meta-card::before,
.summary-meta-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: #c5162e;
}

.estimate-meta-label,
.claim-meta-label,
.summary-meta-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  margin-bottom: 8px;
}

.estimate-meta-value,
.claim-meta-value,
.summary-meta-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1d21;
  line-height: 1.25;
}

/* responsive */
@media (max-width: 1100px){
  .estimate-meta-grid,
  .claim-meta-grid,
  .summary-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .estimate-meta-grid,
  .claim-meta-grid,
  .summary-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TABS: BLACK / RED REFACTOR
   ========================================================= */

/* container under the header */
.nav-tabs,
.nav.nav-tabs {
  border-bottom: 0 !important;
  background: #111315;
  padding: 8px 10px 0;
  border-radius: 16px 16px 0 0;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.06);
  gap: 4px;
}

/* each tab item */
.nav-tabs > li > a,
.nav-tabs .nav-link,
.nav-tabs > li > a:focus,
.nav-tabs .nav-link:focus {
  border: 0 !important;
  border-radius: 12px 12px 0 0 !important;
  background: transparent !important;
  color: rgba(255,255,255,.82) !important;
  font-weight: 600;
  padding: 13px 20px !important;
  margin-right: 2px !important;
  position: relative;
  transition: background .18s ease, color .18s ease;
}

/* hover */
.nav-tabs > li > a:hover,
.nav-tabs .nav-link:hover {
  background: rgba(255,255,255,.06) !important;
  color: #ffffff !important;
}

/* active tab */
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus,
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  background: rgba(255,255,255,.05) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

/* red underline accent */
.nav-tabs > li.active > a::after,
.nav-tabs .nav-link.active::after,
.nav-tabs .nav-item.show .nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #c5162e;
}

/* active tab = charcoal with a muted red warmth */
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus,
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  background: linear-gradient(180deg, #2a2528 0%, #211d20 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 20px rgba(0,0,0,.16);
}

/* tab content panel */
.tab-content {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  padding: 22px 20px;
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
}

/* cleaner line items table shell */
table.dataTable.line-items-dt {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

/* flatter charcoal header */
table.dataTable.line-items-dt thead th {
  background: linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%) !important;
  color: #1f2933 !important;

  border-top: 1px solid #6b7280 !important;
  border-bottom: 2px solid #c5162e !important;

  /* 👇 subtle separation */
  box-shadow: inset 0 -1px 0 #e3e7ec, 0 1px 2px rgba(0,0,0,0.04);

  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;

  padding: 10px 8px !important;
}


table.dataTable.line-items-dt thead th:not(:last-child) {
  border-right: 1px solid #e3e7ec !important;
}

/* only round the actual top corners once */
table.dataTable.line-items-dt thead th:first-child {
  border-top-left-radius: 12px !important;
}

table.dataTable.line-items-dt thead th:last-child {
  border-top-right-radius: 12px !important;
}

/* remove the chunky extra band effect */
table.dataTable.line-items-dt thead,
table.dataTable.line-items-dt thead tr {
  box-shadow: none !important;
}

/* body */
table.dataTable.line-items-dt tbody td {
  padding: 12px 12px !important;
  font-size: 14px !important;
  border-top: 1px solid #eceff3 !important;
}

table.dataTable.line-items-dt tbody tr:nth-child(even) {
  background: #f4f6f9 !important;
}

table.dataTable.line-items-dt tbody tr:nth-child(odd) {
  background: #ffffff !important;
}

table.dataTable.line-items-dt tbody tr:hover {
  background: #eceff2 !important;
}

table.dataTable.line-items-dt tbody tr.selected,
table.dataTable.line-items-dt tbody tr.selected:hover {
  background: linear-gradient(180deg, #353035 0%, #272327 100%) !important;
}

table.dataTable.line-items-dt tbody tr.selected td {
  color: #ffffff !important;
}

/* make description wrap nicely */
table.dataTable.line-items-dt td.dt-wrap {
  white-space: normal !important;
  line-height: 1.35;
}

/* soften sort arrows */
table.dataTable.line-items-dt thead .sorting:before,
table.dataTable.line-items-dt thead .sorting:after,
table.dataTable.line-items-dt thead .sorting_asc:before,
table.dataTable.line-items-dt thead .sorting_asc:after,
table.dataTable.line-items-dt thead .sorting_desc:before,
table.dataTable.line-items-dt thead .sorting_desc:after {
  opacity: .28 !important;
}
}



.dataTables_scrollBody thead {
  display: none;
}

table.dataTable.line-items-dt thead th {
  background: linear-gradient(180deg, #f4f6f8 0%, #e9edf2 100%) !important;
  color: #2a2f35 !important;

  border-top: 1px solid #D9D9D9 !important;
  border-bottom: 2px solid #c5162e !important;

  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;

  padding: 12px 10px !important;
}

/* =========================================
   TABLE HOVER — NEUTRAL GREY (NOT BLUE)
   ========================================= */

table.dataTable.line-items-dt tbody tr:hover,
table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover {
  background: #eef1f4 !important;   /* soft neutral grey */
}

/* slightly stronger hover for focus clarity */
table.dataTable.line-items-dt tbody tr:hover td {
  background: transparent !important;
}

table.dataTable.line-items-dt thead th,
table.dataTable.line-items-dt tbody td {
  padding: 10px 8px !important;
}

table.dataTable.line-items-dt thead th {
  font-size: 10px !important;
  letter-spacing: .06em;
}

table.dataTable.line-items-dt td.dt-wrap {
  font-weight: 500;
  color: #1f2933;
}

table.dataTable.line-items-dt tbody td:not(.dt-wrap) {
  color: #4b5563;
  font-weight: 600;
  font-size: 13px;
}

table.dataTable.line-items-dt tbody tr:nth-child(even) {
  background: #f7f8fa !important;
}

table.dataTable.line-items-dt tbody tr:nth-child(odd) {
  background: #ffffff !important;
}

table.dataTable.line-items-dt tbody tr:hover {
  background: #eef1f4 !important;
}

table.dataTable.line-items-dt tbody tr.selected {
  background: linear-gradient(180deg, #3a3438 0%, #2a2528 100%) !important;
}

table.dataTable.line-items-dt tbody tr.selected td {
  color: #ffffff !important;
}

.dataTables_wrapper::before {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #111315 0%, #111315 85%, #c5162e 100%);
  margin-bottom: 10px;
}

/* center small codes */
table.dataTable.line-items-dt thead th:nth-child(-n+5),
table.dataTable.line-items-dt tbody td:nth-child(-n+5) {
  text-align: center;
}

/* right-align numeric */
table.dataTable.line-items-dt thead th:nth-last-child(-n+4),
table.dataTable.line-items-dt tbody td:nth-last-child(-n+4) {
  text-align: right;
}

table.dataTable.line-items-dt thead th {
  position: relative;
  padding-right: 18px !important;
}

table.dataTable.line-items-dt thead .sorting:after,
table.dataTable.line-items-dt thead .sorting_asc:after,
table.dataTable.line-items-dt thead .sorting_desc:after {
  right: 6px;
  opacity: 0.35 !important;
}

table.dataTable.line-items-dt thead th {
  background-image:
    linear-gradient(#c5162e, #c5162e),
    linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
  background-size: 100% 2px, 100% 100%;
  background-position: bottom left, top left;
  background-repeat: no-repeat;
}

.dki-praxis-shell .dki-praxis-sticky-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
  transition: transform .2s ease, opacity .2s ease, right .2s ease, bottom .2s ease;
}

/* keep launcher visible even when modal exists, but below modal */
.dki-praxis-shell.modal-is-open .dki-praxis-sticky-container {
  z-index: 1040; /* bootstrap modal is typically 1055 */
  opacity: 1;
  pointer-events: auto;
}

/* when drawer is open, nudge launcher away from the drawer footer buttons */
.dki-praxis-shell.praxis-is-open .dki-praxis-sticky-container {
  right: 500px;
  bottom: 20px;
}

/* if screen is tighter, move it upward instead */
@media (max-width: 1200px) {
  .dki-praxis-shell.praxis-is-open .dki-praxis-sticky-container {
  opacity: 0;
  pointer-events: none;
}
}

.dki-praxis-shell .dki-praxis-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 1050;
}

.dki-praxis-shell .dki-praxis-drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: 480px;
  max-width: calc(100vw - 18px);
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid #d9e2ec;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  z-index: 1055;
  display: flex;
  flex-direction: column;
  transition: right .24s ease-in-out;
}

.dki-praxis-shell .dki-praxis-drawer.is-open {
  right: 0;
}

.dki-praxis-shell .dki-praxis-chat-history {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  background: #f7fafc;
}

.dki-praxis-shell .dki-praxis-input-wrap {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 16px 16px 24px 16px;
  z-index: 2;
}

.dki-praxis-drawer {
  width: 520px;
  max-width: 100vw;
}

.dki-praxis-iframe-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  background: #fff;
}

.dki-praxis-iframe {
  width: 100%;
  height: 100%;
  min-height: 680px;
  border: 0;
  display: block;
  background: #fff;
}

/* 🔥 FORCE PRAXIS BUTTON VISIBILITY FIX */

.dki-praxis-sticky-container {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 99999 !important;
}

.dki-praxis-btn {
  display: flex !important;
}

.dki-praxis-btn {
  width: 84px !important;
  height: 84px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 24px !important;

  background: #ffffff !important;            /* white base */
  border: 2px solid #c9282d !important;      /* 🔴 red outline */

  box-shadow: 0 12px 28px rgba(0,0,0,0.18) !important;

  transition: all 0.18s ease;
}

/* ICON FIX */
.dki-praxis-btn svg {
  filter: none !important;                  /* remove old invert */
  fill: #c9282d !important;                 /* 🔴 force red */
  color: #c9282d !important;
}

/* HOVER = FILLED RED */
.dki-praxis-btn:hover {
  background: #c9282d !important;
  border-color: #c9282d !important;
  transform: translateY(-1px);
}

/* ICON ON HOVER = WHITE */
.dki-praxis-btn:hover svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

.dki-praxis-btn svg {
  transform: scale(1.15);   /* slightly bigger */
}

.dki-praxis-btn svg path {
  stroke-width: 2.5;        /* thicker lines */
}

.dki-praxis-btn svg path {
  fill: #000 !important;
}

.dki-praxis-shell.modal-is-open {
  z-index: 20000;
}

.dki-praxis-shell.modal-is-open .dki-praxis-sticky-container {
  z-index: 20001;
}

.dki-praxis-shell.modal-is-open .dki-praxis-drawer {
  z-index: 20002;
}

.dki-praxis-shell.modal-is-open .dki-praxis-backdrop {
  z-index: 19999;
}

.dki-praxis-shell {
  pointer-events: none;
}

.dki-praxis-shell .dki-praxis-sticky-container,
.dki-praxis-shell .dki-praxis-drawer {
  pointer-events: auto;
}

.dki-praxis-shell.modal-is-open {
  z-index: 20000;
}

.dki-praxis-shell.modal-is-open .dki-praxis-drawer {
  z-index: 20002;
  pointer-events: auto;
}

.dki-praxis-shell.modal-is-open .dki-praxis-input-wrap,
.dki-praxis-shell.modal-is-open textarea,
.dki-praxis-shell.modal-is-open button {
  position: relative;
  z-index: 20003;
  pointer-events: auto;
}

.dki-praxis-backdrop {
  pointer-events: none;
}

.dki-praxis-drawer {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(460px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
  z-index: 1055;

  display: flex;
  flex-direction: column;

  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);

  overflow: hidden;
  transform: translateX(calc(100% + 32px));
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 180ms ease, width 220ms ease;
}

.dki-praxis-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.dki-praxis-drawer.is-expanded {
  width: min(920px, calc(100vw - 36px));
}

.dki-praxis-panel-header {
  flex: 0 0 auto;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(180deg, #ffffff, #f7f8fa);
}

.dki-praxis-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dki-praxis-workspace-bar {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: #fafafa;
}

.dki-praxis-context-pill {
  font-size: 0.78rem;
  line-height: 1.3;
  color: #333;
}

.dki-praxis-chat-history {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  background: #f4f6f8;
  scroll-behavior: smooth;
}

.dki-praxis-input-wrap {
  flex: 0 0 auto;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
}

.dki-praxis-input-wrap textarea {
  resize: vertical;
  max-height: 220px;
  border-radius: 14px;
}

.dki-chat-bubble {
  max-width: 88%;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.dki-chat-user {
  margin-left: auto;
  background: rgba(201, 40, 45, 0.08);
  border: 1px solid rgba(201, 40, 45, 0.25);
  border-left: 4px solid #c9282d;
}

.dki-chat-assistant {
  margin-right: auto;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-left: 4px solid #003849;
}

.dki-chat-meta {
  margin-bottom: 6px;
  font-size: 0.72rem;
}

@media (max-width: 768px) {
  .dki-praxis-drawer,
  .dki-praxis-drawer.is-expanded {
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    border-radius: 18px;
  }

  .dki-chat-bubble {
    max-width: 96%;
  }
}

.dki-praxis-actions {
  padding-top: 6px;
}

.dki-praxis-actions .btn {
  border-radius: 10px;
}

.dki-praxis-actions .btn-light {
  background: #f5f6f7;
  border: 1px solid rgba(0,0,0,0.08);
}

.dki-praxis-actions .btn-light:hover {
  background: #eceff1;
}

.dki-praxis-actions .btn-primary {
  padding-left: 14px;
  padding-right: 14px;
  font-weight: 600;
}


.dki-btn-primary {
  box-shadow: 0 4px 12px rgba(0,56,73,0.25);
}

.dki-dt-wrap--corporate .dataTables_wrapper {
  font-size: 0.88rem;
}

.dki-dt-wrap--corporate table.dataTable {
  border-collapse: collapse !important;
  width: 100% !important;
}

.dki-dt-wrap--corporate table.dataTable thead th {
  background: #111;
  color: #fff;
  border-bottom: 3px solid #c9282d !important;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 12px 10px;
}

.dki-dt-wrap--corporate table.dataTable tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: top;
}

.dki-dt-wrap--corporate table.dataTable tbody tr:hover {
  background: #f7f7f7;
}

.dki-dt-wrap--corporate .dataTables_info,
.dki-dt-wrap--corporate .dataTables_paginate {
  padding-top: 12px;
}

.dki-dt-wrap--corporate .dt-nowrap {
  white-space: nowrap;
}

/* =========================================================
   PRAXIS MOBILE FOOTER — FINAL OVERRIDE
   MUST BE LAST IN FILE
   ========================================================= */

@media (max-width: 768px) {

  .dki-praxis-drawer,
  .dki-praxis-drawer.is-open,
  .dki-praxis-drawer.is-expanded {
    position: fixed !important;
    inset: 6px !important;
    width: calc(100vw - 12px) !important;
    height: calc(100dvh - 12px) !important;
    max-height: calc(100dvh - 12px) !important;

    display: flex !important;
    flex-direction: column !important;

    overflow: hidden !important;
    border-radius: 18px !important;
  }

  .dki-praxis-panel-header,
  .dki-praxis-workspace-bar {
    flex: 0 0 auto !important;
  }

  .dki-praxis-chat-history {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 14px !important;
  }

  .dki-praxis-input-wrap {
    flex: 0 0 auto !important;
    position: relative !important;
    bottom: auto !important;

    background: #ffffff !important;
    border-top: 1px solid #d9d9d9 !important;

    padding: 10px 12px calc(12px + env(safe-area-inset-bottom)) !important;
    z-index: 99999 !important;
  }

  .dki-praxis-input-wrap textarea {
    width: 100% !important;
    min-height: 92px !important;
    max-height: 120px !important;
    resize: none !important;
    margin-bottom: 8px !important;
    font-size: 16px !important; /* prevents mobile zoom */
  }

  .dki-praxis-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding-top: 0 !important;
  }

  .dki-praxis-actions .btn,
  .dki-praxis-input-wrap button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 44px !important;
    min-height: 42px !important;

    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    border-radius: 10px !important;
    font-size: 14px !important;
  }

  .dki-praxis-actions .btn-primary,
  .dki-praxis-input-wrap .btn-primary {
    background: #111315 !important;
    color: #ffffff !important;
    border: 1px solid #111315 !important;
  }

  .dki-praxis-actions .btn-light,
  .dki-praxis-input-wrap .btn-light {
    background: #f5f6f7 !important;
    color: #111315 !important;
    border: 1px solid #d1d5db !important;
  }

  /* don't hide mobile button labels/icons anymore */
  .dki-praxis-actions .btn span {
    display: inline !important;
  }
}

/* FINAL OVERRIDE: never hide PRAXIS launcher, only move it */
.dki-praxis-shell .dki-praxis-sticky-container,
.dki-praxis-sticky-container {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: fixed !important;
  bottom: 22px !important;
  right: 22px !important;
}

/* drawer open: move left of narrow drawer */
.dki-praxis-shell.praxis-is-open .dki-praxis-sticky-container {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  right: 540px !important;
  bottom: 22px !important;
}

/* expanded drawer: park on left side, still visible */
.dki-praxis-shell.praxis-is-expanded .dki-praxis-sticky-container,
.dki-praxis-shell.praxis-is-open.praxis-is-expanded .dki-praxis-sticky-container {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  right: auto !important;
  left: 22px !important;
  bottom: 22px !important;
}

/* mobile: keep it above footer */
@media (max-width: 768px) {
  .dki-praxis-shell.praxis-is-open .dki-praxis-sticky-container,
  .dki-praxis-shell.praxis-is-expanded .dki-praxis-sticky-container,
  .dki-praxis-shell.praxis-is-open.praxis-is-expanded .dki-praxis-sticky-container {
    right: 16px !important;
    left: auto !important;
    bottom: 110px !important;
  }
}