body{
  overflow: hidden;
}

.trans-container{
    height: 79.8vh;
    width: 90%;
    margin: 1rem auto;
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 4rem 4rem 1fr;
    grid-template-areas: "header-left right-grid right-grid"
                        "left-sub-header right-grid right-grid"
                        "customers right-grid right-grid";                   
}

#right-grid{
  visibility: visible;
  grid-area: right-grid;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 4rem 1fr;
  grid-template-areas: "header-right"
                        "cust-trans-box";
  background-color: #fff;
}

.cust-trans-box{
  position: relative;
}

#initial-placeholder{
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #fff;
  color: #a8a8a8;
  z-index: 1;
}

.left-sub-header{
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff9e3;
  /* color: #dcad00; */
}

.header-left, .header-right{
    background-color: #eeeeee;
    grid-area: header-left; 
    text-align: left;
}

.header-left{
  margin: 0;
  color: #333;
  position: relative;
}
.header-right{
  border-left: 1px solid rgb(213, 213, 213);
}

.header-left .add-btn, 
.add-row-btn, 
.search-btn, 
.close-search{
  color: #a8a8a8;
  transition: color 0.2s ease-in-out;
  transform: scale(1.5);
}
.header-left .add-btn:hover, 
.add-row-btn:hover, 
.search-btn:hover, 
.close-search:hover{
  color: #333;
  cursor: pointer;
}

.search-btn{
  margin-right: 1rem;
}
.box{
    padding: 1rem;
}


.customers .customer{
    width: 100%;
    height: 5rem;
    padding: 0.5rem;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    border-bottom: 1px solid rgb(226, 226, 226);
    

}
.customers .customer:hover{
  cursor: pointer;
  background-color: #eeeeee;
}

.customer .info{
  display: flex;
  align-items: center;
}

.customer .info i{
  margin-right: 0.5rem;
}

.customers{
  padding-top: 0.2rem;
  padding-bottom: 0;
  position: relative;
}

.trans-head{
  display: flex;
  align-items: center;
    text-align: center;
    height: 25%;
    color: #333;
}

#back-btn{
  display: none;
  margin-right: 0.5rem;
}

.trans-head hr{
    width: 20%; 
    margin: auto;
    height: 2px;
    border: none;
    background-color: rgb(232, 232, 232);
}

.cust-trans-box{
  overflow-y: auto;
}

#amount_title{
  font-size: 2rem; 
  transition: color 0.3s ease-in-out; 
}

#title_arrow{
  margin-left: 0.5rem; 
  transition: transform 0.3s ease-in-out;
}

.history-title{
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding-right: 1rem;
}

.history-table{
  max-height: 75%;
  overflow: auto;
  
}


.history-table table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    border-spacing: 0;
    color: #fff;
    border: 1px solid rgb(226, 226, 226);
  }

  .history-table td{
    color: #333;
    padding: 0.8rem;
  }


  .history-table th,.trans-history td {
    padding: 0.8rem;
  }

  .history-table th {
    background-color: #333;
    font-weight: bold;
    margin: 0;
  }

  .history-table tr:nth-child(even) {
    background-color: #efefef;
  }

  .cust-trans-box{
    border-left: 1px solid rgb(213, 213, 213);
  }

  .attachment-img-table{
    cursor: pointer;
  }

  .outstanding{
    border-top: 1px solid rgb(176, 176, 176) ; 
    width: 40%; 
    margin: auto;
  }
  .delete-trans-icon:hover{
    color: red;
    cursor: pointer;
    
  }
  /* add modal and add row modal */
  


  #add-modal, #add-row-modal, #img-modal{
    
    background-color: rgba(0, 0, 0, 0.593);
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 2;
  }


  #add-modal .dialogue, #add-row-modal .dialogue, #delete_cust_dialogue, #delete_trans_dialogue{
    position: relative;
    padding: 1rem;
    width: 30%;
    background-color: #fff;
    border-radius: 10px;
  }

  #add-modal .close-btn, #add-row-modal .close-btn, .img-close-btn{
    width: fit-content;
    position: relative;
    right: 0;
    margin-top: -1rem;
    font-size: 2rem; 
    display: block;
    margin-left: auto;
    cursor: pointer;
  }

  
  #add-modal-form input, #add-row-form input{

    padding: 0.52rem;
    border: 1px solid rgb(208, 208, 208);
    outline: none;
    width: 100%;
    margin-bottom: 0.3rem;
    margin-top: 0.5rem;
    font-family: poppins, sans-serif;
    
  }

  .radio-wrapper{
    width: 40%; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    margin-bottom: 1rem;
  }
  .radio-wrapper input, .radio-wrapper label{
    width: fit-content !important;
    cursor: pointer;
  }

  
  .customers .loading{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
  }
  

  .customers .loading .custom-loader {
    width:2rem;
    height:3.5rem;
    --c:linear-gradient(#DCAD00 0 0);
    background: 
      var(--c) 0%   50%,
      var(--c) 50%  50%,
      var(--c) 100% 50%;
    background-size:5px 50%;
    background-repeat: no-repeat;
    animation:b7 1s infinite linear alternate;
  }
  @keyframes b7 {
      20% {background-size:5px 20% ,5px 50% ,5px 50% }
      40% {background-size:5px 100%,5px 20% ,5px 50% }
      60% {background-size:5px 50% ,5px 100%,5px 20% }
      80% {background-size:5px 50% ,5px 50% ,5px 100%}
  }


  

  /* delete customer confirmation modal  */
  #deleteCustIcon{
    visibility: hidden;
  }
  #deleteCustIcon:hover{
    cursor: pointer;
    color: red;
  }

  #delete_cust_modal, #delete_trans_modal, .img-modal{
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #000000ab;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }


  .delete_cust_btn,.delete_trans_btn, .cancel_delete_cust, .cancel_delete_trans, .cancel-btn{
    background-color: red;
    border: none;
    padding: 0.5rem 1rem;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
  }

  .delete_cust_btn:hover, .delete_trans_btn:hover{
    background-color: rgb(202, 0, 0);
    cursor: pointer;
  }

  .cancel-btn{
    background-color: grey !important;
  }

  .modal-footer{
    width: 100%;
    margin-top: 1rem;
    display: flex;
    justify-content: end;
  }

  
/*=== FADE IN  ===*/
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: none;
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);    
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

#animation{
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-color: #fff;
  z-index: 3;
}

.animation-sub-wrap{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#success-animation path{
	-webkit-animation-duration: 0.4s;
	animation-duration: 0.4s;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	-webkit-animation-delay: 0s;
	-moz-animation-delay: 0s;
	animation-delay: 0s;
	-webkit-animation-name: fadeIn;
	animation-name: fadeIn;
  transform-origin: center;
}

@keyframes fill {
  from {
    height: 0px;
  }

  to {
    
  }
}

.left-line {
	-webkit-animation-duration: 0.2s;
	animation-duration: 0.2s;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	-webkit-animation-delay: 0.25s;
	-moz-animation-delay: 0.25s;
	animation-delay: 0.25s;
	-webkit-animation-name: fill;
	animation-name: fill;
}

.right-line {
	-webkit-animation-duration: 0.5s;
	animation-duration: 0.5s;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	-webkit-animation-delay: 0.4s;
	-moz-animation-delay: 0.4s;
	animation-delay: 0.4s;
	-webkit-animation-name: fill;
	animation-name: fill;
}

/* failed animation */

#failed-animation svg {
  width: 40%;
  display: block;
  margin: 2.8rem auto 0;
}

#failed-animation .path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
  &.circle {
    -webkit-animation: dash .9s ease-in-out;
    animation: dash .9s ease-in-out;
  }
  &.line {
    stroke-dashoffset: 1000;
    -webkit-animation: dash .9s .35s ease-in-out forwards;
    animation: dash .9s .35s ease-in-out forwards;
  }
  &.check {
    stroke-dashoffset: -100;
    -webkit-animation: dash-check .9s .35s ease-in-out forwards;
    animation: dash-check .9s .35s ease-in-out forwards;
  }
}


.failed-p {
  font-family: museo-sans,sans-serif;
  text-align: center;
  margin: 1.2rem 0 4.2rem;
  font-size: 1.25em;
  color: #6A6F71;
  &.error {
    color: red;
  }
}


@-webkit-keyframes dash {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes dash {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@-webkit-keyframes dash-check {
  0% {
    stroke-dashoffset: -100;
  }
  100% {
    stroke-dashoffset: 900;
  }
}

@keyframes dash-check {
  0% {
    stroke-dashoffset: -100;
  }
  100% {
    stroke-dashoffset: 900;
  }
}

/* searching styles */
.search-container p{
  font-size: 1.5rem;
  
}
.search-container{
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background-color: #eeeeee;
}

.search-wrapper{
  display: flex;
  align-items: center;
  justify-content: space-around;
  border: 1px solid #e3e3e3;
  background-color: #fff;
  width: 100%;
  height: 80%;
}

.search-container input{
  width: 90%;
  height: 100%;
  padding: 0.5rem;
  outline: none;
  border: none;
  font-family: 'poppins', 'san-serif';
  text-decoration: none;
}

#modal-image{
  max-height: 80vh;
  max-width: 90vw;
}

#attachment{
  cursor: pointer;
}


/* request loader */

#request-loader .loader {
  width: 4rem;
  height: 4rem;
  border: 3px solid rgb(50, 50, 50);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
#request-loader .loader::after {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3.45rem;
    height: 3.45rem;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #dcad00;
}
    
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 

