/**
 * @author    Veo by Kebes <hola@kebes.es>
 * @copyright 2026 Veo by Kebes
 * @license   https://opensource.org/licenses/AFL-3.0  Academic Free License 3.0 (AFL-3.0)
 */
.veosg {
  margin: 12px 0;
}
.veosg-fit {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 8px;
  padding: 8px 12px;
  background: #fff7ed;
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  font-size: .9rem;
}
.veosg-fit svg {
  flex: 0 0 auto;
  color: #d97706;
  margin-top: 2px;
}
.veosg-open {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.veosg-open:focus:not(:focus-visible) {
  outline: 0;
}
.veosg-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  color: #1f2937;
}
.veosg-dialog::backdrop {
  background: rgba(17, 24, 39, .5);
}
.veosg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.veosg-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.veosg-close {
  appearance: none;
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #4b5563;
  padding: 0 4px;
}
.veosg-tabs {
  display: flex;
  gap: 4px;
  padding: 0 16px;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
}
.veosg-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 10px;
  font: inherit;
  color: #4b5563;
  cursor: pointer;
  white-space: nowrap;
}
.veosg-tab[aria-selected="true"] {
  color: #111827;
  font-weight: 600;
  border-bottom-color: currentColor;
}
.veosg-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
  max-height: calc(100vh - 170px);
}
.veosg-intro,
.veosg-measure {
  margin-bottom: 12px;
  font-size: .95rem;
}
.veosg-scroll {
  overflow-x: auto;
}
.veosg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.veosg-table th,
.veosg-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
  white-space: nowrap;
}
.veosg-table thead th {
  background: #f3f4f6;
  font-weight: 600;
}
.veosg-table tbody th {
  font-weight: 600;
}
.veosg-table tbody tr:nth-child(even) {
  background: #fafafa;
}
.veosg-table tr.is-match th,
.veosg-table tr.is-match td {
  background: #dcfce7;
  font-weight: 600;
}
.veosg-calc label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.veosg-calc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.veosg-foot {
  width: 110px;
  padding: 8px 10px;
  font-size: 1.1rem;
  border: 1px solid #9ca3af;
  border-radius: 6px;
}
.veosg-hint {
  margin: 8px 0 0;
  font-size: .85rem;
  color: #6b7280;
}
.veosg-result {
  margin: 16px 0 12px;
}
.veosg-result:empty {
  display: none;
}
.veosg-size {
  margin: 0 0 4px;
  font-size: 1.3rem;
  font-weight: 700;
}
.veosg-equiv {
  margin: 0 0 4px;
  color: #374151;
}
.veosg-fit-note {
  margin: 8px 0 0;
  color: #b45309;
}
.veosg-measure-img {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 12px;
}
@media (max-width: 575px) {
  .veosg-dialog {
    width: 100%;
    max-width: none;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 12px 12px 0 0;
  }
  .veosg-head,
  .veosg-body {
    padding-left: 14px;
    padding-right: 14px;
  }
}
.veosg-dialog button:focus:not(:focus-visible) {
  outline: 0;
}
.veosg-dialog .veosg-calc label {
  text-align: left;
  width: auto;
  padding: 0;
}
.veosg-dialog .veosg-title,
.veosg-dialog .veosg-size {
  color: #111827;
}
@media (max-width: 575px) {
  .veosg-tabs {
    padding: 0 8px;
    gap: 0;
  }
  .veosg-tab {
    padding: 12px 8px;
    font-size: .9rem;
  }
}
