/**
 * PrestaChamps.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Commercial License
 * you can't distribute, modify or sell this code
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file
 * If you need help please contact leo@prestachamps.com
 *
 * @author    PrestaChamps <leo@prestachamps.com>
 * @copyright PrestaChamps
 * @license   commercial
 */

/* ---------------------------------------------------------------------------
   The page: a header, a row of tabs, one pane at a time.
   --------------------------------------------------------------------------- */

.pchllms-header {
    position: relative;
    padding: 20px 24px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(90deg, #4b5bd7 0%, #7a4bd7 100%);
    color: #fff;
}

.pchllms-header h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.pchllms-header p {
    margin: 0;
    max-width: 780px;
    font-size: 13px;
    opacity: 0.9;
}

.pchllms-version {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 12px;
    opacity: 0.75;
}

.pchllms-tabs {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    background: #fff;
    border-bottom: 1px solid #dfe4ea;
    border-radius: 0 0 4px 4px;
}

.pchllms-tabs li {
    margin: 0;
}

.pchllms-tabs a {
    display: block;
    padding: 13px 18px;
    color: #6c868e;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.pchllms-tabs a:hover {
    color: #4b5bd7;
    text-decoration: none;
}

.pchllms-tabs li.active a {
    color: #4b5bd7;
    border-bottom-color: #4b5bd7;
}

.pchllms-tabs i {
    margin-right: 6px;
}

.pchllms-tab-pane {
    display: none;
}

.pchllms-tab-pane.active {
    display: block;
}

/* ---------------------------------------------------------------------------
   Panels
   --------------------------------------------------------------------------- */

.pchllms-panel .pchllms-intro {
    color: #6c868e;
    margin: 0 0 18px;
}

.pchllms-panel .panel-heading .btn {
    float: right;
    margin-top: -3px;
}

.pchllms-muted {
    color: #98a5ab;
}

.pchllms-actions {
    border-top: 1px solid #e0e6ed;
    padding-top: 14px;
    margin-top: 14px;
    overflow: hidden;
}

.pchllms-actions .btn {
    margin-right: 6px;
}

.pchllms-badge {
    display: inline-block;
    padding: 2px 9px;
    margin-left: 4px;
    border-radius: 10px;
    background: #eaf7f0;
    color: #1b7d4f;
    font-size: 11px;
    font-weight: 600;
}

.pchllms-badge-warn {
    background: #fdf3e3;
    color: #9c6410;
}

/* Dashboard cards */

.pchllms-cards {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.pchllms-card {
    flex: 1 1 180px;
    margin: 0 8px 12px;
    padding: 14px 16px;
    background: #f8f9fb;
    border: 1px solid #e6eaf0;
    border-radius: 4px;
}

.pchllms-card-wide {
    flex: 3 1 420px;
}

.pchllms-card-label {
    display: block;
    color: #8a97a0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pchllms-card-value {
    display: block;
    margin: 6px 0 2px;
    font-size: 18px;
    color: #212b36;
}

.pchllms-card-note {
    display: block;
    color: #8a97a0;
    font-size: 12px;
}

.pchllms-counts {
    margin: 8px 0 4px;
}

.pchllms-counts span {
    display: inline-block;
    margin-right: 14px;
    color: #6c868e;
    font-size: 13px;
}

.pchllms-counts b {
    color: #212b36;
    font-size: 15px;
}

/* The file table */

.pchllms-files th {
    font-size: 11px;
    text-transform: uppercase;
    color: #8a97a0;
}

.pchllms-files td {
    vertical-align: middle !important;
}

.pchllms-files code {
    font-size: 11px;
}

.pchllms-state {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
}

.pchllms-state-ok {
    background: #eaf7f0;
    color: #1b7d4f;
}

.pchllms-state-warn {
    background: #fdf3e3;
    color: #9c6410;
}

.pchllms-state-bad {
    background: #fcebea;
    color: #b02a24;
}

.pchllms-check-summary:empty {
    display: none;
}

.pchllms-file-view {
    margin-top: 14px;
}

/* The exclusion pickers */

.pchllms-picker {
    max-width: 640px;
    margin: -6px 0 18px;
    border: 1px solid #e0e6ed;
    border-radius: 4px;
    background: #fff;
}

.pchllms-picker-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-bottom: 1px solid #e0e6ed;
    background: #f8f9fb;
}

.pchllms-picker-bar .form-control {
    height: 28px;
    font-size: 12px;
}

.pchllms-picker-list {
    max-height: 240px;
    overflow: auto;
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.pchllms-picker-list li {
    padding: 2px 10px;
}

.pchllms-picker-list label {
    display: block;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.pchllms-picker-list em {
    color: #b0bcc4;
    font-size: 11px;
    font-style: normal;
}

.pchllms-picker-empty {
    margin: 0;
    padding: 8px 10px;
    color: #8a97a0;
    font-size: 12px;
}

/* Output and robots.txt blocks */

.pchllms-preview,
.pchllms-robots {
    max-height: 460px;
    overflow: auto;
    background: #fafbfc;
    border: 1px solid #e0e6ed;
    border-radius: 4px;
    padding: 14px 16px;
    font: 400 12px/1.6 Menlo, Consolas, monospace;
    color: #212b36;
    white-space: pre-wrap;
    word-break: break-word;
}

.pchllms-robots {
    max-height: 380px;
}

.pchllms-preview-tabs {
    margin-bottom: 14px;
}

.pchllms-preview-tabs .pchllms-muted {
    font-size: 11px;
    margin-left: 6px;
}

.pchllms-preview-pane {
    display: none;
}

.pchllms-preview-pane.active {
    display: block;
}

.pchllms-preview-meta {
    color: #6c868e;
    font-size: 12px;
    margin: 0 0 8px;
}

.pchllms-folded .pchllms-preview-pane,
.pchllms-folded .pchllms-preview-tabs,
.pchllms-folded .pchllms-intro {
    display: none;
}

.pchllms-toggle-badge {
    cursor: pointer;
    float: right;
    background: #4b5bd7;
}

.pchllms-steps {
    margin: 6px 0 10px 18px;
    padding: 0;
}

/* ---------------------------------------------------------------------------
   Label and field, without the bootstrap grid.
   These rows are not inside a form-horizontal, so col-lg-* would apply its
   padding without the row that cancels it and the field would hang out of the
   panel. min-width:0 is what keeps a long URL from stretching the flex item.
   --------------------------------------------------------------------------- */

.pchllms-field {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pchllms-field > label {
    flex: 0 0 170px;
    max-width: 100%;
    padding: 7px 14px 0 0;
    margin: 0;
    font-weight: 600;
    color: #363a41;
}

.pchllms-field-body {
    flex: 1 1 360px;
    min-width: 0;
}

.pchllms-field-body .input-group {
    width: 100%;
}

.pchllms-field-body .help-block {
    margin: 6px 0 0;
}

.pchllms-crontab {
    display: block;
    margin-top: 6px;
    padding: 8px 10px;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 12px;
}

/* The guidance panel of the context tab */

.pchllms-help .panel-heading .badge {
    cursor: pointer;
    float: right;
    background: #4b5bd7;
}

.pchllms-help.pchllms-help-closed .pchllms-help-body {
    display: none;
}

.pchllms-help-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.pchllms-help-col {
    flex: 1 1 380px;
    min-width: 0;
    padding: 0 10px;
}

.pchllms-help-col h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #4b5bd7;
}

.pchllms-help-lead {
    color: #6c868e;
    margin: 0 0 12px;
}

.pchllms-help-col p {
    margin: 0 0 6px;
}

.pchllms-help-list {
    margin: 0 0 14px 18px;
    padding: 0;
}

.pchllms-help-list li {
    margin-bottom: 4px;
    color: #4f5b62;
}

.pchllms-example {
    border: 1px solid #e0e6ed;
    border-radius: 4px;
    overflow: hidden;
}

.pchllms-example-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f8f9fb;
    border-bottom: 1px solid #e0e6ed;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a97a0;
}

.pchllms-example pre {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    padding: 12px 14px;
    font: 400 12px/1.6 Menlo, Consolas, monospace;
    color: #212b36;
    white-space: pre-wrap;
    word-break: break-word;
}

.pchllms-help-note {
    margin-top: 16px;
    margin-bottom: 0;
}

.pchllms-help-note .pchllms-help-list {
    margin-bottom: 0;
}

.pchllms-value {
    font-family: Menlo, Consolas, monospace;
    font-size: 12px;
}

.pchllms-id-field {
    max-width: 420px;
    font-family: Menlo, Consolas, monospace;
}

/* The manual context is the point of the module, so it gets room to breathe. */
.pchllms-textarea {
    font-family: Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
}
