.zimche-reports-wrap{
  display:flex;
  gap:16px;
  align-items:flex-start;
}

.zimche-reports-sidebar{
  width:300px;
  flex:0 0 300px;
}

.zimche-reports-tabs{
  list-style:none;
  padding:0;
  margin:0;
  border:1px solid #e5e7eb;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}

.zimche-reports-tab-item{
  margin:0;
  padding:0;
}

.zimche-reports-tab{
  width:100%;
  text-align:left;
  background:transparent;
  border:0;
  padding:12px 12px;
  cursor:pointer;
  font-size:14px;
  color:#111827;
}

.zimche-reports-tab:hover{
  background:#f9fafb;
}

.zimche-reports-tab.is-active{
  background:#111827;
  color:#fff;
}

.zimche-reports-content{
  flex:1 1 auto;
  min-width:0;
}

.zimche-reports-panel{
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:16px;
  background:#fff;
}

.zimche-reports-panel.is-active{
  display:block;
}

.zimche-reports-panel-header{
  margin-bottom:14px;
  padding-bottom:10px;
  border-bottom:1px solid #e8f6ed;
}

.zimche-reports-panel-title{
  margin:0;
  font-size:18px;
}

.zimche-reports-no-files{
  padding:12px 0;
  color:#6b7280;
}

.zimche-reports-files{
  list-style:none;
  padding:0;
  margin:0 0 12px 0;
}

.zimche-reports-file{
  padding:8px 0;
  border-bottom:1px dashed #e5e7eb;
  display:flex;
  gap:10px;
  align-items:baseline;
  justify-content:space-between;
}

.zimche-reports-file:last-child{
  border-bottom:0;
}

.zimche-reports-file a{
  word-break:break-word;
}

.zimche-reports-file-meta{
  color:#6b7280;
  font-size:12px;
}

.zimche-reports-upload{
  margin-top:14px;
  display:flex;
  gap:12px;
  align-items:center;
}

.zimche-reports-upload-label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  color:#111827;
}

.zimche-reports-empty{
  padding:10px 0;
  color:#6b7280;
}

/* --- Polished UI overrides --- */
.zimche-reports-wrap{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background:#f5fdf7; /* soft light green background */
  border:1px solid #d1f2dd;
  border-radius:20px;
  padding:20px;
  box-shadow: 0 18px 36px rgba(10, 80, 40, .14);
}

.zimche-reports-sidebar{
  position: sticky;
  top: 14px;
  max-height: 75vh;
  overflow:auto;
  border-radius:14px;
  background:#ffffff;
  border:1px solid #d1f2dd;
  padding:8px 6px;
  width:300px;
  flex:0 0 300px;
}

.zimche-reports-tabs{
  border:0;
  background:transparent;
  border-radius:0;
  overflow:visible;
}

.zimche-reports-tab{
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 13px;
  margin:5px;
  border:1px solid transparent;
  font-weight:600;
  line-height:1.25;
  transition:all .15s ease;
}

.zimche-reports-tab .zimche-reports-tab-count{
  font-size:12px;
  padding:3px 8px;
  border-radius:999px;
  background:#e2f7e8; /* pale green pill */
  color:#14532d;
  font-weight:600;
}

.zimche-reports-tab.is-active{
  background:#0f6b2c; /* primary dark green */
  color:#fff;
  border-color:#0b4f20;
  box-shadow:0 7px 16px rgba(11,79,32,.28);
}

.zimche-reports-tab.is-active .zimche-reports-tab-count{
  background: rgba(255,255,255,.16);
  color:#fff;
}

.zimche-reports-tab:focus-visible{
  outline:2px solid #2563eb;
  outline-offset:2px;
}

.zimche-reports-content{
  min-width:0;
  width:100%;
}

.zimche-reports-panel{
  border-radius:14px;
  padding:18px;
  box-shadow: 0 10px 28px rgba(15,107,44,.16);
  border:1px solid #d1f2dd;
  background:#ffffff;
}

.zimche-reports-panel-title{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin:0;
  font-size:clamp(24px,2.1vw,36px);
  line-height:1.15;
}

.zimche-reports-panel-title .zimche-reports-panel-count{
  font-size:12px;
  padding:2px 10px;
  border-radius:999px;
  background:#e2f7e8;
  color:#166534;
  font-weight:700;
}

.zimche-reports-panel-body{
  display:block;
}

/* Use hidden attribute for inactive panels. */
.zimche-reports-panel[hidden]{
  display:none;
}

.zimche-reports-no-files{
  padding:18px 10px;
  border:1px dashed #d1f2dd;
  border-radius:12px;
  background:#f0fdf4;
}

.zimche-reports-files{
  display:flex;
  flex-direction:column;
  gap:11px;
  margin: 0;
  padding:0;
}

.zimche-reports-file{
  border-bottom:0;
  border-radius:12px;
  border:1px solid #dbeafe;
  padding:12px 14px;
  background:#ffffff;
  transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease, background-color .08s ease;
}

.zimche-reports-file:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15,107,44,.14);
  border-color:#0f6b2c;
  background:#f0fdf4;
}

.zimche-reports-file a{
  font-weight:600;
  color:#0b4f20;
  text-decoration:none;
  font-size:16px;
  line-height:1.4;
}

.zimche-reports-file a:hover{
  text-decoration:underline;
}

.zimche-reports-file-meta{
  white-space:nowrap;
  color:#4b5563;
  font-weight:600;
}

.zimche-reports-upload{
  margin-top:16px;
  padding:14px;
  border-radius:12px;
  border:1px dashed #84cc16;
  background:#ecfccb;
}

.zimche-reports-upload button.button{
  background:#0f6b2c;
  border-color:#0b4f20;
  color:#ffffff;
  white-space:nowrap;
}

.zimche-reports-upload button.button:hover{
  background:#0b4f20;
  border-color:#072b13;
}

@media (max-width: 900px){
  .zimche-reports-wrap{
    flex-direction:column;
    padding:14px;
  }
  .zimche-reports-sidebar{
    position: relative;
    top:auto;
    max-height:none;
    width:100%;
    flex:1 1 auto;
    padding:8px;
  }
  .zimche-reports-tab{ margin:4px 0; }
  .zimche-reports-panel-title{ font-size:24px; }
}

