:root {
    --mt-primary: #000000;
    --mt-secondary: #2761AE;
    --mt-accent: #999999;
    --mt-bg: #ffffff;
    --mt-bg2: #2761AE;
    --mt-warn: #ff0000;
    --mt-success: #009900;
    --mt-pad: 5px;
    --mt-margin: 5px;

    --mt-sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: var(--mt-bg);
    min-height: 100vh;
    color: var(--mt-primary);
}

/* Header Style */
.mt-header {
background-color: var(--mt-bg2);
width: 100%;
height: 60px;
display: flex;
justify-content: space-between;
}

.mt-header-main {
display: flex;
width: fit-content;
}

.mt-header-menu-button {
font-size: 32px;
font-weight: bold;
color: var(--mt-bg);
padding: 5px;
margin: auto;
border: none;
cursor: pointer;
}

.mt-header-logo-lg {
display: block;
}

.mt-header-logo-sm {
display: none;
}

.mt-header-logo {
margin-top: auto;
margin-bottom: auto;
padding-left: 5px;
padding-right: 5px;
}

.mt-header-logo img{
height: 50px;
border: 1px solid var(--mt-bg2);
border-radius: 5px;
}

.mt-header-title {
font-size: 32px;
font-weight: bold;
color: var(--mt-bg);
padding-left: 20px;
padding-right: 20px;
margin-top: auto;
margin-bottom: auto;
}

.mt-header-end {

padding-right: 15px;
padding-left: 15px;
margin-top: auto;
margin-bottom: auto;
}

.mt-header-end a {
font-size: 20px;
background: var(--mt-bg);
padding: 5px;
border-radius: 5px;
cursor: pointer;
}


/* Sidebar Style */
.mt-sidebar {
position: absolute;
top: 60px;
left: calc(var(--mt-sidebar-width) * -1);
width: var(--mt-sidebar-width);
height: calc(100vh - 60px);
background-color: var(--mt-bg2);
transition: all 0.4s ease;
z-index: 50;
}

.mt-sidebar.open {
left: 0;
}

.mt-sidebar-menu-button a {
font-size: 20px;
font-weight: bold;
padding: 5px;
cursor: pointer;
color: var(--mt-bg2);
margin-right: 0;
margin-left: auto;
border-radius: 8px;
background: var(--mt-bg);
}

.mt-sidebar-nav {
overflow-y: auto;
padding-bottom: 5px;
scrollbar-width: thin;
height: calc(100vh - 120px);
scrollbar-color: transparent transparent;
}

.mt-sidebar-nav:hover {
scrollbar-color: var(--mt-bg) transparent;
}

.mt-nav-bottom {
    position: absolute;
    background: var(--mt-bg);
    color: var(--mt-secondary);
    bottom: 0px;
    width: 100%;
    padding: 5px;
}

.mt-nav-bottom-title {
    font-size: 1rem;
    font-weight: bold;
    flex-grow: 1;
}

.mt-sidebar-nav .mt-nav-list {
list-style: none;
display: flex;
gap: 4px;
padding: 0 15px;
flex-direction: column;

}



.mt-sidebar-nav .mt-nav-item .mt-nav-link {
text-decoration: none;
color: var(--mt-bg);
display: flex;
gap: 15px;
align-items: center;
padding: 4px 4px;

border: 1px solid var(--mt-bg2);
border-radius: 4px;

transition: 0.4s ease;
}

.mt-sidebar-nav .mt-nav-item:hover > .mt-nav-link {
background: var(--mt-bg);
color: var(--mt-bg2);
}

.mt-sidebar-nav .mt-dropdown-container .mt-dropdown-icon {
margin: 0 -4px 0 auto;
transition: transform 0.4s ease, opacity 0.3s 0.2s ease;
}

.mt-sidebar-nav .mt-dropdown-container.open .mt-dropdown-icon {
transform: rotate(180deg);
}

.mt-sidebar-nav .mt-dropdown-menu {
height: 0;
overflow-y: hidden;
list-style: none;
padding-left: 15px;
transition: height 0.4s ease;
}

.mt-content-overlay {
position: fixed; /* Sit on top of the page content */
display: none; /* Hidden by default */
width: 100%; /* Full width (cover the whole page) */
height: 100%; /* Full height (cover the whole page) */
top: 60;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0,0,0,0.5); /* Black background with opacity */
z-index: 40; /* Specify a stack order in case you're using a different order for other elements */


}

.mt-content-overlay.show {
display: block;
}

.mt-body {
display: flex;
}

.mt-main-content {
height: calc(100vh - 60px);
display: flex;
flex-grow: 1;
background: #eeeeee;
position: relative;
overflow-y: hidden;
overflow-x: hidden;

}

.mt-main-content2 {
width: 1000px;
background: var(--mt-bg);
margin-left: auto;
margin-right: auto;
overflow-y: auto;
scrollbar-width: thin;
padding: 0.75rem;
scrollbar-color: transparent transparent;
}

.mt-main-content2:hover {
  scrollbar-color: var(--mt-secondary) transparent;
}

.mt-main-content3 {
  overflow-x: auto;
  scrollbar-width: thin;
}

.mt-row {
    display:flex;
    justify-content: center;
    align-items: center;
}

.mt-cell {
    padding: 2px;
    flex-grow: 1;
}

.mt-cell-scroll-x {
  padding: 2px;
  flex-grow: 1;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.mt-cell-scroll-x:hover {
  scrollbar-color: var(--mt-secondary) transparent;
}


/* Login Page Sytles */
.login-page {
background: #cccccc;
display: flex;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;

}

.login-box {
background: var(--mt-bg);
width: 420px;
padding: 30px;

}

.login-logo {
display: flex;
justify-content: center;
padding: 5px;
}

.login-title {

text-align: center;
padding: 5px;
font-size: 1.5rem;
font-weight: bold;
}

.login-input-box {
position: relative;
width: 100%;
height: 50px;
margin: 30px 0;
}

.login-input-box input {
height: 100%;
width: 100%;
background: transparent;
border: 2px solid var(--mt-accent);
outline: 0;
border-radius: 10px;
font-size: 20px;
padding: 10px 45px 10px 10px;
}

.login-input-box i {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
font-size: 20px;
}

.login-box button {
background: #33cc33;
font-size: 20px;
font-weight: bold;
width: 100%;
height: 50px;
border-radius: 10px;
border: none;
outline: none;
cursor: pointer;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
color: #ffffff;
}

.login-error {
    color: var(--mt-warn);
    font-weight: bold;
    padding: 5px;
}

@media screen and (max-width: 420px) {
  .login-page {
    align-items: unset;
  }

  .login-box {
    width: 100%;
  }
}

/* ---------------------------  */
@media screen and (max-width: 1260px) {
.mt-header-logo-lg {
    display: none;
}

.mt-header-logo-sm {
    display: block;
}

.mt-header-title {
font-size: 24px;
padding-left: 10px;
padding-right: 10px;
}

}


/* Spinner */

.mt-loader-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: flex;
}

.mt-loader {
        width: 100px;
        padding: 8px;
        aspect-ratio: 1;
        border-radius: 50%;
        background: #ffffff;
        --_m: 
          conic-gradient(#0000 10%,#000),
          linear-gradient(#000 0 0) content-box;
        -webkit-mask: var(--_m);
                mask: var(--_m);
        -webkit-mask-composite: source-out;
                mask-composite: subtract;
        animation: l3 1s infinite linear;
      }
      @keyframes l3 {to{transform: rotate(1turn)}}

  .mt-loader-overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
    z-index: 50; /* Specify a stack order in case you're using a different order for other elements */
    
    
    }

    /* Input Container */

.mt-input-container {
  --pad: .75rem;
  --pad2: .5rem;

  position: relative;
  padding-top: var(--pad2);
  padding-bottom: var(--pad2);
    }



.mt-input-container-input {
  padding: var(--pad);
  border-radius: 0px;
  background-color: var(--mt-bg);
  border: 1px solid var(--mt-accent);
  color: inherit;
  width: 100%;
  outline: none;
}

.mt-input-container-input:disabled {
  opacity: 0.4;
}

.mt-input-container-label {
  position: absolute;
  left: calc(var(--pad));
  top: calc(var(--pad) + var(--pad2));
  background: var(--mt-bg);
  padding-inline: .3em;
  pointer-events: none;
  transform-origin: left;
  translate: -.3em;

  transform: translateY(calc(-50% - var(--pad))) scale(.8);
  color: var(--accent);
}

/* Checkbox */
/* Checkbox */
input:where([type="checkbox"][role="switch"]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  color: var(--mt-bg);
  font-size: inherit;
  width: 2em;
  height: 1em;
  box-sizing: content-box;
  border: 1px solid;
  
  vertical-align: text-bottom;
  margin: auto;
  background: var(--mt-accent);
}

input:where([type="checkbox"][role="switch"])::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  transition: all ease 0.4s;
  box-sizing: border-box;
  width: 0.7em;
  height: 0.7em;
  margin: 0 0.15em;
  border: 1px solid;

  background: currentcolor;
}

input:where([type="checkbox"][role="switch"]):checked {

  background: var(--mt-secondary);
}

input:where([type="checkbox"][role="switch"]):checked::before {
  left: 1em;

}

input:where([type="checkbox"][role="switch"]):disabled {
  opacity: 0.4;
}


/* Dialog */

.mt-dialog {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 20; /* Sit on top */
  padding-top: 50px; /* 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 */
}

.mt-dialog-content {
  position: relative;
  background-color: var(--mt-bg);
  margin: auto;
  padding: 0;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.mt-dialog-content-header {
  display: flex;
  padding: 10px;
  color: var(--mt-bg);
  background: var(--mt-bg2);
  font-size: 20px;
  font-weight: bold;
}

.mt-dialog-content-body {
  padding: 20px;
}
.mt-dialog-content-footer {
  justify-content: center;
  display: flex;
  padding-top: 10px;
  padding-bottom: 10px;

  border-top: 1px solid var(--mt-accent);
}

/* Table */

.mt-table {
    width: 100%;
    border-collapse: collapse;
}

.mt-table thead tr th {
    padding: 5px;
    font-size: 1rem;
    border-bottom: 2px solid #999999;
}

.mt-table tbody tr:hover {
    background: #dddddd;
}

.mt-table tbody tr td {
    border-bottom: 1px solid #999999;
    padding: 5px;
}

.mt-simple-table {
    border-collapse: collapse;
}

.mt-simple-table thead tr th {
    padding: 5px;
    font-size: 1rem;
}

.mt-simple-table tbody tr td {
    padding: 5px;
}

/* Button */

.mt-btn-unformat {
    border: 0;
    padding: 0.5rem;
    font-weight: bold;
    font-size: inherit;
    background: unset;
    cursor: pointer;
}

.mt-btn {
    border: 0;
    padding: 0.5rem;
    font-weight: bold;
    font-size: inherit;
    background: unset;
    cursor: pointer;

    margin: .1rem;
  box-shadow: 0 0 .2rem #666666;
}

.mt-btn:hover {
    box-shadow: 0 0 .4rem #666666;
}

.mt-btn:active {
    box-shadow: 0 0 .4rem .1rem #666666;
}

.mt-btn-secondary {
  background: var(--mt-secondary);
  color: var(--mt-bg);
}

.mt-btn-warn {
  background: var(--mt-warn);
  color: var(--mt-bg);
}

.mt-btn-accent {
  background: var(--mt-accent);
  color: var(--mt-primary);
}

.mt-btn-success {
  background: var(--mt-success);
  color: var(--mt-bg);
}

/* Text */

.mt-text-success {
  color: var(--mt-success);
}

.mt-text-warn {
  color: var(--mt-warn);
}

.mt-text-secondary {
  color: var(--mt-secondary);
}

.mt-text-right-align {
  text-align: right;
}

.mt-text-left-align {
  text-align: left;
}

.mt-title1 {
  font-size: 1rem;
  font-weight: bold;
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
}

.mt-title2 {
  font-size: 1.25rem;
  font-weight: bold;
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
}

.mt-title3 {
  font-size: 1.5rem;
  font-weight: bold;
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
}

.mt-pad {
  padding: var(--mt-pad);
}

.mt-hr {
  margin-top: var(--mt-margin);
  margin-bottom: var(--mt-margin);
}