@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --muazago-primary: #039855;
  --muazago-primary-hover: #027a48;
  --muazago-accent-subtle: #ecfdf3;
  --muazago-ink: #1f1f1f;
  --muazago-muted: #5c5c5c;
  --muazago-line: #e4e4e7;
  --muazago-surface: #ffffff;
  --muazago-sunken: #f4f4f5;
  --muazago-danger: #d92d20;
}

/* Font */
body,
button,
input,
optgroup,
select,
textarea {
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
}

/* Links */
a {
  color: #039855;
}

a:hover {
  color: #027a48;
}

.btn-link {
  color: #039855;
}

/* Radius */
.btn {
  border-radius: 10px;
}

.form-control,
.custom-select {
  border-radius: 12px;
}

/* Header bar */
#layout > div > .header {
  background-color: #ffffff;
  color: #1f1f1f;
  border-bottom-color: #e4e4e7;
}

/* Login card */
body.task-login #login-form {
  background-color: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Primary button */
.btn-primary,
#rcmloginsubmit {
  background-color: #039855;
  border-color: #039855;
  color: #ffffff;
  border-radius: 10px;
}

.btn-primary:hover,
#rcmloginsubmit:hover {
  background-color: #027a48;
  border-color: #027a48;
}

.btn-primary:focus,
#rcmloginsubmit:focus {
  background-color: #027a48;
  border-color: #027a48;
  box-shadow: 0 0 0 0.2rem rgba(3, 152, 85, 0.25);
}

.btn-primary:active,
#rcmloginsubmit:active {
  background-color: #027a48;
  border-color: #027a48;
}

/* Danger button */
.btn-danger {
  background-color: #d92d20;
  border-color: #d92d20;
  color: #ffffff;
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: #b42318;
  border-color: #b42318;
}

/* Taskmenu / sidebar selected */
#taskmenu a.selected {
  color: #ffffff;
  background-color: #039855;
}

#taskmenu a.selected:hover {
  color: #ffffff;
  background-color: #027a48;
}

/* Listing selected */
.listing li.selected,
.listing tr.selected td {
  color: #1f1f1f;
  background-color: #ecfdf3;
}

ul.treelist li.selected > a,
ul.treelist li.selected > div > a {
  color: #1f1f1f;
  background-color: #ecfdf3;
}

/* Toolbar / menu selected */
.menu.toolbar a.selected,
.searchbar a.selected {
  color: #039855;
}

/* Popover menu selected */
.popupmenu .listing li.selected {
  color: #ffffff;
  background-color: #039855;
}

/* Input focus ring */
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: #039855;
  box-shadow: 0 0 0 0.2rem rgba(3, 152, 85, 0.25);
}

.recipient-input.focus {
  border-color: #039855;
  box-shadow: 0 0 0 0.2rem rgba(3, 152, 85, 0.25);
}

.multi-input > .content.focused {
  border-color: #039855;
  box-shadow: 0 0 0 0.2rem rgba(3, 152, 85, 0.25);
}

.CodeMirror-focused {
  border-color: #039855;
  box-shadow: 0 0 0 0.2rem rgba(3, 152, 85, 0.25);
}

.custom-file-input:focus ~ .custom-file-label {
  border-color: #039855;
  box-shadow: 0 0 0 0.2rem rgba(3, 152, 85, 0.25);
}

.custom-control-input:focus ~ .custom-control-label::before {
  border-color: #039855;
  box-shadow: 0 0 0 0.2rem rgba(3, 152, 85, 0.25);
}

/* Logo sizing - the stock skin lets the wide MuazaGo wordmark span the whole
   login form. Keep it compact. !important is needed to beat the compiled
   Elastic rules for #logo (nested selectors inside the skin's LESS). */
#logo {
  max-height: 56px !important;
  max-width: 280px !important;
}

#layout-menu .popover-header #logo {
  max-height: 32px !important;
  max-width: 160px !important;
}
