/* ===========================
   Cluj360 Dosar Module (v1.2) — multi-instance
   =========================== */

.c360d-widget{
  max-width: 860px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
  box-sizing: border-box;
  margin: 12px 0; /* ca să nu se lipească 2 widgeturi */
  min-height: 60px; /* debug-friendly: se vede containerul chiar înainte de mount */
}

.c360d-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.c360d-sub {
  font-size: 13px;
  color: #475569;
  margin-bottom: 12px;
  line-height: 1.35;
}

.c360d-noteBox{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245,158,11,.10);
  border: 1px solid rgba(245,158,11,.20);
  color: #7c2d12;
  font-size: 12px;
  margin: 10px 0 14px;
}

.c360d-toggleBox {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(2, 132, 199, .06);
  border: 1px solid rgba(2, 132, 199, .14);
  margin-bottom: 14px;
}

.c360d-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 780px) {
  .c360d-list {
    grid-template-columns: 1fr 1fr;
  }
}

.c360d-doc {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,.02);
}

.c360d-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.c360d-label{
  font-weight: 650;
  font-size: 14px;
  line-height: 1.25;
}

.c360d-pill{
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  white-space: nowrap;
}

.c360d-pill.req{ color:#065f46; border-color:rgba(16,185,129,.25); background:rgba(16,185,129,.08); }
.c360d-pill.opt{ color:#334155; }

.c360d-subline{
  font-size: 12px;
  color: #64748b;
  margin: 6px 0 8px;
  line-height:1.35;
}

.c360d-file{ width: 100%; }

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

.c360d-btn{
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 650;
  font-size: 13px;
  background: #111827;
  color: #fff;
}

.c360d-btn.secondary{ background:#334155; }
.c360d-btn.ghost{
  background:#fff;
  color:#111;
  border:1px solid rgba(0,0,0,.12);
}

.c360d-btn:disabled{ opacity:.55; cursor:not-allowed; }

.c360d-status{
  margin-top: 12px;
  font-size: 13px;
  color: #334155;
}

.c360d-bar{
  height: 8px;
  background: rgba(0,0,0,.10);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.c360d-bar > div{
  height: 100%;
  width: 0%;
  background: #0ea5e9;
  transition: width .15s ease;
}

.c360d-meta{
  margin-top: 8px;
  font-size: 12px;
  color: #475569;
}

.c360d-download a{
  display: inline-block;
  margin-top: 10px;
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.c360d-small{
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
  line-height: 1.35;
}

/* --- Reorder UI --- */
.c360d-reorder {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.08);
}

.c360d-reorderHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom: 8px;
}

.c360d-reorderTitle{
  font-size: 12px;
  color: #334155;
  font-weight: 650;
}

.c360d-reorderBtns{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.c360d-miniBtn{
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #111;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 650;
}

.c360d-miniBtn:disabled{ opacity:.5; cursor:not-allowed; }

.c360d-fileList{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.c360d-fileRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
}

.c360d-fileName{
  font-size: 12px;
  color:#0f172a;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.c360d-updown{
  display:flex;
  gap:6px;
}

.c360d-updown button{
  width: 34px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  cursor:pointer;
  font-weight: 800;
}

.c360d-help{
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}
