html[data-tf-restoring-section="true"] #app > .layout {
  visibility: hidden;
}

.tf71419-material-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
}

.tf71419-status-draft {
  background: #e5e7eb;
  color: #374151;
}

.tf71419-status-submitted,
.tf71419-status-pending {
  background: #fef3c7;
  color: #92400e;
}

.tf71419-status-approved {
  background: #dcfce7;
  color: #166534;
}

.tf71419-status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.tf71419-status-invoiced,
.tf71419-status-billed {
  background: #dbeafe;
  color: #1e40af;
}

.tf71419-material-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  font-size: .82rem;
  font-weight: 800;
}

.tf71419-material-check input,
.tf71419-material-bulk input,
.tf71419-draft-toolbar input,
.tf71414-draft-option > input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.tf71419-material-bulk,
.tf71419-draft-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #b8d9e9;
  background: #e7f5fc;
}

.tf71414-material-job[open] > .tf71414-material-lines {
  padding: 12px 14px 14px;
  background: #eef7ff;
}

.tf71414-material-job[open] > .tf71414-material-lines > .tf71414-material-line {
  border-color: #b8d5ed;
  background: #e6f2ff;
}

.tf71419-material-bulk label,
.tf71419-draft-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 800;
}

.tf71414-draft-option {
  cursor: default;
}

.tf71414-draft-option > span {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.tf71414-draft-option .btn {
  pointer-events: auto;
  white-space: nowrap;
}

.tf71419-draft-toolbar {
  margin-top: 12px;
  border: 1px solid #d7e3dc;
  border-radius: 10px;
}

.tf71414-action-dialog input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #cfd9d4;
  border-radius: 9px;
}

.tf71419-toast.error {
  background: #8d2222;
}

@media (max-width: 640px) {
  .tf71419-material-bulk,
  .tf71419-draft-toolbar {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding-bottom: calc(11px + env(safe-area-inset-bottom));
  }

  .tf71414-draft-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .tf71414-draft-option .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  #time-form .span2.toolbar {
    position: sticky;
    bottom: 0;
    z-index: 8;
    margin-right: -12px;
    margin-left: -12px;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #d8e3dd;
    background: #fff;
  }
}
