/* PIX-MT110 OSS License page styles */

.oss-notice {
  background: #f0f6ff;
  border: 1px solid #b3d1f5;
  border-radius: 4px;
  padding: 14px 18px;
  margin-top: 4%;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: #333;
}

.oss-notice strong {
  color: #0068b7;
}

.oss-hint {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

.oss-table-wrap {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 40px;
}

.oss-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 13px;
}

.oss-table thead th {
  background: #f5f7fa;
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: bold;
  color: #555;
  border-bottom: 2px solid #ddd;
}

.oss-table tr.section-row td {
  background: #eef2f7;
  color: #555;
  font-size: 12px;
  font-weight: bold;
  padding: 8px 12px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  letter-spacing: 0.05em;
}

.oss-table tr.data-row {
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.15s;
}

.oss-table tr.data-row:hover {
  background: #f8faff;
}

.oss-table tr.data-row.open {
  background: #eef5ff;
}

.oss-table td {
  padding: 9px 12px;
  vertical-align: top;
}

.oss-table .td-name {
  font-family: monospace;
  font-size: 13px;
  color: #333;
  font-weight: bold;
  word-break: break-all;
}

.oss-table .td-ver {
  font-family: monospace;
  font-size: 12px;
  color: #777;
  white-space: nowrap;
}

.oss-table .td-cr {
  font-size: 12px;
  color: #555;
  line-height: 1.6;
  white-space: pre-line;
}

.oss-table .td-toggle {
  width: 24px;
  text-align: center;
  color: #999;
  font-size: 11px;
}

.oss-table .chevron {
  display: inline-block;
  transition: transform 0.2s;
}

.oss-table tr.data-row.open .chevron {
  transform: rotate(90deg);
  color: #0068b7;
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-family: monospace;
  font-weight: bold;
  white-space: nowrap;
}

.badge-gpl  { background: #fff8e1; color: #b8860b; border: 1px solid #f0c030; }
.badge-lgpl { background: #f3eeff; color: #7c4dbd; border: 1px solid #c9a8f0; }
.badge-bsd  { background: #e8faf2; color: #2a8a5c; border: 1px solid #80ddb0; }
.badge-mit  { background: #e6f7ff; color: #1a7ab8; border: 1px solid #80c8f0; }

/* Expandable panel */
.oss-table tr.panel-row {
  display: none;
}

.oss-table tr.panel-row.open {
  display: table-row;
}

.panel-inner {
  padding: 20px 24px;
}

.panel-head {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lic-text {
  font-family: monospace;
  font-size: 11.5px;
  line-height: 1.7;
  color: #444;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
  background: #f5f7fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px;
}

.lic-text::-webkit-scrollbar {
  width: 4px;
}

.lic-text::-webkit-scrollbar-track {
  background: transparent;
}

.lic-text::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

@media screen and (max-width: 768px) {
  .inr {
    padding: 0 15px;
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {
  .oss-table .td-cr { display: none; }
  .panel-inner { padding: 14px 12px; }
}
