/*
-------------------------------------
SHARED
-------------------------------------
*/

body {
  min-width: 641px;
}

* {
  outline: none;
  cursor: default;
}

#container {
  height: fit-content;
}

a,
a:link,
a:visited,
a:hover,
button,
input[type="submit"],
.dashboard .module caption,
.cp-editor .component-form .title-bar {
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.theme-toggle,
.content h1,
.toggle-nav-sidebar {
  display: none;
}

#container {
  min-width: auto;
}

#content.colMS {
  margin: 0;
  padding: 40px 40px 0 40px;
}

p.deletelink-box {
  margin: 0;
}

.dashboard .module caption a,
#nav-sidebar .module caption a {
  cursor: default;
}

a,
button,
button * {
  cursor: pointer;
}

.dashboard .module caption a:hover,
#nav-sidebar .module caption a:hover {
  text-decoration: none;
}

#changelist .actions .button,
#toolbar form input[type="submit"] {
  font-size: 13px;
  padding: 4px 10px;
  margin: 0 0 0 5px;
  vertical-align: middle;
  background: none;
  box-shadow: none;
  cursor: pointer;
  border-style: solid;
  border-width: 1px;
}

table thead th .text a,
table thead th .text span {
  font-size: 12px;
}

input[type="submit"].default,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="tel"],
textarea,
select,
.vTextField {
  border-radius: 5px;
}

.paginator {
  gap: 5px;
}

.module {
  margin-bottom: 0;
}

.object-tools a.viewsitelink {
  background-image: none;
}

.wrapper-controls {
  border-radius: 5px;
  padding: 5px;
  margin-bottom: 20px;
}

#content {
  padding: 20px;
}

#components-root > .component-form {
  margin: 0;
  border: none;
}

.title-bar .title input {
  font-weight: 400;
  font-size: 14px;
}

.title-bar .field-wrapper {
  padding: 8px 10px 5px 10px;
}

.controls {
  top: 8px;
  right: 3px;
}

select.component_template {
  padding-left: 10px;
}

.publish-bar button {
  height: 37px;
}

fieldset.collapsed {
  border-radius: 0;
  border-width: 1px 0;
  border-color: var(--th-9);
}

.title-bar .title:hover:after {
  top: 18px;
}

/* --- HEADER --- */

#header {
  height: 100px;
  padding: 0;
  justify-content: normal;
  position: relative;
}

#header #branding img {
  width: auto;
  height: 32px;
  margin: 0;
  position: absolute;
  top: 35px;
  left: 40px;
}

#header #user-tools {
  float: none;
  margin: 0;
  text-align: right;
  position: absolute;
  right: 40px;
}

#header #user-tools,
#header #logout-form button {
  font-size: 14px;
  letter-spacing: 0;
}

#header #user-tools strong {
  font-weight: 500;
}

#logout-form button:active,
#logout-form button:hover {
  margin-bottom: 0;
}

#header > a.button {
  margin-left: 100px;
}

#header > a.button + a.button {
  margin-left: 20px;
}

/* --- BREADCRUMB --- */

div.breadcrumbs {
  padding: 0 15px;
  height: 50px;
  line-height: 50px;
  border-style: solid;
  border-width: 1px 0 0 0;
}

div.breadcrumbs a {
  font-size: 14px;
}

/* --- NAV SIDEBAR --- */

#nav-sidebar {
  z-index: 15;
  left: 0;
  margin: 0;
  border: none;
  overflow: inherit;
  display: grid;
  min-height: max-content;
  max-height: auto;
  min-width: 225px;
}

#nav-sidebar #nav-filter {
  display: none;
}

#nav-sidebar .module {
  margin: 0;
}

#nav-sidebar .module table {
  border-radius: 0;
}

/* --- BRANDING --- */

#branding img {
  height: 30px;
  margin-right: 10px;
}

#branding #logo {
  display: block;
}

#branding #logo-dark-mode {
  display: none;
}

/* --- CODE EDITOR --- */

.app-dbtemplates.model-template.change-form .field-content label {
  width: auto;
}

.app-dbtemplates.model-template.change-form .field-content .CodeMirror-wrapping {
  background-color: #efede3;
}

/* --- LOGIN & MFA AUTHENTICATION --- */

.login .form-row label {
  display: none;
}

.login input {
  caret-color: var(--th-1);
}

.login input:-webkit-autofill,
.login input:-webkit-autofill:hover,
.login input:-webkit-autofill:focus,
.login textarea:-webkit-autofill,
.login textarea:-webkit-autofill:hover,
.login textarea:-webkit-autofill:focus,
.login select:-webkit-autofill,
.login select:-webkit-autofill:hover,
.login select:-webkit-autofill:focus {
  border: none;
  -webkit-text-fill-color: var(--primary-fg);
  -webkit-box-shadow: 0 0 0 1000px var(--th-5) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.login input:-webkit-autofill,
.login input:-webkit-autofill:hover,
.login input:-webkit-autofill:focus,
.login input:-webkit-autofill:active,
.login input:-webkit-autofill:-internal-autofill-selected,
.login .form-row input#id_login,
.login .form-row input#id_password,
.login.mfa input {
  background-color: var(--th-5) !important;
  height: 60px;
  border-radius: 30px;
  border: none;
  color: var(--primary-fg);
  padding: 0 25px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.login input:-webkit-autofill,
.login input:-webkit-autofill:hover,
.login input:-webkit-autofill:focus,
.login textarea:-webkit-autofill,
.login textarea:-webkit-autofill:hover,
.login textarea:-webkit-autofill:focus,
.login select:-webkit-autofill,
.login select:-webkit-autofill:hover,
.login select:-webkit-autofill:focus,
.login input:-webkit-autofill:active,
.login input:-webkit-autofill:-internal-autofill-selected,
.login .form-row input#id_login,
.login .form-row input#id_password,
.login input:-webkit-autofill::first-line,
.login .form-row input::placeholder,
.login.mfa input,
.login.mfa input::placeholder {
  font-size: 16px !important;
}

.login .form-row input#id_password {
  margin-top: 15px;
}

.login .form-row input::placeholder,
.login.mfa input::placeholder {
  color: var(--primary-fg);
  font-weight: 400;
}

.login {
  display: grid;
  height: 100vh;
  background-color: var(--th-5);
}

.login #container {
  background-color: var(--th-6);
}

.login #header {
  display: none;
}

.login #content {
  padding: 0;
}

.login #container {
  border: none;
  border-radius: 50px;
  width: 450px;
  min-width: 300px;
  margin: 0 auto;
  align-self: center;
}

.login .login-icon {
  width: 40px;
  margin: 0 auto 60px auto;
  display: block;
}

.login .main > .content {
  flex: 1 0;
  max-width: 80%;
  margin: 60px auto 0 auto;
}

.login .form-row {
  padding: 0;
}

.login .submit-row {
  padding-top: 100px;
  position: relative;
}

/*.login input[type="submit"],*/
.login button[type="submit"] {
  background-color: transparent;
  border: 2px solid var(--th-1);
  border-radius: 9999px;
  height: 60px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  bottom: 80px;
  right: 50px;
  display: block;
  width: 100%;
  color: var(--button-fg);
  font-family: var(--font-family-primary);
}

.login button[type="submit"]:hover {
  background-color: var(--th-1);
  color: var(--th-5);
}

.login button[type="submit"]::after {
  content: url("/static/admin_extra/assets/arrow-right-light-white.svg");
  position: absolute;
  right: 25px;
  width: 20px;
  margin-top: 2px;
}

.login button[type="submit"]:hover::after {
  content: url("/static/admin_extra/assets/arrow-right-light-blue.svg");
}

.login.mfa button[type="submit"] {
  margin-top: 20px;
}
.login.mfa button[type="submit"]::after {
  right: 70px;
}

.login .password-reset-link {
  padding: 40px 0;
}

.login .password-reset-link a,
.login .password-reset-link a:hover,
.login.mfa p {
  color: var(--primary-fg);
}

.login .errornote {
  border: none;
  background: transparent;
  font-weight: 500;
}

.mfa.login label {
  display: none;
}

/* --- FOOTER --- */

#footer {
  padding: 0;
}

/*
-------------------------------------
DASHBOARD
-------------------------------------
*/

.dashboard #content {
  width: auto;
}

.dashboard #content-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /*gap: 40px;*/
  column-gap: 40px;
}

.dashboard #content-main > .module {
  padding-bottom: 40px;
}

.dashboard #content-main .module {
  width: auto;
  margin: 0;
  display: grid;
  grid-auto-rows: auto;
  height: fit-content;
}

.dashboard #content-related {
  display: none;
}

.dashboard .module table td a {
  padding-right: 0;
}

/*
-------------------------------------
CHANGE LIST
-------------------------------------
*/

.change-list #container > .main {
  display: grid;
  flex: auto;
  grid-template-columns: 1fr 5fr;
}

#changelist {
  display: grid;
  grid-template-columns: 5fr 1fr;
  column-gap: 20px;
}

#changelist .actions {
  width: auto;
}

#changelist .changelist-form-container {
  overflow: hidden;
}

.change-list #content {
  padding: 20px;
}

#changelist-search img {
  margin-right: 5px;
}

#changelist-filter details summary,
#changelist-filter {
  margin: 0;
}

#changelist-filter {
  border-radius: 5px;
  overflow: hidden;
  min-width: 155px;
}

#changelist-filter ul {
  margin: 0;
  padding: 15px 20px;
  border-bottom: none;
}

#changelist-filter li.selected {
  border-left: none;
  padding-left: 0;
  margin-left: 0;
}

#changelist-filter h2 {
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  padding: 12px 15px 10px 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--th-4);
  background-color: var(--th-1);
}

#changelist-form {
  border-radius: 5px;
  overflow: hidden;
}

#changelist-filter li {
  font-size: 12px;
  font-weight: 300;
}

#changelist-filter li.selected {
  font-weight: 400;
}

#changelist .paginator {
  border-bottom: none;
}

p.paginator {
  padding-left: 15px;
}

.help-text {
  top: 10px;
  right: 10px;
}

.cp-create-form {
  margin-top: 0;
}

.cp-create-form select,
.cp-import-form button[type="submit"],
.cp-create-form button[type="submit"],
.nested-create-form button[type="submit"] {
  height: 40px;
}

.cp-create-form select::marker {
  content: "";
}

.component-form {
  padding: 0;
  margin-bottom: 20px !important;
}

/*.components {*/
/*  border-width: 1px 0 0 0;*/
/*  padding: 20px;*/
/*}*/

.inline-group .tabular td.original p {
  top: 0;
}

.change-form tr.form-row {
  position: relative;
}

/*
-------------------------------------
CHANGE FORM
-------------------------------------
*/

.change-form form .submit-row {
  position: fixed;
  bottom: 0;
  right: 0;
  margin-bottom: 0;
}

.change-form #content {
  padding-bottom: 30px;
}

.main.shifted > #nav-sidebar + .content {
  max-width: 100%;
}

#user-tools a,
#logout-form button {
  border-bottom: none;
}

#branding {
  float: none;
}

#branding h1 {
  display: none;
}

.change-form .inline-group > .module {
  background-color: transparent;
}

.inline-related fieldset {
  margin-bottom: 30px;
}

.change-form fieldset .form-row:last-child {
  border-bottom: none;
}

.module table {
  border-radius: 5px;
  overflow: hidden;
}

.module caption,
.inline-group h2,
td,
th {
  padding: 15px 18px;
  vertical-align: middle;
}

.module caption,
.inline-group h2,
.module h2 {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.inline-related h3,
.inline-related h3 b {
  font-weight: 500;
}

.app-sites #setting-group > .module > h2,
.app-sites #setting-group .inline-related > h3 {
  display: none;
}

.module h2 {
  border-radius: 5px;
  padding: 8px 10px;
}

td,
th {
  font-size: 14px;
  line-height: normal;
  font-weight: 300;
  border-width: 1px 0 0 0;
  border-style: solid;
}

.change-form .module {
  background: var(--th-1);
  border-radius: 5px;
}

/* --- OBJECT TOOLS --- */

.object-tools {
  font-size: 14px;
  font-weight: 400;
  padding: 0;
  float: none;
  position: absolute;
  margin: 1px 0 0 0;
  right: 0;
  top: 100px;
  height: 50px;
}

.object-tools li {
  display: block;
  margin: 0;
  height: 50px;
  padding: 0;
  border-width: 0 0 0 1px;
  border-style: solid;
}

.object-tools a,
.object-tools a:link,
.object-tools a:visited {
  border-radius: 0;
  height: 50px;
  margin: 0;
  padding: 0 20px;
  font-size: 14px;
  text-transform: capitalize;
  line-height: 50px;
  letter-spacing: 0;
  font-weight: 300;
}

.object-tools a.addlink {
  padding: 0 40px 0 20px !important;
}

/* --- TOOLBAR --- */

#toolbar {
  padding: 10px 12px;
  margin-bottom: 20px;
  border: none;
  border-radius: 5px;
  overflow: hidden;
}

#toolbar #searchbar {
  height: 20px;
  border-width: 1px;
  border-style: solid;
  padding: 4px 7px 2px 7px;
  margin: 0;
  vertical-align: middle;
  font-size: 13px;
  max-width: calc(100% - 115px);
}

/*
-------------------------------------
COMPONENT EDITOR
-------------------------------------
*/

.cp-editor .title-bar,
.cp-editor .components,
.cp-nested-create-form button,
video.video-preview,
img.image-preview {
  border-radius: 4px;
}

.cp-nested-create-form {
  border-radius: 0 0 4px 4px;
}

.cp-editor {
  margin-top: 15px;
}

.cp-editor h3 {
  font-weight: 500;
}

.cp-editor .component-form .expander {
  padding: 10px;
}

.cp-editor .component-form {
  border-bottom: none;
  border-radius: 4px;
}

.cp-editor .components {
  padding: 10px;
}

.cp-editor h3.nested-title {
  left: 14px;
}

.cp-editor .nested-create-form select {
  height: 40px;
}

.cp-editor .components .wrapper-controls {
  padding-top: 0;
}

.cp-editor .cp-wrapper {
  padding-bottom: 56px;
}

/*Grid Masonry*/
.grid-masonry {
  grid-auto-rows: 1px;
}

/* Site settings page */
.field-available_languages .flex-container > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  width: 100%;
}
