:root {
    --primary-bg-color: #1C1C1C;
    --primary-text-color: #D7DADC;
    --secondary-bg-color: #233d46;
    --seconday-text-color: #171717;
    --button-color: #6EACDA;
    --button-hover: #6EBFFA;
    --border-color: #444444;
    --accent-color-1: #3e5266;
    --accent-color-2: #ffa622;
    --hover-color: #333c6f;
    --input-white: white;
}

html {
    height: 100%;
    line-height: 1.3;
}
body {
    font-size: 14px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}
nav {
    background-color: var(--accent-color-1);
    color: black;
}
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--accent-color-1);
}
nav ul li {
    float: left;
}
nav ul li a {
    display: block;
    color: var(--primary-text-color);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}
nav ul li a:hover {
    background-color: var(--hover-color);
    color: var(--primary-text-color);
}
.main {
    display: flex;
    flex-direction: row;
    justify-content: center;
    min-height: 80%;
    width: 100%;
}
.left-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 15%;
    padding: 10px 0;
}
.left-section h2 {
    display: flex;
    border-bottom: var(--border-color) solid 2px;
    justify-content: center;
    margin-top: 0;
}
.right-section {
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
}
.filter-menu {
    font-size: larger;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.filter-menu a {
    position: relative;
    box-sizing: border-box;
    text-decoration: none;
    padding: 10px;
    color: gainsboro;
}
.filter-menu .filter-on {
    background-color: white;
    color: black;
}
.filter-menu a:hover {
    background-color: rgba(255,255,255, 80%);
    color: black;
}
.homepage-announce {
    white-space: pre-wrap;
    padding-bottom: 40px;
}
.homepage-post {
    position: relative;
    display: flex;
    margin-bottom: 25px;
    border-bottom: var(--border-color) solid 2px;
}
.homepage-post-date {
    font-size: 10px;
    position: absolute;
    left: 20px;
    bottom: 0;
}
.post-title {
    font-size: 24px;
}
/* Sidebar */
.sidebar {
    position: absolute;
    width: 250px;
    background-color: white;
    transition: all 0.1s;
    overflow: hidden;
    top: 200px;
    left: 0;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}
.sidebar.closed {
    margin-left: -250px;
}
.sidebar-menu {
    display: flex;
    flex-direction: column;
    color: black;
}
.sidebar-menu a {
    padding: 5px;
    color: black;
}
.sidebar-button {
    cursor: pointer;
    padding: 10px;
    background-color: aliceblue;
    box-sizing: border-box;
    color: black;
    border: transparent;
    border-left: solid lightcoral;
    border-left-width: 5px;
}
.sidebar-button:hover {
    background-color: gainsboro;
}
.arrow {
    border: solid black;
    box-sizing: border-box;
    border-width: 0 4px 4px 0;
    display: inline-block;
    padding: 3px;
  }
.arrow.right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transition: all 0.5s;
}
.arrow.left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    transition: all 0.5s;
}
/* Buttons */

.a-btn {
    align-self: flex-start;
    text-decoration: none;
    padding: 4px 10px;
    color: var(--seconday-text-color);
    background-color: var(--button-color);
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}
.a-btn:hover {
    background-color: var(--button-hover);
}
.close-btn {
    text-decoration: none;
    font-weight: bold;
    color: black;
    position: absolute;
    padding: 5px;
    top: 0;
    right: 0;
}
.close-btn:hover {
    background-color: #343434;
    color: white;
}
.sb-btn {
    padding: 5px;
    background-color: white;
    border-radius: 10px;
    border: solid 1px black;
}
.sb-btn:hover {
    background-color: antiquewhite;
    cursor: pointer;
}
.admin-link-btn {
    padding: 10px 15px;
    background-color: aliceblue;
    color: black;
    border-left: solid lightcoral;
    border-left-width: 3px;
    cursor: pointer;
}
.admin-link-btn:hover {
    background-color: gainsboro;
}
.big-button {
    padding: 5px 10px;
    background-color: gainsboro;
    color: black;
    margin-top: 10px;
    box-sizing: border-box;
}

/* Utility styles */
input:disabled {
    background-color: transparent;
    border: none;
    color: var(--primary-text-color);
    font-family: inherit;
}
.space-between {
    justify-content: space-between;
}
.relative {
    position: relative;
}
.lower-right {
    position: absolute;
    right: 5px;
    bottom: 5px;
}
.item {
    background-color: var(--primary-bg-color);
    color: black;
    padding: 5px 10px;
}
.flex-col {
    display: flex;
    flex-direction: column;
    padding: 10px;
}
.flex-col-no-padding {
    display: flex;
    flex-direction: column;
    padding: 0;
}
.pad-5 {
    padding: 5px;
}
.pad-side-5 {
    padding: 0 5px;
}
.flex-row {
    display: flex;
    flex-direction: row;
}
h3 {
    padding: 0;
    margin: 0;
    font-size: 18px;
}
h4 {
    padding: 0;
    margin: 0;
}
.fixed-width-200 {
    text-wrap: wrap;
    width: 200px;
}
.fixed-width-150 {
    width: 150px;
}
.fixed-width-100 {
    width: 100px;
}
.fixed-width-75 {
    width: 75;
}
.fixed-width-50 {
    width: 50px;
}
.fixed-width-1000 {
    width: 1000px;
}

.center {
    align-items: center;
    justify-content: center;
}
.error-bg {
    background-color: darkgoldenrod;
    color: red;
}
.error-msg {
    color: red;
}
/* Store nav bar */
.store-selector {
    width: 100%;
    overflow: hidden;
}
.store-selector ul {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    padding: 0;
}
.store-selector a {
    padding: 15px;
    background-color: steelblue;
    color: white;
    text-decoration: none;
    border: solid 1px white;
}
.store-selector a:hover {
    background-color: lightblue;
    color: black;
}
#selected-store {
    background-color: white;
    color: black;
    border: solid 1px black;
}
/* Special Orders */
.so-link {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    color: var(--primary-text-color);
    padding: 10px;
}
.so-link:hover {
    background-color: var(--hover-color);
    color: var(--primary-text-color);
}
.so-header {
    background-color: rgba(255, 255, 255, .08);
    color: var(--primary-text-color);
}
.so-background {
    background-color: var(--primary-bg-color);
}
.special-order {
    background-color: rgba(255, 255, 255, .08);
    border-radius: 10px;
    color: var(--primary-text-color);
    border: var(--border-color) solid 1px;
    margin: 10px 0 0 0;
}
.special-order-container {
    margin: 10px;
    display: flex;
    flex-direction: column;
    border: var(--border-color) solid 1px;
    border-radius: 10px 10px  0 0;
}
.special-order-heading {
    background-color: var(--secondary-bg-color);
    padding: 10px;
    border-radius: 10px 10px 0 0;

}

.order-comments {
    overflow: hidden;
    resize: none;
    field-sizing: content;
    min-height: 30px;
    padding: 10px;
    border: thin 1px black;
    color: var(--primary-text-color);
    background-color: var(--primary-bg-color);
    width: 90%;
    margin: 5px 0;
    font-weight: bold;
}
.order-comments:focus {
    outline: var(--accent-color-2) solid 1px;
    color: var(--primary-text-color);
    background-color: var(--secondary-bg-color);
}

/* Special Order tracking */
.tracking {
    width: 200px;
}
.tracking-show {
    display: flex;
}
.tracking-hide {
    display: none;
}
/* Login style */
.login-form {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border: var(--border-color) solid 1px;
    border-radius: 10px;
    padding: 100px;
    background-color: rgba(255, 255, 255, .08);
    color: var(--primary-text-color);
}
.login-form-header {
    position: absolute;
    display: flex;
    padding: 5px 0;
    justify-content: center;
    background-color: var(--accent-color-1);
    color: white;
    font-size: 36px;
    border-radius: 9px 9px 0 0;
    border-bottom: solid 3px black;
    width: 100%;
    top: 0;
    left: 0;
}
.login-form input {
    border: var(--accent-color-2);
    border-bottom: var(--secondary-bg-color) solid 3px;
    background-color: var(--input-white);
    color: var(--primary-bg-color);
    overflow: hidden;
    margin: 10px auto;
    padding: 10px;
    width: 250px;
    box-sizing: border-box;
    border-bottom: transparent solid 3px;
}
.login-form input:focus {
    border: rgba(255,150,100, 30%) solid 1px;
    outline: transparent;
    border-bottom: var(--accent-color-2) solid 3px;
}
.login-form button {
    margin: 10px auto;
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    font-size: 18px;
    border: rgba(100,100,100, 80%) solid 1px;
    background-color: var(--button-color);
}
.login-form button:hover {
    background-color: var(--button-hover);
    cursor: pointer;
}
.center-form {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Stock balance page */

.sb-list {
    padding: 0;
    list-style-type: none;
}
.sb-list a {
    text-decoration: none;
    color: aliceblue;
}
.sb-list a:hover {
    color: wheat;
}
.sb-item {
    padding: 10px;
    background-color: lightblue;
    margin: 10px;
}
.sb-size-heading {
    background-color: darkblue;
    color: white;
    border: #343434 solid 1px;
}
.sb-warning {
    background-color: lightcoral;
}
.stockbalance-table {
    border-collapse: collapse;
    background-color: white;
    color: black;
    border: solid 1px gray;
    margin-bottom: 10px;

}
.stockbalance-table th {
    padding: 10px;
    border: solid 1px gray;

}
.stockbalance-table td {
    padding: 10px;
    text-align: center;
}
.left-td {
    border-left: 2px solid black;
    border-right: 1px dashed gray;
}
.right-td {
    border-right: 2px solid black;
    border-left: 1px dashed gray;
}
.flex-spaced {
    display: flex;
    justify-content: space-evenly;
}
/* PO Generator Page */

.grid-container {
    display: grid;
    grid-template-columns: 100px 100px 100px;

}
.grid-item-label {
    grid-column-start: 1;
    grid-column-end: 1;
    margin: 10px 0;
    padding: 5px;
}
.grid-item {
    grid-column-start: 2;
    grid-column-end: span 3;
    margin: 10px 0;
    padding: 5px;
}
.po-list {
    color: var(--primary-text-color);
    display: flex;
    flex-direction: column;
}
.po-list:visited {
    color: gray;
}

/* Admin pages */

.admin-input {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: transparent;
    width: 200px;
}
.admin-add-user {
    overflow: hidden;
    background-color: #393939;
}
.user-list {
    list-style-type: none;
    padding: 0; 
}
.vendor-po-settings {
    padding: 10px;
    width: 500px;
    margin: 10px;
    background-color: #393939;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}
.vendor-po-settings button {
    border: none;
    border-radius: 4px;
    color: white;
    padding: 10px;
    background-color: #595959;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}
.vendor-po-settings button:hover {
    cursor: pointer;
    background-color: #6f6f6f;
}
.po-settings-input {
    width: 30px;
    padding: 5px;
    margin: 5px;
}
/* Site settings */
.settings-card {
    position: relative;
    padding: 10px;
    width: 700px;
    margin: 10px;
    background-color: #393939;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}
#toggleApiKey {
    text-decoration: none;
    color: white;
    padding: 0 10px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    border-radius: 4px;
}
#toggleApiKey:hover {
    cursor: pointer;
    background-color: #6f6f6f;
}
#api-key {
    margin-left: 5px;
    padding: 5px;
    width: 300px;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    border-radius: 4px;
}

.user {
    width: 300px;
    margin: 10px;
    padding: 10px;
    background-color: #393939;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}
.user-details {
    display: flex;
    justify-content: space-between;
    padding: 5px;
}
.edit-home-body {
    width: 60%;
    height: 250px;
    resize: none;
    padding: 10px;
    font-family: inherit;
    font-size: inherit;
}
.edit-home-title {
    width: 60%;
    font-family: inherit;
    font-size: inherit;
    padding: 10px;
}
.edit-post {
    white-space: pre-wrap;
    padding: 10px;
}
.edit-post:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px burlywood;
    background-color: rgba(0, 0, 0, 0.33);
}
.edit-post-btn {
    text-decoration: none;
    justify-content: center;
    margin: 5px;
    border: none;
    border-radius: 4px;
    color: white;
    padding: 5px 10px;
    background-color: #595959;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}
.edit-post-btn:hover {
    cursor: pointer;
    background-color: #6f6f6f;
}

/* NEW POST PAGE */

.new-post {
    width: 70%;
    height: 250px;
    resize: none;
    padding: 10px;
    font-family: inherit;
    font-size: inherit;
}
.new-post-title {
    width: 70%;
    padding: 10px;
}