@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/roboto-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/roboto-medium.ttf") format("truetype");
}

:root {
  /* Paleta de core_webapp/tailwind.config.js. */
  --primary: #0C2131;
  --subprimary: #304250;
  --secondary: #EC7211;
  --accent: var(--primary);
  --nav: var(--primary);
  --ink: var(--primary);
  --muted: #545B64;
  --line: #DEDEDE;
  --bg: #f5f5f5;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.45;
  font-synthesis: none;
}

.brand-mark {
  background: var(--secondary);
  color: var(--primary);
}

.brand small,
.sidebar-foot,
nav a {
  color: #DEDEDE;
}

nav a:hover,
nav a[aria-current] {
  background: var(--subprimary);
}

nav a[aria-current] {
  border-color: var(--secondary);
}

:focus-visible {
  outline-color: var(--secondary);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: none;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary);
}

.callout,
#notice {
  background: #eeeeee;
  border-left-color: var(--primary);
}

.error,
#notice.error {
  background: #fceeee;
  border-left-color: var(--error);
}

th {
  background: #f7f7f7;
}

tbody tr:hover {
  background: #f5f5f5;
}

.badge.running,
.badge.active {
  background: #e8ebee;
  color: var(--subprimary);
}

.login-shell {
  background: #f5f5f5;
}

.topbar,
.toolbar.actions-only {
  justify-content: flex-end;
}

/* Los controles no deben heredar el peso de sus etiquetas. */
input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  border-color: #cbd0d4;
  border-radius: 3px;
  padding: 9px 11px;
}

input::placeholder,
textarea::placeholder {
  color: #858d93;
  font-weight: 400;
  opacity: 1;
}

label,
nav a,
.check {
  font-weight: 400;
}

button,
.button,
th,
strong,
nav a[aria-current] {
  font-weight: 500;
}

h1,
.login-panel h1 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}

h2 {
  font-size: 16px;
  font-weight: 500;
}

h3 {
  font-size: 14px;
  font-weight: 500;
}

.brand {
  font-weight: 500;
  font-size: 18px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  font-size: 20px;
  font-weight: 500;
  border-radius: 4px;
}

td,
th {
  font-size: 13px;
  padding: 14px 18px;
}

.login-panel {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 32px;
  max-width: 400px;
}

.login-panel .brand-mark {
  background: #edf0f2;
  color: var(--primary);
}

.login-panel h1 {
  margin: 20px 0 26px;
}

.login-panel label {
  margin-bottom: 20px;
}

dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 24px;
  color: var(--ink);
}

dialog::backdrop {
  background: rgb(12 33 49 / 35%);
}

.destructive {
  background: var(--error);
  color: white;
}

#deletion-message {
  color: var(--error);
}

.topbar {
  height: 44px;
}

.workspace main {
  padding-top: 18px;
  padding-bottom: 28px;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.page-heading h1 {
  margin: 0;
  font-size: 22px;
}

.filters {
  margin: 0 0 16px;
}

.back {
  margin-bottom: 12px;
}

@media (max-width: 650px) {
  .page-heading {
    flex-wrap: wrap;
  }

  .topbar {
    height: auto;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}
