/* Beetplaner – schlank, mobile first */

.bp-shell{display:flex;flex-direction:column;gap:12px}

.bp-row{display:flex;flex-wrap:wrap;gap:8px;align-items:end;justify-content:space-between}
.bp-field{display:flex;flex-direction:column;gap:6px;min-width:180px;flex:1}
.bp-field > span{font-weight:850;font-size:12px;opacity:.9}
.bp-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

.no-print{ }
.print-only{display:none}

.bp-topbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.bp-topbar .left{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bp-topbar .right{display:flex;gap:8px;align-items:center}

.bp-select{min-width:160px}

.bp-grid-wrap{display:flex;flex-direction:column;gap:10px}

.bp-grid{
  display:grid;
  gap:6px;
  align-items:stretch;
  user-select:none;
  -webkit-user-select:none;
}

.bp-cell{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(var(--accent-rgb), 0.06);
  border-radius:12px;
  padding:10px 8px;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.1;
  font-weight:850;
  font-size:12px;
}

.bp-cell[data-empty="1"]{background: rgba(0,0,0,.08); font-weight:700; opacity:.9}

.bp-cell .bp-label{display:flex;flex-direction:column;gap:2px}
.bp-cell .bp-sub{font-weight:700;font-size:10px;opacity:.85}

/* bessere Lesbarkeit in Zellen */
.bp-cell{color:#fff}
.bp-cell .bp-label{
  display:inline-flex;
  flex-direction:column;
  gap:2px;
  background: rgba(0,0,0,.45);
  padding:2px 6px;
  border-radius:8px;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.bp-cell .bp-sub{opacity:.9}

@media print{
  .bp-cell{color:#000 !important; text-shadow:none !important}
  .bp-cell .bp-label{background:#000 !important; color:#fff !important; text-shadow:none !important}
}


.bp-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bp-toolbar .muted{margin-left:auto}

.bp-legend{display:flex;flex-direction:column;gap:10px}
.bp-legend-head{display:flex;gap:10px;align-items:baseline;justify-content:space-between}
.bp-legend-list{display:flex;flex-wrap:wrap;gap:8px}
.bp-legend-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:8px}
.bp-legend-list{display:flex;flex-wrap:wrap;gap:8px}
.bp-chip{display:inline-flex;gap:6px;align-items:center;padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(var(--accent-rgb),0.08);font-weight:850;font-size:12px}
.bp-chip .dot{width:10px;height:10px;border-radius:99px;background:var(--accent)}

.bp-help{font-size:13px}

/* lightweight toast */
.bp-toast{
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  font-weight: 700;
  z-index: 50;
}

@media (min-width: 900px){
  .bp-shell{gap:14px}
  .bp-grid{gap:8px}
  .bp-cell{font-size:13px}
}

/* Print / PDF */
@media print{
  body{background:#fff !important}
  .app-header, .app-footer, #theme-picker-btn, #theme-picker-panel{display:none !important}
  .page{max-width:none !important; padding:0 !important}
  .card{box-shadow:none !important; border:1px solid #ddd !important}
  .no-print{display:none !important}
  .print-only{display:block !important}
  .btn, select, input{display:none !important}
  .no-print{display:none !important}
  .print-only{display:block !important}
  .bp-cell{border:1px solid #333 !important; background:#fff !important; border-radius:0 !important}
  .bp-grid{gap:0 !important}
  .bp-chip{border:1px solid #333 !important; background:#fff !important}
}

/* Dialog (Neues/Umbenennen Beet) – passend zum Dark UI */
#bp-dialog{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 0;
  background: rgba(18,18,18,0.92);
  color: inherit;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  width: min(92vw, 520px);
}

#bp-dialog::backdrop{
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

.bp-dialog{
  padding: 16px 16px 14px;
}

.bp-dialog .card-title{
  margin-bottom: 6px;
}

.bp-dialog-grid{
  display: grid;
  grid-template-columns: 1fr 110px 110px;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}

.bp-dialog-grid label{
  display: grid;
  gap: 6px;
}

.bp-dialog-grid label:first-child{
  grid-column: 1 / -1;
}

#bp-dialog .input{
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
}

#bp-dialog .btn{
  border: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 520px){
  .bp-dialog{ padding: 14px 12px 12px; }
  .bp-dialog-grid{ grid-template-columns: 1fr 1fr; }
  .bp-dialog-grid label:first-child{ grid-column: 1 / -1; }
}
