/** ========================================
 * Decision box
 * ======================================== */
.aoo-decision-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin: 0 0 32px;
  box-sizing: border-box;
  max-width: 100%;
}

.aoo-decision-box h2 {
  margin-top: 0;
  margin-bottom: 18px;
}

.aoo-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.aoo-decision-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  box-sizing: border-box;
  max-width: 100%;
}

.aoo-decision-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.aoo-decision-item p {
  margin-bottom: 0;
}

/** ========================================
 * Vignette cards
 * ======================================== */
.aoo-vignette-cards {
  background: #fff5f5;
  border-radius: 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
  box-sizing: border-box;
  max-width: 100%;
}

.aoo-vignette-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  box-sizing: border-box;
  max-width: 100%;
}

.aoo-vignette-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.aoo-vignette-price {
  margin: 0 0 14px;
  font-weight: 700;
}

.aoo-vignette-card p:last-child {
  margin-bottom: 0;
}

/** ========================================
 * Table wrapper
 * ======================================== */
.aoo-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  max-width: 100%;
  box-sizing: border-box;
}

.aoo-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}

.aoo-table th,
.aoo-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
}

.aoo-table thead th {
  background: #f3f4f6;
  font-weight: 700;
}

.aoo-table tbody tr:last-child td {
  border-bottom: 0;
}

/** ========================================
 * Vignet beslishtool
 * ======================================== */
.aoo-vignet-tool {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  margin: 32px 0;
  box-sizing: border-box;
  max-width: 100%;
}

.aoo-vignet-tool h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.aoo-vignet-tool-intro {
  margin-bottom: 20px;
  color: var(--text-muted, #6b7280);
}

.aoo-vignet-form {
  display: grid;
  gap: 16px;
}

.aoo-vignet-followup {
  display: grid;
  gap: 16px;
}

.aoo-vignet-question label {
  display: block;
  margin-bottom: 8px;
}

.aoo-vignet-question select,
.aoo-vignet-question input[type="date"] {
  width: 100%;
  max-width: 520px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  box-sizing: border-box;
}

.aoo-vignet-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.aoo-vignet-result {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-sizing: border-box;
  max-width: 100%;
}

.aoo-vignet-result h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.aoo-vignet-result.is-warning {
  border-color: #f59e0b;
  background: #fffbeb;
}

.aoo-vignet-note {
  margin-bottom: 0;
  color: var(--text-muted, #6b7280);
  font-size: 0.95rem;
}

/** ========================================
 * Responsive layout
 * ======================================== */
@media (max-width: 768px) {
  .aoo-decision-grid {
    grid-template-columns: 1fr;
  }

  .aoo-vignette-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .aoo-vignette-card {
    padding: 18px;
  }
}

/** ========================================
 * Responsive table
 * ======================================== */
@media (max-width: 768px) {
  .aoo-table-wrap {
    overflow: visible !important;
    overflow-x: visible !important;
    max-width: 100% !important;
  }

  .aoo-table.aoo-table--responsive {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    table-layout: fixed !important;
  }

  .aoo-table--responsive thead {
    display: none !important;
  }

  .aoo-table--responsive tbody {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .aoo-table--responsive tr {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    padding: 8px 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box !important;
  }

  .aoo-table--responsive td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative;
    border: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 12px 16px !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .aoo-table--responsive td:last-child {
    border-bottom: 0 !important;
  }

  .aoo-table--responsive td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 0.82rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-muted, #6b7280);
  }
}