:root{
  --groen:rgb(16,77,84);
  --groen-donker:rgb(16,77,84);
  --groen-licht:rgb(16,77,84);
  --oranje:#ed9623;
  --oranje-donker:#d77d0a;
  --achtergrond:#f5f6f4;
  --wit:#ffffff;
  --tekst:rgb(16,77,84);
  --grijs:#718184;
  --rand:#dde5e5;
  --rood:#b54444;
  --succes:rgb(16,77,84);
  --schaduw:0 8px 24px rgba(8,55,61,.10);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  background:var(--achtergrond);
  color:var(--tekst);
}

button,
input{
  font:inherit;
}

button{
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.hidden{
  display:none !important;
}

/* =====================================================
   BOVENBALK
===================================================== */

.header{
  min-height:112px;
  background:
    linear-gradient(
      135deg,
      var(--groen-donker),
      var(--groen)
    );

  color:white;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:12px 28px;
  box-shadow:0 4px 18px rgba(0,0,0,.15);
  position:sticky;
  top:0;
  z-index:20;
}

.brand{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:310px;
}

.logo{
  width:94px;
  height:94px;
  object-fit:contain;
  background:transparent;
  border:none;
  border-radius:0;
  box-shadow:none;
}

.brand-title{
  line-height:1.08;
}

.brand-title strong{
  display:block;
  font-size:29px;
  letter-spacing:.01em;
}

.brand-title span{
  display:block;
  margin-top:7px;
  color:var(--oranje);
  font-size:20px;
  font-style:italic;
  font-weight:700;
}

.nav{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

.nav-button{
  border:0;
  background:transparent;
  color:white;
  min-width:105px;
  padding:13px 12px;
  border-radius:13px;
  opacity:.88;
}

.nav-button:hover{
  background:rgba(255,255,255,.08);
}

.nav-button.active{
  color:var(--oranje);
  opacity:1;
}

.nav-button .nav-icon{
  display:block;
  font-size:25px;
  margin-bottom:4px;
}

.nav-button .nav-label{
  display:block;
  font-size:13px;
  font-weight:700;
}

.employee{
  min-width:150px;
  border-radius:22px;
  padding:13px 17px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.08);
  text-align:center;
}

.employee strong{
  display:block;
}

.employee button{
  border:0;
  background:transparent;
  color:var(--oranje);
  padding:4px;
  font-weight:700;
}

/* =====================================================
   HOOFDINDELING
===================================================== */

.app-layout{
  min-height:calc(100vh - 112px);
  display:grid;
  grid-template-columns:330px minmax(420px,1fr) 365px;
  gap:18px;
  padding:18px;
  padding-bottom:86px;
}

/* =====================================================
   LINKERKOLOM
===================================================== */

.sidebar{
  background:var(--wit);
  border-radius:18px;
  box-shadow:var(--schaduw);
  border:1px solid var(--rand);
  overflow:hidden;
  min-width:0;
}

.sidebar-content{
  padding:15px;
}

.new-account{
  width:100%;
  border:0;
  border-radius:12px;
  background:
    linear-gradient(
      135deg,
      var(--oranje),
      #f69d1b
    );

  color:white;
  font-weight:800;
  font-size:16px;
  padding:15px 18px;
  box-shadow:0 5px 12px rgba(237,150,35,.25);
}

.new-account:hover{
  background:var(--oranje-donker);
}

.search-wrapper{
  position:relative;
  margin:14px 0;
}

.search-wrapper span{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:18px;
}

.search{
  width:100%;
  height:48px;
  padding:0 14px 0 44px;
  background:white;
  border:1px solid var(--rand);
  border-radius:12px;
  color:var(--tekst);
}

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:18px 1px 10px;
  font-size:14px;
  font-weight:850;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.count{
  min-width:26px;
  height:26px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--groen);
  color:white;
  font-size:12px;
}

.accounts{
  display:grid;
  gap:7px;
}

.account{
  border:1px solid var(--rand);
  background:white;
  border-radius:13px;
  padding:13px;
  display:grid;
  grid-template-columns:42px 1fr auto;
  align-items:center;
  gap:10px;
  text-align:left;
}

.account:hover{
  background:#f9fbfa;
}

.account.active{
  border-color:var(--oranje);
  box-shadow:0 0 0 3px rgba(237,150,35,.13);
  background:#fffaf3;
}

.person-icon{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#e7f0ef;
  color:var(--groen);
  font-size:22px;
}

.account-name{
  font-weight:800;
}

.account-info{
  display:block;
  margin-top:2px;
  color:var(--grijs);
  font-size:13px;
}

.account-price{
  color:var(--groen);
  font-weight:850;
  white-space:nowrap;
}

.closed-button{
  width:100%;
  margin-top:14px;
  background:white;
  color:var(--groen);
  border:1px solid var(--rand);
  border-radius:12px;
  padding:13px;
  font-weight:800;
}

/* =====================================================
   MIDDENGEDEEL
===================================================== */

.workspace{
  min-width:0;
}

.empty-state{
  min-height:630px;
  background:white;
  border:1px solid var(--rand);
  border-radius:20px;
  display:grid;
  place-items:center;
  align-content:center;
  text-align:center;
  color:var(--grijs);
  box-shadow:var(--schaduw);
}

.empty-icon{
  font-size:70px;
}

.empty-state h2{
  margin-bottom:3px;
  color:var(--groen);
}

.customer-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 3px 15px;
}

.customer{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  text-align:left;
  min-width:0;
}

.customer-heading{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  min-width:0;
}

.customer-number{
  margin-top:3px;
  color:#6f6f6f;
  font-size:14px;
  font-weight:800;
  letter-spacing:.03em;
}

.customer-name{
  margin:0;
  font-size:30px;
  color:var(--groen-donker);
}

.open-time{
  margin-top:3px;
  text-align:left;
  color:var(--grijs);
  font-size:14px;
}

.total-card{
  min-width:175px;
  padding:13px 18px;
  color:white;
  text-align:center;
  background:
    linear-gradient(
      135deg,
      var(--groen-donker),
      var(--groen)
    );

  border-radius:15px;
  box-shadow:var(--schaduw);
}

.total-card small{
  display:block;
  text-transform:uppercase;
  font-weight:750;
  opacity:.8;
}

.total-card strong{
  display:block;
  color:var(--oranje);
  font-size:34px;
  line-height:1.2;
}

.categories{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:5px 1px 14px;
  scrollbar-width:thin;
}

.category{
  border:1px solid var(--rand);
  background:white;
  color:var(--groen);
  border-radius:99px;
  padding:10px 15px;
  font-weight:750;
  white-space:nowrap;
}

.category.active{
  background:var(--groen);
  color:white;
  border-color:var(--groen);
}


.quantity-selector{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:18px 0 12px;
}

.quantity-label{
  font-weight:850;
  color:var(--groen-donker);
  margin-right:3px;
}


.quantity-input{
  width:72px;
  height:44px;
  border:2px solid var(--rand);
  border-radius:10px;
  text-align:center;
  font-size:18px;
  font-weight:850;
  color:var(--groen-donker);
  background:white;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(130px,1fr));
  gap:13px;
}

.product{
  min-height:150px;
  position:relative;
  border:1px solid var(--rand);
  background:white;
  border-radius:17px;
  padding:14px;
  box-shadow:0 4px 15px rgba(8,55,61,.07);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  text-align:center;
  transition:.10s;
}

.product:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 19px rgba(8,55,61,.12);
}

.product:active{
  transform:scale(.98);
}

.favorite{
  position:absolute;
  left:9px;
  top:8px;
  color:var(--oranje);
  font-size:21px;
}

.product-icon{
  min-height:57px;
  display:grid;
  place-items:center;
  font-size:45px;
}

.product-name{
  font-weight:850;
  font-size:16px;
  color:var(--groen-donker);
}

.product-price{
  color:var(--oranje);
  font-weight:850;
  font-size:17px;
}

.tip{
  text-align:center;
  color:var(--grijs);
  padding:17px 0 0;
  font-size:14px;
}

/* =====================================================
   RECHTERKOLOM
===================================================== */

.receipt{
  min-width:0;
  background:white;
  border:1px solid var(--rand);
  border-radius:18px;
  box-shadow:var(--schaduw);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:645px;
}

.receipt-header{
  background:
    linear-gradient(
      135deg,
      var(--groen-donker),
      var(--groen)
    );

  color:white;
  padding:15px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.receipt-header strong{
  text-transform:uppercase;
  font-size:14px;
  letter-spacing:.04em;
}

.clear-account{
  border:0;
  background:transparent;
  color:white;
  font-size:21px;
}

.receipt-lines{
  flex:1;
  padding:5px 15px;
  overflow:auto;
}

.receipt-empty{
  color:var(--grijs);
  text-align:center;
  margin-top:65px;
}

.receipt-line{
  display:grid;
  grid-template-columns:auto minmax(110px,1fr) minmax(78px,auto);
  gap:10px;
  align-items:center;
  border-bottom:1px solid var(--rand);
  padding:12px 0;
}

.line-quantity-controls{
  display:grid;
  grid-template-columns:36px 38px 36px;
  gap:5px;
  align-items:center;
}

.quantity{
  width:38px;
  height:38px;
  border-radius:9px;
  background:var(--groen);
  color:white;
  display:grid;
  place-items:center;
  font-weight:850;
}

.line-action{
  width:36px;
  height:38px;
  border:0;
  border-radius:9px;
  display:grid;
  place-items:center;
  cursor:pointer;
  font-size:22px;
  font-weight:900;
  line-height:1;
  touch-action:manipulation;
}

.line-minus{
  background:var(--oranje);
  color:white;
}

.line-plus{
  background:var(--oranje);
  color:white;
}

.line-product{
  min-width:0;
  font-weight:750;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.line-price{
  min-width:78px;
  font-weight:750;
  white-space:nowrap;
  text-align:right;
  justify-self:end;
}

.line-action:active{
  transform:scale(.94);
}

@media(max-width:620px){
  .receipt-line{
    grid-template-columns:auto minmax(90px,1fr) minmax(70px,auto);
    gap:8px;
  }

  .line-price{
    min-width:70px;
    font-size:14px;
    color:rgb(16,77,84);
  }
}

@media(max-width:430px){
  .line-quantity-controls{
    grid-template-columns:32px 34px 32px;
    gap:4px;
  }

  .line-action{
    width:32px;
  }

  .quantity{
    width:34px;
  }

  .receipt-line{
    grid-template-columns:auto minmax(76px,1fr) minmax(66px,auto);
    gap:6px;
  }
}

.receipt-bottom{
  padding:15px;
  border-top:1px dashed #cfdada;
}

.receipt-summary-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 135px;
  align-items:center;
  font-size:15px;
  font-weight:750;
  color:#526060;
  margin-bottom:10px;
}

.tip-section{
  margin-bottom:14px;
  padding:12px;
  border:1px solid #dce5e5;
  border-radius:12px;
  background:#f7fafa;
}

.custom-tip-label{
  display:grid;
  grid-template-columns:minmax(0,1fr) 135px;
  align-items:center;
  gap:10px;
  font-size:15px;
  font-weight:850;
  color:#526060;
}

.custom-tip-input-wrap{
  width:135px;
  box-sizing:border-box;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:5px;
  border:1px solid #cbd8d8;
  border-radius:9px;
  padding:5px 8px;
  background:white;
}

.custom-tip-input-wrap input{
  width:88px;
  border:0;
  outline:0;
  background:transparent;
  font:inherit;
  font-weight:800;
  text-align:right;
}

.receipt-total{
  display:grid;
  grid-template-columns:minmax(0,1fr) 135px;
  align-items:center;
  font-size:20px;
  font-weight:850;
  margin-bottom:14px;
}

.receipt-summary-row span:last-child,
.receipt-total span:last-child{
  width:135px;
  text-align:right;
  justify-self:end;
}

.receipt-total span:last-child{
  color:var(--oranje);
  font-size:26px;
}

.finish-button{
  width:100%;
  border:0;
  border-radius:12px;
  padding:16px 13px;
  color:white;
  background:var(--succes);
  font-size:16px;
  font-weight:850;
}

.finish-button small{
  display:block;
  font-weight:500;
  margin-top:2px;
}

.save-button{
  width:100%;
  margin-top:10px;
  border:2px solid var(--rood);
  border-radius:12px;
  padding:13px;
  background:var(--rood);
  color:white;
  font-weight:850;
}

.save-button small{
  display:block;
  font-weight:500;
  margin-top:3px;
}

.save-button.is-return{
  border-color:var(--succes);
  background:var(--succes);
  color:white;
}

/* =====================================================
   ONDERBALK
===================================================== */

.footer{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  height:58px;
  background:var(--groen);
  color:white;
  z-index:19;
  padding:0 25px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 -3px 15px rgba(0,0,0,.13);
}

.footer-group{
  display:flex;
  align-items:center;
  gap:20px;
}

.footer-item{
  opacity:.9;
  font-size:14px;
}

.online{
  display:flex;
  align-items:center;
  gap:7px;
}

.online-dot{
  width:11px;
  height:11px;
  border-radius:50%;
  background:rgb(16,77,84);
}

/* =====================================================
   MODAAL VENSTER
===================================================== */

.modal{
  position:fixed;
  inset:0;
  z-index:50;
  background:rgba(0,25,29,.70);
  display:grid;
  place-items:center;
  padding:18px;
}

.modal-card{
  width:min(630px,96vw);
  max-height:92vh;
  overflow:auto;
  background:white;
  border-radius:22px;
  padding:23px;
  position:relative;
  box-shadow:0 30px 90px rgba(0,0,0,.30);
}

.modal-close{
  position:absolute;
  right:13px;
  top:12px;
  width:39px;
  height:39px;
  border-radius:11px;
  border:0;
  background:#eef3f2;
  color:var(--groen);
  font-size:24px;
}

.modal-card h2{
  margin-top:3px;
  color:var(--groen);
}

.notice{
  border:1px solid #f2cf9a;
  background:#fff6e9;
  color:#72501e;
  border-radius:11px;
  padding:11px 13px;
  font-size:14px;
}

.customer-results{
  max-height:260px;
  overflow:auto;
}

.customer-result{
  width:100%;
  border:1px solid var(--rand);
  background:white;
  border-radius:11px;
  padding:12px;
  text-align:left;
  margin-bottom:7px;
}

.customer-result:hover{
  border-color:var(--oranje);
}

.form-grid{
  display:grid;
  grid-template-columns:1fr .7fr 1fr;
  gap:9px;
}

.form-grid input{
  width:100%;
  border:1px solid var(--rand);
  border-radius:11px;
  padding:12px;
}

.modal-submit{
  width:100%;
  margin-top:11px;
  border:0;
  border-radius:12px;
  background:var(--oranje);
  color:white;
  padding:14px;
  font-weight:850;
}

/* =====================================================
   MOBIELE ONDERNAVIGATIE
===================================================== */

.mobile-nav{
  display:none;
}

/* =====================================================
   TABLET
===================================================== */

@media(max-width:1200px){

  .header{
    min-height:95px;
  }

  .logo{
    width:76px;
    height:76px;
  }

  .brand-title strong{
    font-size:23px;
  }

  .brand-title span{
    font-size:17px;
  }

  .nav-button{
    min-width:78px;
  }

  .app-layout{
    grid-template-columns:290px minmax(380px,1fr);
  }

  .receipt{
    grid-column:2;
  }

  .product-grid{
    grid-template-columns:repeat(3,minmax(125px,1fr));
  }
}

/* =====================================================
   KLEINE TABLET
===================================================== */

@media(max-width:900px){

  .header{
    position:relative;
  }

  .nav,
  .employee{
    display:none;
  }

  .app-layout{
    display:block;
    padding:13px;
    padding-bottom:88px;
  }

  .sidebar{
    margin-bottom:15px;
  }

  .accounts{
    max-height:270px;
    overflow:auto;
  }

  .workspace{
    margin-bottom:15px;
  }

  .receipt{
    min-height:400px;
  }

  .footer{
    display:none;
  }

  .mobile-nav{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    height:70px;
    background:var(--groen);
    color:white;
    z-index:30;
    box-shadow:0 -4px 18px rgba(0,0,0,.18);
  }

  .mobile-nav button{
    border:0;
    background:transparent;
    color:white;
    display:grid;
    place-items:center;
    align-content:center;
    gap:2px;
    font-size:11px;
  }

  .mobile-nav button.active{
    background:var(--oranje);
  }

  .mobile-nav span{
    font-size:21px;
  }
}

/* =====================================================
   TELEFOON
===================================================== */

@media(max-width:600px){

  .header{
    min-height:76px;
    padding:7px 12px;
    position:sticky;
  }

  .brand{
    min-width:0;
    gap:10px;
  }

  .logo{
    width:58px;
    height:58px;
    border-width:3px;
  }

  .brand-title strong{
    font-size:18px;
  }

  .brand-title span{
    margin-top:3px;
    font-size:13px;
  }

  .app-layout{
    padding:10px;
    padding-bottom:82px;
  }

  .sidebar-content{
    padding:11px;
  }

  .new-account{
    padding:13px;
  }

  .section-title{
    margin-top:13px;
  }

  .account{
    grid-template-columns:36px 1fr auto;
    padding:11px;
  }

  .person-icon{
    width:34px;
    height:34px;
  }

  .customer-header{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }

  .customer-name{
    font-size:23px;
  }

  .large-person{
    font-size:38px;
  }

  .total-card{
    width:100%;
    min-width:0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 15px;
  }

  .total-card strong{
    font-size:29px;
  }

  .categories{
    padding-bottom:10px;
  }

  .category{
    padding:9px 13px;
  }

  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }

  .product{
    min-height:126px;
    padding:10px;
  }

  .product-icon{
    min-height:46px;
    font-size:37px;
  }

  .product-name{
    font-size:14px;
  }

  .product-price{
    font-size:15px;
  }

  .tip{
    display:none;
  }

  .receipt{
    min-height:350px;
  }

  .receipt-header{
    padding:13px;
  }

  .receipt-line{
    grid-template-columns:34px 1fr auto 30px;
  }

  .form-grid{
    grid-template-columns:1fr;
  }
}


/* KLANTENOVERZICHT */
.customers-modal-card{max-width:760px;width:min(760px,calc(100% - 30px));}
.customers-overview{display:grid;gap:10px;max-height:390px;overflow:auto;margin-top:16px;padding-right:4px;}
.customer-overview-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:10px;border:1px solid #dfe6e7;border-radius:14px;padding:12px 14px;background:#fff;}
.customer-overview-name{font-weight:800;color:rgb(16,77,84);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.customer-overview-status{display:block;font-size:13px;color:#718184;margin-top:3px;font-weight:500;}
.customer-open-button,.customer-rename-button,.customer-delete-button{border:0;border-radius:10px;padding:10px 13px;font-weight:800;cursor:pointer;}
.customer-open-button{background:var(--oranje);color:#fff;}
.customer-rename-button{background:#e8f0f1;color:rgb(16,77,84);}
.customer-delete-button{background:#f4f6f6;color:#b13d32;}
.customer-delete-button:disabled{opacity:.35;cursor:not-allowed;}
.customers-empty{text-align:center;color:#718184;padding:24px 10px;}
@media(max-width:650px){.customer-overview-row{grid-template-columns:1fr 1fr}.customer-overview-name{grid-column:1/-1}.customer-open-button,.customer-rename-button,.customer-delete-button{width:100%}}


/* =====================================================
   SLIM ZOEKEN NAAR GASTEN – UITKLAPMENU
===================================================== */

.guest-search-container{
  position:relative;
  z-index:40;
}

.guest-search-dropdown{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  right:0;
  max-height:320px;
  overflow-y:auto;
  background:#fff;
  border:1px solid #d8d8d8;
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.18);
  padding:6px;
  z-index:1000;
}

.guest-search-dropdown.hidden{
  display:none;
}

.guest-search-option{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 12px;
  border:0;
  border-radius:9px;
  background:#fff;
  color:#222;
  font:inherit;
  text-align:left;
  cursor:pointer;
}

.guest-search-option:hover,
.guest-search-option.active{
  background:#f2f7f7;
}

.guest-search-option-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.guest-search-option-name{
  font-weight:800;
  line-height:1.2;
}

.guest-search-option-number{
  padding-left:26px;
  color:#6f6f6f;
  font-size:12px;
  font-weight:700;
}

.guest-search-option-status{
  flex:0 0 auto;
  font-size:12px;
  color:#666;
}

.guest-search-empty{
  margin:0;
  padding:12px;
  color:#666;
  font-size:14px;
}


/* =====================================================
   V6: ACTIEF EN OPENSTAAND
===================================================== */
.account-section + .account-section{
  margin-top:20px;
  padding-top:2px;
  border-top:1px solid var(--rand);
}
.outstanding-count{
  background:var(--oranje);
}
.account.outstanding{
  border-left:5px solid var(--oranje);
}
.account.outstanding .person-icon{
  background:#fff1dc;
}
.accounts-empty{
  color:#718184;
  text-align:center;
  font-size:13px;
  padding:8px 4px;
}

/* Fooi wordt uitsluitend handmatig ingevoerd; geen nummerpijltjes. */
#customTipInput::-webkit-outer-spin-button,
#customTipInput::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
#customTipInput{
  appearance:textfield;
  -moz-appearance:textfield;
}

/* =====================================================
   V8.3: OPVALLEND AANTALVAK BOVEN DE PRODUCTEN
===================================================== */
.quantity-selector.quantity-important{
  display:grid;
  grid-template-columns:auto 82px 1fr;
  align-items:center;
  justify-content:start;
  gap:12px;
  margin:8px 0 16px;
  padding:13px 16px;
  border:3px solid var(--oranje);
  border-radius:15px;
  background:#fff7ea;
  box-shadow:0 0 0 0 rgba(237,150,35,.45);
  animation:quantityAttention 1.8s ease-in-out infinite;
}

.quantity-important .quantity-label{
  margin:0;
  color:var(--groen-donker);
  font-size:18px;
  letter-spacing:.5px;
}

.quantity-important .quantity-input{
  width:82px;
  height:52px;
  border:3px solid var(--groen);
  border-radius:11px;
  font-size:25px;
  line-height:1;
  background:#fff;
  outline:none;
  /* V8.31: tekstcursor verborgen; invoeren met muis of toetsenbord blijft werken. */
  caret-color:transparent;
  animation:quantityNumberBlink 1.15s steps(1,end) infinite;
}

/* Geen grijze selectiebalk achter het getal. */
.quantity-important .quantity-input::selection{
  background:transparent;
  color:inherit;
}

.quantity-important .quantity-input:focus{
  border-color:var(--oranje);
  box-shadow:0 0 0 4px rgba(237,150,35,.22);
}

.quantity-help{
  color:#5f6e70;
  font-size:14px;
  font-weight:700;
}

@keyframes quantityAttention{
  0%,100%{ box-shadow:0 0 0 0 rgba(237,150,35,.38); }
  50%{ box-shadow:0 0 0 7px rgba(237,150,35,0); }
}

@keyframes quantityNumberBlink{
  0%,48%,100%{ color:var(--groen-donker); }
  49%,78%{ color:transparent; }
}

@media (prefers-reduced-motion:reduce){
  .quantity-selector.quantity-important,
  .quantity-important .quantity-input{ animation:none; }
}

@media (max-width:720px){
  .quantity-selector.quantity-important{
    grid-template-columns:auto 76px;
  }
  .quantity-help{
    grid-column:1 / -1;
  }
}


/* KLANTNAAM WIJZIGEN – alle drie velden verplicht */
.rename-customer-modal-card{width:min(720px,96vw);}
.rename-customer-fields{margin-top:18px;}
.rename-customer-fields label{display:grid;gap:7px;color:rgb(16,77,84);font-weight:800;}
.rename-customer-fields label span{font-size:13px;}
.rename-customer-fields input:focus{outline:3px solid rgba(237,150,35,.22);border-color:var(--oranje);}
.rename-validation-message{margin:12px 0 0;padding:11px 13px;border-radius:10px;background:#fff0ee;color:#a5352b;font-weight:800;}


/* =====================================================
   V8.7: CURSOR EN KNIPPEREND FOOIVELD BIJ HUIDIGE REKENING
===================================================== */
.receipt-header strong{
  cursor:text;
}

.custom-tip-input-wrap:focus-within{
  border-color:var(--oranje);
  box-shadow:0 0 0 4px rgba(237,150,35,.22);
}

#customTipInput:focus{
  animation:tipNumberBlink 1.15s steps(1,end) infinite;
  caret-color:var(--groen-donker);
}

#customTipInput::selection{
  background:transparent;
  color:inherit;
}

@keyframes tipNumberBlink{
  0%,48%,100%{ color:var(--groen-donker); }
  49%,78%{ color:transparent; }
}

@media (prefers-reduced-motion:reduce){
  #customTipInput:focus{ animation:none; }
}

/* =====================================================
   V8.14 - KLANTENKAARTEN
===================================================== */

.accounts{
  gap:12px;
}

.account-card{
  position:relative;
  width:100%;
  min-height:174px;
  overflow:hidden;
  border:1px solid rgba(16,77,84,.14);
  border-radius:18px;
  background:linear-gradient(155deg,#ffffff 0%,#f7fbfa 100%);
  box-shadow:0 8px 22px rgba(16,77,84,.09);
  padding:16px 46px 15px 16px;
  color:var(--tekst);
  text-align:left;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  -webkit-tap-highlight-color:transparent;
}

.account-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:var(--groen);
}

.account-card:hover{
  transform:translateY(-2px);
  border-color:rgba(16,77,84,.32);
  box-shadow:0 12px 28px rgba(16,77,84,.14);
}

.account-card:active{
  transform:scale(.985);
}

.account-card.active{
  border-color:var(--oranje);
  background:linear-gradient(155deg,#fffdf9 0%,#fff6e8 100%);
  box-shadow:0 0 0 3px rgba(237,150,35,.15),0 12px 28px rgba(16,77,84,.12);
}

.account-card.active::before,
.account-card.outstanding::before{
  background:var(--oranje);
}

.account-card-topline{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.account-card-number{
  display:block;
  width:100%;
  margin-top:5px;
  color:#707070;
  font-size:13px;
  font-weight:800;
  letter-spacing:.03em;
}

.account-card-status{
  width:12px;
  height:12px;
  flex:0 0 12px;
  border-radius:50%;
  box-shadow:0 0 0 4px rgba(0,0,0,.04);
}

.account-card-status.low{ background:rgb(16,77,84); }
.account-card-status.medium{ background:var(--oranje); }
.account-card-status.high{ background:#d94a4a; }

.account-card-name{
  display:block;
  width:100%;
  margin-top:0;
  color:var(--groen);
  font-size:20px;
  line-height:1.2;
  font-weight:900;
  overflow-wrap:anywhere;
}

.account-card-amount{
  display:block;
  margin-top:9px;
  color:var(--groen);
  font-size:27px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.03em;
}

.account-card-meta{
  display:grid;
  gap:5px;
  margin-top:13px;
  color:var(--grijs);
  font-size:13px;
  font-weight:700;
}

.account-card-arrow{
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  color:var(--oranje);
  font-size:36px;
  line-height:1;
  font-weight:500;
}

@media(max-width:900px){
  .accounts{
    max-height:none;
    overflow:visible;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:600px){
  .accounts{
    grid-template-columns:1fr;
  }

  .account-card{
    min-height:160px;
    padding:14px 43px 14px 15px;
  }

  .account-card-name{
    font-size:19px;
  }

  .account-card-amount{
    font-size:25px;
  }
}

/* =====================================================
   V8.15 - SCROLBARE KLANTENKOLOM
===================================================== */

@media(min-width:901px){
  .app-layout{
    align-items:start;
  }

  .sidebar{
    position:sticky;
    top:130px;
    height:calc(100vh - 148px);
  }

  .sidebar-content{
    height:100%;
    min-height:0;
    display:flex;
    flex-direction:column;
  }

  .guest-search-container{
    flex:0 0 auto;
    z-index:5;
  }

  .account-list-scroll{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    padding-right:5px;
    padding-bottom:8px;
  }

  .account-list-scroll::-webkit-scrollbar{
    width:9px;
  }

  .account-list-scroll::-webkit-scrollbar-track{
    background:#edf3f2;
    border-radius:999px;
  }

  .account-list-scroll::-webkit-scrollbar-thumb{
    background:rgba(16,77,84,.38);
    border:2px solid #edf3f2;
    border-radius:999px;
  }

  .account-list-scroll::-webkit-scrollbar-thumb:hover{
    background:rgba(16,77,84,.58);
  }
}

@media(max-width:900px){
  .account-list-scroll{
    max-height:58vh;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding-right:4px;
  }
}

/* =====================================================
   V8.16 – ACTIEVE KLANT EN SCROLLBAAR BESTELGEDEELTE
===================================================== */

/* De geselecteerde rekening valt direct op in de klantenlijst. */
.account-card.active,
.account-card.active:hover,
.account-card.active:focus-visible{
  background:rgb(16,77,84);
  border:3px solid var(--oranje);
  color:var(--wit);
  box-shadow:0 0 0 2px rgba(237,150,35,.18),0 7px 18px rgba(16,77,84,.28);
}

.account-card.active::before{
  background:var(--oranje);
}

.account-card.active .account-card-number,
.account-card.active .account-card-name,
.account-card.active .account-card-amount,
.account-card.active .account-card-meta,
.account-card.active .account-card-arrow{
  color:var(--wit);
}

.account-card.active .account-card-meta{
  opacity:.95;
}

.account-card.active .account-card-status{
  background:var(--wit);
  border:2px solid rgba(255,255,255,.45);
}

/* Op brede schermen scrollt alleen het middelste bestelgedeelte. */
@media (min-width:1101px){
  .workspace{
    height:calc(100vh - 148px);
    min-height:0;
    overflow:hidden;
  }

  #customerWorkspace{
    height:100%;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    padding-right:6px;
  }

  #customerWorkspace::-webkit-scrollbar{
    width:10px;
  }

  #customerWorkspace::-webkit-scrollbar-track{
    background:#eaf0ef;
    border-radius:999px;
  }

  #customerWorkspace::-webkit-scrollbar-thumb{
    background:rgb(16,77,84);
    border-radius:999px;
    border:2px solid #eaf0ef;
  }

  #customerWorkspace::-webkit-scrollbar-thumb:hover{
    background:var(--groen-licht);
  }
}

/* =====================================================
   V8.17 – PAGINA VAST, ALLEEN BESTELGEDEELTE SCROLBAAR
===================================================== */

@media (min-width:901px){
  html,
  body{
    width:100%;
    height:100%;
    overflow:hidden;
  }

  .header{
    position:relative;
    height:112px;
    min-height:112px;
  }

  .app-layout{
    height:calc(100dvh - 112px - 58px);
    min-height:0;
    padding:18px;
    padding-bottom:18px;
    align-items:stretch;
    overflow:hidden;
  }

  .sidebar{
    position:relative;
    top:auto;
    height:100%;
    min-height:0;
  }

  .workspace{
    height:100%;
    min-height:0;
    overflow:hidden;
  }

  #customerWorkspace{
    height:100%;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    padding-right:6px;
    -webkit-overflow-scrolling:touch;
  }

  #customerWorkspace::-webkit-scrollbar{
    width:10px;
  }

  #customerWorkspace::-webkit-scrollbar-track{
    background:#eaf0ef;
    border-radius:999px;
  }

  #customerWorkspace::-webkit-scrollbar-thumb{
    background:rgb(16,77,84);
    border-radius:999px;
    border:2px solid #eaf0ef;
  }

  #customerWorkspace::-webkit-scrollbar-thumb:hover{
    background:var(--groen-licht);
  }
}


/* =====================================================
   V8.18 – HUISSTIJL EN ACTIEVE KLANT
===================================================== */
.account-card.active,
.account-card.active:hover,
.account-card.active:focus-visible{
  background:rgb(16,77,84);
  border:3px solid var(--oranje);
  color:#fff;
}


/* =====================================================
   V8.22 – FOOI-UITLIJNING EN RUSTIGE REKENINGKOP
===================================================== */
.receipt-header{
  justify-content:flex-start;
}

.tip-section{
  padding:12px 0 12px 12px;
}

.custom-tip-label{
  width:100%;
  grid-template-columns:minmax(0,1fr) 135px;
  gap:0;
}

.custom-tip-input-wrap{
  justify-self:end;
}

/* =====================================================
   V8.23 – BREDE BEDRAGVAKKEN EN EXACTE FOOI-UITLIJNING
===================================================== */
.receipt-summary-row,
.custom-tip-label,
.receipt-total{
  grid-template-columns:minmax(0,1fr) 165px;
}

.receipt-summary-row span:last-child,
.receipt-total span:last-child{
  width:165px;
  box-sizing:border-box;
  text-align:right;
  justify-self:end;
}

/* Geen horizontale inspringing: het fooivak eindigt exact op dezelfde lijn. */
.tip-section{
  padding:12px 0;
}

.custom-tip-label{
  gap:12px;
}

.custom-tip-input-wrap{
  width:165px;
  box-sizing:border-box;
  justify-self:end;
  padding:6px 10px;
}

.custom-tip-input-wrap input{
  width:112px;
}

/* =====================================================
   V8.24 – FOOIBEDRAG EN KLANTENLIJST
===================================================== */
/* Alle bedragen eindigen op exact dezelfde verticale lijn. */
.receipt-summary-row span:last-child,
.receipt-total span:last-child{
  padding-right:10px;
}

.custom-tip-input-wrap{
  padding-right:10px;
}

.custom-tip-input-wrap input{
  box-sizing:border-box;
  margin:0;
  padding:0;
  text-align:right;
}

.customer-result{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.customer-result-name{
  font-weight:800;
}

.customer-result-number{
  margin-top:3px;
  padding-left:26px;
  color:#6f6f6f;
  font-size:12px;
  font-weight:700;
}
