:root {
  --primary: #2d176e;
  --secondary: #17151f;
  --accent: #b78a2d;
  --primary-fg: #ffffff;
  --header-bg: #17151f;
  --header-color: #ffffff;
  --breadcrumbs-bg: #2d176e;
  --breadcrumbs-fg: rgba(255, 255, 255, 0.78);
  --breadcrumbs-link-fg: #ffffff;
  --link-fg: #4f35a5;
  --link-hover-color: #2d176e;
  --button-bg: #2d176e;
  --button-hover-bg: #24125d;
  --default-button-bg: #2d176e;
  --default-button-hover-bg: #24125d;
  --object-tools-bg: #2d176e;
  --object-tools-hover-bg: #24125d;
  --hairline-color: #e7e7ee;
  --border-color: #d9d8e4;
  --body-bg: #f6f6f9;
  --darkened-bg: #eeeeF4;
  --selected-bg: #ede9ff;
  --body-fg: #17151f;
  --body-quiet-color: #5f6472;
}

body {
  color: #17151f;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#container,
#content,
#content-main,
.module,
.form-row,
label,
td,
th,
p,
li,
dt,
dd {
  color: #17151f;
}

.quiet,
.help,
.form-row .help,
.aligned label,
label.required,
.readonly {
  color: #4f5563;
}

#header {
  min-height: 74px;
  padding: 0 28px;
  background: linear-gradient(135deg, #17151f 0%, #2d176e 100%);
  box-shadow: 0 12px 32px rgba(23, 21, 31, 0.24);
}

.leo-admin-brand,
.leo-admin-logo {
  display: flex;
  align-items: center;
}

.leo-admin-logo {
  gap: 14px;
  color: #ffffff;
  text-decoration: none;
}

.leo-admin-logo:hover {
  color: #ffffff;
}

.leo-admin-logo img {
  width: 136px;
  max-height: 58px;
  padding: 6px 12px;
  border-radius: 12px;
  background: #ffffff;
  object-fit: contain;
}

.leo-admin-logo strong,
.leo-admin-logo small {
  display: block;
}

.leo-admin-logo strong {
  font-size: 18px;
  line-height: 1.1;
}

.leo-admin-logo small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

div.breadcrumbs {
  padding: 13px 28px;
  background: #24125d;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

#content {
  padding: 28px;
  background: #f6f6f9;
}

.module,
.inline-group,
fieldset.module {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--body-bg);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

.aligned .form-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  overflow: visible;
}

.aligned label {
  width: 150px;
  flex: 0 0 150px;
  font-weight: 800;
}

.aligned .form-row > div,
.aligned .form-row .flex-container {
  flex: 1 1 auto;
  min-width: 0;
}

.aligned .checkbox-row {
  display: block;
}

.aligned .checkbox-row label {
  width: auto;
  flex: initial;
}

.related-widget-wrapper {
  max-width: 100%;
}

.related-widget-wrapper select {
  min-width: 0;
}

.related-widget-wrapper-link {
  margin-left: 6px;
}

.module h2,
.module caption,
.inline-group h2 {
  padding: 12px 16px;
  background: linear-gradient(135deg, #2d176e, #24125d);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
}

.form-row {
  padding: 14px 16px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="date"],
textarea,
select,
.vTextField {
  border-radius: 10px;
  border-color: #d5d3df;
  background: #ffffff;
  color: #17151f;
}

input[readonly],
input[disabled],
select[disabled],
textarea[disabled],
.readonly {
  opacity: 1;
  color: #17151f;
  -webkit-text-fill-color: #17151f;
}

input[readonly],
input[disabled],
select[disabled],
textarea[disabled] {
  background: #f8f8fb;
  border-color: #d8d7e2;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #4f35a5;
  box-shadow: 0 0 0 3px rgba(79, 53, 165, 0.13);
}

.submit-row {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

.button,
input[type="submit"],
input[type="button"],
.submit-row input,
a.button {
  border-radius: 10px;
  font-weight: 800;
}

.object-tools a,
.object-tools button {
  border-radius: 10px;
  font-weight: 800;
}

.results table {
  overflow: hidden;
  border-radius: 12px;
}

thead th {
  background: #f3f2f8;
  color: #17151f;
  font-weight: 800;
}

tbody tr:hover {
  background: #f4f1ff;
}

.inline-group {
  overflow-x: auto;
}

.inline-group .tabular {
  min-width: 1180px;
}

.inline-group .tabular table {
  width: 100%;
  table-layout: fixed;
}

.inline-group .tabular th,
.inline-group .tabular td {
  color: #17151f;
  vertical-align: middle;
}

.inline-group .tabular th.original,
.inline-group .tabular td.original {
  display: none;
}

.inline-group .tabular th:nth-child(2),
.inline-group .tabular td.field-catalog_item {
  width: 300px;
}

.inline-group .tabular th:nth-child(3),
.inline-group .tabular td.field-due_date {
  width: 280px;
}

.inline-group .tabular th:nth-child(4),
.inline-group .tabular td.field-is_not_authorized {
  width: 140px;
  text-align: center;
}

.inline-group .tabular th:nth-child(5),
.inline-group .tabular td.field-days_to_due {
  width: 160px;
  text-align: center;
}

.inline-group .tabular th:nth-child(6),
.inline-group .tabular td.field-status_badge {
  width: 150px;
  text-align: center;
}

.inline-group .tabular th:nth-child(7),
.inline-group .tabular td.field-source {
  width: 250px;
}

.inline-group .tabular th.delete,
.inline-group .tabular td.delete {
  width: 90px;
  text-align: center;
}

.inline-group .tabular select,
.inline-group .tabular input[type="text"] {
  width: 100%;
  max-width: 100%;
}

.inline-group .tabular .datetimeshortcuts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  max-width: 80px;
  white-space: nowrap;
  vertical-align: middle;
}

.inline-group .tabular .datetimeshortcuts a:first-child {
  display: none;
}

.inline-group .tabular td.field-due_date {
  white-space: nowrap;
}

.inline-group .tabular td.field-due_date input {
  width: 170px;
  display: inline-block;
  vertical-align: middle;
}

.inline-group .tabular td.field-due_date .datetimeshortcuts {
  margin-top: 0;
}

.inline-group .tabular .related-widget-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.inline-group .tabular .related-widget-wrapper select {
  min-width: 0;
}

.inline-group .tabular .related-widget-wrapper-link {
  flex: 0 0 auto;
}

.inline-group .tabular .related-widget-wrapper-link img {
  width: 18px;
  height: 18px;
}

.inline-group .tabular tr.has_original td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.inline-group .tabular .readonly {
  color: #17151f;
  font-weight: 700;
}

.leo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.leo-badge-success {
  background: #dcfce7;
  color: #047857;
}

.leo-badge-danger {
  background: #fee4e2;
  color: #b42318;
}

.leo-badge-warning {
  background: #fff4d5;
  color: #995c00;
}

.leo-badge-info {
  background: #e0f2fe;
  color: #0369a1;
}

.leo-badge-muted {
  background: #ececf1;
  color: #667085;
}

@media (max-width: 767px) {
  #header {
    padding: 12px 16px;
  }

  #content {
    padding: 18px;
  }

  .leo-admin-logo span {
    display: none;
  }
}
