/* AI Admin Assistance (AIAA) – Admin Panel */

:root {
  --ait-aiaa-panel-width: 420px;
  --ait-aiaa-panel-width-collapsed: 68px;
}

.ait-aiaa-hidden {
  display: none;
}

.ait_admin_guidance_page_ait-aiaa-settings {
	background: #fff;
}

.ait-aiaa-root {
  position: fixed;
  z-index: 99999;
  bottom: 48px;
}

.ait-aiaa-root[data-panel-side="right"] {
  right: 24px;
}
.ait-aiaa-root[data-panel-side="left"] {
  left: 24px;
}

.ait-aiaa-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #e4e4e4;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  position: relative;
  padding: 0;
  line-height: 1;
  transition: transform .25s;
}
.ait-aiaa-button:hover {
  transform: scale(1.1);
}

.ait-aiaa-button:before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ait-aiaa-button:empty:before {
  content: "?";
}

.ait-aiaa-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--ait-aiaa-panel-width);
  background: #fff;
  box-shadow: 0 6px 30px rgba(0,0,0,0.18);
  transition: transform .18s ease-in-out;
  display: flex;
  flex-direction: column;
}

.ait-aiaa-root[data-panel-side="right"] .ait-aiaa-panel {
  right: 0;
  border-left: 1px solid rgba(0,0,0,0.10);
  transform: translateX(110%);
}

.ait-aiaa-root[data-panel-side="left"] .ait-aiaa-panel {
  left: 0;
  border-right: 1px solid rgba(0,0,0,0.10);
  transform: translateX(-110%);
}

.ait-aiaa-root[data-panel-side="right"] .ait-aiaa-panel.is-open,
.ait-aiaa-root[data-panel-side="left"] .ait-aiaa-panel.is-open {
  transform: translateX(0);
}

/* Collapse */
.ait-aiaa-panel.is-collapsed {
  width: var(--ait-aiaa-panel-width-collapsed);
}

.ait-aiaa-panel.is-collapsed .ait-aiaa-tabs,
.ait-aiaa-panel.is-collapsed .ait-aiaa-panel-body {
  display: none;
}



/* Collapsed (minimised) icon nav */
.ait-aiaa-collapsed-nav{
  display: none;
  padding: 12px 10px;
  gap: 12px;
  flex-direction: column;
  align-items: center;
}

.ait-aiaa-panel.is-collapsed .ait-aiaa-collapsed-nav{
  display: flex;
}

.ait-aiaa-collapsed-nav-btn{
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ait-aiaa-collapsed-nav-btn:hover{
  background: rgba(0,0,0,0.03);
}

.ait-aiaa-collapsed-nav-btn .dashicons{
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.ait-aiaa-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2271b1;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.ait-aiaa-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  gap: 10px;
}

.ait-aiaa-panel-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ait-aiaa-panel-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ait-aiaa-panel-collapse {
  border: 1px solid rgba(0,0,0,0.10);
  background: #f6f7f7;
  cursor: pointer;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  padding: 0;
}

.ait-aiaa-panel-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0 6px;
}

/* Resizer */
.ait-aiaa-panel-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 2;
}

.ait-aiaa-root[data-panel-side="right"] .ait-aiaa-panel-resizer { left: -4px; }
.ait-aiaa-root[data-panel-side="left"] .ait-aiaa-panel-resizer { right: -4px; }

.ait-aiaa-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 10px 0 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ait-aiaa-tab {
  border: 1px solid rgba(0,0,0,0.10);
  background: #f6f7f7;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
}

.ait-aiaa-tab.is-active {
  background: #fff;
  font-weight: 700;
}

.ait-aiaa-panel-body {
  padding: 12px;
  overflow: auto;
  flex: 1;
}

.ait-aiaa-tab-panel { display: none; }
.ait-aiaa-tab-panel.is-active { display: block; }

.ait-aiaa-loading,
.ait-aiaa-empty {
  padding: 10px;
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: 8px;
  background: #fff;
  color: #555;
}

.ait-aiaa-guidance-item {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}

.ait-aiaa-guidance-item-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.ait-aiaa-guidance-item-content p { margin: 0 0 8px 0; }

.ait-aiaa-ask-form { margin-bottom: 10px; }

.ait-aiaa-ask-input {
  width: 100%;
  resize: vertical;
}

.ait-aiaa-ask-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.ait-aiaa-ask-status {
  font-size: 12px;
  color: #666;
}

.ait-aiaa-ask-answer {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.ait-aiaa-bookmarks-item {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}

.ait-aiaa-bookmarks-q {
  font-weight: 700;
  margin-bottom: 6px;
}

.ait-aiaa-bookmarks-meta {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.ait-aiaa-link-button {
  border: none;
  background: transparent;
  color: #2271b1;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-size: 12px;
}

.ait-aiaa-bookmarks-a {
  display: none;
  margin-top: 8px;
}

.ait-aiaa-bookmarks-item.is-open .ait-aiaa-bookmarks-a {
  display: block;
}

.ait-aiaa-chat-msg {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}
.ait-aiaa-chat-msg.is-user {
  background: #f6f7f7;
}
.ait-aiaa-chat-role {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
}
.ait-aiaa-chat-content {
  font-size: 13px;
}
.ait-aiaa-bookmark-wrap { margin-top: 10px; }
.ait-aiaa-ask-include-extra-context { display:block; margin-top:8px; font-size:12px; color:#555; }


/* Quick Links footer */
.ait-aiaa-panel-footer {
  border-top: 1px solid #e5e5e5;
  padding: 10px 12px;
  background: #fff;
}
.ait-aiaa-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ait-aiaa-quick-links a {
  text-decoration: none;
}
.ait-aiaa-quick-links .ait-aiaa-quick-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.2;
}


.ait-aiaa-ask-continue-conversation {
  display:block;
  margin-top:6px;
  font-size:12px;
  opacity:0.9;
}
.ait-aiaa-ask-continue-conversation input {
  margin-right:6px;
}


.ait-aiaa-highlight { outline: 2px solid #2271b1; border-radius: 6px; }

/* Small icon buttons (workflow step link / bookmark) */
.ait-aiaa-icon-button {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 0 6px;
  cursor: pointer;
  line-height: 1;
  vertical-align: middle;
}
.ait-aiaa-icon-button .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 16px;
}
.ait-aiaa-icon-button:hover .dashicons {
  opacity: 0.8;
}


/* Third-party Help tab */

.ait-aiaa-third-party-item{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  background: #fff;
}
.ait-aiaa-third-party-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.ait-aiaa-third-party-title-wrap{
  display:flex;
  align-items:flex-start;
  gap:8px;
}
.ait-aiaa-third-party-title{ font-weight: 600; }
.ait-aiaa-third-party-source{
  font-size: 12px;
  opacity: 0.75;
  white-space: nowrap;
}
.ait-aiaa-third-party-icon{
  width: 18px;
  height: 18px;
  border-radius: 3px;
}
.ait-aiaa-third-party-desc{ margin: 8px 0; }
.ait-aiaa-third-party-steps{ margin: 10px 0 0 18px; }
.ait-aiaa-third-party-step-title{
  font-weight: 600;
  margin-bottom: 2px;
}
.ait-aiaa-third-party-actions{
  margin-top: 10px;
  display:flex;
  justify-content:flex-end;
}


/* Third-party Help links (recursive) */
.ait-aiaa-third-party-help-links{ margin: 10px 0; }

.ait-aiaa-third-party-help-group-title{
  font-weight: 600;
  margin: 8px 0 4px 0;
}

.ait-aiaa-third-party-help-link{
  margin: 2px 0;
}

.ait-aiaa-third-party-help-sep{
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 10px 0;
}

/* Indentation by depth (uses data-depth) */
.ait-aiaa-third-party-help-group-title[data-depth="1"],
.ait-aiaa-third-party-help-link[data-depth="1"]{ margin-left: 14px; }
.ait-aiaa-third-party-help-group-title[data-depth="2"],
.ait-aiaa-third-party-help-link[data-depth="2"]{ margin-left: 28px; }
.ait-aiaa-third-party-help-group-title[data-depth="3"],
.ait-aiaa-third-party-help-link[data-depth="3"]{ margin-left: 42px; }
.ait-aiaa-third-party-help-group-title[data-depth="4"],
.ait-aiaa-third-party-help-link[data-depth="4"]{ margin-left: 56px; }
.ait-aiaa-third-party-help-group-title[data-depth="5"],
.ait-aiaa-third-party-help-link[data-depth="5"]{ margin-left: 70px; }
.ait-aiaa-third-party-help-group-title[data-depth="6"],
.ait-aiaa-third-party-help-link[data-depth="6"]{ margin-left: 84px; }

/* License tab */
.sap-parent-form table.form-table table.form-table {
  padding: 0;
}
.sap-parent-form table.form-table table.form-table tbody {
  border-top: none;
  padding-top: 0;
}
.sap-parent-form table.form-table table.form-table tbody tr:first-child th {
  padding: 0 10px 20px 0;
}
.sap-parent-form table.form-table table.form-table tbody tr:first-child td {
  padding: 0 10px 15px;
}