   :root {
      --sus-green: #2E8B57;
      --sus-light-green: #3CB371;
      --sus-dark-green: #006400;
      --sus-white: #FFFFFF;
      --sus-gray: #F5F5F5;
      --sus-dark-gray: #333333;
      --sus-border: #CCCCCC;
      --sus-error: #FF5252;
  }
  

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  

  .container-mamografia {
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
      color: var(--sus-dark-gray);
       position: relative;
       z-index: 1;
  }

  header {
      background-color: var(--sus-green);
      color: var(--sus-white);
      padding: 15px 0;
      text-align: center;
      margin-bottom: 20px;
      border-radius: 5px;
  }

  header h1 {
      font-size: 1.5rem;
      margin-bottom: 5px;
  }

  header p {
      font-size: 1rem;
      opacity: 0.9;
  }

  .form-section-mamografia {
      background-color: var(--sus-white);
      border-radius: 5px;
      padding: 20px;
      margin-bottom: 20px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      
      
  }

  .section-title {
      color: var(--sus-dark-green);
      border-bottom: 2px solid var(--sus-light-green);
      padding-bottom: 10px;
      margin-bottom: 20px;
      font-size: 1.4rem;
  }

  .form-group {
      margin-bottom: 15px;
  }
   
  label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
    }

  .form-row-mamogarfia {
      display: flex;
      flex-wrap: wrap;
      margin: 0 -10px;
  }

  .form-column {
      flex: 1;
      padding: 0 10px;
      min-width: 200px;
  }

   .form-group label {
      display: block;
      margin-bottom: 5px;
      font-weight: 600;
      color: var(--text-primary);
  }

  .required::after {
      content: " *";
      color: var(--sus-error);
  }

  input,
  select,
  textarea {
      width: 100%;
      padding: 10px;
      border: 1px solid var(--sus-border);
      border-radius: 4px;
      font-size: 1rem;
  }

  input:focus,
  select:focus,
  textarea:focus {
      outline: none;
      border-color: var(--sus-green);
      box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2);
  }

  .radio-group,
  .checkbox-group {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      margin-top: 5px;
  }

  .radio-option,
  .checkbox-option {
      display: flex;
      align-items: center;
  }

  .radio-option input,
  .checkbox-option input {
      width: auto;
      margin-right: 8px;
  }

  .breast-section {
      border: 1px solid var(--sus-border);
      border-radius: 5px;
      padding: 15px;
      margin-bottom: 15px;
  }

  .breast-title {
      font-weight: 600;
      margin-bottom: 10px;
      color: var(--sus-dark-green);
  }

  .breast-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 10px;
  }

  .location-legend {
      background-color: var(--sus-gray);
      padding: 10px;
      border-radius: 5px;
      margin-top: 20px;
      font-size: 0.9rem;
  }

  .location-legend h4 {
      margin-bottom: 10px;
      color: var(--sus-dark-green);
  }

  .location-item {
      margin-bottom: 5px;
  }

  .error-message {
      color: var(--sus-error);
      font-size: 0.9rem;
      margin-top: 5px;
      display: none;
  }

  .alert-box-mamografia {
      background-color: #FFF3CD;
      border: 1px solid #FFEAA7;
      border-radius: 5px;
      padding: 15px;
      margin-bottom: 20px;
      color: #856404;
  }

  .buttons-mamografia {
      display: flex;
      justify-content: flex-end;
      gap: 15px;
      margin-top: 20px;
  }

  button {
      padding: 12px 25px;
      border: none;
      border-radius: 5px;
      font-size: 1rem;
      cursor: pointer;
      transition: background-color 0.3s;
  }

  .btn-submit {
      background-color: var(--sus-green);
      color: var(--sus-white);
      
  }

  .btn-submit:hover {
      background-color: var(--sus-dark-green);
  }

  .btn-reset {
      background-color: var(--sus-border);
      color: var(--sus-dark-gray);
  }

  .btn-reset:hover {
      background-color: #B0B0B0;
  }

  @media (max-width: 768px) {
      .form-column {
          flex: 100%;
      }

      .breast-grid {
          grid-template-columns: 1fr;
      }

      .buttons-mamografia {
          flex-direction: column;
      }

      button {
          width: 100%;
      }
  }

  /* Estilos específicos para o PDF */
  .pdf-template-mamografia {
      width: 210mm;
      min-height: 297mm;
      padding: 15mm;
      background: white;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      margin: 20px auto;
      font-family: Arial, sans-serif;
      font-size: 10px;
      line-height: 1.3;
      display: none;
  }

  .pdf-header {
      text-align: center;
      margin-bottom: 15px;
      border-bottom: 2px solid #2E8B57;
      padding-bottom: 8px;
  }

  .pdf-header h1 {
      font-size: 16px;
      margin-bottom: 3px;
      color: #2E8B57;
  }

  .pdf-header p {
      font-size: 12px;
  }

  .pdf-section {
      margin-bottom: 12px;
      page-break-inside: avoid;
  }

  .pdf-section-title {
      font-weight: bold;
      font-size: 12px;
      margin-bottom: 6px;
      color: #2E8B57;
      border-bottom: 1px solid #2E8B57;
      padding-bottom: 2px;
  }

  .pdf-row {
      display: flex;
      margin-bottom: 4px;
  }

  .pdf-column {
      flex: 1;
      padding: 0 3px;
  }

  .pdf-label {
      font-weight: bold;
      margin-bottom: 1px;
      font-size: 9px;
  }

  .pdf-value {
      border-bottom: 1px dotted #ccc;
      min-height: 14px;
      padding: 1px 3px;
      font-size: 9px;
  }

  .pdf-checkbox {
      display: inline-block;
      width: 8px;
      height: 8px;
      border: 1px solid #000;
      margin-right: 3px;
      text-align: center;
      line-height: 7px;
      font-size: 7px;
  }

  .pdf-checkbox.checked::after {
      content: "X";
  }

  .pdf-table {
      width: 100%;
      border-collapse: collapse;
      margin: 8px 0;
      font-size: 9px;
  }

  .pdf-table td {
      border: 1px solid #000;
      padding: 3px;
      vertical-align: top;
  }

  .pdf-breast-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      margin: 8px 0;
  }

  .pdf-breast-section {
      border: 1px solid #ccc;
      padding: 6px;
  }

  .pdf-breast-title {
      font-weight: bold;
      margin-bottom: 4px;
      text-align: center;
      font-size: 9px;
  }

  .pdf-checkbox-group {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4px;
  }

  .pdf-checkbox-item {
      display: flex;
      align-items: center;
      font-size: 8px;
  }

  .pdf-footer {
      margin-top: 15px;
      padding-top: 8px;
      border-top: 1px solid #ccc;
      font-size: 8px;
      text-align: center;
  }

  /* Layout melhorado para Anamnese */
  .pdf-anamnese-container {
      border: 1px solid #000;
      margin: 8px 0;
  }

  .pdf-anamnese-row {
      display: flex;
      border-bottom: 1px solid #000;
  }

  .pdf-anamnese-row:last-child {
      border-bottom: none;
  }

  .pdf-anamnese-question {
      flex: 3;
      padding: 4px;
      border-right: 1px solid #000;
      font-weight: bold;
      font-size: 9px;
      display: flex;
      align-items: center;
  }

  .pdf-anamnese-options {
      flex: 2;
      padding: 4px;
      display: flex;
      align-items: center;
  }

  .pdf-option-group {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      width: 100%;
  }

  .pdf-option {
      display: flex;
      align-items: center;
      font-size: 8px;
  }

  /* Layout melhorado para Indicação Clínica */
  .pdf-indicacao-container {
      border: 1px solid #000;
      margin: 8px 0;
  }

  .pdf-indicacao-row {
      display: flex;
      border-bottom: 1px solid #000;
  }

  .pdf-indicacao-row:last-child {
      border-bottom: none;
  }

  .pdf-indicacao-question {
      flex: 2;
      padding: 4px;
      border-right: 1px solid #000;
      font-weight: bold;
      font-size: 9px;
      display: flex;
      align-items: center;
  }

  .pdf-indicacao-options {
      flex: 3;
      padding: 4px;
      display: flex;
      align-items: center;
  }

  .pdf-risco-info {
      font-size: 7px;
      font-style: italic;
      margin-top: 4px;
      color: #666;
  }