/*
* demo.css
* File include item demo only specific css only
******************************************************************************/


/*===== Info buttons =====*/ 



/* Make sure the chart resizes dynamically */
#MimSakanahChart {
  width: 100% !important; /* Allow the chart to resize */
  height: auto !important; /* Auto-adjust the height */
}

/* Make buttons more mobile-friendly */
@media (max-width: 768px) {
 

  /* Ensure the modal is responsive */
  .modal-dialog {
      max-width: 90%; /* Allow modal to take up more space on mobile */
  }
}

/* For small screens, make the button sizes more compact */
@media (max-width: 576px) {
  .btn-link {
      padding: 0.5rem; /* Compact padding for buttons */
  }
}


.link-style {
  display: inline-block;
  padding: 10px;
  color: #d6d4d4; /* Dark font color */
  text-decoration: none;
  border-left: 2px solid #ffffff; /* White border at top */
  border-top: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Shadow effect */
  transition: background-color 0.3s, color 0.3s;
}

.link-style:hover {
  background-color: #0707069c !important; /* Light background on hover */
  color: #000; /* Dark font color on hover */
}
.hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect:hover {
  transform: translateY(-5px); /* Moves the item up */
  box-shadow: 0 4px 15px rgb(255, 255, 255); /* Adds shadow for depth */
}


/* Make the Invoice ID column wider on small screens */
@media (max-width: 576px) {
  .invoice-id-col, .invoice-id-cell {
      width: 30%; /* Adjust as needed */
      white-space: nowrap;
  }

  .actions-cell {
      text-align: center;
  }

  .btn-group .btn {
      display: inline-block;
      margin: 2px; /* Ensure small margins between buttons */
  }
}

/* General table adjustments */
.actions-cell .btn {
  min-width: 36px;
  text-align: center;
}

.invoice-summary {
  background-color: #527c6a47;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  font-weight: 600;
}

.invoice-summary h4 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.invoice-summary p {
  font-size: 16px;
  margin: 10px 0;
}

.invoice-summary .icon {
  margin-right: 10px;
}

.invoice-total {
  color: #007bff;
  font-weight: bold;
  font-size: 18px;
}

.paid-amount {
  color: #28a745;
  font-weight: bold;
  font-size: 18px;
}

.balance-amount {
  color: #dc3545;
  font-weight: bold;
  font-size: 18px;
}

.invoice-summary .amount-box {
  display: flex;
  align-items: center;
}

.invoice-summary .icon {
  font-size: 20px;
}



/* General styles */
.info-buttons {
  margin-left: 0;
  margin-right: 0;
}
.info-buttons a {
  display: block;
  color: #505050;
  padding: 10px 12px;
  text-align: center;
  position: relative;
  background-color: #fafafa;
  border: 1px solid #ddd;
}
.info-buttons a + a {
  border-left: 0;
}
.info-buttons a i {
  font-size: 32px;
  margin: 0;
  display: block;
  font-weight: normal;
}
.info-buttons a span {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 12px;
}
.info-buttons a strong {
  position: absolute;
  right: -1px;
  top: -1px;
}
.info-buttons a:hover {
  background-color: #fcfcfc;
  border-color: #e5e5e5;
  color: #2A6496;
}
.info-buttons a:active,
.info-buttons a:focus {
  color: #3792A8;
  border-color: #d5d5d5;
}

/* Info blocks styling */
.info-blocks {
  list-style: none;
  width: 100%;
  text-align: center;
  margin: 0;
  margin-bottom: 30px;
  margin-top: 30px;
  padding: 0;
  display: flex;
  flex-wrap: wrap; /* Ensures items wrap on smaller screens */
  justify-content: center; /* Center items on larger screens */
}
.info-blocks > li {
  display: inline-block;
  text-align: center;
  width: calc(50% - 20px); /* Ensures two items per row on medium screens */
  min-width: 200px; /* Minimum width for smaller screens */
  margin: 10px;
  white-space: nowrap;
}
.info-blocks > li > a > i {
  font-size: 48px;
  display: inline-block;
  margin-bottom: 20px;
}
.info-blocks > li > a:hover {
  opacity: 0.8;
  filter: alpha(Opacity=80);
  color: #fff;
}

.top-info {
  margin: 16px 14px 14px 14px;
}
.top-info > a {
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 18px;
}
.top-info > a:hover {
  opacity: 0.8;
  filter: alpha(Opacity=80);
  color: #fff;
}
.top-info > small {
  font-size: 11px;
  display: block;
  margin-top: -2px;
}

.bottom-info {
  display: block;
  font-size: 11px;
  padding: 7px;
  font-weight: 600;
  border-radius: 0 0 2px 2px;
  -webkit-border-radius: 0 0 2px 2px;
  -moz-border-radius: 0 0 2px 2px;
}

/* Media query for mobile responsiveness */
@media (max-width: 478px) {
  .info-blocks > li {
    width: 100%; /* Ensures full width for each item on smaller screens */
    margin: 0 0 10px 0;
  }
}

/* Styling for invalid input */
.is-invalid {
  border-color: #dc3545;
}

.is-invalid + .text-danger {
  display: block;
}

.text-danger {
  font-size: 0.875em;
}

/* Stepper header styling */
.bs-stepper-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}
.bs-stepper-header .step {
  text-align: center;
  position: relative;
  flex-grow: 1;
}
.bs-stepper-header .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: #e0e0e0;
  z-index: -1;
  transform: translateX(50%);
}
.bs-stepper-header .step.active::after,
.bs-stepper-header .step.completed::after {
  background-color: #007bff;
}

.star-rating {
  display: flex;
}

.star {
  font-size: 30px;
  cursor: pointer;
  color: #ccc; /* Default star color */
}

.star.selected {
  color: #f5b301; /* Selected star color */
}


.bs-stepper-header .step-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    margin-bottom: 10px;
}
.bs-stepper-header .step.active .step-icon,
.bs-stepper-header .step.completed .step-icon {
    background-color: #007bff;
}
.bs-stepper-header .step-title {
    font-size: 14px;
    font-weight: bold;
}
.bs-stepper-header .step-subtitle {
    font-size: 12px;
    color: #6c757d;
}


/* Default styles */
.dt-search {
    padding-top: 10px;
    padding-right: 20px;
}

button.btn.btn-secondary.buttons-excel.buttons-html5.waves-effect.waves-light {
    margin-right: 7px;
    background-color: #5c8f5c;
}

button.btn.btn-secondary.buttons-print.waves-effect.waves-light {
    margin-right: 7px;
    background-color: #bdbb64;
}

button.btn.btn-secondary.buttons-collection.dropdown-toggle.buttons-colvis.waves-effect.waves-light {
    margin-right: 7px;
    background-color: #5d679c;
}

.dt-paging {
    padding-right: 20px;
    float: right;
}

a.btn.btn-sm.btn-primary.mr-md-3.waves-effect.waves-light {
    border-radius: 10px 0px 0px 10px;
}

.dt-info {
    padding-left: 20px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .dt-search,
    button.btn.btn-secondary.buttons-excel.buttons-html5.waves-effect.waves-light,
    button.btn.btn-secondary.buttons-print.waves-effect.waves-light,
    button.btn.btn-secondary.buttons-collection.dropdown-toggle.buttons-colvis.waves-effect.waves-light,
    .dt-paging,
    .dt-info {
        padding: 10px;
        margin-right: 0;
    }
}

.card-header {
    TEXT-ALIGN: CENTER;
}

a.btn.btn-sm.btn-primary.mr-md-3.waves-effect.waves-light {
    border-radius: 0px 0px 0px 0px;
}

.dt-search  {
    padding-top: 10px;;
    padding-right: 20px;
}

button.btn.btn-secondary.buttons-excel.buttons-html5.waves-effect.waves-light {
    margin-right: 7px;
    background-color: #5c8f5c;
}

button.btn.btn-secondary.buttons-print.waves-effect.waves-light{

    margin-right: 7px;
    background-color: #bdbb64;
}

button.btn.btn-secondary.buttons-collection.dropdown-toggle.buttons-colvis.waves-effect.waves-light{

    margin-right: 7px;
    background-color: #5d679c;


}
.dt-paging{

    padding-right:20px;
   float: right;

}
.dt-info{

    padding-left:20px;
}


.dt-search  {
    padding-right: 20px;
}

button.btn.btn-secondary.buttons-excel.buttons-html5.waves-effect.waves-light {
    margin-right: 7px;
    background-color: #5c8f5c;
}

button.btn.btn-secondary.buttons-print.waves-effect.waves-light{


    margin-right: 7px;
    background-color: #bdbb64;
}

button.btn.btn-secondary.buttons-collection.dropdown-toggle.buttons-colvis.waves-effect.waves-light{

    margin-right: 7px;
    background-color: #242323;


}
.dt-paging{

    padding-right:20px;
   float: right;

}
.dt-info{

    padding-left:20px;
}



.light-style .menu .app-brand.demo {
  height: 85px;
}
.dark-style .menu .app-brand.demo {
  height: 64px;
}
.flex-sm-row{
    background-color: #7367f014;
        border-radius: 10px;

}

.star-rating {
  display: flex;
}

.star {
  font-size: 24px; /* Adjust size as needed */
  color: gray; /* Default color */
  cursor: pointer;
  background: none;
  border: none;
}

.star.active {
  color: gold; /* Color when active */
}

/* Styles for the modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
  }

  .star-rating {
    direction: ltr;
  

}


.small-star {
  font-size: 1.3rem;
  padding: 0; 
  border: none; 
  background: none; 
  cursor: pointer;

}

/* Optional: Adjust star size on smaller screens */
@media (max-width: 576px) {
  .small-star {
    font-size: 1.2rem;
  }
}


.month-container {
    margin-bottom: 30px; /* Adjust as needed */
}

.month-label {
    text-align: center;
    font-size: 18px; /* Adjust as needed */
    color: #333; /* Adjust color as needed */
    margin-bottom: 15px; /* Adjust as needed */
}



.star-rating input[type="radio"] {
    display: none;
}
.star-rating label {
    color: #ccc;
    font-size: 23px;
    padding: 0;
    cursor: pointer;
    display: inline-block;
}
.star-rating input[type="radio"]:checked ~ label {
    color: #f5b301;
}
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f5b301;
}



  /* style for timeline */



  #timeline {
    list-style: none;
    position: relative;
  }
  #timeline:before {
    top: 20px;
    bottom: 20px;
    position: absolute;
    content: " ";
    width: 5px;
    background-color: #9d95f5;
    left: 25%;
    
  }
  #timeline .clearFix {
    clear: both;
    height: 0;
  }
  #timeline .timeline-badge {
    color: #fff;
    width: 50px;
    height: 50px;
    font-size: 1.2em;
    text-align: center;
    position: absolute;
    top: 20px;
    left:49.7%;
    margin-left: -25px;
    background-color:#2a5644d9;
    z-index: 100;
    border-top-right-radius: 50%;
    border-top-left-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
  }
  #timeline .timeline-badge span.timeline-balloon-date-day {
    font-size: 1.4em;
  }
  #timeline .timeline-badge span.timeline-balloon-date-month {
    font-size: .7em;
    position: relative;
    top: -10px;
  }

  .timeline-item {
    border-left: 1px solid #f8f7fa !important;
}

  #timeline .timeline-badge.timeline-filter-movement {
    background-color: #ffffff;
    font-size: 1.7em;
    height: 35px;
    margin-left: -18px;
    width: 35px;
    top: 40px;
  }
  #timeline .timeline-badge.timeline-filter-movement a span {
    color: #4997cd;
    font-size: 1.3em;
    top: -1px;
  }
  #timeline .timeline-badge.timeline-future-movement {
    background-color: #ffffff;
    height: 35px;
    width: 35px;
    font-size: 1.7em;
    top: -16px;
    margin-left: -18px;
  }
  #timeline .timeline-badge.timeline-future-movement a span {
    color: #4997cd;
    font-size: .9em;
    top: 2px;
    left: 1px;
  }


  #timeline .timeline-movement .timeline-item {
    padding: 20px 0;
  }
  #timeline .timeline-movement .timeline-item .timeline-panel {
    border: 1px solid #d4d4d4;
    border-radius: 3px;
    background-color: #FFFFFF;
    color: #272323;
    padding: 10px;
    position: relative;
    -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
  }
  #timeline .timeline-movement .timeline-item .timeline-panel .timeline-panel-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }
  #timeline .timeline-movement .timeline-item .timeline-panel.schedule .timeline-panel-ul {
    text-align: center;
  }
  #timeline .timeline-movement .timeline-item .timeline-panel.schedule .timeline-panel-ul li {
    color: #666;
  }
  #timeline .timeline-movement .timeline-item .timeline-panel.schedule .timeline-panel-ul li span.importo {
    color: #468c1f;
    font-size: 1.3em;
  }
  #timeline .timeline-movement .timeline-item .timeline-panel.cancel .timeline-panel-ul {
    text-align: center;
  }
  #timeline .timeline-movement .timeline-item .timeline-panel.cancel .timeline-panel-ul span.importo {
    color: #e2001a;
    font-size: 1.3em;
  }


/* For screens smaller than 768px */
@media (max-width: 767px) {


    #timeline:before {
        top: 11px;
        bottom: 11px;
        position: absolute;
        content: " ";
        width: 5px;
        background-color: #4997cd;
        left: 12%;
        margin-left: -1.5px;
    }


    #timeline .timeline-movement .timeline-item .timeline-panel .timeline-panel-ul {
      list-style: none;
      padding: 0;
      margin: 0;
      text-align: right;
      font-size: 13px;
  }

  #timeline .timeline-badge {
    width: 50px;
    height: 50px;
    font-size: 30px;
    top: 3px;
    left: 9%;
    margin-left: -20px;
}

    #timeline .timeline-badge span.timeline-balloon-date-day {
      font-size: 20px;
  }

    #timeline .timeline-badge span.timeline-balloon-date-month {
      font-size: 10px;
    
    }

    #timeline .timeline-movement .timeline-item {
      padding: 10px 0;
    }
  }

  /* For screens between 768px and 992px */
  @media (min-width: 768px) and (max-width: 991px) {


    #timeline:before {
        top: 20px;
        bottom: 20px;
        position: absolute;
        content: " ";
        width: 5px;
        background-color: #4997cd;
        left: 24%;
        margin-left: -1.5px;
    }


    #timeline .timeline-badge {
      width: 50px;
      height: 50px;
      font-size: 1.2em;
      top: 40px;
      left: 8.0%;
  }
    #timeline .timeline-badge span.timeline-balloon-date-day {
      font-size: 1.3em;
    }
    #timeline .timeline-badge span.timeline-balloon-date-month {
      font-size: 0.65em;
      top: -9px;
    }
  }

  /* For screens larger than 991px */
  @media (min-width: 992px) {
    #timeline .timeline-badge {
      width: 50px;
      height: 50px;
      font-size: 1.2em;
      top: 40px;
      left: 8.0%;
  }
    #timeline .timeline-badge span.timeline-balloon-date-day {
      font-size: 21px;
    }
    #timeline .timeline-badge span.timeline-balloon-date-month {
      font-size: 20px;
    }
    
        #timeline .timeline-movement .timeline-item {
        padding: 20px 0;
        padding-left: 35px;
    }
}

  /* Additional adjustments for all screen sizes */
  #timeline .timeline-badge.timeline-filter-movement,
  #timeline .timeline-badge.timeline-future-movement {
    margin-left: -18px;
  }

  #timeline .timeline-badge.timeline-filter-movement a span {
    font-size: 1.3em;
    top: -1px;
  }

  #timeline .timeline-badge.timeline-future-movement a span {
    font-size: .9em;
    top: 2px;
    left: 1px;
  }

  #timeline .timeline-movement .timeline-item .timeline-panel {
    padding: 10px;
    
  }


  .modal-content {
    background-color: #fefefe;
    margin: 5% auto;
  
    border: 1px solid #888;
    width: 80%;
  }

  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }

  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }


  .app-brand-logo.demo {
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    display: -ms-flexbox;
    display: flex;
    width: 260px;
    height: 90px;
}
.app-brand-logo.demo svg {
  width: 35px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 78px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}
