
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fa;
  color: #1f2937;
}

a {
  color: inherit;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.cliente-info {
  font-size: 14px;
  color: #6b7280;
}

.page-container {
  width: 100%;
  max-width: 1200px;
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 24px 20px 40px;
}

/* Banner modulo */

.module-banner {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.module-banner h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.module-banner h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.module-banner p {
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
}

/* Barra operativa */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box,
.select-box,
.input-box,
.textarea-box {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #ffffff;
}

.search-box {
  flex: 1 1 280px;
}

.select-box {
  width: auto;
  min-width: 150px;
}

.textarea-box {
  min-height: 260px;
  resize: vertical;
}

/* Pulsanti */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: #f3f4f6;
}

.btn-primary {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1f2937;
}

/* Schede archivio */

.prompt-list {
  display: grid;
  gap: 12px;
}

.prompt-card {
  display: block;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.prompt-card:hover {
  border-color: #9ca3af;
}

.prompt-id {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}

.prompt-title {
  margin: 5px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.prompt-meta {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* Form */

.form-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* Footer */

.footer {
  padding: 22px 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.footer a {
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 700px) {
  .topbar-inner {
    padding: 12px 15px;
  }

  .page-container {
    padding: 18px 14px 30px;
  }

  .module-banner {
    padding: 20px;
  }

  .module-banner h1 {
    font-size: 25px;
  }

  .toolbar {
    flex-direction: column;
  }

  .search-box,
  .select-box,
  .btn {
    width: 100%;
  }
}
