/* ===========================================================
   VEREINS-PORTAL PRO – GLOBAL STYLES
   =========================================================== */

#vpp-portal {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.45;
  margin-top: 20px;
}

.vpp-section-title {
  margin: 0 0 14px 0;
  font-size: 20px;
  font-weight: 700;
}

/* Spacing helpers */
.vpp-mt { margin-top: 10px; }

/* Form controls – Basis */
#vpp-portal input[type="text"],
#vpp-portal input[type="email"],
#vpp-portal input[type="number"],
#vpp-portal input[type="date"],
#vpp-portal select {
  display: inline-block;
  padding: 7px 9px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin: 6px 8px 10px 0;
  min-width: 220px;
  background: #fff;
  outline: none;
}

#vpp-portal input[type="text"]:focus,
#vpp-portal input[type="email"]:focus,
#vpp-portal input[type="number"]:focus,
#vpp-portal input[type="date"]:focus,
#vpp-portal select:focus {
  border-color: #1e73be;
  box-shadow: 0 0 0 3px rgba(30,115,190,0.12);
}

.vpp-error {
  border-color: #cc0000 !important;
  box-shadow: 0 0 0 3px rgba(204,0,0,0.10) !important;
}

/* Buttons */
.vpp-btn,
.vpp-btn-ghost {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}

.vpp-btn {
  background: #1e73be;
  border-color: #1e73be;
  color: #fff;
}
.vpp-btn:hover {
  background: #195da1;
  border-color: #195da1;
}

.vpp-btn-ghost {
  background: #f1f1f1;
  color: #333;
  border-color: #e1e1e1;
}
.vpp-btn-ghost:hover {
  background: #e7e7e7;
}

/* Toast messages */
.vpp-toast {
  padding: 10px 14px;
  border-radius: 6px;
  margin: 8px 0;
  border: 1px solid transparent;
  font-weight: 600;
}
.vpp-toast.ok {
  background: #ecfff0;
  border-color: #bfe6c8;
  color: #1a7f3c;
}
.vpp-toast.error {
  background: #fff0f0;
  border-color: #efc0c0;
  color: #b20f0f;
}

/* Tables – General */
.vpp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 12px 0;
}
.vpp-table th,
.vpp-table td {
  border: 1px solid #ddd;
  padding: 7px 8px;
  vertical-align: top;
  font-size: 14px;
}
.vpp-table th {
  background: #eef3fb;
  text-align: left;
  font-weight: 700;
}
.vpp-table .r {
  text-align: right;
}

/* Tabs Navigation (Top) */
#vpp-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #ddd;
  margin-bottom: 0;
}
#vpp-tabs .vpp-tab {
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 6px 6px 0 0;
  background: #f6f6f6;
  color: #333;
  font-weight: 600;
  transition: all .2s ease;
}
#vpp-tabs .vpp-tab:hover {
  background: #ececec;
}
#vpp-tabs .vpp-tab.active {
  background: #fff;
  border-color: #ddd;
  border-bottom-color: #fff;
  color: #000;
}

/* Panels Wrapper */
.vpp-panel {
  padding: 18px;
  border: 1px solid #ddd;
  border-top: none;
  background: #fff;
}

/* Search results (list) */
.vpp-search-results .item {
  padding: 7px 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}
.vpp-search-results .item:hover {
  background: #f5faff;
}

/* Notes */
.vpp-note {
  font-size: 12px;
  color: #555;
  margin-top: 8px;
}

/* ===========================================================
   AREAS – VISUELLE TRENNUNG
   =========================================================== */

/* Rechnungen (Blau) */
.vpp-billing-area {
  border: 2px solid #1e73be;
  background: #f4f9ff;
  border-radius: 8px;
  padding: 16px;
}
.vpp-billing-box {
  background: #fff;
  border: 1px solid #dbe7f7;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}
.vpp-billing-toggle {
  margin-bottom: 10px;
}
.vpp-billing-toggle label {
  margin-right: 16px;
  font-size: 15px;
}
.vpp-billing-total {
  font-size: 22px;
  font-weight: 800;
  color: #0f4e82;
}

/* Lager (Grün) */
.vpp-inventory-area {
  border: 2px solid #2ea44f;
  background: #f5fff7;
  border-radius: 8px;
  padding: 16px;
}
.vpp-inv-box {
  background: #fff;
  border: 1px solid #d8efd8;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

/* Administration (Grau) */
.vpp-admin-area {
  border: 2px solid #c2c2c2;
  background: #fafafa;
  border-radius: 8px;
  padding: 16px;
}
.vpp-admin-box {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

/* ===========================================================
   BILLING – Positionszeilen (Tabelle)
   =========================================================== */

#vpp-items-table input[type="text"],
#vpp-items-table input[type="number"],
#vpp-items-table select {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Remove button in position row */
#vpp-items-table .vpp-remove {
  color: #aa0000;
  font-weight: 700;
  text-align: center;
}

/* Search button in article number cell */
#vpp-items-table .vpp-btn-ghost {
  padding: 6px 10px;
  line-height: 1;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (max-width: 900px) {
  #vpp-portal input[type="text"],
  #vpp-portal input[type="email"],
  #vpp-portal input[type="number"],
  #vpp-portal input[type="date"],
  #vpp-portal select {
    min-width: 180px;
  }
  .vpp-section-title {
    font-size: 18px;
  }
  #vpp-tabs .vpp-tab {
    padding: 9px 12px;
    font-size: 14px;
  }
  .vpp-panel {
    padding: 14px;
  }
  .vpp-billing-total {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  /* Eingabeelemente im Block untereinander anordnen */
  .vpp-billing-box label,
  .vpp-inv-box label,
  .vpp-admin-box label {
    display: block;
    margin: 6px 0 2px 0;
  }
  #vpp-portal input[type="text"],
  #vpp-portal input[type="email"],
  #vpp-portal input[type="number"],
  #vpp-portal input[type="date"],
  #vpp-portal select {
    width: 100%;
  }

  /* Positionstabelle lässt Spalten umbrechen */
  #vpp-items-table th,
  #vpp-items-table td {
    font-size: 13px;
    word-break: break-word;
  }
}

/* ===========================================================
   MISC
   =========================================================== */

#vpp-bill-msg,
#vpp-inv-add-msg,
#vpp-move-msg,
#vpp-csv-msg,
#vpp-admin-msg {
}