/* wp ui */
.settings_page_perfmatters #wpbody-content {
  margin-top: 5px;
}
.settings_page_perfmatters #wpbody-content>.notice {
  margin: 15px auto 15px 2px;
  max-width: 1200px;
  box-sizing: border-box;
}
.settings_page_perfmatters #wpbody-content>.update-nag {
  margin-bottom: 0px;
}
#perfmatters-admin-container .notice {
  display: none;
}
#perfmatters-admin-container a {
  color: #4A89DD;
}

/* admin wrappers */
#perfmatters-admin {
  max-width: 1200px;
  margin-top: 15px;
}
#perfmatters-admin-container {
  display: flex; 
  gap: 20px;
}
#perfmatters-admin .perfmatters-admin-block {
  position: relative;
  background: #fff;
  border: 1px solid #e2e4e7;
  border-radius: 5px;
  padding: 20px;
  box-sizing: border-box;
}
/* header */
#perfmatters-admin-header {
  margin-bottom: 10px;
  width: 227px;
}
#perfmatters-logo-bar {
  display: flex;
  align-items: center;
}
#perfmatters-logo {
  display: flex;
  height: 30px; 
  margin: 10px auto;
  overflow: visible;
}
#perfmatters-menu-toggle {
  display: none;
  text-decoration: none;
}
#perfmatters-menu-toggle .dashicons {
  width: 30px;
  height: 30px;
  font-size: 30px;
}
#perfmatters-menu {
  margin-top: 15px;
}
#perfmatters-menu a {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding: 10px;
  text-decoration: none;
  box-shadow: none;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: none;
  margin-top: 2px;
}
#perfmatters-menu a:hover {
  color: #4A89DD;
}
#perfmatters-menu a.active {
  color: #4A89DD;
  border-color: #4A89DD;
  background: #e8f1ff;
}
#perfmatters-menu a .dashicons {
  margin-right: 8px;
  font-size: 23px;
  width: 23px;
  height: 23px;
}
#perfmatters-menu .perfmatters-subnav {
  border-top: 1px solid #f2f2f2;
  border-bottom: 1px solid #f2f2f2;
  padding: 9px 0px;
  margin-bottom: 10px;
}
#perfmatters-menu .perfmatters-subnav a {
  font-size: 14px;
  padding: 8px 10px;
  margin: 1px 0px;
  font-weight: 500;
}
#perfmatters-menu .perfmatters-subnav a .dashicons {
  font-size: 16px;
  height: 16px;
}

/* general ui */
.perfmatters-settings-section {
  margin-bottom: 20px;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 20px;
}
#perfmatters-admin .section-content {
  display: none;
}
#perfmatters-admin .section-content.active {
  display: block;
}
#perfmatters-admin h2 {
	font-size: 18px;
  font-weight: 500;
  line-height: normal;
  margin: 0px auto 10px auto;
}
#perfmatters-admin .perfmatters-settings-section:first-of-type h2:first-of-type {
  display: flex;
  align-items: center;
  font-size: 22px;
  margin: -20px -20px 20px -20px;
  padding: 20px;
  font-weight: 500;
  background: #282E34;
  border-radius: 5px 5px 0px 0px;
  color: #fff;
}
#perfmatters-admin .perfmatters-settings-section:first-of-type h2:first-of-type .dashicons {
  font-size:23px;
  width: 23px;
  height: 23px;
  margin-right: 8px;
  color: #fff;
}
#perfmatters-admin .perfmatters-settings-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0px;
  margin-bottom: 0px;
}
#perfmatters-admin p.perfmatters-warning {
  background: #ffffff;
  color: #dc3232;
  padding: 10px;
  font-weight: bold;
}
#perfmatters-admin .form-table {
  margin: 0px;
}
#perfmatters-admin .form-table th {
  padding: 15px 10px 15px 0px;
  font-size: 13px;
  font-weight: normal;
  min-width: 200px;
}
#perfmatters-admin .form-table td {
  position: relative;
  padding: 10px;
}
#perfmatters-admin .perfmatters-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  font-size: 1px;
}
#perfmatters-admin .perfmatters-switch input {
  display: block;
  margin: 0px;
  border: none;
  outline: none;
  box-shadow: none;
}
#perfmatters-admin .perfmatters-slider {
  position: absolute;
  inset: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 50px;
}
#perfmatters-admin .perfmatters-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  transition: .4s;
  border-radius: 50%;
}
#perfmatters-admin input:checked + .perfmatters-slider {
  background-color: #4A89DD;
}
#perfmatters-admin input:focus + .perfmatters-slider {
  box-shadow: 0 0 1px #4A89DD;
}
#perfmatters-admin input:checked + .perfmatters-slider:before {
  transform: translateX(20px);
}
#perfmatters-admin input[type="text"], #perfmatters-admin select, #perfmatters-admin input[type="file"] {
  min-width: 300px;
  margin: 0px;
}
#perfmatters-admin input[type="file"] {
  margin-bottom: 5px;
}
#perfmatters-admin textarea {
  width: 100%;
  resize: both;
  min-height: 150px;
}

#perfmatters-admin .CodeMirror {
  max-width: 700px;
  max-height: 200px;
  height: 100px;
}

#perfmatters-admin .CodeMirror.CodeMirror-focused {
  height: 500px;
}

#perfmatters-admin .perfmatters-title-wrapper {
  display: flex;
  justify-content: space-between;
}

#perfmatters-admin .form-table th label {
  vertical-align: top;
  padding-right: 5px;
}

#perfmatters-admin .perfmatters-tooltip-wrapper {
  position: relative;
  display: inline-block;
  float: right;
}
#perfmatters-admin .perfmatters-tooltip {
  display: inline-block;
  flex-shrink: 0;
  float: right;
  margin-right: -10px;
  height: 16px;
  width: 16px;
  vertical-align: top;
  text-align: center;
  line-height: 16px;
  font-size: 12px;
  background: #F0F0F1;
  color: #777;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  text-decoration: none;
}
#perfmatters-admin .perfmatters-tooltip-text {
  display: none;
  position: absolute;
  z-index: 10;
  top: 46px;
  left: -32px;
  width: 300px;
  background-color: #23282D;
  color: #fff;
  padding: 10px;
  border-radius: 3px;
  text-align: left;
  font-size: 12px;
  line-height: 20px;
  font-weight: normal;
}
#perfmatters-admin .perfmatters-tooltip-text-am {
  font-size: 12px;
  font-style: italic;
  margin-top: 5px;
  display: block;
}
#perfmatters-admin .perfmatters-tooltip-text::after {
  content: " ";
  position: absolute;
  top: -6px;
  left: 19px;
  border-width: 0px 4.5px 6px;
  border-style: solid;
  border-color: transparent transparent #23282D transparent;
}
#perfmatters-admin .perfmatters-tooltip-subtext {
  display: block; 
  margin-top: 5px;
  text-align: right; 
  font-style: italic; 
  font-size: 9px; 
  line-height: 9px; 
  color: rgba(255,255,255,0.9); 
}
#perfmatters-admin .perfmatters-tooltip-icon {
  display: inline-block;
  height: 12px;
  width: 12px;
  vertical-align: baseline;
  text-align: center;
  line-height: 12px;
  font-size: 10px;
  background: rgba(255,255,255,0.2);
  color: #bbbbbb;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
}

.perfmatters-beta {
  background: #ED5464;
  color: #ffffff;
  padding: 5px;
  vertical-align: middle;
  font-size: 10px;
  margin-left: 3px;
}

#perfmatters-admin .button-primary {
  padding: 2px 10px;
  border-radius: 5px;
  background: #4A89DD;
  border-color: #4A89DD;
}
#perfmatters-admin .button-secondary {
  border-color: #4A89DD;
  color: #4A89DD;
}
#perfmatters-admin p.submit {
  margin: 20px 0px 0px 0px;
  padding: 0px;
}

#perfmatters-admin .perfmatters-button-warning {
  background: #ED5464;
  border-color: #ED5464;
  color: #ffffff;
}
#perfmatters-admin .perfmatters-button-warning:hover {
  background: #c14552;
  border-color: #c14552;
}

#perfmatters-admin #perfmatters-legend {
  float: right;
  padding-top: 20px;
  font-size: 12px;
  line-height: 15px;
  font-style: italic;
  color: #aaaaaa;
}

#perfmatters-admin #perfmatters-tooltip-legend span {
  display: inline-block;
  margin-right: 5px;
  height: 15px;
  width: 15px;
  vertical-align: top;
  text-align: center;
  line-height: 15px;
  font-size: 12px;
  background: #e7e7e7;
  color: #bbbbbb;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  text-decoration: none;
  font-style: normal;
  font-weight: bold;
}

.perfmatters-input-row {
  position: relative;
  margin-bottom: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 600px;
}

.perfmatters-input-row:not(:first-child) {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.perfmatters-input-row input[type="text"] {
  flex-grow: 1;
}

.perfmatters-input-row label {
  margin: 0px 0px 0px 5px;
  font-size: 12px;
  white-space: nowrap;
}

.perfmatters-input-row input[type="checkbox"] {
  margin-right: 0px;
}

#perfmatters-admin .perfmatters-input-row select {
  min-width: auto;
}

a.perfmatters-delete-input-row {
  background: #aaa;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  margin-left: 5px;
}
a.perfmatters-delete-input-row span.dashicons-no {
  color: #fff;
  text-decoration: none;
}

a.perfmatters-add-input-row {
  white-space: nowrap;
  text-decoration: none;
}
.perfmatters-inline-label-input {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.perfmatters-inline-label-input span {
  position: absolute;
  left: 1px;
  background: #F0F0F1;
  border-right: 1px solid #8c8f94;
  color: #8c8f94;
  height: 28px;
  padding: 0px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px 0px 0px 4px;
  -webkit-border-radius: 4px 0px 0px 4px;
  -moz-border-radius: 4px 0px 0px 4px;
}

#perfmatters-admin ::placeholder {
  color: #ccc;
}

/* media queries */
@media all and (max-width: 1024px) {
  #perfmatters-admin {
    margin-top: 10px;
  }
  #perfmatters-admin-container {
    flex-direction: column;
    gap: 10px;
  }
  #perfmatters-admin-header {
    width: 100%;
    margin: 0px;
  }
  #perfmatters-logo {
    margin: 0px auto;
  }
  #perfmatters-menu-toggle {
    display: flex;
  }
  #perfmatters-menu {
    display: none;
  }
  #perfmatters-menu.perfmatters-menu-expanded {
    display: block;
  }
}

@media all and (max-width: 782px) {
  .perfmatters-mobile-hide {
    display: none !important;
  }
  #perfmatters-admin .form-table td {
    padding: 0px;
  }
  #perfmatters-admin .perfmatters-tooltip-text {
    display: none !important;
  }
  #perfmatters-admin textarea {
    min-width:  0px;
  }
}