﻿.navdrawer-fixed {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 166px) !important;
  min-height: 0;
}

.navmenu-root {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}
/* Srinakharinwirot Font */
@font-face {
  font-family: "srinakharinwirot";
  src: url("/fonts/srinakharinwirot-regular.eot");
  src: url("/fonts/srinakharinwirot-regular.eot?#iefix")
      format("embedded-opentype"),
    url("/fonts/srinakharinwirot-regular.woff") format("woff"),
    url("/fonts/srinakharinwirot-regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  font-family: "srinakharinwirot", "Sarabun", "Noto Sans Thai", "Noto Sans",
    sans-serif;
  font-size: 14px; /* Mobile base */
}

body {
  font-family: inherit;
  font-size: inherit;
}

/* Ensure all elements inherit the font */
* {
  font-family: inherit;
}

/* Remove default borders and outlines from images */
img {
  border: none;
  outline: none;
}

/* Responsive font sizes */
@media (min-width: 640px) {
  html {
    font-size: 15px; /* Small screens */
  }
}

@media (min-width: 768px) {
  html {
    font-size: 13px; /* Medium screens */
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 17px; /* Large screens */
  }
}

@media (min-width: 1280px) {
  html {
    font-size: 18px; /* Extra large screens */
  }
}

mud-appbar {
  background-color: white;
  color: gray;
}

body {
  margin: 0;
  padding: 0;
}

.modal-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  color: wheat;
  background-color: rgba(169, 169, 169, 0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  --sk-color: white;
}

/* Responsive AppBar layout */
.appbar {
  --banner-h: 96px; /* default (mobile) banner height */
  --toolbar-h: 56px; /* toolbar height */
}

.appbar-banner {
  width: 100%;
  height: var(--banner-h);
  object-fit: contain;
  object-position: center;
  display: block;
}

.appbar-toolbar {
  min-height: var(--toolbar-h);
}

.brand-logo {
  height: 40px;
}

.nav-drawer {
  margin-top: calc(var(--banner-h) + var(--toolbar-h));
}

.main-content {
  padding-top: calc(var(--banner-h) + var(--toolbar-h));
}

/* NavMenu bottom align for auth section */
.mud-nav-menu {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.navmenu-bottom {
  margin-top: auto;
  padding-bottom: 1.5rem;
}

.navmenu-root {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.navmenu-fixed {
  height: 100%;
  min-height: 0;
}

.navdrawer-fixed {
  height: calc(100vh - 206px) !important;
  min-height: 0;
}

/* >= 600px (sm) */
@media (min-width: 600px) {
  .appbar {
    --banner-h: 120px;
    --toolbar-h: 56px;
  }
  .brand-logo {
    height: 56px;
  }
}

/* >= 960px (md) */
@media (min-width: 960px) {
  .appbar {
    --banner-h: 140px;
    --toolbar-h: 64px;
  }
  .brand-logo {
    height: 64px;
  }
}

/* >= 1280px (lg) */
@media (min-width: 1280px) {
  .appbar {
    --banner-h: 160px;
    --toolbar-h: 64px;
  }
  .brand-logo {
    height: 70px;
  }
}

.clickable-image {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

/* MudDataGrid Fixed Column Width Utility */
.mud-datagrid-fixed table {
  table-layout: fixed !important;
  width: 100% !important;
}

.mud-datagrid-fixed .mud-table-cell {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding: 8px !important;
}

.mud-datagrid-fixed .mud-table-container {
  overflow-x: auto !important;
}

/* Column width utility using data attributes */
.mud-datagrid-fixed[data-col-widths] th,
.mud-datagrid-fixed[data-col-widths] td {
  box-sizing: border-box;
}

/*.mud-simple-table.mud-table-sticky-header * table thead * th {
    background-color: var(--mud-palette-surface);
    position: sticky;
    z-index: 1;
    top: 0;
}
*/
