body {
    background-color: #fff4e6;
    font-family: sans-serif;
    color: #4b3832;
    cursor: default;
    box-sizing: border-box;
}
*,
*::before,
*::after {
    box-sizing: inherit;
}
.page-description {
    width: 80%;
    height: auto;
}
/* Work Order styling */
.quest-wo {
display: inline-block;
text-decoration: underline;
margin: 0 0;
}
.quest-wo-info {
    margin: 0 0;
}
.quest-wo-details {
        display: inline-block;
        margin: 0 0;
}
.quest-wo-rewards {
    margin-left: 25px;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 5px;
    font-size: 14px;
    display: inline-block;
}
.quest-wo-npc {
    margin: 0 0;
    display: inline-block;
}
.quest-wo-zone {
    margin: 0 0 0 8px;
    display: none;
    font-style: italic;
    font-weight: 700;
}
.quest-wo-zone small {
    font-weight: 700;
}
.in-progress .workorder .quest-wo-zone {
    display: inline-block;
}
.completed-header {
    display: inline-block;
    margin: 2px 2px 10px 7px;
}
.complete-btn::after {
  white-space: pre; /* Preserves the white space and treats \A as a line break */
}
/* Clean UI for completed orders */
.workorder.completed {
  opacity: 0.65;
}

.workorder.completed b {
  text-decoration: line-through;
}

.workorder.completed input,
.workorder.completed button {
  cursor: not-allowed;
}
/* Hide NPC name and Complete button when order is completed */

.workorder.completed .npc {
  display: none;
}
.workorder.completed .complete-btn {
  display: none;
}
/* Hide unavailable work orders */
.workorder.hidden-locked {
  display: none;
}

/* Collapse Completed */
.completed {
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.completed.collapsed {
  max-height: 0;
  padding: 0;
}

/* Container Styling */

/* SEARCH */
.style-container.search-highlighted {
  background-color: #7fd1ae;
  transition: background-color 0.2s ease;
  border-radius:4px;
  padding: 4px 6px;
}
.no-matches {
  display: block;
  font-style: italic;
  text-decoration: underline;
  opacity: 0.85;
  font-size: 15px;
  color: #854442;
  margin: 0 0 8px 7px;
}
/*  */
.industry-level-input {
  cursor: text;
}
button {
  cursor: pointer;
}
.available-header {
    margin: 0;
}
/* FLEXBOX */
@media screen and (min-width: 768px) {
    body {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 95%;
    }
    .flex-header {
        border: 1px solid #4b3832;
    }
    .flex-item1 {
            border: 1px solid #4b3832;
                    min-height: 0;
            min-width: 25%;
            max-height: 800px;
            max-width: 25%;
            overflow-y: scroll;
    }
    .flex-item2 {
            border: 1px solid #4b3832;
            flex-shrink: 1;
            min-height: 0;
            min-width: 70%;
            max-height: 800px;
            max-width: 70%;
            overflow: hidden;
            display: flex;
            flex-direction: column;
    }
    .workorder-board {
        display: contents
}
}
/* BUTTON STYLING */
.industry-button {
  box-shadow: 0 5 10 0.2 inset rgba(44, 187, 99, .15)
}
/* SUB HEADER BUTTONS */
.subheader-button {
    background-color: #bfa5a3;
    border-radius: 5px;
    box-shadow: rgba(137, 114, 112, .2) 0 -25px 18px -14px inset,
    rgba(137, 114, 112, .15) 0 1px 2px,
    rgba(137, 114, 112, .15) 0 2px 4px,
    rgba(137, 114, 112, .15) 0 4px 8px,
    rgba(137, 114, 112, .15) 0 8px 16px,
    rgba(137, 114, 112, .15) 0 16px 32px;
    color: #6A1C16;   
    cursor: pointer;
    display: inline-block;
    font-family: CerebriSans-Regular,-apple-system,system-ui,Roboto,sans-serif;
    padding: 3px 7px;
    text-align: center;
    text-decoration: none;
    transition: all 250ms;
    border: 0;
    font-size: 12px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
 .subheader-button:hover {
  box-shadow: rgba(227, 152, 147, .35) 0 -25px 18px -14px inset,
  rgba(227, 152, 147, .25) 0 1px 2px,
  rgba(227, 152, 147,  .25) 0 2px 4px,
  rgba(227, 152, 147,  .25) 0 4px 8px,
  rgba(227, 152, 147,  .25) 0 16px 32px;
  transform: scale(1.05);
}
/* Header Styling */
.industry-input {
  padding: 5px 0 15px 5px;
}

.available-controls {
  display: grid;
  grid-template-columns: 25% 75%;
  align-items: center;
  gap: 10px;
  margin: 2px 7px 6px 7px;
}

.available-search {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-self: start;
  padding-left: 8px;
}

.available {
  display: grid;
  grid-template-columns: 25% 75%;
  gap: 10px;
  padding: 0 7px 7px 7px;
  min-height: 0;
  flex: 1;
}

.zone-nav {
  border: 1px solid #4b3832;
  border-radius: 6px;
  background-color: #f7e4d2;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding: 8px;
  gap: 6px;
  min-height: 0;
}

.zone-tab {
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  font-size: 16px;
  padding: 10px 12px;
}

.zone-tab.active {
  background-color: #7fd1ae;
  color: #2c3a34;
  transform: none;
}

.zone-content {
  border: 1px solid #4b3832;
  border-radius: 6px;
  background-color: #f8ecdd;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}

.zone-block {
  display: none;
}

.zone-block.active {
  display: block;
}

@media screen and (max-width: 767px) {
  .available-controls {
    grid-template-columns: 1fr;
  }

  .available {
    grid-template-columns: 1fr;
  }

  .available-search {
    padding-left: 0;
  }

  .zone-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .zone-tab {
    width: auto;
    flex: 0 0 auto;
    min-height: 40px;
  }

  .zone-content {
    max-height: 70vh;
  }
}
