/* =========================================================
   Emittentletty – FINAL CSS
   ========================================================= */

/* ---------- WRAPPER SAFETY ---------- */
.el-table-wrapper{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.el-table-wrapper,
.el-table-scroll,
.el-cards,
.el-cards--slider{
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* ---------- FILTER ---------- */
.el-filter-form{
  margin: 0 0 16px 0;
}

.el-filters{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  max-width: 100%;
  overflow-x: hidden;
}

.el-filter{
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 220px;
  min-width: 0;
}

.el-filter-label{
  font-weight: 600;
}

.el-filter-select{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 7px;
}

.el-filter-actions{
  display: flex;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.el-btn{
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}

/* ---------- TABLE ---------- */
.el-table-scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.el-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.el-th,
.el-cell{
  padding: 10px;
  border-bottom: 1px solid #e9e9e9;
  text-align: left;
  vertical-align: top;
}

.el-th--num,
.el-cell--num{
  text-align: right;
}

.el-sortable{
  cursor: pointer;
  user-select: none;
}

.el-row--long{ background: #f2fff7; }
.el-row--short{ background: #fff2f2; }

/* ---------- LINK (ICON + SR-ONLY TEXT) ---------- */
.el-link{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.el-link-text{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.el-link::before{
  content: "➜";
  font-size: 18px;
  display: inline-block;
  transition: transform .2s ease;
}

.el-link:hover::before{
  transform: translateX(4px);
}

/* ---------- LIST ---------- */
.el-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.el-list-item{
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #e9e9e9;
  min-width: 0;
}

.el-list-main{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.el-list-title{
  font-weight: 600;
}

.el-list-issuer{
  font-size: 12px;
  opacity: .75;
}

/* ---------- CARDS ---------- */
.el-cards{
  display: grid;
  gap: 12px;
}

.el-card{
  border: 1px solid #e9e9e9;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  min-width: 0;
}

.el-card--long{ background: #f2fff7; }
.el-card--short{ background: #fff2f2; }

.el-card-title{
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
}

.el-card-sub{
  margin-top: 6px;
  font-size: 12px;
  opacity: .8;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.el-card-sep{ opacity: .6; }

.el-card-grid{
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.el-card-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.el-card-label{
  font-weight: 700;
  opacity: .65;
}

.el-card-value{
  font-weight: 700;
}

.el-card-footer{
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.el-btn--card{
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
}

/* ---------- CARD SLIDER ---------- */
.el-cards--slider{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* iOS / Safari overflow fix */
  padding-right: 1px;
  margin-right: -1px;
}

.el-cards--slider .el-card{
  flex: 0 0 min(88%, 360px);
  scroll-snap-align: start;
}

/* ---------- MOBILE ---------- */
@media (max-width: 720px){
  .el-table{
    min-width: 0;
  }
}

@media (max-width: 520px){
  .el-filters{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  /* WICHTIG: kein Höhen-Grow mehr */
  .el-filter,
  .el-filter-actions{
    flex: 0 0 auto;
  }

  .el-filter,
  .el-filter-select{
    width: 100%;
    min-width: 0;
  }

  .el-filter-actions{
    width: 100%;
  }

  .el-filter-actions .el-btn{
    width: 100%;
  }

  .el-th,
  .el-cell{
    padding: 8px;
  }
}
