
.omda-global-hero .omda-gh-actions > .omda-gh-primary-actions.omda-gh-primary-actions--inline-more {
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:stretch;
  justify-content:flex-start;
  gap:8px;
  width:100%;
  min-width:0;
}
.omda-global-hero .omda-gh-actions > .omda-gh-primary-actions--inline-more > .case-state-actions {
  display:flex;
  flex:0 0 40px;
  width:40px;
  min-width:40px;
  max-width:40px;
  margin:0;
  padding:0;
}
.omda-global-hero .omda-gh-actions > .omda-gh-primary-actions--inline-more .case-actions-more,
.omda-global-hero .omda-gh-actions > .omda-gh-primary-actions--inline-more .omda-row-actions-wrap,
.omda-global-hero .omda-gh-actions > .omda-gh-primary-actions--inline-more .omda-row-actions-btn {
  display:flex;
  flex:1 1 auto;
  width:100%;
  min-width:0;
  max-width:none;
  margin:0;
  align-items:center;
  justify-content:center;
}
.omda-global-hero .omda-gh-actions > .omda-gh-primary-actions--inline-more > button:not([hidden]):not(.state-hidden) {
  display:flex;
  flex:1 1 0;
  width:auto;
  min-width:0;
  max-width:none;
  margin:0;
  align-items:center;
  justify-content:center;
}


/* P111 INSPECTION ACTIONS — scoped to Terminal inspection Hero.
   Approved report + RTL three-dots layout is untouched. */

#omdaTerminalGlobalHeroMount .omda-gh-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

#omdaTerminalGlobalHeroMount
.omda-gh-secondary > button[data-inspection-clearing-center],

#omdaTerminalGlobalHeroMount
.omda-gh-secondary > button[data-inspection-documents-open] {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 7px;
  border: 1px solid #35465f;
  border-radius: 12px;
  background: #152238;
  color: #e8efff;
  font: 650 12px var(--omda-font-ui, Rubik, Arial, sans-serif);
  white-space: nowrap;
  box-sizing: border-box;
}

#omdaTerminalGlobalHeroMount
.omda-gh-secondary > button[data-inspection-clearing-center] svg,

#omdaTerminalGlobalHeroMount
.omda-gh-secondary > button[data-inspection-documents-open] svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#omdaTerminalGlobalHeroMount .omda-p111-documents-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 7px;
  background: #304564;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.omda-p111-documents-modal
.omda-p111-document-list
[data-inspection-precase-actions] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.omda-p111-documents-modal
.omda-p111-document-list
[data-inspection-precase-actions] > button {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}


/* P112 DOCUMENT ROWS — existing P111 modal only. */

.omda-p111-documents-modal
.omda-p111-document-list
[data-inspection-precase-actions] > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background .15s ease, border-color .15s ease;
}

.omda-p111-documents-modal
.omda-p111-document-list button:not(:disabled) {
  cursor: pointer;
}

.omda-p111-documents-modal
.omda-p111-document-list button:not(:disabled):hover {
  background: rgba(77, 119, 184, .12);
  border-color: #7189ab;
}

.omda-p111-documents-modal
.omda-p111-document-list button:focus-visible {
  outline: 2px solid #7189ab;
  outline-offset: 2px;
}

.omda-p111-documents-modal .omda-p112-view-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .8;
  pointer-events: none;
}

.omda-p111-documents-modal .omda-p112-row-spinner {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.omda-p111-documents-modal
.omda-p111-document-list button[aria-busy="true"] {
  cursor: progress;
}

/* END P112 DOCUMENT ROWS */

/* P118: Terminal secondary buttons follow the Shell color mode. */
html[data-mode="light"] #omdaTerminalGlobalHeroMount .omda-gh-secondary > button[data-inspection-clearing-center],
html[data-mode="light"] #omdaTerminalGlobalHeroMount .omda-gh-secondary > button[data-inspection-documents-open] {
 background:var(--card,#fff);border-color:var(--line,#d1d5db);color:var(--text,#182337);
}
html[data-mode="light"] #omdaTerminalGlobalHeroMount .omda-gh-secondary > button[data-inspection-clearing-center]:hover,
html[data-mode="light"] #omdaTerminalGlobalHeroMount .omda-gh-secondary > button[data-inspection-documents-open]:hover {
 background:var(--card-hi,#f8fafc);
}
