html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body .layout {
  display: grid;
  grid-template-columns: 18rem 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header header"
    "nav main";
  height: 100vh;
  margin: 0;
}

header {
  grid-area: header;
  border-bottom: 1px solid #dee2e6;
  position: sticky;
  top: env(safe-area-inset-top, 0);
  background-color: #fff;
  z-index: 1000;
}

header .brand-header {
  font-size: 1.5rem;
  padding: calc(1rem + env(safe-area-inset-top, 0)) 1.5rem 1rem 1.5rem;
  font-weight: bold;
}

nav {
  grid-area: nav;
  
}

.sidebar a {
	color: inherit;
	text-decoration: none;
	display: block;
	padding: 0.75rem 2rem;
	cursor: pointer;
	font-weight:500;
}

.sidebar-header{

	padding: 0.75rem 2rem 2rem;
	font-size: 1.25rem;
	font-weight:500;
}

.sidebar a.active {
  background-color: #EFF6FF;
  color: #2563EB;
}

main {
  grid-area: main;
  padding: 2rem;
  overflow-y: auto;
  background-color: #F9FAFB;
}

main .content 
{
	padding: 2rem;
	background-color: white;
	border-radius: 0.5rem;
	border: 1px solid #dee2e6;
	max-width: 1320px;
	margin-bottom: calc(3rem + env(safe-area-inset-bottom));
}

.border-box { 
	border: 1px solid #dee2e6; 
	border-radius: 0.5rem;
	padding: 2rem;
	height: 100%;
}

.btn-primary { 
	color: #fff; 
	background-color: #2563EB; 
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;	
}

.btn-primary.hover { 
	color: #fff; 
	background-color: #258cfb; 
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;	
}

.btn-secondary { 
	color: #384251; 
	background-color: #F3F4F6; 
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	border-color: #F3F4F6;
}

.btn-complete 
{
	color: #fff;
	background-color: #2ecc71;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
}

.form-label {
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 4px;
	display: block;
}

.form-control {
	padding: .75rem 1rem;
}

.table>:not(caption)>*>* {
  padding: 0.25rem 0 !important;
}

@media (max-width: 991px) {
  body .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "main";
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -18rem;
    width: 18rem;
    height: 100%;
    z-index: 1040;
    transition: left 0.3s ease-in-out;
	background-color: white;
  }

  .sidebar.show {
    left: 0;
  }

  .welcome-message 
  {
	display:none;
  }

  .sidebar .close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: #333;
  }

  .sidebar .close-btn-container {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 1rem;
  }

}
