.status-available{
	color: #4CAF50;
}
.status-reserved{
	color: #2196F3;
}
.status-unavailable{
	color: #F44336;
}

.cme-summary-table {
  width: 100%;
	min-width: 500px;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
}
.cme-summary-table td {
  padding: 12px 8px;
  vertical-align: middle;
  border: none;
}
.cme-row-main td {
  font-weight: 600;
}
.cme-row-main .cme-col.name { width: 15%; }
.cme-row-main .cme-col.surface,
.cme-row-main .cme-col.floor,
.cme-row-main .cme-col.unit,
.cme-row-main .cme-col.net,
.cme-row-main .cme-col.vat,
.cme-row-main .cme-col.gross {
  width: calc(85% / 6);
  text-align: center;
}


/* Fees rows: lekko jaśniejszy background */
.cme-row-fee {
  background: #fafafa;
}
.cme-row-fee .cme-col.name { text-align: left; font-weight: 500; }

/* Podsumowanie */
.cme-row-total {
  border-top: 2px solid #ddd;
}
.cme-row-total .cme-col.name .cme-val {
  font-weight: 700;
}
.cme-row-total .cme-col.net,
.cme-row-total .cme-col.gross {
  font-weight: 700;
}

/* Wartość i label w komórkach */
.cme-val {
  display: block;
  font-size: 16px;
  color: #111;
}
.cme-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #888;
}
td.cme-col{
    text-align: center;
}
/* responsywność */
@media (max-width: 768px) {
  .cme-summary-table td {
    padding: 8px 4px;
  }
  .cme-val { font-size: 14px; }
  .cme-label { font-size: 10px; }
}
.cme-timeline-shortcode { margin-top: 1.5em; }
.cme-summary-row { display:flex; gap:8px; align-items:center; background:#fff; border-radius:8px; padding:12px; }
.cme-summary-row .cme-col { flex:1; text-align:center; }
.cme-summary-row .cme-col.name { text-align:left; flex:2; }
.cme-status { font-weight:600; }

.cme-timeline-line { position:relative; height:2px; background:#ddd; margin:24px 8% 0; }
.cme-point { position:absolute; top:-6px; width:0; }
.cme-point .dot { width:12px; height:12px; border-radius:50%; background:#333; }
.cme-point.last .dot { background:#00c853; }
.cme-point .info {
  position:absolute; top:-60px; left:50%; transform:translateX(-50%);
  white-space:nowrap; text-align:center; font-size:12px;
}
.cme-point .info-net,
.cme-point .info-gross,
.cme-point .info-unit { display:block; font-family: inherit !important;font-size:12px  !important;font-weight:400 !important;}
.cme-point .info-date {
  position:absolute; top:16px; left:50%; transform:translateX(-50%); font-size:12px; color:#555;
}
.cme-accordion .cme-col {
    display: flex;
    flex-direction: column-reverse;
	white-space: nowrap !important;
}

/* Strzałka w środku, przed nazwą – tylko w akordeonie */
.cme-accordion .cme-acc > summary .cme-summary-row .cme-col.name {
  position: relative;
  padding-left: 28px;                /* miejsce na strzałkę */
}

/* Zamknięte: strzałka w dół (chevron z obramowań) */
.cme-accordion .cme-acc > summary .cme-summary-row .cme-col.name::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);   /* v */
  transition: transform .2s ease;
}

/* Otwarte: obróć w górę */
.cme-accordion .cme-acc[open] > summary .cme-summary-row .cme-col.name::before {
  transform: translateY(-50%) rotate(-135deg); /* ^ */
}
.cme-fee-timeline {
  position:relative; background:#fff; border-radius:8px; padding:16px 0; margin-top:24px;
}
.cme-fee-timeline .fee-title {
  font-weight:600; margin-bottom:8px; padding-left:12px;
}

/* responsywność 
@media (max-width:768px) {
  .cme-summary-row { flex-direction:column; align-items:flex-start; }
  .cme-summary-row .cme-col { width:100%; text-align:left; }
  .cme-timeline-line, .cme-fee-timeline .cme-timeline-line { margin:16px 4% 0; }
}*/
/* Wrapper z poziomym scrollowaniem */
.cme-timeline-container-wrapper {
 
  margin-bottom: 50px;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  
}

/* -------- Summary -------- */
.cme-summary-row {
  min-width:800px;
  display: flex;  
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 24px;
}
.cme-summary-row .cme-col { flex: 1; text-align: center; }
.cme-summary-row .cme-col.name { flex: 2; text-align: left; }

/* -------- Main Timeline -------- */
.cme-timeline-main {
  position: relative;
  min-width: 800px;
  width: 90%;
  margin: auto;
  margin-top: 20px;
  height: 100px;      /* wystarczająca wysokość na dot+info */
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .cme-timeline-main { margin-left:25%; min-width: 700px !important;}
}


.cme-timeline-main .cme-timeline-line {
	
  position: absolute;
  top: 25%;
  left: -95px;
  width: 100%;
  height: 2px;
  background: #ddd;
  transform: translateY(-50%);
}
.cme-timeline-main .cme-point {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.cme-timeline-main .dot {
  width: 12px; height: 12px; background: #333; border-radius: 50%;
}
.cme-timeline-main .last .dot { background: #00c853; }
.cme-timeline-main .info {
  position: absolute;
  bottom: 100%;   /* nad kropką */
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.cme-timeline-main .info-date {
  position: absolute;
  top: 100%;      /* pod kropką */
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  margin-top: 6px;
}

/* -------- Fee Timelines -------- */
.cme-fee-timeline {
  position: relative;
  min-width: 800px;  /* dostosuj */
  padding: 16px 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}
.cme-fee-timeline .fee-title {
  font-weight: 600;
  margin-left: 16px;
  margin-bottom: 8px;
}
.cme-fee-timeline .cme-timeline-line {
  position: absolute;
  top: 15%;
  left: -95px;
  width: 100%;
  height: 2px;
  background: #ddd;
  transform: translateY(-50%);
}
.cme-fee-timeline .cme-point {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.cme-fee-timeline .dot { width: 12px; height: 12px; background: #333; border-radius: 50%; }
.cme-fee-timeline .last .dot { background: #00c853; }
.cme-fee-timeline .info {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.cme-fee-timeline .info-date {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  margin-top: 6px;
}
/* assets/css/cme.css */
.cme-timeline-container-wrapper .cme-col {
	white-space: nowrap !important;
    flex-direction: column-reverse;
    display: flex;
}
/* -------- Responsywne --------
@media (max-width: 768px) {
  .cme-summary-row { flex-direction: column; align-items: flex-start; }
  .cme-timeline-main, .cme-fee-timeline { min-width: 600px; }
}
 */

details.cme-acc {
    overflow-x: auto;
}