/**
 * Colors for all sections
 */
.ni2-table-header .col:first-child {
    background: #aaf2ff;
}

.ni2-table-header .col:nth-child(2) {
    background: #9ffff6;
}

.ni2-table-header .col:nth-child(3) {
    background: #ddec98;
}

.ni2-table-header .col:last-child {
    background: #ffb8b8;
}

 /*
.ni2-table-header .col h4,.ni2-table-header .col h6, .ni2-table-header .col p{
    color: #fff;
}
*/

.ni2-table thead{
    background: #faebd7;
}

.ni2-table .category-row {
    background: #e44343;
    color: #fff;
}

.ni2-table td del{
    color: #ff3232;
}

.ni2-table td ins{
    color: #0018de;
}

.ni2-table .row-total{
    color: #de0000;
}

.ni2-table .input-group input[type="number"] {
    background: #fff;
}


.ni2-table .input-group input[type='button'] {
    background: #e44343;
    color: #fff;
}


/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 600;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.modal-content .close{
    font-size: 20px;
    color: #fff;
    background: #892828;
    border-radius: 100%;
    padding: 3px 8px;
    text-align: right;
    float: right;
    cursor: pointer;
}

.modal-content .message{
    font-weight: 600;
}



/**
 * Styling for Table Header
 */
 
.mob-only{
    display: block;
}


table.ni2-table, .ni2-table td{
	border: 1px solid #c5c5c5;
}
 
.ni2-table-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    background: beige;
    align-content: space-between;
    flex-wrap: nowrap;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    z-index: 400;
}

.ni2-table-header .col {
    display: inline-flex;
    min-height: 100px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    text-align: center;
    flex: 25%;
}


.ni2-table thead{
    position: -webkit-sticky; 
    position: sticky;
    top: 100px;
    z-index: 400;
} 

.ni2-table td, .ni2-table th{
    padding: 5px 10px;	
}

.ni2-table th{    
	font-size: 15px;
	text-align: center;
}

.ni2-table-header .col h4,.ni2-table-header .col h6, .ni2-table-header .col p{
    margin: 5px auto;
}

.ni2-table .category-row, .ni2-table .category-row td{
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
}

.ni2-table .row-img{
    width: 5%;
    text-align: center;
}

.ni2-table .row-name{
    font-weight: 600;
    width: 37%;
}

.ni2-table .row-desc{
    text-align: center;
    width: 10%;
}

.ni2-table .row-price{
    text-align: right;
    font-weight: 600;
    width: 18%;
}

.ni2-table .row-qty{
    text-align: center;
    width: 15%;
}

.ni2-table td.row-total{
    text-align: right;
    font-weight: 600;
    width: 15%;
}

.ni2-table .mob-price{
    display: none;
}

.ni2-table td ins{
    text-align: right;
    font-weight: 600;
}



/**
 * Styling for Input group and button for qty
 */
.ni2-table input[type="button"] {
  -webkit-appearance: button;
  cursor: pointer;
}

.ni2-table input::-webkit-outer-spin-button,
.ni2-table input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.ni2-table .input-group {
  clear: both;
  margin: 5px 0;
  position: relative;
}

.ni2-table .input-group input[type='button'] {
  min-width: 38px;
  width: auto;
  transition: all 300ms ease;
}

.ni2-table .input-group .button-minus,
.ni2-table .input-group .button-plus {
  font-weight: bold;
  height: 38px;
  padding: 0;
  width: 38px;
  position: relative;
}

.ni2-table .input-group input[type="number"]{
  position: relative;
  height: 38px;
  text-align: center;
  width: 62px;
  display: inline-block;
  font-size: 13px;
  margin: 0 -5px;
  resize: vertical;
}

.ni2-table input[type="number"] {
  -moz-appearance: textfield;
  -webkit-appearance: none;
}

/*
* Mobile Styling for Ni2 Table
*
*/

@media only screen and (max-width: 780px) {
    
    .mob-only{
        display: none;
    }
    
    .ni2-table-header .col:last-child {
        padding: 10px;
    }
    
    .ni2-table-header .col h4 {
        font-size: 14px;
    }
    
    .ni2-table td, .ni2-table th{
        padding: 5px;
    }
    
    .ni2-table td.row-desc, .ni2-table .h-desc{
        display:none;
    }
    
    .ni2-table td.row-price, .ni2-table .h-price{
        display:none;
    }
	
	.ni2-table td.row-img{
        width: 10%;
        padding: 0;
        margin: 0;       
    }
    
    .ni2-table td.row-name{
        width: 50%;
        font-size: 12px;
    }
    
    .ni2-table td.row-qty{
        width: 20%;
        padding: 0;
        font-size: 12px;
        
    }
    
    .ni2-table td.row-total{
        width: 20%;
        font-size: 12px;
        
    }
	
    .ni2-table .mob-price{
        display: block;
    }
    
    .ni2-table .input-group input[type='button'] {
        min-width: 25px;
        font-size: 12px;
    }
    
    .ni2-table .input-group input[type="number"] {
        width: 35px;
        font-size: 12px;
        resize: horizontal;
    }
    
    .ni2-table-header .col:nth-child(2) {
        display: none;
    }
    
    .ni2-table-header .col input[type=submit] {
        padding: 10px 15px;
    }
    
}