body {font-family: Arial, Helvetica, sans-serif;}



.td_input{
  width:97%;
  height:120%;
}

.wrong{
  margin-right:10px; 
  color:red; 
  font-weight: bold;
}

.right{
  margin-right:10px; 
  color:green; 
  font-weight: bold;
}

button:hover {cursor: pointer;}

/* The Modal (background) */
.popup {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.popup-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 90%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}


@-webkit-keyframes animatebottom {
  from {bottom:-60px; opacity:0} 
  to {bottom:2.5vw; opacity:1}
}

@keyframes animatebottom {
  from {bottom:-60px; opacity:0}
  to {bottom:2.5vw; opacity:1}
}


.ftable .Attendance, .ftable .Attendance:hover, .ftable .Attendance:focus {
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}


/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

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

.popup-header {
  padding: 1px 4px;
  background-color: #5cb85c;
  color: white;
}

.popup-body {padding: 4px 16px;}

.popup-footer {
  padding: 1px 4px;
  background-color: #5cb85c;
  color: white;
}

/*login page*/
.demo-card-wide.mdl-card {
  width: 70%;
}
.demo-card-wide > .mdl-card__title {
  color: #fff;
  height: 176px;
  background: url('https://getmdl.io/assets/demos/welcome_card.jpg') right / cover;
}
.demo-card-wide > .mdl-card__menu {
  color: #fff;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  /* top: 100%; */
  left: 0;
  right: 0;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff; 
  border-bottom: 1px solid #d4d4d4; 
}

/*when hovering an item:*/
.autocomplete-items div:hover {
  background-color: #e9e9e9; 
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
  background-color: DodgerBlue !important; 
  color: #ffffff; 
}

/* Payroll */

#payroll .P , #payroll .H, #payroll .S, #payroll .A, #payroll .Days {
  text-align: center !important;
}

#payroll .Salary , #payroll .Expense,  #payroll  .TA  {
  text-align: right ;
  
}

 #payroll .Payout, #payroll .Booking, #payroll .Payable , #payroll .Output  {
  text-align-last: justify ;
}


#srvtable .Booking{
  text-align-last: justify;
}

#srvtable .hidden{
  display: none;
}


.ftable .Booking{
  text-align-last: justify;
}


#sales [class='T.C'] {
  text-align: center;
}

#sales [class='P.C'] {
  text-align: center;
}



.ftable
{
  table-layout: auto;
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.ftable td, .ftable th {
  border: 1px solid #ddd;
  padding: 8px;
}

.ftable tr:nth-child(even){background-color: #f2f2f2;}

.ftable tr:hover {background-color: #ddd;}


.ftable th, .ftable .sn {
  text-align: center !important;
  text-align-last: center !important;
}

.ftable th {
  padding-top: 12px;
  padding-bottom: 12px;
  background-color: #37474f;
  color: white;
  font-size: 16px;
}



.ftable .Area, .ftable .Working, .ftable .Brief, .ftable .Distributor.Visited 
{
  white-space: normal;
}

#amount, #amount td 
{
  padding: 0; 
  margin: 0; 
  border:0; 
  width:100%
}

#l_view_table, #emp
{
  table-layout: auto;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid black;
}



#l_view_table  th, #l_view_table  td, #emp td
{
  max-width: auto;
  padding-right : 10px;
  padding-left : 10px;
  border-collapse: collapse;
  border: 1px solid black;
}


#l_view_table  .Credit , #l_view_table .Debit , #l_view_table .Balance
{
  text-align: right;
  white-space: nowrap
}

#l_view_table  .Remark {
  white-space: normal;
}


#target .Submit {
  text-align-last: justify;
}

#target .Total.Target {
    text-align-last: justify;

}


.spinner{
  position:relative;
  display: flex;
  height: calc( 100vh - 60px );
  width: 100%;
  align-items: center;
  justify-content: center;
}

.spinner2{
  position:relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mdl-dialog-far{
  height: 47px;
  table-layout: fixed;
  word-wrap: normal;
  overflow: hidden;
}

#dialog-head
{
  line-height: 2.6rem;
  height: 36px;
  font-size: 2rem;
  overflow: hidden;
}

.mdl-dialog__content{
      overflow: auto;
      position: fixed;
      height: calc(100% - 155px);
      width: 87%;
      margin-top: 5px;
      padding-top: 0px;
      color: black !important;

    }


.dialog-close 
{
  cursor: pointer;
}

.not_allow 
{
  cursor: not-allowed;
}

.mdl-textfield > .mdl-menu__container , .mdl-textfield > .mdl-menu__container > .mdl-menu__outline  {
    width: 100% !important;
}

.ull , .lii {
  width: 100%;
}

.lii{
  height: 100%;
  word-wrap: break-word;
}

.autocomplete-items {
  text-align: left;
}


.mdl-textfield-far{
  width: 100%;
}

.mdl-chip-f
{
  height: 48px;
  line-height: 48px;
  padding: 0 14px 0 0;
  border-radius: 24px;
  background-color: #B3E5FC;
}

.mdl-chip__contact-f
{
  height: 48px;
    width: 48px;
    border-radius: 24px;
    margin-right: 8px;
    font-size: 28px;
    line-height: 48px;
    background-color: #2196F3;
}

.mdl-chip__text-f {
    font-size: 21px;
    
}


@media print {
         .p_hidden {display: none !important;}
      }



#sales .Reports, #sales .On.Leave {
  text-align: center;

}

.ftable .Name, #sales .Name, #sales .HQ {
  text-transform: capitalize;

}

 #sales .D.Target {
  text-transform: capitalize;
  text-align-last: justify;

}

#sales .Name a:link, #sales .Name a:visited{

  color:black;
  font-weight: bold;

}

#sales td[class='Reports']{
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
}


#detail_report no {
  color:red;
  font-weight: bold;
  text-align: center;
}

#detail_report yes {
  color:green;
  font-weight: bold;
  text-align: center;
}

#detail_report yes:hover,
#detail_report yes:focus {
  text-decoration: none;
  cursor: pointer;
}


#detail_report .T.C , #detail_report .P.C {
  text-align: center;
}


/*photos css*/

#photos {
   /* Prevent vertical gaps */
   line-height: 5px;
   
   -webkit-column-count: 3;
   -webkit-column-gap:   0px;
   -moz-column-count:    3;
   -moz-column-gap:      0px;
   column-count:         3;
   column-gap:           5px;
}

#photos img {
  /* Just in case there are inline attributes */
  width: 100% !important;
  height: auto !important;
}

@media (max-width: 1200px) {
  #photos {
  -moz-column-count:    3;
  -webkit-column-count: 3;
  column-count:         3;
  }
}
@media (max-width: 1000px) {
  #photos {
  -moz-column-count:    2;
  -webkit-column-count: 2;
  column-count:         2;
  }
}
@media (max-width: 800px) {
  #photos {
  -moz-column-count:    2;
  -webkit-column-count: 2;
  column-count:         2;
  }
}
@media (max-width: 400px) {
  #photos {
  -moz-column-count:    1;
  -webkit-column-count: 1;
  column-count:         1;
  }
}
