.attachment-ai-status {
  color: #777777;
}

.attachment-ai-status-running {
  color: #004286;
}

.attachment-ai-status-success {
  color: #008000;
}

.attachment-ai-status-error {
  color: #CC0000;
}

.attachment-ai-results {
  margin: 0 auto 0 auto;
  box-sizing: border-box;
  text-align: left;
  font-size: 11px;
}

.attachment-ai-results-list {
  border: 1px solid #CCCCCC;
  background-color: #FFFFFF;
}

.attachment-ai-results-title {
  padding: 3px 6px;
  border-bottom: 1px solid #CCCCCC;
  background-color: #D7DDE4;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: normal;
}

.attachment-ai-detail {
  padding: 6px 8px 8px 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: normal;
}

.attachment-ai-result-panel {
  margin: 10px 0 0 0;
  border: 1px solid #CCCCCC;
  background-color: #FFFFFF;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: normal;
}

.attachment-ai-result-header {
  padding: 4px 6px;
  background-color: #F3F5F7;
  border-bottom: 1px solid #CCCCCC;
  cursor: pointer;
  line-height: 15px;
  min-height: 15px;
}

.attachment-ai-result-toggle {
  display: inline-block;
  width: 16px;
  margin-right: 5px;
  border: 1px solid #CCCCCC;
  background-color: #FFFFFF;
  text-align: center;
}

.attachment-ai-result-file-name {
  color: #333333;
}

.attachment-ai-result-summary {
  float: right;
  margin-left: 10px;
  padding: 1px 6px;
  border: 1px solid #AAAAAA;
  background-color: #F7F7F7;
  font-weight: bold;
  white-space: nowrap;
}

.attachment-ai-result-summary.attachment-ai-badge {
  box-sizing: border-box;
  margin-top: 0;
  padding: 4px;
  line-height: 8px;
  position: relative;
}

.attachment-ai-result-summary-icon {
  margin-right: 3px;
}

.attachment-ai-result-summary-no-result {
  color: #777777;
  font-weight: normal;
}

.attachment-ai-no-result {
  padding: 6px;
  border: 1px solid #CCCCCC;
  background-color: #F7F7F7;
  color: #555555;
}

.attachment-ai-progress-text {
  color: #004286;
  font-style: italic;
  margin-bottom: 5px;
}

.attachment-ai-progress-bar {
  height: 7px;
  border: 1px solid #AAAAAA;
  background-color: #EEEEEE;
}

.attachment-ai-progress-fill {
  height: 7px;
  background-color: #004286;
}

.attachment-ai-counts-table,
.attachment-ai-check-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: normal;
}

.attachment-ai-counts-table {
  table-layout: fixed;
}

.attachment-ai-counts-table td {
  width: 25%;
  border: 1px solid #CCCCCC;
  padding: 6px;
  text-align: center;
}

.attachment-ai-check-table th,
.attachment-ai-check-table td {
  border: 1px solid #CCCCCC;
  padding: 4px;
}

.attachment-ai-check-pass td {
  background-color: #EFFBEF;
}

.attachment-ai-check-warning td {
  background-color: #FFF9E6;
}

.attachment-ai-check-failed td {
  background-color: #FFF0F0;
}

.attachment-ai-check-info td {
  background-color: #EEF4FF;
}

.attachment-ai-check-icon {
  width: 24px;
  text-align: center;
  font-weight: normal;
}

.attachment-ai-badge,
.attachment-ai-validity {
  display: inline-block;
  border: 1px solid #E5B443;
  background-color: #FFF8D6;
  color: #8A5500;
  padding: 2px 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: normal;
  white-space: nowrap;
}

.attachment-ai-badge-success {
  border-color: #7DBB7D;
  background-color: #EFFBEF;
  color: #008000;
}

.attachment-ai-badge-error {
  border-color: #CC7777;
  background-color: #FFF0F0;
  color: #CC0000;
}

.attachment-ai-list-status {
  cursor: pointer;
  text-decoration: none;
}

.attachment-ai-list-status.attachment-ai-badge,
.attachment-ai-result-summary.attachment-ai-badge {
  color: #000000;
}

.attachment-ai-detail-validity {
  margin-top: 6px;
}

.attachment-ai-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.45);
}

.attachment-ai-modal {
  width: 720px;
  max-width: 90%;
  max-height: 82%;
  margin: 7% auto 0 auto;
  border: 1px solid #004286;
  background-color: #FFFFFF;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
}

.attachment-ai-modal-header {
  padding: 7px 10px;
  background-color: #004286;
  color: #FFFFFF;
  font-weight: bold;
}

.attachment-ai-modal-close {
  float: right;
  border: 0;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 18px;
  line-height: 14px;
}

.attachment-ai-modal-body {
  max-height: 540px;
  padding: 10px;
  overflow: auto;
}

.attachment-ai-overview {
  display: table;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #CCCCCC;
  background-color: #F7F9FB;
}

.attachment-ai-overview-score,
.attachment-ai-overview-content {
  display: table-cell;
  padding: 9px;
  vertical-align: middle;
}

.attachment-ai-overview-score {
  width: 70px;
  border-right: 1px solid #CCCCCC;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

.attachment-ai-overview-score-pass {
  color: #008000;
}

.attachment-ai-overview-score-warning {
  color: #8A5500;
}

.attachment-ai-overview-score-failed {
  color: #CC0000;
}

.attachment-ai-overview-score-info {
  color: #004286;
}

.attachment-ai-overview-icon {
  margin-right: 4px;
}

.attachment-ai-overview-status {
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: bold;
}

.attachment-ai-overview-file {
  margin-bottom: 5px;
  color: #555555;
}

.ai-analysis-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background: #5360F5;
  background: linear-gradient(110deg, #6148F5 0%, #496AF7 54%, #288FF2 100%);
  box-shadow: 0 2px 6px rgba(76, 80, 210, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font: 600 11px/18px Arial, Helvetica, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  transition: box-shadow 150ms ease, filter 150ms ease;
}

.ai-analysis-button:link,
.ai-analysis-button:visited,
.ai-analysis-button:hover,
.ai-analysis-button:focus {
  color: #FFFFFF;
  text-decoration: none;
}

.ai-analysis-button:hover {
  filter: brightness(1.06);
  box-shadow: 0 3px 9px rgba(76, 80, 210, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ai-analysis-button:focus-visible {
  outline: 2px solid #3549C9;
  outline-offset: 3px;
}

.ai-analysis-button:active {
  filter: brightness(0.97);
}

.ai-analysis-button-icon {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 0;
}

.ai-analysis-button-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  flex: 0 0 56px;
  width: 56px;
  margin: -1px -5px -1px 1px;
  padding: 1px 4px;
  border-radius: 14px;
  background-color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}

.ai-analysis-button-status-icon {
  flex: 0 0 12px;
  width: 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1;
}

.ai-analysis-button-success .ai-analysis-button-badge {
  color: #087F46;
}

.ai-analysis-button-warning .ai-analysis-button-badge {
  color: #A96700;
}

.ai-analysis-button-error .ai-analysis-button-badge {
  color: #C62636;
}
