   :root {
   
  --color-primary: #F05704;

}
  /* Base */
.cf-card-container {
   background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin: 20px auto;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
   border-left: 6px solidvar( --color-primary );
}

.cf-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  gap: 15px;
}

.cf-col {
  flex: 1 1 45%;
}

.cf-label-value {
  font-size: 0.95rem;
  color: #444;
}

/* Highlight values */
.cf-highlight {
  font-weight: 600;
  color:var( --color-primary );
}

/* Header */
.cf-header {
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

/* Body layout */
.cf-body {
  padding: 10px 0;
}

.cf-plan-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cf-left-info,
.cf-right-info {
  flex: 1 1 45%;
}

.cf-info-block {
  background: #fdf8f5;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #f2dfdc;
}

.cf-info-row {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.cf-label {
  display: inline-block;
  width: 140px;
  color: #555;
}

/* Footer */
.cf-footer {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.cf-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.cf-badge-active {
  background: #D69A2D;
  color: #fff;
}

.cf-badge-live {
  background:var( --color-primary );
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .cf-plan-details {
    flex-direction: column;
  }
  .cf-col {
    flex: 1 1 100%;
  }
  .cf-label {
    width: 120px;
  }
}

/***********Detail**********************/


 .cfd-tab-section {
   padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cfd-section-header {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.cfd-plan-title,
.cfd-transaction-title {
  font-size: 1.4rem;
  font-weight: bold;
  color:var( --color-primary );
}

.cfd-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.cfd-info-item {
  background: #f9f9f9;
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid #eaeaea;
}

.cfd-label {
  font-weight: 500;
  color: #333;
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.cfd-value {
  font-size: 1rem;
  font-weight: 600;
  color:var( --color-primary );
}

.cfd-transaction-table-wrapper {
  overflow-x: auto;
}

.cfd-transaction-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
}

.cfd-transaction-table thead th {
  background:var( --color-primary );
  color: #fff;
  padding: 10px;
  text-align: left;
}

.cfd-transaction-table tbody td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.cfd-total-row td {
  background-color: #fdf4eb;
  font-weight: bold;
  color:var( --color-primary );
}

/* Responsive */
@media (max-width: 768px) {
  .cfd-info-grid {
    grid-template-columns: 1fr;
  }

  .cfd-transaction-table thead {
    display: none;
  }

  .cfd-transaction-table,
  .cfd-transaction-table tbody,
  .cfd-transaction-table tr,
  .cfd-transaction-table td {
    display: block;
    width: 100%;
  }

  .cfd-transaction-table tr {
    margin-bottom: 15px;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 6px;
  }

  .cfd-transaction-table td {
    text-align: right;
    position: relative;
    padding-left: 50%;
  }

  .cfd-transaction-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    top: 10px;
    font-weight: bold;
    color: #555;
  }
}


/***********Detail**********************/

/***********Dues**********************/



/* Table base styling */

.due-section .table-responsive{
  max-height: 400px;
    overflow-y: scroll;
}

.due-section .table {
  background-color: #fff;
  margin-bottom: 0;
  max-height: 400px;

}

.due-section .table > thead > tr > th {
  vertical-align: middle;
  text-align: center;
  background-color: #e9ecef;
  border-color: #ddd;
  font-weight: 600;
}

.due-section .table > tbody > tr > td {
  vertical-align: middle;
  text-align: center;
}

/* Progress bar inside table cell */
.due-section .progress {
  height: 25px;
  margin-bottom: 0;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.due-section .progress-bar {
  line-height: 25px;
  font-weight: 600;
  color: #fff;
}

/* Responsive: horizontal scroll on small devices */
@media (max-width: 767px) {
  .due-section .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  }

  .due-section .table {
    min-width: 600px; /* Prevent table from shrinking too much */
  }



  /* Keep table rows and cells normal for scroll */
  .due-section .table > tbody > tr {
    display: table-row;
  }

  .due-section .table > tbody > tr > td,
  .due-section .table > thead > tr > th {
    display: table-cell;
    white-space: nowrap; /* Prevent text wrap so horizontal scroll is triggered */
    vertical-align: middle;
  }

  /* Fix width of checkbox column */
  .due-section .table > thead > tr > th:first-child,
  .due-section .table > tbody > tr > td:first-child {
    width: 40px;
  }
}

/* Button styling */
.due-section .amigoways-btn {
    margin-top: 10px;
}


@media (max-width: 768px) {
    .due-section .table > thead, .due-section .table > tbody,.due-section .table > th, .due-section .table > td, .due-section .table > tr {
        display: contents;
        width: 100%;
    }
}



  .scheme-table-sec .table-responsive {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      width: 100%;
    }


/***********Dues**********************/
