/* -------------------------------------
   KLEUREN & BASIS
------------------------------------- */
:root {
  --maroon: #8b3c3c;
  --maroon-soft: #a45454;
  --beige: #f4e7da;
  --beige-light: #faf4ec;
  --rose: #d98a9b;
  --text-dark: #3b2a2a;
  --text-soft: #7a5b5b;
  --white: #ffffff;
  --shadow-soft: 0 6px 16px rgba(0,0,0,0.12);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top left, #020202, #323231);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* -------------------------------------
   HEADER (compact & strak)
------------------------------------- */
.bm-header {
  background: url("header.png") center/cover no-repeat;
  color: var(--white);
  padding: 30px 26px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  position: sticky;
  top: 0;
  z-index: 10;
}

.bm-header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* LOGO + TITEL */
.bm-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bm-logo {
  max-height: 48px; /* <<< KLEINER LOGO */
  width: auto;
  object-fit: contain;
}

.bm-title h1 {
  font-size: 18px;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.bm-title p {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

/* LOGIN / LOGOUT */
.bm-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bm-login {
  display: flex;
  gap: 6px;
}

.bm-login input {
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 12px;
  width: 110px;
}

.bm-login input::placeholder {
  color: rgba(255,255,255,0.7);
}

.bm-login button {
  padding: 6px 12px;
  background: var(--beige);
  color: var(--maroon);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.bm-login button:hover {
  background: var(--beige-light);
}

.bm-welcome {
  font-size: 14px;
  color: var(--beige);
}

.bm-logout {
  padding: 6px 12px;
  background: var(--rose);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.bm-logout:hover {
  background: #c76a7a;
}

/* -------------------------------------
   LAYOUT
------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  padding: 26px 34px 40px;
}

/* -------------------------------------
   SIDEBAR
------------------------------------- */
.sidebar {
  background: rgba(30, 30, 30, 0.92); /* Donkergrijs luxe */
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* NAV ITEMS ALS KNOPPEN */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;

  background: #2a2a2a; /* Donkergrijs */
  color: white;        /* Witte tekst */
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;

  transition: 0.18s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

/* LINKS BINNEN NAV-ITEMS NOOIT PAARS */
.nav-item a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.nav-item a:visited {
  color: inherit;
}

.nav-item:hover {
  background: #3a3a3a;
  transform: translateX(3px);
}

/* ICONEN MET WITTE ACHTERGROND */
.nav-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: white;     /* Witte achtergrond */
  color: #2a2a2a;        /* Donker icoon */
  font-size: 14px;
  font-weight: bold;
}

/* ACTIEVE PAGINA */
.nav-item.active {
  background: var(--maroon);
  border-color: var(--maroon-soft);
  color: white;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.nav-item.active .nav-item-icon {
  background: rgba(255,255,255,0.18);
  color: white;
}
/* -------------------------------------
   MAIN
------------------------------------- */
main > * {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: 20px;
}


/* -------------------------------------
   WELCOME CARD
------------------------------------- */
.welcome-card {
  background: linear-gradient(135deg, #f9f0e4, #f4e7da);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.welcome-text h2 {
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--maroon);
}

.welcome-text p {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 420px;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

/* -------------------------------------
   BUTTONS
------------------------------------- */
.btn-primary {
  background: var(--maroon);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border-radius: 999px;
  border: 1px dashed rgba(139, 60, 60, 0.4);
  padding: 7px 14px;
  font-size: 12px;
  color: var(--text-soft);
  cursor: pointer;
}

/* -------------------------------------
   CARDS
------------------------------------- */
.card {
  background: var(--beige-light);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--maroon);
}

/* -------------------------------------
   FORMULIER
------------------------------------- */
form label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-soft);
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #e0d2c4;
  font-size: 13px;
  background: #fdf7f0;
}

.row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* -------------------------------------
   RESPONSIVE
------------------------------------- */
@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
.bm-header-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;        /* <<< horizontaal */
  justify-content: space-between; /* <<< links ↔ rechts */
  align-items: center;        /* <<< verticaal gecentreerd */
}
}

.bm-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end; /* <<< rechts */
}


.bm-title {
  text-align: left;
}
/* -------------------------------------
   FACTUREN OVERZICHT (NIEUWE LAYOUT)
------------------------------------- */

.card h3 {
    margin-bottom: 16px;
    font-size: 20px;
    color: var(--maroon);
}

/* Tabel container */
.facturen-container {
    width: 100%;
    background: rgba(255,255,255,0.85);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

/* Tabel */
.factuurtabel {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px 0; /* ≈ 1 cm ruimte tussen kolommen */
    table-layout: fixed;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 10px;
}

.factuurtabel th {
    background: var(--beige);
    color: black;
    font-weight: 700;
    padding: 14px 10px;
    text-align: left;
    font-size: 14px;
    border-bottom: 2px solid #e5d8c8;
}

.factuurtabel td {
    padding: 12px 10px;
    font-size: 14px;
    color: black;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* Zebra */
.factuurtabel tr:nth-child(even) {
    background: #fafafa;
}

/* -------------------------------------
   KOLOMBREEDTES (perfect afgestemd)
------------------------------------- */

/* 1: Factuurnummer */
.factuurtabel th:nth-child(1),
.factuurtabel td:nth-child(1) {
    width: 8%;
}

/* 2: Factuurdatum */
.factuurtabel th:nth-child(2),
.factuurtabel td:nth-child(2) {
    width: 8%;
}

/* 3: Betaaldatum (smal) */
.factuurtabel th:nth-child(3),
.factuurtabel td:nth-child(3) {
    width: 7%;
}

/* 4: Klant (breed) */
.factuurtabel th:nth-child(4),
.factuurtabel td:nth-child(4) {
    width: 25%;
}

/* 5: Shootdatum */
.factuurtabel th:nth-child(5),
.factuurtabel td:nth-child(5) {
    width: 8%;
}

/* 6 t/m 9: bedragen / btw / tarief / aanbetaling */
.factuurtabel th:nth-child(6),
.factuurtabel td:nth-child(6),
.factuurtabel th:nth-child(7),
.factuurtabel td:nth-child(7),
.factuurtabel th:nth-child(8),
.factuurtabel td:nth-child(8),
.factuurtabel th:nth-child(9),
.factuurtabel td:nth-child(9) {
    width: 7%;
}

/* 10: Openstaand */
.factuurtabel th:nth-child(10),
.factuurtabel td:nth-child(10) {
    width: 8%;
}

/* 11: Status */
.factuurtabel th:nth-child(11),
.factuurtabel td:nth-child(11) {
    width: 8%;
}

/* 12: Acties */
.factuurtabel th:nth-child(12),
.factuurtabel td:nth-child(12) {
    width: 15%;
    white-space: nowrap;
}

/* -------------------------------------
   ACTIEKNOPPEN
------------------------------------- */

.factuur-acties {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.factuur-btn {
    background: #2a2a2a;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: 0.15s ease;
}

.factuur-btn:hover {
    background: #444;
    transform: translateY(-2px);
}

.factuur-btn.danger {
    background: #8b3c3c;
}

.factuur-btn.danger:hover {
    background: #a54a4a;
}

/* -------------------------------------
   STATUS BADGES
------------------------------------- */

.status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status.paid {
    background: #d4f5d4;
    color: #1f7a1f;
}

.status.open {
    background: #f8d0d0;
    color: #a11a1a;
}

/* -------------------------------------
   RESPONSIVE FAILSAFE
------------------------------------- */

.card {
    overflow-x: auto;
}

/* -------------------------------------
   INKOOPFACTUREN OVERZICHT (NIEUWE LAYOUT)
------------------------------------- */

.inkoop-container {
    width: 100%;
    background: rgba(255,255,255,0.85);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

/* Tabel */
.inkooptabel {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px 0;
    table-layout: fixed;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 10px;
}

.inkooptabel th {
    background: var(--beige);
    color: black;
    font-weight: 700;
    padding: 14px 10px;
    text-align: left;
    font-size: 14px;
    border-bottom: 2px solid #e5d8c8;
}

.inkooptabel td {
    padding: 12px 10px;
    font-size: 14px;
    color: black;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* Zebra */
.inkooptabel tr:nth-child(even) {
    background: #fafafa;
}

/* -------------------------------------
   KOLOMBREEDTES (afgestemd op jouw tabel)
------------------------------------- */

.inkooptabel th:nth-child(1),
.inkooptabel td:nth-child(1) {
    width: 10%; /* Datum */
}

.inkooptabel th:nth-child(2),
.inkooptabel td:nth-child(2) {
    width: 12%; /* Factuurnummer */
}

.inkooptabel th:nth-child(3),
.inkooptabel td:nth-child(3) {
    width: 20%; /* Leverancier */
}

.inkooptabel th:nth-child(4),
.inkooptabel td:nth-child(4) {
    width: 30%; /* Omschrijving */
}

.inkooptabel th:nth-child(5),
.inkooptabel td:nth-child(5) {
    width: 10%; /* Bedrag */
}

.inkooptabel th:nth-child(6),
.inkooptabel td:nth-child(6) {
    width: 10%; /* BTW */
}

.inkooptabel th:nth-child(7),
.inkooptabel td:nth-child(7) {
    width: 8%; /* Actie */
    white-space: nowrap;
}

/* -------------------------------------
   ACTIEKNOPPEN (zelfde als facturen)
------------------------------------- */

.inkoop-acties {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.inkoop-btn {
    background: #2a2a2a;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: 0.15s ease;
}

.inkoop-btn:hover {
    background: #444;
    transform: translateY(-2px);
}
/* -------------------------------------
   BANKTABEL – aangepaste kolombreedtes
------------------------------------- */

.banktabel {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px 0;
    table-layout: fixed;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 10px;
}

.banktabel th,
.banktabel td {
    padding: 12px 10px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

/* Datum */
.banktabel th:nth-child(1),
.banktabel td:nth-child(1) {
    width: 12%;
}

/* Omschrijving — 3× breder */
.banktabel th:nth-child(2),
.banktabel td:nth-child(2) {
    width: 45%;
}

/* Bedrag */
.banktabel th:nth-child(3),
.banktabel td:nth-child(3) {
    width: 12%;
}

/* Tegenpartij */
.banktabel th:nth-child(4),
.banktabel td:nth-child(4) {
    width: 18%;
}

/* Rekening */
.banktabel th:nth-child(5),
.banktabel td:nth-child(5) {
    width: 13%;
}
