/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}

/* Base typography */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 10pt;
}

/* Layout */
.layout {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-wrap: wrap;
}

/* Header */
.header {
  padding: 5px;
  position: fixed;
  left:20%;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 120px;
  background-color: #fff;
  z-index: 10;
}

.content .header {
  z-index: 1;
  position: relative;
  top: auto;
  left: auto;
}

div:has(> .head-logout) {
  width:20%;
  justify-content: flex-end;
  height: 45px;
}

.head-logout {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;

}

.g4admin-link {
    z-index: 11;
    top: 45px !important;
    left: 94% !important;
    width: 6%;
}

.g4admin-link a,
.head-logout a {
  display: block;
  padding: 0.5em;
  background-color: #efefef;
  border-radius: 5px;
  color: #333;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 5px;

}

.smaller {
  font-size: 0.7rem;
  vertical-align: middle;
}

.g4admin-link a:hover,
.head-logout a:hover {
  background-color: #cfcfcf;
  color: #333;
}

/* Logo */
.logo {
  background-color: #fff;
  position: fixed;
  width: 20%;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 11;
}
.logo img {
  width: 200px;
}



/* Quick search */
.quick-search {
  width: 60%;
  position: relative;
  height: 35px;
  display: flex;
  justify-content:end;
  background-color: #fff;
}


.quick-search input {
  width: 20vw;
  height: 34px;
  padding: 14px 10px;
  border-radius: 0.25rem;
  font-size: 1.1rem;
  border: 1px solid #ccc;
  margin-right: 0 !important;

}

.quick-search input:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.quick-search input:focus-visible {
  outline: none;
  outline-offset: 2px;
}

/* remove yellow autofill background in WebKit for this input */
.quick-search input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset;
  box-shadow: 0 0 0px 1000px #fff inset;
  -webkit-text-fill-color: inherit;
}

/* overlay placeholder 
.quick-search::before {
  content: "Search all collections...";
  position: absolute;
  left: 14px;
  top: 45%;
  transform: translateY(-50%);
  color: #9aa7b2;
  pointer-events: none;
  transition: opacity .12s ease;
  font-size: 1.1rem;
}


.quick-search:focus-within::before {
  opacity: 0;
}
*/

.quick-search button {
  height: 33px;
  border-radius: 0.25rem;
  padding: 0 20px;
  background: #1d548c;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border: 1px solid #0b3864;
  margin-left: 10px;
}

.quick-search button:disabled {
  background: #ccc;
  border: 1px solid #bbb;
}

/* Sidebar / Content */
.sidebar {
  overflow: hidden;
  margin-left: 1mm;
  user-select: none;
}

.content {
  width: 98%;
  margin: 0 auto 0 auto;
  padding-top: 130px;
}

/* Footer */
.footer {
  background-color: blue;
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 2mm 4mm 0 4mm;
  font-size: 8pt;
}

/* Nav flex items */
nav {
  width:80%;
  display: flex;
  flex-direction: row;
  list-style: none;
  align-items: flex-end;
  gap: 0.5rem;
}

/* distribute nav children evenly */
nav > div {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  text-transform: uppercase;
  font-size: 14px;
  font-family: 'Kanit', sans-serif;
  letter-spacing: 1px;
  padding: 15px 0;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  border-bottom: 5px solid #00316A;
}

nav > div:hover {
  border-bottom: 5px solid #006699;
}

nav > div a {
  width: 100%;
  display: block;
  text-align: center;
  color: #00316A;
}

.active-nav-link {
  text-decoration: none;
}

/* Picker */
.picker {
  scrollbar-width: none;
  font-size: 9pt;
  width: 100%;
  border: 0;
  margin: 0;
}

.picker option {
  padding-left: 1em;
}

.picker-title {
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 0.5mm;
}

/* Tags */
.archived-tag {
  margin-right: 0.5rem;
  padding: 0 0.25rem;
  font-weight: bold;
  font-size: 0.6rem;
  line-height: 1rem;
  color: rgb(127 29 29);
  background-color: rgb(229 231 235);
  border-radius: 0.25rem;
  border: 1px solid rgb(127 29 29);
}

/* Toaster / Toasts */
.toaster-layer {
  z-index: 20;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  pointer-events: none;
}

.toasts {
  display: flex;
  flex-direction: column;
  margin: 1mm;
}

.toast {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  margin-bottom: 1mm;
  text-align: right;
  font-size: 10pt;
  border-radius: 0.25rem;
  width: 20rem;
}

.toast-info {
  color: #fff;
  background-color: blue;
}

.toast-warning {
  color: #000;
  background-color: yellow;
}

.toast-error {
  color: #fff;
  background-color: red;
}

/* Animations */
.fade-in {
  animation: fadeIn linear .5s;
}

.fade-out {
  animation: fadeOut linear .5s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    max-height: 0;
  }
  100% {
    opacity: 1;
    max-height: 100px;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    max-height: 100px;
  }
  100% {
    opacity: 0;
    max-height: 0;
  }
}
/* Document Collection Styles */
.g4-hot_topics {
  background-color: #005662;
}

.g4-cta_central {
  background-color: #7b2e00;
}

.g4-contracts {
  background-color: #616600;
}

.g4-esp_crm {
  background-color: #4a3b6a;
}

.g4-certificated_crm {
  background-color: #8a4600;
}

.g4-advisories {
  background-color: #206030;
}

.g4-arbitrations {
  background-color: #2c3e75;
}

.g4-covid {
  background-color: #7b2940;
}

.g4-edcodes {
  background-color: #5c4d44;
}

.g4-ff_reports {
  background-color: #00767f;
}

.g4-independent_study {
  background-color: #a84300;
}

.g4-accountability_plans {
  background-color: #486734;
}

.g4-staff_advisories {
  background-color: #6b3f6b;
}

.g4-charter {
  background-color: #445f6c;
}

/* remaining collection colors */
.g4-state_budget { background-color: #0b6b35; }   /* deep green */
.g4-perbs        { background-color: #8b1e3f; }   /* maroon */
.g4-sig_plas     { background-color: #1f618d; }   /* strong blue */
.g4-trama        { background-color: #7f3f00; }   /* warm brown/orange */


/* Document Collection Label Colors */
.collection-hot_topics {
  color: #005662;
}

.collection-cta_central {
  color: #7b2e00;
}

.collection-contracts {
  color: #616600;
}

.collection-esp_crm {
  color: #4a3b6a;
}

.collection-certificated_crm {
  color: #8a4600;
}

.collection-advisories {
  color: #206030;
}

.collection-arbitrations {
  color: #2c3e75;
}

.collection-covid {
  color: #7b2940;
}

.collection-edcodes {
  color: #5c4d44;
}

.collection-ff_reports {
  color: #00767f;
}

.collection-independent_study {
  color: #a84300;
}

.collection-accountability_plans {
  color: #486734;
}

.collection-staff_advisories {
  color: #6b3f6b;
}

.collection-charter {
  color: #445f6c;
}

/* remaining collection colors */
.collection-state_budget { color: #0b6b35; }   /* deep green */
.collection-perbs        { color: #8b1e3f; }   /* maroon */
.collection-sig_plas     { color: #1f618d; }   /* strong blue */
.collection-trama        { color: #7f3f00; }   /* warm brown/orange */