/* reset */

@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined');
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400;
  font-size: 1.5rem;
}

* {
  box-sizing: border-box;
}

:root {
  --nl-donkergroen: rgb(0, 65, 4);
  /* nl light green is a pretty dark kind of light green */
  --nl-lichtgroen: rgb(82, 158, 82);
  /* nl-geel is an warm kind of yellow */
  --nl-geel: rgb(212, 182, 11);
  /* nl-roze is a warm and dark kind of pink */
  --nl-roze: rgb(211, 117, 132);
  /* nl-donkerroze is a dark and warm kind of pinky purple */
  --nl-donkerroze: rgb(138, 46, 84);
  /* nl-beige is a light and warm kind of beige */
  --nl-beige: rgb(249, 246, 243);
}

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

/* Application styles */
body {
  background-color: white;
  color: rgb(0, 65, 4);
  font-family: 'Tahoma', sans-serif;
  margin: 1.5rem;
  padding: 0;
}

main {
  display: flex;
  flex-direction: column;
  margin-top: 2em;
  margin-left: auto;
  margin-right: auto;
  min-height: calc(100vh - 10em);
  padding: 1rem;

  menu {
    padding: 0;
    display: flex;
    margin-top: 1em;
    margin-bottom: 1em;
    a {
      background-color: var(--nl-lichtgroen);
      color: white;
      padding: 0.5rem;
      border-radius: 0.25rem;
      /* center the text both vertically and horizontally */
      display: flex;
      align-items: center;
      justify-content: center;

      &:hover {
        background-color: var(--nl-donkergroen);
      }
    }
  }
}

details {
  width: 100%;
  margin-top: 0.5em;
  padding: 1em;
  background-color: rgb(0, 65, 4);
  color: white;
  border-radius: 0.5em;
}

header {
  display: flex;
  align-items: center;
  background-color: white;
  font-size: 1.25em;
  color: white;
  margin-top: 1em;

  a {
    align-items: center;
    /* color: white; */
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
    text-decoration-color: var(--nl-geel);
    /* color: var(--nl-lichtgroen); */
    text-decoration-thickness: 0.1px;
    text-underline-offset: 1em;
    /* shadow */
    text-shadow: 0 0 1px var(--nl-geel);
  }

  menu {
    margin: 0;
    /* margin-left: auto;
    margin-right: 1em; */
    display: flex;
    justify-content: left;
    gap: 1em;
    text-transform: uppercase;
    position: relative;
    width: 100%;

    a {
      padding: 0.25rem 0.5rem;
      border: 1px solid transparent;
      border-radius: 0.25rem;

      &:hover {
        border-color: #327756;
      }

      &:last-of-type {
        position: absolute;
        right: 2rem;
      }
    }
  }
  border-bottom: 4px dashed var(--nl-lichtgroen);
}

page-title {
  /* margin-left: 0.5em; */
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.logo {
  height: 4em;
  padding: 1em;
}

h1 {
  font-size: 3em;
}

button,
input[type="submit"],
.btn {
  background-color: var(--nl-lichtgroen);
  border: none;
  border-radius: 0.25em;
  color: white;
  padding: 0.75em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-size: 1em;
}

button:hover,
input[type="submit"]:hover,
.btn:hover {
  background-color: rgb(0, 100, 4);
  &.btn-danger {
    background-color: rgb(146, 36, 36);
  }
}

.btn-danger {
  background-color: rgb(221, 98, 98);
}

form {
  /* max-width: 50rem; */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

form-field {
  display: flex;
  flex-direction: column;
  /* margin-top: 0.5em; */
  /* margin-bottom: 1em; */
}

form-input {
  display: flex;
  /* padding: 0.5em; */
  width: 100%;

  input,
  select {
    padding: 0.75em;
    width: 100%;
  }
}

.batch-row {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 1fr;
  gap: 0.5rem;
  /* padding: 0.25rem; */
  /* vertical center grid cell content */
  align-items: center;

  >* {
    padding: 0.25rem;
  }
  &.header {
    font-weight: bold;
  }
  &.filters {
    margin-bottom: 1rem;
  }
}

a:hover.batch-row {
  background-color: var(--nl-lichtgroen);
  color: white;
  border-radius: 0.25em;
}

.actions {
  font-size: 0.75em;
  display: flex;
  /* gap: 0.5rem; */
  button, input[type="submit"], .btn {
    background-color: white;
    color: var(--nl-lichtgroen);
    font-size: 0.75em;
    border-radius: 0.25rem;
    margin: 0;
    padding: 0.25rem;
  }
  .btn-danger {
    color: rgb(221, 98, 98);
  }
}

.justify-content-right {
  justify-content: right;
}

table.barby-barcode {
  border-spacing: 0;
}

tr.barby-row {}

td.barby-cell {
  width: 3px;
  height: 30px;
}

td.barby-cell.on {
  background: #000;
}

pre.barby-barcode {
  padding: 0;
  margin: 0;
  /* font-size: 0.75em; */
  font-family: monospace;
  color: black;
  display: flex;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.7em;
  /* Adjust for better spacing */
  white-space: pre;
  /* width: 6cm; */
  /* Shrink to barcode width */
}

.title {
  font-weight: bold;
  font-size: 1.75em;
}

cols2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

cols3 {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  :nth-child(1) {
    justify-self: start;
  }

  :nth-child(2) {
    justify-self: center;
  }

  :nth-child(3) {
    justify-self: end;
  }
}

cols4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0.5rem;
}

cols5 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 0.5rem;
}

cols {
  display: grid;
  gap: 0.5rem;
  /* vertical align bottom */
  align-items: flex-end;
}

.center {
  display: grid;
  place-items: center;
}

.mt {
  margin-top: 1em;
}

.mb {
  margin-bottom: 1em;
}

.grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); */
  /* grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); */
  grid-template-columns: repeat(2, 1fr);
  /* gap: 1em; */
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-light {
  color: rgb(0, 65, 4, 0.5);
}

.border-bottom {
  border-bottom: 1px solid rgb(0, 65, 4);
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-1 {
  gap: 1em;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.h2 {
  font-size: 1.5em;
  font-weight: bold;
}

/* grid align bottom */
.align-items-end {
  align-items: flex-end;
}

@import "batch_header";

button.simple {
  padding: 0.35rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background-color: #094332;
}

select.simple {
  padding: 0.5rem 1rem;
  border: 1px solid #094332;
  border-radius: 4px;
  background-color: #fff;
  color: #094332;
}

.text-left {
  text-align: left;
}

.m-auto {
  margin-left: auto;
  margin-right: auto;
}

.pr-1 {
  padding-right: 0.5rem;
}

/* a disabled select has a darker text color */
select:disabled {
  color: var(--nl-donkergroen);
  font-weight: bold;
}

.vertical-center {
  display: flex;
  align-items: center;
}

.bold {
  font-weight: bold;
}

.fw {
  width: 100%;
}

/* Card styles */
.card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.card-body {
  padding: 1.5rem;
}

.shadow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Alert styles */
.alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}
