@import './button-new.css';
@import './sidenav.css';
@import './login-form.css';
@import './logout-form.css';
@import './dialog.css';
@import './tool-tip-dialog.css';
@import './detail-page.css';
@import './salesorder-page.css';
@import './table.css';
@import './report-document-center.css';
@import './responsive.css';
@import './print-page.css';
@import './top-nav.css';
@import './create-update-popup.css';


@font-face {
  font-family: 'AvenirNext';
  src: url('./font/AvenirNextLTPro-Regular.otf') format('opentype');
}

@font-face {
  font-family: 'AvenirNext';
  font-weight: bold;
  src: url('./font/AvenirNextLTPro-Bold.otf') format('opentype');
}

:root {
  --primary: rgb(51, 51, 51);
  --cream: rgb(212, 215, 220);
  --light-grey: rgb(235, 238, 241);
  --green: rgb(44, 160, 28);

  --side-menu-width: 200px;
  --dark-grey: rgb(64, 64, 64);
}

* {
  padding: 0;
  margin:0;
}

body {
	font-family: 'AvenirNext';
	font-size: 14px;
	font-weight: 500;
  color: rgb(51, 51, 51);
}

.nopadding {
    padding: 0;
}

.logo {
	max-width: 200px;
	max-height: 200px;
}

.container{
    height: 100%;
    align-content: center;
}

.card{
    height: 370px;
    margin-top: auto;
    margin-bottom: auto;
    width: 400px;
    background-color: rgba(0,0,0,0.5);
}

.card-header h3{
    color: white;
}

.save-button {
  padding: 0 20px 0 20px;
  margin: 0px;
  height: 32px;
  background-color: rgb(44, 160, 28);
  border-radius: 36px;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(44, 160, 28);
  color: white;
  font-weight: 600;
  box-shadow: none;
  outline: none;
  line-height: 30px;
  text-decoration: none;
}

.save-button:hover {
  color: white;
  text-decoration: none;
  background-color: rgb(38, 135, 26);
  cursor: pointer;
}

.print-button {
  padding: 0 20px 0 20px;
  margin: 0px;
  height: 32px;
  background-color: rgb(249, 98, 60);
  border-radius: 36px;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(249, 98, 60);
  color: white;
  font-weight: 600;
  box-shadow: none;
  outline: none;
  line-height: 30px;
  text-decoration: none;
}

.print-button:hover {
  color: white;
  text-decoration: none;
  background-color: rgb(249, 98, 60);
  cursor: pointer;
}


.plus-button {
  padding: 0 10px 0 10px;
  margin: 0px;
  height: 32px;
  background-color: rgb(44, 160, 28);
  border-radius: 5px;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(44, 160, 28);
  color: white;
  font-weight: 600;
  box-shadow: none;
  outline: none;
  line-height: 30px;
  text-decoration: none;
}

.plus-button:hover {
  color: white;
  text-decoration: none;
  background-color: rgb(38, 135, 26);
  cursor: pointer;
}

.new-button {
  padding: 0 20px 0 20px;
  margin: 0px;
  height: 32px;
  background-color: rgb(44, 160, 28);
  border-radius: 36px;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(44, 160, 28);
  color: white;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  outline: none;
  line-height: 30px;
  text-decoration: none;
}

.light-grey {
  background-color: lightgrey;
  color: #333; /* Change text color if needed */
}


.new-button:hover {
  /* border-width: 2px; */
  color: white;
  text-decoration: none;
  background-color: rgb(38, 135, 26)
}

.secondary-button {
  padding: 0 20px 0 20px;
  margin: 0px;
  height: 32px;
  background-color: white;
  border-radius: 36px;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(141, 144, 150);
  color: rgb(57, 58, 61);
  font-weight: 600;
  box-shadow: none;
  outline: none;
  line-height: 30px;
  text-decoration: none;
}

.secondary-button:hover {
  border-width: 2px;
  text-decoration: none;
  color: rgb(57, 58, 61);
}

.delete-button {
  text-decoration: none;
  color: rgb(145, 16, 16);
}


.close {
  margin: 5px 5px 0px 0px;
}

.close > a {
  color: var(--dark-grey);
  text-decoration: none;
  font-size: 30px;
  font-weight: 300;
  margin: 20px 5px 0px 0px;
}

.errorlist {
  list-style-type: none;
  color: red;
  padding: 0px 20px 0px 20px;
}

/*
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: inner-spin-button !important;
    opacity: 1;
    margin: 0 10px 0 10px;
} */

.form-control {
	padding: 0px 8px 0px 8px;
	margin: 0;
	height: 32px;
	border-width: 1px;
	border-radius: 2px;
	border-color: rgb(186, 190, 197);
	color: rgb(107, 108, 114);
	cursor: text;
	font-size: 13px;
	font-weight: 400;
}

.form-control:focus {
    border-color: green;
    outline: none ;
    outline-color: rgb(51, 51, 51);
    box-shadow: none;
}

.custom-select {
  padding: 6px 8px 8px 8px;
  height: 33px;
  width: 100%;
  color: rgb(107, 108, 114);
  border-radius: 2px;
  border-color: rgb(186, 190, 197);
  border-style: solid;
  border-width: 1px;
  font-size: 13px;
  font-weight: 400;
}

.custom-select:focus {
  border-color: green;
  outline: none ;
  outline-color: rgb(51, 51, 51);
  box-shadow: none;
}

/* ******************************************** */
/* Main container and side menu */
/* ******************************************** */

.main-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: row;
}


.main-content-container {
  width: calc(100vw);
  margin-right: 15px;
  margin-left: 10px;
  overflow: auto;
  /* width: 80vw; */
}

/* For Print View */

.printpage{
    height: 1000px;
    width: 1240px;
}

@media print {
  .noprint {
     visibility: hidden;
  }
}

/* ******************************************** */
/* Side Modal Form */
/* ******************************************** */

.sidemodal {
  display: none; /* Hidden by default */
  position: absolute; /* Stay in place */
  right: 0;

  z-index: 1; /* Sit on top */
  padding-top: 0px; /* Location of the box */
  top: 0;
  width: 100%; /* Full width */
  height: 128%; /* Full height */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.sidemodal-content {
  position: absolute; /* Stay in place */
  right: 0;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 0px solid #888;
  width: 25%;
  height: 77%;
  overflow: scroll;
  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: animateleft;
  -webkit-animation-duration: 0.4s;
}

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

@keyframes animateright {
  from {right:0px; opacity:1}
  to {right:-300px; opacity:0}
}

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

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

.sidemodal-header {
  padding: 20px 16px 20px;
  background-color: #2E374B;
  color: #ebeff7;
}

.sidemodal-body {
  padding: 20px 16px;
  color: black;
}

.sidemodal-footer {
  bottom: 0;
  width: 100%;
  min-height: 60px;
  padding: 10px 16px;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
}

/* ******************************************** */
/* Popup Form */
/* ******************************************** */
.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* The actual popup */
.popup .popuptext {
  display: none;
  width: 160px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 8px 8px 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
}

/* Popup arrow */
.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Toggle this class - hide and show the popup */
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s;
}

@-webkit-keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}

/* ******************************************** */
/* 403 Forbidden Page
/* ******************************************** */

.flex-container-403-forbidden {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 20vh;
}

.flex-container-403-forbidden>div {
  background-color: #f1f1f1;
}

/* ******************************************** */
/* Horizontal Nav Tab
/* ******************************************** */
.horizontal-nav {
	display: flex;
  flex-direction: column;
	margin-left: 10px;
}

/* .horizontal-nav-tab {

} */

.horizontal-nav-tab > ul > li > .nav-link {
	margin-bottom: 0px;
	/* border-bottom: 1px solid #2E374B; */
	/* border-radius: 0.25rem; */
	color: #2E374B;
	font-weight: lighter;
}

.horizontal-nav-tab > ul > li > .nav-link.active {
	border-bottom: solid rgb(16, 128, 0);
  border-width: 0px 0px 4px 0px;
	font-weight: bold;
}

#list-content-container {
	height: 85vh;
	border: 3px solid #485165;
	margin-left: 5px;
	margin-right: 25px;
}



/* ******************************************** */
/* Flex
/* ******************************************** */

.flex-container {
    display: flex;
}

.flex-container-row {
	flex-direction: row;
}

.flex-container-column {
  flex-direction: column;
}

.flex-container-wrap {
	flex-wrap: wrap;
}

.flex-container-space-between {
	justify-content: space-between;
}

.flex-row-space-between {
  display: flex;
  flex-direction: row;
	justify-content: space-between;
}

.flex-column-space-between {
  display: flex;
  flex-direction: row;
	justify-content: space-between;
}

.flex-container-content-start {
	justify-content: flex-start;
}

.flex-container-content-end {
	justify-content: flex-end;
}

.flex-container-content-center {
	justify-content: center;
}

.flex-item-center {
  align-self: center;
  display: inline;
}

.flex-item-start {
  align-self: start;
  display: inline;
}

.flex-item-end {
  align-self: end;
  display: inline;
}
