/* Modul 10.2 – Integration & Transfer: Rituale / Maintenance */

.mod102-shell {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Header */

.mod102-header {
  margin-bottom: 0.5rem;
}

.mod102-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
}

.mod102-subtitle {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Sections */

.mod102-section {
  padding: 1.3rem 1.5rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 32px rgba(0,0,0,0.04);
}

.mod102-section h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
}

.mod102-section h4 {
  margin: 0.6rem 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.mod102-section p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.8rem;
}

.mod102-section-highlight {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}

.mod102-section-warning {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fecaca;
}

.mod102-section-dod {
  background: #f9fafb;
}

/* Timebox */

.mod102-timebox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.mod102-timebox-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 0.75rem;
}

.mod102-time {
  font-weight: 700;
  color: #111;
}

/* Inputs */

.mod102-input,
.mod102-select {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0.4rem 0.6rem;
  font: inherit;
  font-size: 0.875rem;
  width: 100%;
}

.mod102-input:focus,
.mod102-select:focus {
  outline: none;
  border-color: #111;
}

.mod102-textarea {
  width: 100%;
  min-height: 60px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.875rem;
  resize: vertical;
}

.mod102-textarea:focus {
  outline: none;
  border-color: #111;
}

/* Add Button */

.mod102-add-btn {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
}

/* Delete Button */

.mod102-delete-btn {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem;
  line-height: 1;
}

.mod102-delete-btn:hover {
  color: #ef4444;
}

/* Checkbox */

.mod102-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.mod102-checkbox input {
  accent-color: #111;
}

/* Inventory Table */

.mod102-inventory-table {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.mod102-inventory-header {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 1.2fr 0.8fr;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  background: #f3f4f6;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
}

.mod102-inventory-rows {
  padding: 0.5rem;
}

.mod102-inventory-row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 1.2fr 0.8fr;
  gap: 0.4rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
}

.mod102-inventory-row:last-child {
  border-bottom: none;
}

.mod102-inventory-row input[type="text"],
.mod102-inventory-row input[type="number"] {
  font-size: 0.8rem;
  padding: 0.25rem 0.4rem;
}

.mod102-inventory-row input[type="checkbox"] {
  justify-self: center;
}

/* Ritual Tabs */

.mod102-ritual-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.mod102-ritual-tab {
  padding: 0.4rem 0.8rem;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s;
}

.mod102-ritual-tab:hover {
  background: #dbeafe;
}

.mod102-ritual-tab.active {
  background: #1e40af;
  color: #fff;
  border-color: #1e40af;
}

/* Ritual Card */

.mod102-ritual-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
}

.mod102-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.mod102-card-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mod102-card-field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #1e40af;
}

.mod102-field-wide {
  grid-column: 1 / -1;
}

/* Steps */

.mod102-steps-section {
  padding: 0.8rem;
  background: rgba(255,255,255,0.5);
  border-radius: 10px;
}

.mod102-steps-section h4 {
  margin: 0 0 0.5rem;
  color: #1e40af;
}

.mod102-steps {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mod102-step-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.mod102-step-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e40af;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.mod102-step-row input {
  flex: 1;
}

/* Calendar Grid */

.mod102-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.mod102-calendar-card {
  padding: 0.8rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.mod102-calendar-card h4 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: #111;
}

.mod102-calendar-field {
  margin-bottom: 0.5rem;
}

.mod102-calendar-field label {
  display: block;
  font-size: 0.7rem;
  color: #6b7280;
  margin-bottom: 0.15rem;
}

.mod102-calendar-field input {
  font-size: 0.8rem;
}

/* Environment Section */

.mod102-environment-section {
  padding: 0.8rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

.mod102-environment-section h4 {
  margin: 0 0 0.5rem;
  color: #065f46;
}

.mod102-env-checks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Compliance Tracker */

.mod102-compliance-tracker {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.mod102-week-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mod102-week-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  min-width: 50px;
}

.mod102-ritual-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #374151;
  min-width: 70px;
}

.mod102-day-checks {
  display: flex;
  gap: 0.25rem;
}

.mod102-day-check {
  width: 28px;
  height: 28px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #9ca3af;
  transition: all 0.15s;
}

.mod102-day-check:hover {
  border-color: #9ca3af;
}

.mod102-day-check.checked {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.mod102-day-check.checked::after {
  content: '✓';
}

/* Compliance Summary */

.mod102-compliance-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e5e7eb;
}

.mod102-compliance-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 1rem;
  background: #f9fafb;
  border-radius: 8px;
  min-width: 80px;
}

.mod102-compliance-label {
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
}

.mod102-compliance-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
}

.mod102-compliance-total {
  background: #dbeafe;
}

.mod102-compliance-total .mod102-compliance-value {
  color: #1e40af;
}

/* KPI Table */

.mod102-kpi-table {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.mod102-kpi-header {
  display: grid;
  grid-template-columns: 1fr 1.5fr 0.8fr 0.8fr 0.6fr;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  background: #f3f4f6;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
}

.mod102-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 0.8fr 0.8fr 0.6fr;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
  font-size: 0.85rem;
}

.mod102-kpi-row:last-child {
  border-bottom: none;
}

.mod102-kpi-formula {
  font-size: 0.75rem;
  color: #6b7280;
}

.mod102-kpi-input {
  text-align: center;
  font-size: 0.85rem;
  padding: 0.25rem 0.4rem;
}

.mod102-kpi-trend {
  font-size: 0.85rem;
  padding: 0.2rem;
  text-align: center;
}

/* Risks */

.mod102-risks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.mod102-risk-card {
  padding: 0.7rem;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 10px;
}

.mod102-risk-card h4 {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  color: #991b1b;
}

.mod102-risk-card p {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.mod102-risk-action {
  font-size: 0.75rem;
  font-weight: 500;
  color: #065f46;
}

.mod102-reset-rules {
  padding: 0.8rem;
  background: #fff;
  border-radius: 10px;
}

.mod102-reset-rules h4 {
  margin: 0 0 0.4rem;
  color: #991b1b;
}

/* DoD List */

.mod102-dod-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mod102-dod-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.mod102-dod-list li:last-child {
  border-bottom: none;
}

.mod102-dod-list input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: #111;
}

/* Bubble Card */

.mod102-bubble-card {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%) !important;
  border: 2px solid #fde68a !important;
  border-radius: 16px;
}

.mod102-bubble-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.6rem;
}

.mod102-bubble-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mod102-bubble-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.mod102-bubble-num {
  font-weight: 700;
  color: #92400e;
  min-width: 1.2rem;
}

/* Actions */

.mod102-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* Responsive */

@media (max-width: 768px) {
  .mod102-inventory-header,
  .mod102-inventory-row {
    grid-template-columns: 1fr;
  }

  .mod102-inventory-header {
    display: none;
  }

  .mod102-calendar-grid {
    grid-template-columns: 1fr;
  }

  .mod102-kpi-header {
    display: none;
  }

  .mod102-kpi-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .mod102-risks {
    grid-template-columns: 1fr;
  }
}
