/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");

:root {
  --black: #121215;
  --bright-blue: #4477ce;
  --light-blue: #284577;
  --light-grey: #e2e2e2;
  --mid-blue: #192437;
  --mid-grey: #7d7d8c;
  --dark-blue: #1a1d23;
  --dark-yellow: #ffb81e;
  --dark-yellow-trans: rgba(255, 184, 30, 0.08);
  --status-red: #b31e1e;
  --status-success: #3ba021;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  margin: 0;
}

.top-bar {
  align-items: center;
  background-color: var(--dark-blue);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
  display: flex;
  padding: 24px 40px;
  position: relative;
}

.top-bar-icons {
  flex: 1;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.icon {
  background: none;
  border: none;
  display: block;
  color: var(--dark-yellow);
  cursor: pointer;
  padding: 0;
}

.icon.danger {
  background-color: transparent;
  color: var(--status-red);
}

.icon.success {
  background-color: transparent;
  color: var(--status-success);
}

.icon.active {
  color: var(--white);
  cursor: default;
}

.icon.disabled {
  color: var(--light-blue);
  cursor: default;
}

.gapped-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

h1 {
  font-size: 18px;
  font-variation-settings: "wght" 600;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

h2,
.h2 {
  font-size: 24px;
  font-variation-settings: "wght" 500;
  margin: 0;
}

h3 {
  color: var(--light-grey);
  font-size: 16px;
  font-variation-settings: "wght" 600;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

/* For Quantity and Markup adjustments */
h3.wide {
  width: 132px;
}

.card {
  background-color: var(--dark-blue);
  border: 2px solid var(--mid-blue);
  border-radius: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 34px;
  width: 390px;
}

.header {
  align-items: center;
  background-color: var(--mid-blue);
  display: flex;
  padding: 30px 34px;
  width: 390px;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
}

a {
  text-decoration: none;
  color: var(--white);
}

button,
input[type="submit"] {
  background-color: var(--dark-yellow-trans);
  border-radius: 12px;
  border-width: 0;
  color: var(--dark-yellow);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-variation-settings: "wght" 600;
  padding: 8px 18px;
}

input[type="submit"] {
  padding: 12px 18px;
}

.fullw {
  width: 100%;
}

button.bright,
input[type="submit"].bright {
  background-color: var(--dark-yellow);
  color: var(--dark-blue);
}

button[disabled],
input[type="submit"][disabled] {
  background-color: var(--mid-blue);
  color: var(--mid-grey);
}

button.danger {
  background-color: var(--status-red);
  color: var(--white);
}

pre {
  font-family: "Roboto Mono";
  margin: 0;
  text-align: right;
}

svg {
  display: block;
}

table {
  border-spacing: 0 10px;
  width: 100%;
}

th {
  color: var(--mid-grey);
  font-family: "Inter";
  font-size: 12px;
  font-variation-settings: "wght" 600;
  letter-spacing: 0.09em;
  padding: 0;
  text-align: end;
  text-transform: uppercase;
}

th:first-of-type {
  text-align: start;
}

td {
  padding: 0;
}

hr {
  border: none;
  border-top: 2px solid var(--mid-blue);
  height: 0;
  margin: 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Only show expanded icon if parent is active, and don't show collapsed one if parent is active */
.expanded {
  display: none;
}

.active .expanded {
  display: block;
}

.active .collapsed {
  display: none;
}

.four-col {
  display: flex;
  align-items: center;
}

.four-col > * {
  overflow: hidden;
  width: 25%;
}

button.plusminus {
  background: none;
  border: none;
  color: var(--dark-yellow);
  cursor: pointer;
  font-family: "Roboto Mono";
  font-size: 18px;
  padding: 0;
}

pre.editable {
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 0;
  position: relative; /* Lets .unit-mark be positioned relative to this */
  text-align: center;
}

pre.editable.small {
  width: 42px;
  height: 28px;
  line-height: 1.6;
}

pre.editable.wide {
  width: 64px;
}

ol {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-result {
  align-items: center;
  background: none;
  border: none;
  color: var(--dark-yellow);
  display: block;
  display: flex;
  font-variation-settings: "wght" 400;
  gap: 4px;
  padding: 0;
  text-align: start;
  width: 100%;
}

.search-result-name {
  flex: 1;
}

.task-type {
  align-items: center;
  color: var(--light-grey);
  display: flex;
  font-size: 12px;
  gap: 4px;
}

.task-type svg {
  color: var(--bright-blue);
}

input {
  background-color: var(--mid-blue);
  border: 1px solid var(--dark-yellow);
  border-radius: 6px;
  color: var(--white);
  font-family: "Inter";
  font-size: 16px;
  font-variation-settings: "wght" 400;
  padding: 6px 10px;
  width: 100%;
}

input::placeholder {
  color: var(--white);
  opacity: 1;
}

dialog {
  background-color: var(--mid-blue);
  border: 2px solid var(--light-blue);
  border-radius: 12px;
  padding: 0;
}

form[method="dialog"] {
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 34px;
  width: 350px;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.75);
}

form.rename {
  display: flex;
  gap: 4px;
  width: 100%;
}

div.project-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: -30px -34px;
  padding: 30px 34px;
  gap: 10px;
}

/* Utility for hiding sections by only swapping classes */
.hidden {
  display: none;
}

.unit-mark {
  position: absolute;
}

p {
  margin: 0;
}

p.notice,
p.alert {
  visibility: hidden;
}

div.tags {
  display: flex;
  gap: 6px;
  overflow: scroll; /* Prevents tags from exceeding column width */
  scrollbar-width: none;
}

div.tag {
  background-color: var(--mid-blue);
  border-radius: 6px;
  color: var(--light-grey);
  font-size: 12px;
  margin-top: 6px;
  padding: 2px 6px;
  white-space: nowrap;
}

.add-fee-form {
  border: solid 2px var(--mid-blue);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.area-task-header-qty {
  color: var(--dark-yellow);
  font-size: 16px;
  font-variation-settings: "wght" 500;
}

.devise-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
}

.devise-card {
  background-color: var(--dark-blue);
  width: 400px;
  border-radius: 12px;
  border: 1px solid var(--dark-yellow);
  padding: 36px;
  gap: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.devise-card form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.devise-card .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 12px;
}

ul {
  margin: 0;
  padding-left: 18px;
}
