/* /styles-modal-kaart.css */

/* ==========================================
   basis hoogteketen
   ========================================== */
html,
body,
body.ndkaart-modal{
  height:100%;
  min-height:100%;
  margin:0;
  padding:0;
}

/* ==========================================
   scope: alleen binnen het modal
   ========================================== */
#modalKaartBg,
#modalKaartBg *{
  box-sizing:border-box;
  font-family:"Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

.modal-kaart-bg,
.modal-kaart-bg *{
  box-sizing:border-box;
  font-family:"Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

/* Modal achtergrond vult altijd volledig */
#modalKaartBg.modal-kaart-bg,
.modal-kaart-bg{
  width:100%;
  height:100%;
  min-height:100%;
  display:flex;
  flex-direction:column;
}

/* extra stevig voor kleinere schermen / iframe situaties */
body.ndkaart-modal .modal-kaart-bg{
  min-height:100dvh;
}

/* Verberg extra kruisje in kaart.php */
.modal-kaart-close{
  display:none !important;
}

/* hoofdcontainer */
.modal-kaart-container{
  width:100%;
  max-width:1040px;
  margin:0 auto;
  padding:3px 8px 0;
  color:#111;
  font-family:"Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  overflow:hidden;
  height:100%;
  min-height:100%;
  display:flex;
  flex-direction:column;
}

/* header compacter */
.modal-kaart-headerblock{
  padding-top:0;
  flex:0 0 auto;
}

.modal-kaart-headerflex{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:center;
  color:#ddd;
}

.modal-kaart-header-title{
  font-weight:700;
  color:#fff;
}

.modal-kaart-header-sep{
  color:#666;
}

.modal-kaart-header-datum{
  color:#bbb;
}

.modal-kaart-hr{
  border:0;
  border-top:1px solid #333;
  margin:2px 0 4px;
}

/* twee kolommen */
.modal-kaart-flex{
  display:flex;
  gap:9px;
  width:100%;
  max-width:100%;
  align-items:stretch;
  flex:1 1 auto;
  min-height:0;
  height:100%;
}

@media (max-width: 860px){
  .modal-kaart-flex{
    flex-direction:column;
    height:auto;
  }

  .modal-kaart-divider{
    display:none;
  }
}

.modal-kaart-deel{
  flex:1 1 0;
  min-width:0;
  max-width:100%;
  background:rgba(0,0,0,0.25);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  padding:8px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:0;
  height:100%;
}

.modal-kaart-deel-links{
  flex:1.1 1 0;
  align-self:stretch;
  height:100%;
  min-height:0;
}

.modal-kaart-deel-rechts{
  flex:0.9 1 0;
  align-self:stretch;
  height:100%;
  min-height:0;
}

.modal-kaart-divider{
  width:1px;
  background:rgba(255,255,255,0.10);
}

.modal-kaart-block-title{
  color:#fff;
  font-weight:700;
  font-size:0.92rem;
  margin-bottom:5px;
  text-align:center;
  line-height:1.2;
  flex:0 0 auto;
}

/* lijst links */
.modal-kaart-items{
  display:flex;
  flex-direction:column;
  gap:7px;
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding-right:5px;
  align-self:stretch;
}

/* belangrijke fix voor flex-hoogte */
.modal-kaart-deel-links .modal-kaart-items{
  height:100%;
}

.modal-kaart-item{
  border:1px solid rgba(255,255,255,0.10);
  border-radius:12px;
  padding:8px;
  background:rgba(0,0,0,0.20);
  display:block;
  position:relative;
  transition:border-color .18s ease, background .18s ease, transform .18s ease;
  cursor:pointer;
  text-align:left;
}

.modal-kaart-item:hover{
  background:rgba(255,255,255,0.03);
  border-color:rgba(255,255,255,0.16);
}

.modal-kaart-item-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}

.modal-kaart-item-name{
  color:#fff;
  font-weight:700;
  font-size:0.88rem;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
  flex:1 1 auto;
  max-width:100%;
  text-align:left;
}

.modal-kaart-item-bij{
  margin-top:4px;
  color:#bbb;
  font-size:0.81em;
  line-height:1.28;
  word-break:break-word;
  text-align:left;
}

.modal-kaart-item-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex:0 0 auto;
  min-width:0;
}

.modal-kaart-item-info-group{
  display:flex;
  align-items:center;
  gap:6px;
  padding-right:2px;
}

.modal-kaart-item-action-group{
  display:flex;
  align-items:center;
  gap:6px;
  padding-left:8px;
  margin-left:2px;
  border-left:1px solid rgba(255,255,255,0.10);
}

@media (max-width: 640px){
  .modal-kaart-item-top{
    flex-direction:column;
    align-items:stretch;
  }

  .modal-kaart-item-meta{
    width:100%;
    justify-content:space-between;
  }

  .modal-kaart-item-action-group{
    margin-left:0;
  }
}

/* formulier rechts */
.modal-kaart-form{
  display:flex;
  flex-direction:column;
  gap:4px;
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding-right:2px;
}

.modal-kaart-label{
  display:block;
  color:#bbb;
  font-size:0.80em;
  margin-bottom:0;
  text-align:center;
  line-height:1.16;
}

.modal-kaart-input,
.modal-kaart-textarea{
  width:100%;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(0,0,0,0.25);
  padding:6px 10px;
  color:#fff;
  outline:none;
  min-height:30px;
  font-size:0.81rem;
  font-family:"Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

.modal-kaart-input:focus,
.modal-kaart-textarea:focus{
  border-color:rgba(255,166,0,0.45);
  box-shadow:0 0 0 3px rgba(255,166,0,0.10);
}

.modal-kaart-textarea{
  min-height:54px;
  resize:vertical;
}

/* prijs + aantal */
.modal-kaart-row{
  display:flex;
  gap:8px;
  align-items:flex-start;
}

.modal-kaart-row--topfields{
  align-items:flex-start;
}

@media (max-width: 520px){
  .modal-kaart-row{
    flex-direction:column;
  }
}

.modal-kaart-col{
  min-width:0;
}

.modal-kaart-col--pricecat{
  flex:0 0 52%;
}

.modal-kaart-col--amountdate{
  flex:0 0 36%;
  display:flex;
  flex-direction:column;
  min-width:0;
}

@media (max-width: 520px){
  .modal-kaart-col:first-child,
  .modal-kaart-col:last-child{
    flex:1 1 auto;
    width:100%;
  }
}

/* knoppen algemeen */
.modal-kaart-btn{
  margin-top:0;
  border:0;
  background:#ffa600;
  color:#111;
  font-weight:700;
  font-size:0.75rem;
  padding:4px 8px;
  border-radius:10px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:25px;
  min-width:0;
  line-height:1.08;
  transition:transform .15s ease, opacity .15s ease, background .15s ease, border-color .15s ease;
  font-family:"Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

.modal-kaart-btn:hover{
  transform:translateY(-1px);
}

.modal-kaart-btn:active{
  transform:translateY(0);
}

.modal-kaart-btn:disabled{
  opacity:0.55;
  cursor:default;
  filter:grayscale(1);
  transform:none;
}

.modal-kaart-btn:disabled:hover{
  background:#ffa600;
}

.modal-kaart-btn-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.modal-kaart-btn-icon svg{
  width:13px;
  height:13px;
}

.modal-kaart-btn-label{
  display:inline-block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* knoprijen */
.modal-kaart-btnrow{
  display:flex;
  gap:6px;
  align-items:stretch;
  margin-top:3px;
  width:100%;
}

.modal-kaart-btnrow .modal-kaart-btn{
  flex:1 1 0;
}

@media (max-width: 640px){
  .modal-kaart-btnrow{
    flex-direction:column;
    align-items:stretch;
  }
}

/* status en beheerblokken rechts */
.modal-kaart-action-group{
  margin-top:5px;
  padding:7px;
  border-radius:12px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  flex:0 0 auto;
}

.modal-kaart-action-title{
  color:#ddd;
  font-size:0.79em;
  font-weight:700;
  margin-bottom:1px;
  text-align:center;
  line-height:1.15;
}

.modal-kaart-btnrow--status{
  margin-top:3px;
}

.modal-kaart-btnrow--manage{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:6px;
  margin-top:3px;
}

.modal-kaart-btnrow--manage .modal-kaart-btn{
  width:100%;
}

.modal-kaart-btn--ghost{
  background:rgba(255,255,255,0.08);
  color:#fff;
  border:1px solid rgba(255,255,255,0.18);
  font-weight:700;
}

.modal-kaart-btn--ghost:hover{
  background:rgba(255,255,255,0.12);
}

.modal-kaart-btn--ghost:disabled{
  opacity:0.55;
  cursor:default;
  filter:grayscale(1);
}

.modal-kaart-btn--danger{
  background:rgba(255,80,80,0.18);
  color:#ffd7d7;
  border:1px solid rgba(255,80,80,0.32);
}

.modal-kaart-btn--danger:hover{
  background:rgba(255,80,80,0.24);
}

.modal-kaart-btn--ok{
  background:rgba(57,211,83,0.18);
  color:#dfffe6;
  border:1px solid rgba(57,211,83,0.34);
}

.modal-kaart-btn--ok:hover{
  background:rgba(57,211,83,0.24);
}

.modal-kaart-btn--online{
  background:rgba(69,156,255,0.16);
  color:#e4f1ff;
  border:1px solid rgba(69,156,255,0.30);
}

.modal-kaart-btn--online:hover{
  background:rgba(69,156,255,0.22);
}

.modal-kaart-hint{
  margin-top:3px;
  color:#aaa;
  font-size:0.73em;
  line-height:1.2;
  text-align:center;
}

.modal-kaart-leeg{
  color:#aaa;
  text-align:center;
  padding:16px 0;
}

/* bijgerechten editor */
.modal-kaart-bij-editor{
  min-height:34px;
  max-height:56px;
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  align-items:center;
  gap:5px;
  cursor:text;
  padding-top:3px;
  padding-bottom:3px;
  overflow-y:auto;
}

.modal-kaart-bij-editor:empty:before{
  content:attr(data-placeholder);
  color:#777;
}

.modal-kaart-bij-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15);
  color:#fff;
  font-size:0.75em;
  white-space:nowrap;
  line-height:1.1;
  font-family:"Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

.modal-kaart-bij-chip-x{
  cursor:pointer;
  font-weight:700;
  color:#bbb;
}

/* number input pijltjes weg */
.modal-kaart-input[type="number"]::-webkit-inner-spin-button,
.modal-kaart-input[type="number"]::-webkit-outer-spin-button{
  -webkit-appearance:none;
  margin:0;
}

.modal-kaart-input[type="number"]{
  -moz-appearance:textfield;
  appearance:textfield;
}

/* prijs input met vaste euro */
.modal-kaart-moneywrap{
  position:relative;
  width:100%;
}

.modal-kaart-money-euro{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:rgba(255,255,255,0.65);
  font-weight:700;
  pointer-events:none;
  font-size:0.84rem;
  z-index:2;
  line-height:1;
}

.modal-kaart-input--money{
  padding-left:34px !important;
}

/* linkerlijst meta boxes */
.modal-kaart-meta-box{
  height:22px;
  min-width:68px;
  padding:0 8px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:0.72rem;
  border:1px solid transparent;
  flex:0 0 auto;
  background:rgba(255,255,255,0.04);
  color:#fff;
  text-align:center;
  font-family:"Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

.modal-kaart-meta-box--price{
  background:rgba(255,194,75,0.12);
  border-color:rgba(255,194,75,0.26);
  color:#fff;
}

.modal-kaart-meta-box--count{
  background:rgba(255,165,0,0.11);
  border-color:rgba(255,165,0,0.24);
  color:orange;
}

.modal-kaart-meta-box--icon{
  width:34px;
  min-width:34px;
  padding:0;
  cursor:pointer;
  user-select:none;
  background:transparent;
}

.modal-kaart-meta-box--status{
  position:relative;
}

.modal-kaart-meta-box--ok{
  background:rgba(57,211,83,0.18);
  border-color:rgba(57,211,83,0.40);
  color:#39d353;
}

.modal-kaart-meta-box--no{
  background:rgba(255,80,80,0.16);
  border-color:rgba(255,80,80,0.36);
  color:rgba(255,120,120,0.95);
}

.modal-kaart-meta-box--icon:hover{
  transform:translateY(-1px);
}

.modal-kaart-meta-box--icon:active{
  transform:translateY(0);
}

/* kolom met prijs + categorie */
.modal-kaart-col--stack{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.modal-kaart-col--stack .modal-kaart-label--compact{
  margin-top:4px;
}

.modal-kaart-select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 3px),
    calc(100% - 10px) calc(50% - 3px);
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
  padding-right:28px;
}

.modal-kaart-select option{
  color:#111;
  background:#fff;
}

/* extra compact op kleinere schermen */
@media (max-width: 1100px){
  .modal-kaart-container{
    max-width:1000px;
    padding:2px 7px 0;
    height:100%;
    min-height:100%;
  }

  .modal-kaart-deel{
    padding:7px;
  }

  .modal-kaart-flex{
    gap:8px;
    height:100%;
  }

  .modal-kaart-form{
    gap:4px;
  }

  .modal-kaart-action-group{
    padding:6px;
    margin-top:4px;
  }

  .modal-kaart-btn{
    font-size:0.74rem;
    padding:4px 7px;
    min-height:25px;
    gap:4px;
  }

  .modal-kaart-btn-icon svg{
    width:12px;
    height:12px;
  }

  .modal-kaart-bij-editor{
    min-height:32px;
    max-height:50px;
  }

  .modal-kaart-meta-box{
    min-width:62px;
    font-size:0.70rem;
    height:21px;
    padding:0 7px;
  }

  .modal-kaart-meta-box--icon{
    width:32px;
    min-width:32px;
  }
}

@media (max-width: 900px){
  .modal-kaart-btnrow--manage{
    grid-template-columns:1fr 1fr;
  }

  .modal-kaart-btnrow--manage .modal-kaart-btn:last-child{
    grid-column:1 / -1;
  }
}

@media (max-width: 700px){
  .modal-kaart-container{
    padding:2px 6px 0;
  }

  .modal-kaart-deel{
    padding:6px;
  }

  .modal-kaart-block-title{
    font-size:0.88rem;
  }

  .modal-kaart-item{
    padding:7px;
  }

  .modal-kaart-item-name{
    font-size:0.84rem;
  }

  .modal-kaart-item-bij{
    font-size:0.78em;
  }

  .modal-kaart-label{
    font-size:0.78em;
  }

  .modal-kaart-input,
  .modal-kaart-textarea{
    font-size:0.78rem;
    min-height:28px;
    padding:5px 9px;
  }

  .modal-kaart-textarea{
    min-height:50px;
  }

  .modal-kaart-row{
    gap:6px;
  }

  .modal-kaart-col--pricecat{
    flex:0 0 52%;
  }

  .modal-kaart-col--amountdate{
    flex:0 0 34%;
  }

  .modal-kaart-col--stack .modal-kaart-label--compact{
    margin-top:4px;
  }

  .modal-kaart-btn{
    font-size:0.72rem;
    min-height:24px;
    padding:4px 6px;
  }

  .modal-kaart-btn-icon svg{
    width:12px;
    height:12px;
  }

  .modal-kaart-action-title{
    font-size:0.76em;
  }

  .modal-kaart-hint{
    font-size:0.71em;
  }

  .modal-kaart-meta-box{
    min-width:58px;
    height:20px;
    font-size:0.69rem;
    padding:0 6px;
  }

  .modal-kaart-meta-box--icon{
    width:30px;
    min-width:30px;
  }

  .modal-kaart-bij-editor{
    min-height:30px;
    max-height:44px;
    gap:4px;
    padding-top:2px;
    padding-bottom:2px;
  }

  .modal-kaart-input--money{
    padding-left:32px !important;
  }
}

@media (max-width: 640px){
  .modal-kaart-btnrow--manage{
    grid-template-columns:1fr;
  }

  .modal-kaart-btnrow--manage .modal-kaart-btn:last-child{
    grid-column:auto;
  }
}

@media (max-width: 520px){
  .modal-kaart-col--pricecat,
  .modal-kaart-col--amountdate,
  .modal-kaart-col--stack{
    flex:1 1 auto;
    width:100%;
  }
}

/* lage schermen */
@media (max-height: 920px){
  .modal-kaart-container{
    height:100%;
    min-height:100%;
    max-width:1050px;
    padding:2px 8px 0;
  }

  .modal-kaart-hr{
    margin:2px 0 4px;
  }

  .modal-kaart-deel{
    padding:7px;
  }

  .modal-kaart-block-title{
    margin-bottom:4px;
    font-size:0.90rem;
  }

  .modal-kaart-form{
    gap:3px;
  }

  .modal-kaart-label{
    font-size:0.79em;
  }

  .modal-kaart-input,
  .modal-kaart-textarea{
    min-height:28px;
    padding:5px 9px;
    font-size:0.80rem;
  }

  .modal-kaart-bij-editor{
    min-height:30px;
    max-height:46px;
    gap:4px;
    padding-top:2px;
    padding-bottom:2px;
  }

  .modal-kaart-bij-chip{
    padding:3px 7px;
    font-size:0.74em;
  }

  .modal-kaart-row{
    gap:6px;
  }

  .modal-kaart-action-group{
    margin-top:4px;
    padding:6px;
  }

  .modal-kaart-action-title{
    font-size:0.78em;
    margin-bottom:1px;
  }

  .modal-kaart-btnrow{
    margin-top:2px;
    gap:5px;
  }

  .modal-kaart-btnrow--manage{
    gap:5px;
  }

  .modal-kaart-btn{
    min-height:24px;
    font-size:0.73rem;
    padding:4px 7px;
  }

  .modal-kaart-btn-icon svg{
    width:12px;
    height:12px;
  }

  .modal-kaart-hint{
    margin-top:2px;
    font-size:0.70em;
    line-height:1.16;
  }

  .modal-kaart-items{
    gap:6px;
  }

  .modal-kaart-item{
    padding:7px;
  }

  .modal-kaart-item-name{
    font-size:0.84rem;
  }

  .modal-kaart-item-bij{
    margin-top:3px;
    font-size:0.78em;
    line-height:1.22;
  }

  .modal-kaart-meta-box{
    min-width:58px;
    height:20px;
    font-size:0.69rem;
  }

  .modal-kaart-meta-box--icon{
    width:30px;
    min-width:30px;
  }

  .modal-kaart-input--money{
    padding-left:34px !important;
  }
}

@media (max-height: 820px){
  .modal-kaart-container{
    padding:2px 7px 0;
  }

  .modal-kaart-deel{
    padding:6px;
  }

  .modal-kaart-block-title{
    font-size:0.87rem;
    margin-bottom:3px;
  }

  .modal-kaart-input,
  .modal-kaart-textarea{
    min-height:27px;
    padding:4px 8px;
    font-size:0.78rem;
  }

  .modal-kaart-bij-editor{
    min-height:28px;
    max-height:40px;
  }

  .modal-kaart-action-group{
    padding:5px;
    margin-top:4px;
  }

  .modal-kaart-btn{
    min-height:24px;
    font-size:0.71rem;
    padding:3px 6px;
  }

  .modal-kaart-hint{
    font-size:0.69em;
  }

  .modal-kaart-input--money{
    padding-left:33px !important;
  }
}

.modal-kaart-input--compact{
  min-height:28px;
  padding:5px 9px;
  font-size:0.77rem;
}

/* ==========================================
   datumveld volledig in stijl
   ========================================== */
#kaartBeschikbaarVanaf.modal-kaart-input,
.modal-kaart-input[type="date"]{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  width:100%;
  min-height:28px;
  padding:5px 40px 5px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.12);
  background-color:rgba(0,0,0,0.25);
  color:#fff;
  font-size:0.77rem;
  font-family:"Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  line-height:1.2;
  outline:none;
  box-shadow:none;
  position:relative;
  color-scheme:dark;
  accent-color:orange;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.2' ry='2.2'/%3E%3Cpath d='M8 3.8v3.4M16 3.8v3.4M3.5 9.2h17'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-size:16px 16px;
  background-position:right 12px center;
  cursor:pointer;
}

/* focus zoals rest */
.modal-kaart-input[type="date"]:focus,
#kaartBeschikbaarVanaf.modal-kaart-input:focus{
  border-color:rgba(255,166,0,0.45);
  box-shadow:0 0 0 3px rgba(255,166,0,0.10);
  outline:none;
}

/* tekst in het veld */
.modal-kaart-input[type="date"]::-webkit-datetime-edit,
.modal-kaart-input[type="date"]::-webkit-datetime-edit-fields-wrapper{
  color:#fff;
  background:transparent;
  padding:0;
}

.modal-kaart-input[type="date"]::-webkit-datetime-edit-text{
  color:rgba(255,255,255,0.62);
  padding:0 1px;
}

.modal-kaart-input[type="date"]::-webkit-datetime-edit-day-field,
.modal-kaart-input[type="date"]::-webkit-datetime-edit-month-field,
.modal-kaart-input[type="date"]::-webkit-datetime-edit-year-field{
  color:#fff;
  background:transparent;
}

.modal-kaart-input[type="date"]::-webkit-date-and-time-value{
  text-align:left;
  min-height:1.2em;
}

/* native icon onzichtbaar maken maar klikbaar houden */
.modal-kaart-input[type="date"]::-webkit-calendar-picker-indicator{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
  margin:0;
  padding:0;
}

/* wissen / clear knop zo neutraal mogelijk */
.modal-kaart-input[type="date"]::-webkit-clear-button{
  -webkit-appearance:none;
  appearance:none;
  opacity:0;
  pointer-events:none;
  width:0;
  margin:0;
}

.modal-kaart-input[type="date"]::-webkit-inner-spin-button{
  display:none;
}

/* placeholder-achtige look als veld leeg is */
.modal-kaart-input[type="date"]:invalid{
  color:rgba(255,255,255,0.72);
}

/* Firefox */
.modal-kaart-input[type="date"]::-moz-focus-inner{
  border:0;
}

/* hint onder datum */
.modal-kaart-col--amountdate .modal-kaart-hint{
  margin-top:6px;
  font-size:0.69em;
  line-height:1.18;
}

/* categorieen links */
.modal-kaart-items .nd-kaart-category{
  margin-top:14px;
  margin-bottom:6px;
}

.modal-kaart-items .nd-kaart-category:first-child{
  margin-top:0;
}

.modal-kaart-items .nd-kaart-category-title{
  font-size:11px;
  font-weight:800;
  color:rgba(255,166,0,0.95);
  text-transform:uppercase;
  letter-spacing:0.08em;
  text-align:left;
  padding:0 2px;
}

.modal-kaart-items .nd-kaart-category-line{
  height:1px;
  background:rgba(255,166,0,0.22);
  margin-top:5px;
  margin-bottom:2px;
  width:100%;
}

/* Meer ruimte op kleinere schermen */
@media (max-width: 900px){
  .modal-kaart-content{
    max-height:90vh;
  }
}

@media (max-width: 700px){
  .modal-kaart-content{
    max-height:94vh;
  }
}

@media (max-width: 520px){
  .modal-kaart-content{
    max-height:96vh;
  }
}

.modal-kaart-content{
  overflow-y:auto;
}

.modal-kaart-item-beschikbaar-vanaf{
  margin-top:6px;
  margin-bottom:2px;
  color:#ff6b6b;
  font-size:0.78em;
  font-weight:700;
  line-height:1.25;
  text-align:left;
}

/* Extra strakke windows-achtige afwerking binnen kaartmodal */
.modal-kaart-block-title{
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-align: center;
}

.modal-kaart-deel{
  padding: 10px;
}

.modal-kaart-items::-webkit-scrollbar,
.modal-kaart-form::-webkit-scrollbar{
  width: 8px;
}

.modal-kaart-items::-webkit-scrollbar-track,
.modal-kaart-form::-webkit-scrollbar-track{
  background: rgba(0,0,0,0.32);
  border-radius: 999px;
}

.modal-kaart-items::-webkit-scrollbar-thumb,
.modal-kaart-form::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, #ffb300 0%, #f67300 100%);
  border-radius: 999px;
}

.modal-kaart-item{
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.020) 0%, rgba(255,255,255,0.010) 100%);
  border: 1px solid rgba(255,255,255,0.08);
}

.modal-kaart-form{
  padding-right: 4px;
}

.modal-kaart-input,
.modal-kaart-textarea,
.modal-kaart-select{
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
}

.modal-kaart-action-group{
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.030) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ==========================================
   FIX, geen onnodige horizontale scrollbars
   ========================================== */

/* hoofdmodal mag nooit horizontaal scrollen */
#kaartModalBody.nd-modal-body,
#kaartModalBody .modal-kaart-container,
#kaartModalBody .modal-kaart-flex,
#kaartModalBody .modal-kaart-deel,
#kaartModalBody .modal-kaart-deel-links,
#kaartModalBody .modal-kaart-deel-rechts {
  overflow-x: hidden;
  min-width: 0;
}

/* alleen verticale scroll waar nodig */
#kaartModalBody .modal-kaart-items,
#kaartModalBody .modal-kaart-form {
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
}

/* ook alle flex/grid kinderen mogen niet buiten hun kolom duwen */
#kaartModalBody .modal-kaart-row,
#kaartModalBody .modal-kaart-col,
#kaartModalBody .modal-kaart-col--stack,
#kaartModalBody .modal-kaart-col--pricecat,
#kaartModalBody .modal-kaart-col--amountdate,
#kaartModalBody .modal-kaart-moneywrap,
#kaartModalBody .modal-kaart-btnrow,
#kaartModalBody .modal-kaart-btnrow--manage,
#kaartModalBody .modal-kaart-action-group {
  min-width: 0;
  max-width: 100%;
}

/* inputs/selects/contenteditable echt binnen hun parent houden */
#kaartModalBody .modal-kaart-input,
#kaartModalBody .modal-kaart-textarea,
#kaartModalBody .modal-kaart-select,
#kaartModalBody .modal-kaart-bij-editor,
#kaartModalBody #kaartBeschikbaarVanaf {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* rechterdeel zelf niet laten "meescrollen" in twee richtingen */
#kaartModalBody .modal-kaart-deel-rechts {
  overflow: hidden;
}

/* formulier netjes laten scrollen zonder extra balk onderin */
#kaartModalBody .modal-kaart-form {
  padding-right: 2px;
  scrollbar-gutter: stable;
}

/* button grids/flex iets veiliger maken */
#kaartModalBody .modal-kaart-btnrow--manage {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#kaartModalBody .modal-kaart-btn,
#kaartModalBody .modal-kaart-btn-label,
#kaartModalBody .modal-kaart-meta-box {
  min-width: 0;
  max-width: 100%;
}

/* datumveld veroorzaakt soms 1 tot 2 px overflow in webkit, dit voorkomt dat */
#kaartModalBody .modal-kaart-input[type="date"]::-webkit-calendar-picker-indicator {
  right: 0;
}

/* op kleinere schermen iets minder breedte in de top row */
@media (max-width: 900px) {
  #kaartModalBody .modal-kaart-col--pricecat,
  #kaartModalBody .modal-kaart-col--amountdate {
    flex: 1 1 0;
  }
}

/* op echt lage schermen alleen rechter formulier laten scrollen */
@media (max-height: 900px) {
  #kaartModalBody .modal-kaart-deel-rechts {
    overflow: hidden;
  }

  #kaartModalBody .modal-kaart-form {
    overflow-y: auto;
    overflow-x: hidden;
  }
}