/* ==========================================================================
   PRINTMOKO OS — QUOTE POPUP & ROCH AI (TALKING MALE GUIDED CHAT + FAQ) STYLES
   Blended with Rocha's Official Crest Palette (#176be0, #111113, #FFFFFF)
   Strict 1-Line Icon Navigation & Controls
   ========================================================================== */

.rpop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2250;
  background: rgba(9, 9, 12, 0.82);
  backdrop-filter: blur(9px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.rpop-backdrop.show {
  display: flex;
}

.rpop-window {
  width: min(1320px, 97vw);
  height: min(860px, 93vh);
  background: #f4f5f7;
  color: #111113;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 4px solid #176be0;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.68);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rpop-topbar {
  background: #111113;
  color: #ffffff;
  padding: 12px 18px;
  border-bottom: 1px solid #27272f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.rpop-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.rpop-brand img {
  width: 44px;
  height: 30px;
  object-fit: contain;
  flex: none;
}

.rpop-brand-title strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
  line-height: 1.15;
}

.rpop-brand-title small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #fb923c;
  letter-spacing: 0.05em;
}

.rpop-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.rpop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid #32323c;
  background: #1d1d24;
  color: #f4f4f5;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rpop-btn svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.rpop-btn:hover {
  border-color: #176be0;
  color: #ffffff;
}

.rpop-btn.red {
  background: #176be0;
  border-color: #176be0;
  color: #ffffff;
}

.rpop-btn.green {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
}

.rpop-btn.light {
  background: #ffffff;
  color: #111113;
  border-color: #d4d4d8;
}

/* QUOTE POPUP 2-PANE LAYOUT */
.rquote-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 0;
  overflow: hidden;
}

.rquote-picker {
  background: #16161a;
  color: #f4f4f5;
  border-right: 1px solid #27272f;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rquote-picker-head {
  padding: 14px;
  border-bottom: 1px solid #27272f;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rquote-picker-head input,
.rquote-picker-head select {
  width: 100%;
  background: #0f0f12;
  border: 1px solid #32323c;
  color: #ffffff;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 12px;
  outline: none;
}

.rquote-picker-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rquote-prod-item {
  background: #1f1f25;
  border: 1px solid #2e2e38;
  border-radius: 8px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rquote-prod-item strong {
  display: block;
  font-size: 12px;
  color: #ffffff;
  line-height: 1.25;
}

.rquote-prod-item small {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: #fdba74;
}

.rquote-main {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 18px;
  align-content: start;
}

.rquote-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.rquote-card h4 {
  margin: 0 0 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #111113;
}

.rquote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.rquote-field label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #52525b;
  margin-bottom: 4px;
}

.rquote-field input,
.rquote-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  font-size: 12.5px;
  background: #ffffff;
  color: #111113;
}

.rquote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.2px;
}

.rquote-table th {
  background: #111113;
  color: #ffffff;
  text-align: left;
  padding: 8px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.rquote-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #ececef;
  vertical-align: middle;
}

.rquote-soa-box {
  background: #111114;
  color: #fafafa;
  border-radius: 9px;
  padding: 16px;
  border-top: 3px solid #176be0;
}

.rquote-soa-row {
  display: flex;
  justify-content: space-between;
  padding: 6.5px 0;
  border-bottom: 1px dashed #2c2c34;
  font-size: 12.5px;
}

.rquote-soa-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid #176be0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #ffffff;
}

/* ROCH AI — GUIDED CHAT + FAQ + TALKING MALE VOICE POPUP */
.roch-window {
  width: min(1140px, 96vw);
  height: min(820px, 92vh);
}

.roch-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 335px 1fr;
  min-height: 0;
  overflow: hidden;
}

.roch-faq-pane {
  background: #141418;
  color: #f4f4f5;
  border-right: 1px solid #27272f;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.roch-avatar-card {
  padding: 15px 16px;
  background: linear-gradient(135deg, #1b1b22 0%, #111114 100%);
  border-bottom: 1px solid #27272f;
  display: flex;
  align-items: center;
  gap: 12px;
}

.roch-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #176be0, #1e3a8a);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 0 rgba(23, 107, 224, 0.5);
  flex: none;
}

.roch-speaking .roch-avatar-circle {
  animation: rochPulseRing 1.2s infinite;
}

@keyframes rochPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(23, 107, 224, 0.7); }
  70% { box-shadow: 0 0 0 11px rgba(23, 107, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 107, 224, 0); }
}

.roch-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  margin-left: 6px;
}

.roch-wave i {
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: #4ade80;
  display: inline-block;
  transition: height 0.15s ease;
}

.roch-speaking .roch-wave i:nth-child(1) { animation: rochEq 0.55s infinite ease-in-out 0.0s; }
.roch-speaking .roch-wave i:nth-child(2) { animation: rochEq 0.55s infinite ease-in-out 0.12s; }
.roch-speaking .roch-wave i:nth-child(3) { animation: rochEq 0.55s infinite ease-in-out 0.24s; }
.roch-speaking .roch-wave i:nth-child(4) { animation: rochEq 0.55s infinite ease-in-out 0.16s; }
.roch-speaking .roch-wave i:nth-child(5) { animation: rochEq 0.55s infinite ease-in-out 0.06s; }

@keyframes rochEq {
  0%, 100% { height: 4px; background: #4ade80; }
  50% { height: 16px; background: #176be0; }
}

.roch-faq-label {
  padding: 12px 16px 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #a1a1aa;
  text-transform: uppercase;
}

.roch-faq-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roch-faq-btn {
  width: 100%;
  text-align: left;
  background: #1d1d24;
  border: 1px solid #2d2d37;
  color: #e4e4e7;
  border-radius: 8px;
  padding: 9.5px 11px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.roch-faq-btn svg {
  width: 15px;
  height: 15px;
  color: #f97316;
  flex: none;
}

.roch-faq-btn:hover {
  background: #176be0;
  border-color: #176be0;
  color: #ffffff;
}

.roch-faq-btn:hover svg {
  color: #ffffff;
}

.roch-chat-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  min-height: 0;
}

.roch-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.roch-msg-row {
  display: flex;
  gap: 10px;
  max-width: 88%;
}

.roch-msg-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.roch-msg-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111113;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 10px;
  display: grid;
  place-items: center;
  flex: none;
  border: 2px solid #176be0;
}

.roch-msg-row.user .roch-msg-badge {
  background: #176be0;
  border-color: #111113;
}

.roch-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #18181b;
  padding: 12px 15px;
  border-radius: 4px 12px 12px 12px;
  font-size: 13px;
  line-height: 1.62;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.roch-msg-row.user .roch-bubble {
  background: #111113;
  color: #ffffff;
  border-color: #111113;
  border-radius: 12px 4px 12px 12px;
}

.roch-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #e2e8f0;
}

.roch-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.roch-chip-btn:hover {
  background: #176be0;
  border-color: #176be0;
  color: #ffffff;
}

.roch-speak-replay {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.roch-composer {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.roch-composer input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  outline: none;
}

.roch-composer input:focus {
  border-color: #176be0;
}

.roch-mic-btn.listening {
  background: #176be0 !important;
  color: #ffffff !important;
  border-color: #176be0 !important;
  animation: rochPulseRing 1s infinite;
}

@media (max-width: 960px) {
  .rquote-layout,
  .rquote-main,
  .roch-layout {
    grid-template-columns: 1fr;
  }
  .rquote-picker,
  .roch-faq-pane {
    max-height: 220px;
  }
}


/* === Clean Table-Type Formatting inside PMK AI Chat Bubbles === */
.pmk-ai-table-wrap {
  margin-top: 10px;
  margin-bottom: 6px;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}
.pmk-ai-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.2px;
  color: #1e293b;
  text-align: left;
}
.pmk-ai-table th {
  background: #dc2626;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-bottom: 1px solid #cbd5e1;
  white-space: nowrap;
}
.pmk-ai-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}
.pmk-ai-table tr:nth-child(even) td {
  background: #f8fafc;
}
.pmk-ai-table tr:last-child td {
  border-bottom: 0;
}
.pmk-ai-table .hl {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 800;
  color: #176be0;
}
.pmk-ai-table .best {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7 !important;
}


/* Clean 6px/8px corners & calm printmokoph.com slate palette */
.rpop-btn, .roch-chip-btn, .roch-speak-replay, .roch-faq-btn {
  border-radius: 6px !important;
}
.rpop-btn.red, .rpop-btn.green {
  background: rgb(73, 88, 103) !important;
  border-color: rgb(73, 88, 103) !important;
  color: #ffffff !important;
}
.rpop-btn.red:hover, .rpop-btn.green:hover {
  background: rgb(48, 63, 78) !important;
}
.pmk-ai-table th {
  background: #2e2f31 !important;
  color: #ffffff !important;
}
.pmk-ai-table .hl {
  color: #1e293b !important;
  background: #f1f5f9 !important;
}


/* ==========================================================================
   NEW 2-COLUMN PRINTMOKO PH OFFICIAL QUOTATION & ORDER SHEET UI
   Matches printmokoph.com: rgb(46,47,49) top bar, #EBEADF warm ivory workspace,
   #FFFFFF paper sheet, and rgb(73,88,103) rectangular 6px buttons
   ========================================================================== */
#rochasQuoteModal .rpop-window.pmk-quote-win {
  max-width: 1320px;
  width: 96vw;
  height: 90vh;
  background: #EBEADF;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

#rochasQuoteModal .rpop-topbar {
  background: rgb(46, 47, 49) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  padding: 12px 22px !important;
}

.pmk-q-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 0;
  min-height: 0;
  overflow: hidden;
  background: #EBEADF;
}

/* LEFT COLUMN (42%): CLEAN WHITE PRODUCT & SPEC PICKER */
.pmk-q-left {
  background: #ffffff;
  border-right: 1px solid #d4d4d8;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 20px;
  color: #1d1e20;
}

.pmk-q-left-head {
  margin-bottom: 12px;
}
.pmk-q-left-head h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #1d1e20;
  margin-bottom: 3px;
}
.pmk-q-left-head p {
  font-size: 12px;
  color: #64748b;
}

.pmk-q-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.pmk-q-tab {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pmk-q-tab:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.pmk-q-tab.active {
  background: #2e2f31;
  color: #ffffff;
  border-color: #2e2f31;
}

.pmk-q-search-bar {
  margin-bottom: 10px;
}
.pmk-q-search-bar input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
}
.pmk-q-search-bar input:focus {
  outline: none;
  border-color: rgb(73, 88, 103);
  background: #ffffff;
}

.pmk-q-spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 12px;
}
.pmk-q-spec-field label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pmk-q-spec-field select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
}

.pmk-q-picker-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}
.pmk-q-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pmk-q-item-card:hover {
  border-color: rgb(73, 88, 103);
  background: #f8fafc;
}
.pmk-q-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.pmk-q-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  object-fit: contain;
  padding: 2px;
  flex: none;
}
.pmk-q-item-info {
  min-width: 0;
  flex: 1;
}
.pmk-q-item-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 12.8px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 3px;
}
.pmk-q-item-tiers {
  font-size: 11.2px;
  color: #64748b;
}
.pmk-q-item-tiers strong {
  color: #0f172a;
}
.pmk-q-add-btn {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid rgb(73, 88, 103);
  background: rgb(73, 88, 103);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.pmk-q-add-btn:hover {
  background: rgb(48, 63, 78);
}

/* RIGHT COLUMN (58%): OFFICIAL PRINTABLE QUOTATION SHEET ON #EBEADF IVORY */
.pmk-q-right {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pmk-q-sheet {
  background: #ffffff;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  padding: 24px 26px;
  color: #1d1e20;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.pmk-q-letterhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #2e2f31;
  margin-bottom: 16px;
}
.pmk-q-lh-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pmk-q-lh-brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
  background: #2e2f31;
  padding: 6px 10px;
  border-radius: 6px;
}
.pmk-q-lh-brand h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #1d1e20;
  margin: 0 0 3px 0;
}
.pmk-q-lh-brand p {
  font-size: 11.5px;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}
.pmk-q-lh-meta {
  text-align: right;
  font-size: 11.5px;
  color: #475569;
}
.pmk-q-lh-meta strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #2e2f31;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  margin-bottom: 4px;
}

.pmk-q-client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.pmk-q-field label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pmk-q-field input,
.pmk-q-field select {
  width: 100%;
  padding: 7px 10px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 500;
}

.pmk-q-table-wrap {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}
.pmk-q-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  color: #1e293b;
}
.pmk-q-table th {
  background: #2e2f31;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 9px 12px;
  text-align: left;
}
.pmk-q-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}
.pmk-q-table tr:last-child td {
  border-bottom: 0;
}
.pmk-q-tier-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  margin-top: 3px;
}

.pmk-q-summary-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: start;
}
.pmk-q-notes-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 11.8px;
  color: #334155;
  line-height: 1.55;
}
.pmk-q-notes-box strong {
  color: #0f172a;
}
.pmk-q-totals-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 14px 16px;
}
.pmk-q-tot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #334155;
  padding: 5px 0;
  border-bottom: 1px dashed #cbd5e1;
}
.pmk-q-tot-row strong {
  font-family: 'IBM Plex Mono', monospace;
  color: #0f172a;
}
.pmk-q-tot-grand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 2px solid #2e2f31;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #1d1e20;
}

.pmk-q-actions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .pmk-q-workspace {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .pmk-q-summary-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   SPACE-SAVER LEFT TOOLBAR, STEP-1 CLIENT GATE & OFFICIAL WATERMARK SYSTEM
   ========================================================================== */
.pmk-q-compact-toolbar {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  margin-bottom: 10px;
}
.pmk-q-toolbar-row1 {
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 7px;
}
.pmk-q-toolbar-row2 {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 7px;
}
.pmk-q-compact-toolbar select,
.pmk-q-compact-toolbar input {
  width: 100%;
  padding: 7px 9px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
}
.pmk-q-compact-toolbar input {
  font-weight: 500;
}

/* Step-1 Client Details Lock Overlay on Left Picker */
.pmk-q-left-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.pmk-q-left-wrap.locked .pmk-q-picker-list,
.pmk-q-left-wrap.locked .pmk-q-compact-toolbar {
  filter: blur(2.5px);
  pointer-events: none;
  user-select: none;
  opacity: 0.45;
}
.pmk-q-lock-overlay {
  display: none;
  position: absolute;
  inset: 12px;
  z-index: 15;
  background: rgba(255, 255, 255, 0.94);
  border: 2px dashed #475569;
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.pmk-q-left-wrap.locked .pmk-q-lock-overlay {
  display: flex;
}

/* Step-1 Client Registration Card Highlight when Locked */
.pmk-q-client-step1 {
  border: 2px solid #2e2f31;
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}
.pmk-q-client-step1.unlocked {
  border: 1px solid #cbd5e1;
}
.pmk-q-step1-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

/* Watermark Overlay on the Official Quotation Sheet */
.pmk-q-sheet {
  position: relative;
  overflow: hidden;
}
.pmk-q-watermark-diag {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
  width: 92%;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(185, 28, 28, 0.13);
  border: 3px dashed rgba(185, 28, 28, 0.18);
  padding: 16px 20px;
  border-radius: 8px;
  pointer-events: none;
  user-select: none;
  z-index: 4;
  letter-spacing: 0.04em;
}
.pmk-q-watermark-banner {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #78350f;
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 600;
  position: relative;
  z-index: 5;
}
.pmk-q-sheet.staff-confirmed .pmk-q-watermark-diag,
.pmk-q-sheet.staff-confirmed .pmk-q-watermark-banner {
  display: none !important;
}
.pmk-q-confirmed-banner {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  font-size: 11.8px;
  line-height: 1.45;
  font-weight: 700;
  position: relative;
  z-index: 5;
}
.pmk-q-sheet.staff-confirmed .pmk-q-confirmed-banner {
  display: block !important;
}

/* ==========================================================================
   COMPACT 1-LINE PRODUCT LIST + FULL SCROLLABLE RIGHT QUOTATION SHEET FIX
   ========================================================================== */
.pmk-q-workspace {
  flex: 1 !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}
.pmk-q-left {
  padding: 12px 14px !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.pmk-q-picker-list {
  flex: 1 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  padding-right: 4px !important;
}
.pmk-q-item-card {
  padding: 6px 9px !important;
  border-radius: 6px !important;
  gap: 8px !important;
  align-items: center !important;
}
.pmk-q-item-left {
  gap: 9px !important;
  align-items: center !important;
  min-width: 0 !important;
  flex: 1 !important;
}
.pmk-q-thumb {
  width: 40px !important;
  height: 40px !important;
  border-radius: 5px !important;
  object-fit: contain !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  padding: 2px !important;
  flex: none !important;
}
.pmk-q-item-title {
  font-size: 12.2px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.pmk-q-item-tiers {
  font-size: 10.8px !important;
  color: #475569 !important;
  line-height: 1.15 !important;
}
.pmk-q-add-btn {
  padding: 5px 11px !important;
  font-size: 11.5px !important;
  flex: none !important;
}

/* Fix Right Side Clipping so Lower Quotation & Action Buttons are Always Visible & Scrollable */
.pmk-q-right {
  display: block !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 12px 16px 24px !important;
}
.pmk-q-sheet {
  position: relative !important;
  overflow: hidden !important;
  padding: 14px 18px !important;
  margin-bottom: 12px !important;
}
.pmk-q-letterhead {
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
}
.pmk-q-lh-brand img {
  height: 36px !important;
  padding: 4px 8px !important;
}
.pmk-q-lh-brand h2 {
  font-size: 15px !important;
}
.pmk-q-lh-brand p {
  font-size: 10.5px !important;
}
.pmk-q-client-step1 {
  padding: 9px 12px !important;
  margin-bottom: 10px !important;
}
.pmk-q-step1-head {
  margin-bottom: 7px !important;
  padding-bottom: 5px !important;
}
.pmk-q-client-grid {
  gap: 7px 10px !important;
  margin-bottom: 7px !important;
}
.pmk-q-field label {
  font-size: 9.8px !important;
  margin-bottom: 2px !important;
}
.pmk-q-field input,
.pmk-q-field select {
  padding: 5px 8px !important;
  font-size: 11.8px !important;
}
.pmk-q-table-wrap {
  margin-bottom: 10px !important;
}
.pmk-q-table th {
  padding: 7px 10px !important;
  font-size: 10.5px !important;
}
.pmk-q-table td {
  padding: 7px 10px !important;
  font-size: 11.8px !important;
}
.pmk-q-summary-grid {
  gap: 12px !important;
}
.pmk-q-notes-box {
  padding: 9px 11px !important;
  font-size: 11px !important;
  line-height: 1.42 !important;
}
.pmk-q-totals-box {
  padding: 10px 12px !important;
}
.pmk-q-tot-row {
  font-size: 11.8px !important;
  padding: 3px 0 !important;
}
.pmk-q-tot-grand {
  padding-top: 7px !important;
  margin-top: 4px !important;
  font-size: 14px !important;
}
.pmk-q-watermark-banner,
.pmk-q-confirmed-banner {
  margin-top: 9px !important;
  padding: 8px 11px !important;
  font-size: 11px !important;
}
.pmk-q-actions-footer {
  margin-top: 10px !important;
  padding-top: 10px !important;
}


/* =========================================================================
   ANGEL TALKING FEMALE REAL-TIME LIP-SYNC AVATAR STAGE
   ========================================================================= */
.roch-avatar-card {
  padding: 16px 14px !important;
  gap: 14px !important;
  align-items: center !important;
}

.roch-avatar-circle.angel-main-stage {
  position: relative !important;
  width: 86px !important;
  height: 86px !important;
  min-width: 86px !important;
  min-height: 86px !important;
  border-radius: 50% !important;
  border: 3px solid #f97316 !important;
  background: #ffe9d9 !important;
  padding: 0 !important;
  overflow: visible !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(249, 115, 22, 0.25) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.roch-avatar-circle.angel-main-stage:hover {
  transform: scale(1.04) !important;
}

.roch-speaking .roch-avatar-circle.angel-main-stage {
  border-color: #22c55e !important;
  animation: angelSpeakGlow 1.1s infinite ease-in-out !important;
}

.roch-speaking .angel-topbar-avatar {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.28) !important;
}

@keyframes angelSpeakGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7), 0 6px 18px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(34, 197, 94, 0.08), 0 8px 22px rgba(34, 197, 94, 0.35);
  }
}

.angel-lip-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #475569;
  font-family: 'Montserrat', sans-serif;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.angel-lip-badge.speaking {
  background: #15803d;
  color: #ffffff;
  border-color: #4ade80;
}

.roch-msg-badge.angel-msg-avatar {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #ffe9d9 !important;
  border: 2px solid #f97316 !important;
}

.roch-speaking .roch-msg-badge.angel-msg-avatar {
  border-color: #22c55e !important;
}


/* =========================================================================
   SUBLISTUDIO VECTOR GARMENT & PRODUCT ICON TILES IN QUOTATION PICKER
   ========================================================================= */
.pmk-subli-icon-tile {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: #f04b2c !important;
  background: rgba(240, 75, 44, 0.08) !important;
  border: 1px solid rgba(240, 75, 44, 0.28) !important;
  border-radius: 8px !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

.pmk-subli-icon-tile svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
}

.pmk-q-item-card:hover .pmk-subli-icon-tile {
  background: #f04b2c !important;
  color: #ffffff !important;
  border-color: #f04b2c !important;
}


/* =========================================================================
   PHOTOREALISTIC 3D PRINTY AI AGENT STAGE & CANVAS STYLING
   ========================================================================= */
.roch-avatar-circle.angel-main-stage {
  width: 102px !important;
  height: 102px !important;
  min-width: 102px !important;
  min-height: 102px !important;
  border-radius: 16px !important;
  background: #141824 !important;
  border: 2.5px solid #38bdf8 !important;
  overflow: visible !important;
}

.roch-avatar-circle.angel-main-stage canvas.printy-3d-canvas {
  border-radius: 13.5px !important;
}

.angel-topbar-avatar canvas.printy-3d-canvas,
.roch-msg-badge.angel-msg-avatar canvas.printy-3d-canvas {
  border-radius: 50% !important;
}


/* =========================================================================
   FIX PRINTY AI CHAT PANE & WIDE TABLE OVERFLOW / RIGHT-SIDE CLIPPING
   Forces minmax(0, 1fr) grid column and constrains bubbles & tables inside pane
   ========================================================================= */
.roch-window {
  width: min(1240px, 96vw) !important;
  max-width: 96vw !important;
}

.roch-layout {
  grid-template-columns: 310px minmax(0, 1fr) !important;
  width: 100% !important;
}

.roch-chat-pane {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.roch-messages {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 16px 18px !important;
  box-sizing: border-box !important;
}

.roch-msg-row {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.roch-msg-row:not(.user) {
  width: 100% !important;
}

.roch-msg-row.user {
  max-width: 85% !important;
  margin-left: auto !important;
}

.roch-bubble {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
}

.roch-msg-row.user .roch-bubble {
  flex: 0 1 auto !important;
}

.pmk-ai-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  box-sizing: border-box !important;
}

.pmk-ai-table {
  width: 100% !important;
  font-size: 11.5px !important;
}

.pmk-ai-table th {
  font-size: 10.2px !important;
  padding: 7px 8px !important;
  white-space: nowrap !important;
}

.pmk-ai-table td {
  padding: 6px 8px !important;
  font-size: 11.5px !important;
}

.roch-composer {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}


/* =========================================================================
   SINGLE-LINE LEFT FAQ SIDEBAR & HEADER IN PRINTY AI MODAL
   ========================================================================= */
.roch-layout {
  grid-template-columns: 334px minmax(0, 1fr) !important;
}

.roch-avatar-meta strong {
  white-space: nowrap !important;
  font-size: 13.5px !important;
}

.roch-faq-label {
  white-space: nowrap !important;
  font-size: 9.5px !important;
  letter-spacing: 0.06em !important;
  padding: 11px 14px 5px !important;
}

.roch-faq-btn {
  white-space: nowrap !important;
  padding: 9px 11px !important;
  font-size: 11.8px !important;
}

.roch-faq-btn span {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}


/* =========================================================================
   2-LINE TABLE HEADERS & COMPACT ROWS SO TABLES FIT WITHOUT SCROLLBARS
   ========================================================================= */
.pmk-ai-table th {
  white-space: normal !important;
  line-height: 1.18 !important;
  font-size: 9.8px !important;
  padding: 5px 6px !important;
  vertical-align: middle !important;
}

.pmk-ai-table td {
  white-space: nowrap !important;
  padding: 4px 6px !important;
  font-size: 11px !important;
  line-height: 1.22 !important;
}

.roch-messages {
  padding: 12px 16px !important;
  gap: 10px !important;
}

.roch-bubble {
  padding: 10px 13px !important;
  line-height: 1.42 !important;
}
