:root { 
  --border: #2f5d9b; 
  --text: #1a1a1a; 
  --muted: #666; 
  --primary: #2f5d9b;
  --primary-hover: #244a7a;
  --background: #f6f7fb;
  --white: #fff;
  --light-blue: #e9f0fb;
  --border-light: #b9c6e6;
  --border-container: #cfd8ea;
}

* { 
  box-sizing: border-box; 
}

body { 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  color: var(--text); 
  margin: 0; 
  background: var(--background);
  line-height: 1.6;
}

.container { 
  max-width: 1200px; 
  margin: 20px auto; 
  background: var(--white); 
  padding: 20px; 
  border: 1px solid var(--border-container);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h2 { 
  text-align: center; 
  margin: 0 0 20px; 
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 600;
}

input, select, textarea { 
  width: 100%; 
  padding: 12px; 
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(47, 93, 155, 0.1);
}

button { 
  background: var(--primary); 
  color: var(--white); 
  border: none; 
  padding: 14px 24px; 
  font-size: 16px; 
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

button:hover { 
  background: var(--primary-hover); 
}

.msg { 
  margin-top: 12px; 
  color: var(--primary);
  font-weight: 500;
}

/* Sheet layout */
.sheet { 
  display: grid; 
  grid-template-columns: repeat(12, 1fr); 
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.cell { 
  border: 1px solid var(--border); 
  padding: 12px; 
  min-height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header { 
  background: var(--light-blue); 
  font-weight: bold;
  text-align: center;
}

.title { 
  text-transform: uppercase; 
  font-weight: bold; 
}

.small { 
  font-size: 12px; 
  color: var(--muted); 
}

.section-title { 
  background: var(--light-blue); 
  font-weight: bold; 
  grid-column: span 12;
  text-align: center;
  padding: 16px;
  font-size: 16px;
}

.flex { 
  display: flex; 
  gap: 8px; 
  align-items: center; 
}

.right { 
  text-align: right; 
}

.center { 
  text-align: center; 
}

.footnotes { 
  font-size: 12px; 
  color: #444; 
  margin-top: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid var(--primary);
}

/* Labels */
label {
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 13px;
}

/* File input styling */
input[type="file"] {
  padding: 8px;
  border: 2px dashed var(--border-light);
  background: #fafafa;
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: var(--primary);
  background: #f0f4ff;
}

/* Responsive Design - Simplificado */
@media (max-width: 768px) {
  .container {
    margin: 10px;
    padding: 10px;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .sheet { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .cell {
    grid-column: span 2 !important;
    padding: 8px;
    min-height: auto;
  }
  
  .section-title {
    grid-column: span 2 !important;
    font-size: 14px;
    padding: 10px;
  }
  
  input, select, textarea {
    padding: 8px;
    font-size: 14px;
  }
  
  button {
    width: 100%;
    padding: 12px;
  }
  
  .footnotes {
    font-size: 11px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 5px;
    padding: 5px;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  .cell {
    padding: 6px;
  }
  
  input, select, textarea {
    padding: 6px;
    font-size: 13px;
  }
  
  .section-title {
    font-size: 13px;
    padding: 8px;
  }
}

/* Print styles */
@media print {
  .container {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  button {
    display: none;
  }
  
  .msg {
    display: none;
  }
}


