@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Green Variants */
  --green-50: #e3f5ea;
  --green-100: #c1ebd0;
  --green-200: #9edfb5;
  --green-300: #79d39a;
  --green-400: #54c67f;
  --green-500: #2fb964;
  --green-600: #1d9e53;
  --green-700: #178041;
  --green-800: #116130;
  --green-900: #0b431f;
  --green-950: #062a12;
  --green-960: #05421e;
  --green-970: #038e35;
  --green-980: #02652a;
  --green-990: #01401a;

  /* Blue Variants */
  --blue-50: #e5edf4;
  --blue-100: #c7d7e6;
  --blue-200: #a8c0d7;
  --blue-300: #89a9c9;
  --blue-400: #6a92bb;
  --blue-500: #4a7aac;
  --blue-600: #35608b;
  --blue-700: #294b6e;
  --blue-800: #1d3651;
  --blue-900: #112234;
  --blue-950: #0c1723;
  --blue-960: #184370;
  --blue-970: #2365ac;
  --blue-980: #1a4d82;
  --blue-990: #143a5f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}


body {
  font-family: 'Helvetica', sans-serif;
  font-size: 10pt;
}

#loginlogo {
  text-align: center; 
  width: 193px;
  height: 80px;
  margin: 0 auto;
  display: block;

}

.layout {
  height: 100vh;
  width: 100vw;
  display: grid;
  grid-template-rows: 36px 120px auto 3em;
  grid-template-columns: auto;
  grid-template-areas:
    "header"
    "navigation"
    "content"
    "footer";
}
.selected {
  font-weight:bold;
}

input:focus, textarea:focus, select:focus {
  outline-offset: 0;
  outline-width: 0;
  outline: none;
}

.header {
  grid-area: header;
  padding: 1em;
  height: 36px;
}

.head-logout {
  display: flex;
  flex-wrap: wrap;
  float: right;
}
.g4admin-link a,
.head-logout a {
  display: block;
  padding: .5em;
  background-color: #efefef;
  border-radius: 5px;
  color: #333;
  font-weight: bold;
  text-decoration: none;
  font-size: .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;
}

.navigation {
  grid-area: navigation;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.4em;
  border-bottom: solid 30px #1d548c;
}

.sidebar {
  grid-area : sidebar;
  overflow: hidden;
  margin-left: 1mm;
  user-select: none;
  background: #efefef;
  padding: 20px;
}

.content {
  width: 90vw;
  margin: 0 auto;
}



.content-area {
  grid-area: content;
  overflow: hidden;
  height: 100%;
  padding: 20px;
}

.footer {
  grid-area: footer;
  background-color: #00a950;
  color: white;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  padding: 2mm 4mm 0 4mm;
  font-size: 8pt;
}

nav {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-direction: row;
  list-style: none;
  vertical-align: bottom;
  width: 60%;
  margin: 0 auto;
}

nav div {
  flex-grow: 1;
  text-align: center;
}

.inactive-nav {
  font-weight: bold;
  color: #047b3b;
  padding: 2mm;
  user-select: none;
  position: relative;
}

.inactive-nav:after {
  width: 0;
  height: 0;
  position: absolute;
  top: 33px;
  z-index: 9;
  border: solid transparent;
  content: " ";
  pointer-events: none;
  border-color: rgba(29, 84, 140, 0);
  border-bottom-color: #1d548c;
  border-width: .5rem;
  left: 50%;
  margin-left: -5px;
}

.active-nav {
  color: black;
  padding: 2mm;
  margin-left: 1px;
  user-select: none;
}

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

.active-nav:hover {
  color: #1d548c;
  padding: 2mm;
}

nav div:nth-child(2) {
  width: 193px;
  height: 80px;
  background: url('afscme-logo.png') no-repeat;
  background-size: contain;
  background-position: center;
  display: block;
  margin: 0 auto;
}

nav div:nth-child(2) a {
  width: 231px;
  height: 80px;
  display: block;
}

nav div:nth-child(2) .active-nav {
  color: #fff;
}



.archived-tag {
  margin-right: 0.5rem;
  padding: 0 0.25rem 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-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: white;
  background-color: blue;
}

.toast-warning {
  color: black;
  background-color: yellow;
}

.toast-error {
  color: white;
  background-color: red;
}

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

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

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

  100% {
    opacity: 1;
    max-height: 100px;
  }
}

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


/* Hamburger Menu Styles */
.menu-toggle {
    display: none;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 25px;
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #333;
    transition: 0.3s;
    z-index: 999;
}

/* Navigation Styles */
.nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #05ad52;
    display: none;
    flex-direction: column;
    text-align: center;
    padding: 50px;
    z-index: 500;
}

.nav a {
    text-decoration: none;
    color: white;
    padding: 10px;
    display: block;
}

.nav a:hover {
    background-color: #575757;
}

/* Toggle the Menu */
.menu-toggle:checked + .menu-btn + .nav {
    display: flex;
}

/* Hamburger to X transformation */
.menu-toggle:checked + .menu-btn span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle:checked + .menu-btn span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked + .menu-btn span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

@media only screen and (max-width: 600px) {
  .layout {
    height: 100vh;
    width: 100vw;
    display: grid;
    grid-template-rows: 5vh 79px auto 3em;
    grid-template-columns: auto;
    grid-template-areas:
      "header"
      "navigation"
      "content"
      "footer";
  }
  .header {
    padding: .2rem;
  }
  .navigation {
    font-size: 1em;
  }
  nav {
    width: 100%;
  }
  nav div:nth-child(2) a,
  nav div:nth-child(2) {
    width: 33%;
    height: 32px;
  }
  .content {
    width: 100vw;
  }

}

/* Document Collection Styles */
.g4-all_constitutions {
  background-color: #e5f5f9;
}

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

.g4-archived_contracts {
  background-color: #f0f4c3;
}

.g4-settlements {
  background-color: #d1c4e9;
}

.g4-magazines {
  background-color: #ffe0b2;
}

.g4-affiliation_agreements {
  background-color: #c8e6c9;
}

.g4-constitutional_interpretation {
  background-color: #bbdefb;
}

.g4-judicial_panel {
  background-color: #f8bbd0;
}

.g4-jurisdictional_agreements {
  background-color: #d7ccc8;
}

.g4-proceedings {
  background-color: #b2ebf2;
}

.g4-ieb_minutes {
  background-color: #ffccbc;
}

.g4-merged_constitutions {
  background-color: #dcedc8;
}

.g4-international_constitution_archive {
  background-color: #f3e5f5;
}

.g4-model_legislation {
  background-color: #cfd8dc;
}


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

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

.collection-archived_contracts {
  color: #616600;
}

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

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

.collection-affiliation_agreements {
  color: #206030;
}

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

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

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

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

.collection-ieb_minutes {
  color: #a84300;
}

.collection-merged_constitutions {
  color: #486734;
}

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

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

/* User Page Styles */

dialog {
	border: 1px solid black;
	margin: 0;
	padding: 1mm;
	background-color: #e1ede4;
	filter: drop-shadow(5px 9px 7px #000000);
}

dialog::backdrop {
  background-color: black;
  opacity: 0.5;
}

button {
	cursor: pointer;
	font-size: 10pt;
	font-weight: bold;
	padding: 0.25rem 0.5rem 0.25rem 0.5rem;
	border-radius: 0.5rem;
	border: 1px solid gray;
  user-select: none;
}

button:disabled {
  cursor: default;
  background-color: gray;
}

.action-button {
	background-color: navy;
	color: white;
}

.danger-button {
	background-color: red;
	color: white;
}

.danger-button::before {
	content: "⚠️"
}

.cancel-button {
	background-color: darkred;
	color: white;
}
