/* rich-editor.css - toolbar + editing area (light "paper" so any color is visible) */
.re-wrap {
    border: 1px solid #c8cfdd;
    border-radius: 10px;
    overflow: visible;
    background: #ffffff;
}

.re-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 8px;
    background: #f2f4f9;
    border-bottom: 1px solid #dfe4ee;
}

.re-btn {
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #d3d9e6;
    border-radius: 6px;
    background: #ffffff;
    color: #111111 !important;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.re-btn:hover {
    background: #e8ecf6;
}

.re-select {
    height: 30px;
    border: 1px solid #d3d9e6;
    border-radius: 6px;
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 13px;
    padding: 0 6px;
}

.re-color {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    border: 1px solid #d3d9e6;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    margin-bottom: 0;
}

.re-color .re-color-label {
    font-weight: 700;
    font-size: 13px;
    color: #111111;
    border-bottom: 3px solid #111111;
    line-height: 1;
}

.re-color-bg .re-color-label {
    border-bottom-color: #ffd400;
    background: #ffd400;
    padding: 0 3px;
}

.re-color input[type="color"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.re-area {
    min-height: 260px;
    max-height: 520px;
    overflow: auto;
    padding: 14px 16px;
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 15px;
    line-height: 1.6;
    outline: none;
}

.re-area * {
    color: inherit;
}

.re-area [style*="color"] {
    color: revert;
}

.re-area p,
.re-area div {
    margin: 0 0 6px;
}

/* form labels on the job create / edit screens */
.create__campaigns__form label:not(.bg--base):not(.form-check-label),
.create__campaigns__form .form-group > label:not(.bg--base):not(.form-check-label),
.create__campaigns__form .form-gorup > label:not(.bg--base):not(.form-check-label) {
    display: inline-block;
    color: #111111 !important;
    background: #ffffff;
    border-radius: 6px;
    padding: 2px 10px;
    font-weight: 600;
    margin-bottom: 6px;
}

.create__campaigns__form .form-check-label {
    background: transparent;
    color: #000000 !important;
    padding: 0;
    font-weight: 400;
}

/* ---------- colour palette dropdown ---------- */
.re-color-wrap {
    position: relative;
    display: inline-block;
}

.re-palette {
    position: absolute;
    z-index: 9999;
    top: 34px;
    left: 0;
    display: none;
    width: 214px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #d3d9e6;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(9, 14, 30, .28);
}

.re-palette.open {
    display: block;
}

.re-swatches {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
}

.re-swatch {
    width: 100%;
    padding-top: 100%;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    cursor: pointer;
}

.re-swatch:hover {
    outline: 2px solid #2563eb;
}

.re-palette-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.re-palette-foot .re-mini {
    flex: 1;
    height: 28px;
    border: 1px solid #d3d9e6;
    border-radius: 6px;
    background: #ffffff;
    color: #111111;
    font-size: 12px;
    cursor: pointer;
}

.re-palette-foot input[type="color"] {
    width: 36px;
    height: 28px;
    padding: 0;
    border: 1px solid #d3d9e6;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
}


/* ---------- square colour boxes (v1.0.21) ---------- */
.re-toolbar {
    overflow: visible !important;
}

.re-palette {
    position: fixed;
    width: 236px !important;
    padding: 10px !important;
    background: #ffffff !important;
    border: 1px solid #cfd6e4 !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 34px rgba(9, 14, 30, .35) !important;
    z-index: 100000 !important;
}

.re-swatches {
    display: grid !important;
    grid-template-columns: repeat(10, 20px) !important;
    gap: 3px !important;
    justify-content: center;
}

.re-swatch {
    display: block;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    border: 1px solid rgba(0, 0, 0, .25) !important;
    border-radius: 0 !important;   /* perfect squares */
    cursor: pointer;
}

.re-swatch:hover {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

.re-palette-foot {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.re-palette-foot input[type="color"] {
    width: 34px !important;
    height: 28px !important;
    border-radius: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    position: static !important;
    inset: auto !important;
}

.re-palette-foot .re-mini {
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #111111 !important;
}

/* current colour indicator on the toolbar buttons stays a square chip */
.re-color .re-color-label {
    border-radius: 0 !important;
}

/* =====================================================================
 * v1.0.82 - toolbar buttons must always be readable, whatever the theme
 * (the dark theme paints every b/strong/label white, which made the
 *  B / I / U / A glyphs disappear on the white toolbar buttons)
 * ===================================================================== */
html body .re-toolbar,
html body .re-toolbar *,
html body .re-btn,
html body .re-btn *,
html body .re-select,
html body .re-select option,
html body .re-color,
html body .re-color *,
html body .re-palette-foot .re-mini {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    filter: none !important;
}

html body .re-btn {
    background: #ffffff !important;
    border: 1px solid #c7cede !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    min-width: 34px !important;
}

html body .re-btn b,
html body .re-btn strong,
html body .re-btn i,
html body .re-btn u,
html body .re-btn s {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

html body .re-color-bg .re-color-label {
    background: #ffd400 !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

/* the editing paper is always white: pasted white text is re-coloured by
   the script, but this keeps unknown cases readable too */
html body .re-area {
    background: #ffffff !important;
    color: #111111 !important;
    -webkit-text-fill-color: initial;
}

/* =====================================================================
 * v1.0.83 - toolbar shows real SVG icons (never empty squares)
 * ===================================================================== */
html body .re-btn,
html body .re-color {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
}

html body .re-ico {
    width: 17px !important;
    height: 17px !important;
    display: block !important;
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
    pointer-events: none;
}

html body .re-color .re-color-label {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 2px !important;
    border-bottom-width: 3px;
    border-bottom-style: solid;
}

/* v1.0.86 - reliable native text labels; no SVG/font icon dependency */
html body .re-toolbar .re-btn {
    width: auto !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 9px !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 32px !important;
    text-indent: 0 !important;
    letter-spacing: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html body .re-toolbar .re-btn[data-re-command="italic"] { font-style: italic !important; }
html body .re-toolbar .re-btn[data-re-command="underline"] { text-decoration: underline !important; }
html body .re-toolbar .re-btn[data-re-command="strike"] { text-decoration: line-through !important; }

/* ---------------------------------------------------------------
 * v1.0.89 - icon images inside the toolbar buttons.
 * They are <img> elements, so no theme colour rule can blank them.
 * ------------------------------------------------------------- */
html body .re-toolbar .re-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 8px !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #c7cede !important;
    border-radius: 6px !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    text-indent: 0 !important;
}

html body .re-toolbar .re-btn img.re-ico-img,
html body .re-toolbar img.re-ico-img {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    position: static !important;
    background: none !important;
    border: 0 !important;
}

/* ---------------------------------------------------------------------------
   Update 1.0.92 - one box per box.
   The task description already sits inside ONE card. Any border, frame or
   shadow that came with the pasted text used to draw a second and third box
   inside that card. They are flattened here; colours and text stay untouched.
   --------------------------------------------------------------------------- */
.job-description *,
.job__details *,
.job-details-content *,
.description-content *,
[class*="job"] .poster-html * {
    border: 0 none !important;
    box-shadow: none !important;
    outline: 0 none !important;
}

.job-description > div,
.job__details > div,
.description-content > div {
    padding: 0 !important;
    margin-bottom: 8px !important;
}
