/* ======================================
   OIL4 Rooster Stats — v1.3.0 (+ staffing)
   ====================================== */

/* === 1️⃣ Ziekteverzuim-meter === */
.o4rs-meter {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: none !important;
  border: none !important;
  border-radius: 12px;
  box-shadow: none !important;
  width: var(--meter-size, 320px);
  margin: 8px auto;
}

.o4rs-meter-title {
  font-weight: 600;
  font-size: 15px;
  color: #111827;
}

.o4rs-gauge {
  width: 100%;
  height: auto;
  display: block;
}

.o4rs-meter-value {
  font-weight: 700;
  font-size: 24px;
  color: #111827;
}

/* === 2️⃣ Sectietitels ('Dag', 'Avond', etc.) === */
div.o4rs-section h3.o4rs-title {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #1e3a8a !important;
  margin: 0 0 6px;
  text-align: left;
}

/* === 3️⃣ Lijsten met functies of personen === */
.o4rs-list,
.o4rs-list ul,
.o4rs-list li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Verberg eventuele markers die door thema’s worden toegevoegd */
.o4rs-list li::marker,
.o4rs-list li::before,
.o4rs-list li::after {
  content: none !important;
  display: none !important;
}

/* === 4️⃣ Algemene styling van lijstitems === */
.o4rs-list li {
  display: block !important;
  margin: 3px 0;
  padding: 0;
  color: #000;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
}

/* === 5️⃣ Extra opmaak voor namen of functies (optioneel) === */
.o4rs-list li span.name {
  font-weight: 600;
  color: #111827;
}

.o4rs-list li span.func {
  color: #4b5563;
  font-style: italic;
}

/* === 6️⃣ Nieuwe blokken (vierkante tegels) === */

.o4rs-block-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0;
}

.o4rs-block {
  width: var(--o4rs-block-size, 140px);
  height: var(--o4rs-block-size, 140px);
  background: var(--o4rs-block-bg, #e6f4ff);
  border-radius: var(--o4rs-block-radius, 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
}

.o4rs-block-number {
  font-size: var(--o4rs-block-number-size, 36px);
  line-height: 1;
  font-weight: 700;
  color: var(--o4rs-block-number-color, #000000);
}

.o4rs-block-label {
  margin-top: 6px;
  font-size: var(--o4rs-block-label-size, 13px);
  font-weight: 500;
  color: var(--o4rs-block-label-color, #0b65c2);
}

/* === 7️⃣ Responsiviteit algemene onderdelen === */
@media (max-width: 800px) {
  .o4rs-meter {
    width: 100%;
    max-width: 280px;
  }

  .o4rs-meter-title {
    font-size: 14px;
  }

  .o4rs-meter-value {
    font-size: 20px;
  }

  .o4rs-list li {
    font-size: 13px;
  }

  .o4rs-block {
    width: calc(var(--o4rs-block-size, 140px) * 0.85);
    height: calc(var(--o4rs-block-size, 140px) * 0.85);
  }

  .o4rs-block-number {
    font-size: calc(var(--o4rs-block-number-size, 36px) * 0.9);
  }

  .o4rs-block-label {
    font-size: calc(var(--o4rs-block-label-size, 13px) * 0.95);
  }
}

@media (max-width: 480px) {
  .o4rs-block-grid {
    gap: 10px;
    justify-content: center;
  }

  .o4rs-block {
    width: calc(var(--o4rs-block-size, 140px) * 0.75);
    height: calc(var(--o4rs-block-size, 140px) * 0.75);
  }
}

/* === 8️⃣ Staffing overview chart (maand) === */

.o4rs-staffing-wrapper {
  padding: 10px 12px 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.10);
  border: 0px solid rgba(148, 163, 184, 0.3);
  margin: 12px 0;
}

.o4rs-staffing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.o4rs-staffing-title {
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.o4rs-staffing-nav {
  color: #0b65c2;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.o4rs-staffing-nav:hover {
  text-decoration: underline;
}

.o4rs-staffing-chart-container {
  position: relative;
  width: 100%;
  height: 360px;
}

@media (max-width: 800px) {
  .o4rs-staffing-chart-container {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .o4rs-staffing-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
