/* Overlay */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    -webkit-transform: translate3d(0, 0, 0);
}

#loading {
    border: 1px solid #2a67ac;
    padding: 10px 10px 10px 60px;
    width: 300px;
    height: 100px;
    background: rgb(255, 255, 255) url('../images/FhHRx-Spinner.gif') 10px 50% no-repeat;
    position: fixed;
    display: none;
    z-index: 3000;
}

#loading h4 {
    margin: 3px 0 0 0;
    padding: 0;
    color: #d80;
    float: none;
}

.pull-right {
    float: right;
}

.non-local-image {
    display: inline-block;
    border: 3px dashed #eee;
    border-radius: 5px;
}

.non-local-image:after {
    background: url(../logo.php) center center no-repeat;
    background-size: cover;
    content: "";
    z-index: -1;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.3;
}

div.section-break {
    margin-top: 1em;
    margin-bottom: 0.5em;
    padding-top: 0.8em !important;
    border-top: 1px solid #ccc;
}

input.dp {
    width: 10em;
}

/* Custom css for datepicker */
.ui-datepicker-trigger {
    display: inline-block;
    border: 0;
    padding: 0;
    margin-left: 2px;
    position: relative;
    top: -2px;
    width: 16px;
    height: 16px;
    background: inherit;
}

.draft-saved {
    background-color: black;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px 6px;
    border-radius: 3px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    line-height: 14px;
    position: absolute;
    top: 3em;
    right: 0.5em;
}

.delete-draft:hover {
    background-color: #fc9f41 !important;
}

.notice_bar {
    margin: 0;
    padding: 5px 10px 5px 36px;
    height: 16px;
    line-height: 16px;
    border: 1px solid #0a0;
    background: url('../assets/default/images/icons/ok.png') 10px 50% no-repeat #e0ffe0;
}

.warning_bar {
    margin: 0;
    padding: 5px 10px 5px 36px;
    height: 16px;
    line-height: 16px;
    border: 1px solid #f26522;
    background: url('../assets/default/images/icons/alert.png') 10px 50% no-repeat #ffffdd;
}

.error_bar {
    margin: 0;
    padding: 5px 10px 5px 36px;
    height: 16px;
    line-height: 16px;
    border: 1px solid #a00;
    background: url('../assets/default/images/icons/error.png') 10px 50% no-repeat #fff0f0;
}

/* =====================================================================
   CommunityCraft custom theme overrides
   These styles sit on top of the default osTicket styles.
   ===================================================================== */
body {
    background: #31230F;
    color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

:root {
    --client-form-border: #4a3a22;
}

/* Main wrapper */
#container {
    max-width: 1100px;
    margin: 30px auto;
    background: #1c1409;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    padding-bottom: 30px;
}

/* Header & logo */
#header {
    background: linear-gradient(135deg, #563616, #362711);
    border-bottom: 3px solid #F4CD59;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

#logo img {
    max-height: 64px;
    height: auto;
    width: auto;
}

#header p,
#header .pull-right,
#header .right {
    color: #F4CD59;
    margin: 0;
}

/* Top navigation */
#nav {
    background: #2a1b0c;
    border-bottom: 1px solid #D3B03F;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

#nav li {
    margin: 0;
    padding: 0;
}

#nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 16px;
    margin: 6px 0;
    border-radius: 999px;
    background: #362711;
    color: #F4CD59;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

#nav li a:hover,
#nav li.active a,
#nav li a:focus {
    background: #F4CD59;
    color: #362711;
}

/* Main content area */
#content {
    padding: 25px 30px 15px;
    background: transparent;
}

/* Generic panels / boxes */
.dialog,
#ticketform,
#loginform,
.loginbox,
.box,
.banner {
    background: #23170c;
    border-radius: 12px;
    border: 1px solid #4a3a22;
    padding: 20px 24px;
}

/* Forms */
form .field,
form .form-row,
.form-group,
.form-field {
    margin-bottom: 14px;
}

label,
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #F4CD59;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    max-width: 600px;
    background: #120c06;
    border: 1px solid #4a3a22;
    border-radius: 6px;
    padding: 8px 10px;
    color: #f5f5f5;
    box-sizing: border-box;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/* Match WYSIWYG editor borders with standard inputs */
.redactor-box.redactor-styles-on {
    border: 1px solid var(--client-form-border) !important;
    border-radius: 6px;
    box-shadow: none;
}

.redactor-focus.redactor-styles-on,
.redactor-focus:focus.redactor-styles-on {
    border-color: #F4CD59 !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #F4CD59;
    box-shadow: 0 0 0 1px rgba(244, 205, 89, 0.5);
}

#statusForm input[type="text"],
#statusForm input[type="email"],
#statusForm input[type="password"],
#statusForm input[type="tel"],
#statusForm input[type="number"],
#statusForm input[type="search"],
#statusForm input[type="url"],
#statusForm select {
    width: 100%;
    max-width: 100%;
}

#statusForm .status-error {
    background: #fdf1d2;
    border: 1px solid #d3b03f;
    color: #6a4a12;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    text-align: center;
}

#statusForm .status-actions {
    text-align: center;
    margin-top: 24px;
}

#statusForm .status-extra {
    margin-top: 18px;
    font-size: 0.95em;
    color: #5a5a5a;
    text-align: center;
}

#statusCard .status-footer {
    margin-top: 24px;
    padding-top: 12px;
    text-align: left;
    color: #5a5a5a;
    clear: both;
}

#statusCard .status-footer a {
    color: #362711;
    font-weight: 600;
}

/* Login form centering */
#loginform,
.loginbox {
    max-width: 420px;
    margin: 40px auto 0;
}

#loginform label {
    text-align: left;
    width: auto;
    padding-right: 0;
}

#loginform input[type="text"],
#loginform input[type="password"] {
    width: 100%;
}

/* Buttons */
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button,
.btn {
    background: #F4CD59;
    border: none;
    border-radius: 999px;
    color: #31230F;
    padding: 8px 20px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.05s ease;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover,
.btn:hover {
    background: #D3B03F;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active,
button:active,
.button:active,
.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

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

a:hover,
a:focus {
    color: #ffffff;
}

/* Messages / alerts */
.notice_bar,
.warning_bar,
.error_bar {
    border-radius: 8px;
    margin: 0 0 15px;
}

/* Ticket + login forms alignment */
#ticketform table,
#loginform table {
    width: 100%;
}

#ticketform td,
#loginform td {
    padding: 4px 0;
}

/* Footer */
#footer,
#powered_by {
    background: transparent;
    border-top: none;
    text-align: center;
    color: #b8a47e;
    padding: 15px 0 5px;
    font-size: 11px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    #container {
        margin: 10px;
        padding-bottom: 20px;
    }

    #header {
        padding: 15px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #nav {
        padding: 0 10px;
    }

    #nav ul {
        gap: 6px;
    }

    #nav li a {
        padding: 6px 12px;
        margin: 4px 0;
        white-space: normal;
    }

    #content {
        padding: 16px 16px 10px;
    }

    #ticketform,
    #loginform,
    .loginbox {
        padding: 16px 14px;
    }
}

/* =====================================================================
   CommunityCraft – form readability & layout fixes
   ===================================================================== */

/* Make the main client ticket form light for better contrast */
#ticketForm,
#ticketform,
form#ticketForm,
form#ticketform,
#statusCard,
form#statusForm,
#ticketView {
    background: #ffffff !important;
    color: #111111 !important;
}

/* Ensure the form container stretches with dynamic fields */
#ticketForm .body,
#ticketform .body,
#ticketForm .form_table,
#ticketform .form_table,
#ticketForm table,
#ticketform table,
#ticketView table {
    background: transparent !important;
}

/* Text inside the ticket form */
#ticketForm td,
#ticketForm th,
#ticketform td,
#ticketform th,
#ticketForm label,
#ticketform label,
#statusForm label,
#ticketView td,
#ticketView th,
#ticketView label {
    color: #111111 !important;
}

/* Inputs, selects, textareas inside the ticket form: light style */
#ticketForm input[type="text"],
#ticketform input[type="text"],
#statusForm input[type="text"],
#ticketForm input[type="email"],
#ticketform input[type="email"],
#statusForm input[type="email"],
#ticketForm input[type="password"],
#ticketform input[type="password"],
#statusForm input[type="password"],
#ticketForm input[type="tel"],
#ticketform input[type="tel"],
#statusForm input[type="tel"],
#ticketForm input[type="number"],
#ticketform input[type="number"],
#statusForm input[type="number"],
#ticketForm input[type="search"],
#ticketform input[type="search"],
#statusForm input[type="search"],
#ticketForm input[type="url"],
#ticketform input[type="url"],
#statusForm input[type="url"],
#ticketForm select,
#ticketform select,
#statusForm select,
#ticketForm textarea,
#ticketform textarea,
#statusForm textarea {
    background: #ffffff !important;
    color: #111111 !important;
    border: 1px solid var(--client-form-border) !important;
    border-radius: 6px;
    box-shadow: none;
}

/* Dynamic/extra fields that appear after choosing a help topic */
#ticketForm .dynamic-form,
#ticketform .dynamic-form,
#ticketForm .custom-fields,
#ticketform .custom-fields,
#ticketForm .ticketInfo,
#ticketform .ticketInfo {
    background: transparent !important;
}

/* Buttons row at bottom of the ticket form */
#ticketForm .buttons,
#ticketform .buttons {
    background: transparent !important;
    padding-top: 10px;
}

/* =====================================================================
   CommunityCraft v3 - Navigation & layout cleanup
   ===================================================================== */

/* Remove legacy tab images and gradients */
#nav,
#nav * {
    background-image: none !important;
}

/* Navigation bar container */
#nav {
    background: #2a1b0c;
    border-bottom: 1px solid #D3B03F;
    padding: 0 20px;
    height: auto;
    display: flex;
    justify-content: center;
}

/* Reset legacy list styles */
#nav ol,
#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 8px;
}

#nav li {
    margin: 0;
    padding: 0;
}

/* Pill-style buttons */
#nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 16px;
    margin: 6px 0;
    border-radius: 999px;
    background-color: #362711;
    color: #F4CD59;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    border: none;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

/* Active + hover states */
#nav li.active a,
#nav li a:hover,
#nav li a:focus {
    background-color: #F4CD59;
    color: #362711;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}

/* Icons inside nav (old theme) */
#nav li a img,
#nav li a span.icon {
    display: none !important;
}

/* Make the whole page background consistent */
html,
body {
    background: #e0e0e0;
}

/* Ticket form main card alignment */
#ticketForm,
#ticketform,
#statusCard,
#ticketView {
    float: none !important;
    clear: both;
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 30px 30px;
    margin: 15px auto 30px;
    max-width: 1100px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Ensure expanding sections stay inside the card */
#ticketform .form_table,
#ticketform table {
    width: 100%;
}

#ticketform td {
    vertical-align: top;
}

/* Safer default for selects (in case of overrides elsewhere) */
#ticketform select {
    background-color: #ffffff !important;
    color: #111111 !important;
}

/* Footer center align and subtle */
#footer,
#powered_by {
    text-align: center;
    background: transparent;
    border-top: none;
    color: #777;
    padding: 15px 0 10px;
}

/* =====================================================================
   CommunityCraft v4 - Fine tuning navigation, header text, footer and form card
   ===================================================================== */

/* Inactive nav labels readable */
#nav li a {
    color: #F4CD59 !important;
    text-shadow: none !important;
}

/* Active nav button stronger contrast */
#nav li.active a {
    background-color: #F4CD59 !important;
    color: #362711 !important;
}

/* Subtext under page title on its own line */
#content h1 {
    display: block;
    margin-bottom: 4px;
}

#content h1+p {
    display: block;
    margin-top: 2px;
}

/* Make sure dynamic ticket form sections stay inside the rounded card */
#ticketForm,
#ticketform {
    overflow: visible;
}

#ticketForm form,
#ticketform form {
    background: transparent;
}

/* Small visual separation between header nav and content */
#content {
    margin-top: 10px;
}

/* Footer should sit under the main content, not float to the right */
#footer,
#powered_by {
    float: none !important;
    clear: both !important;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

/* Ensure full-width white card so nothing "hangs" rechts */
#ticketForm,
#ticketform,
#ticketView {
    max-width: 1000px;
}

/* =====================================================================
   CommunityCraft v5 - Fix header subtitle, card layering & backgrounds
   ===================================================================== */

/* Header title + subtitel op aparte regel */
#content h1 {
    display: block;
    margin-bottom: 2px;
}

#content h1 span,
#content h1 small {
    display: block;
    margin-top: 3px;
    font-size: 0.7em;
    font-weight: 400;
}

/* Gebruik één duidelijke witte kaart: outer wrapper transparant */
#container {
    background: transparent;
    box-shadow: none;
}

/* Zorg dat de ticketkaart zelf de enige "card" is */
#ticketForm,
#ticketform,
#statusCard,
#ticketView {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 34px 34px;
    margin: 20px auto 30px;
    max-width: 1000px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

/* Achtergrond achter alles licht en egaal */
html,
body {
    background: #e5e5e5;
}

/* Kleine marge tussen nav bar en de kaart */
#content {
    margin-top: 16px;
}

/* Footer netjes onderaan gecentreerd */
#footer,
#powered_by {
    float: none !important;
    clear: both !important;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

/* Veiligheidsnet: geen extra witte blokken om de kaart heen */
div.body,
div#page {
    background: transparent;
}

/* CommunityCraft fix - title and subtitle on separate lines */
#content h1 {
    display: block !important;
    float: none !important;
    clear: both;
    margin: 0 0 4px 0;
}

#content h1+p {
    display: block;
    margin: 0 0 12px 0;
}

/* Force top navigation pills to center text (override base theme) */
#container #nav {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

#container #nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

#container #nav li {
    display: flex;
    margin: 0;
    padding: 0;
}

#container #nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    float: none !important;
    text-align: center;
    padding: 8px 18px;
    line-height: 1.3;
    height: auto;
    background: #362711 !important;
    color: #F4CD59 !important;
}

#container #nav li a:hover,
#container #nav li a:focus,
#container #nav li a.active {
    background: #F4CD59 !important;
    color: #362711 !important;
}

#reply {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;

    /* Footer center align and subtle */
    #footer,
    #powered_by {
        text-align: center;
        background: transparent;
        border-top: none;
        color: #777;
        padding: 15px 0 10px;
    }

    /* =====================================================================
   CommunityCraft v4 - Fine tuning navigation, header text, footer and form card
   ===================================================================== */

    /* Inactive nav labels readable */
    #nav li a {
        color: #F4CD59 !important;
        text-shadow: none !important;
    }

    /* Active nav button stronger contrast */
    #nav li.active a {
        background-color: #F4CD59 !important;
        color: #362711 !important;
    }

    /* Subtext under page title on its own line */
    #content h1 {
        display: block;
        margin-bottom: 4px;
    }

    #content h1+p {
        display: block;
        margin-top: 2px;
    }

    /* Make sure dynamic ticket form sections stay inside the rounded card */
    #ticketForm,
    #ticketform {
        overflow: visible;
    }

    #ticketForm form,
    #ticketform form {
        background: transparent;
    }

    /* Small visual separation between header nav and content */
    #content {
        margin-top: 10px;
    }

    /* Footer should sit under the main content, not float to the right */
    #footer,
    #powered_by {
        float: none !important;
        clear: both !important;
        width: 100%;
        text-align: center;
        margin-top: 30px;
    }

    /* Ensure full-width white card so nothing "hangs" rechts */
    #ticketForm,
    #ticketform,
    #ticketView {
        max-width: 1000px;
    }

    /* =====================================================================
   CommunityCraft v5 - Fix header subtitle, card layering & backgrounds
   ===================================================================== */

    /* Header title + subtitel op aparte regel */
    #content h1 {
        display: block;
        margin-bottom: 2px;
    }

    #content h1 span,
    #content h1 small {
        display: block;
        margin-top: 3px;
        font-size: 0.7em;
        font-weight: 400;
    }

    /* Gebruik één duidelijke witte kaart: outer wrapper transparant */
    #container {
        background: transparent;
        box-shadow: none;
    }

    /* Zorg dat de ticketkaart zelf de enige "card" is */
    #ticketForm,
    #ticketform,
    #statusCard,
    #ticketView {
        background: #ffffff;
        border-radius: 16px;
        padding: 30px 34px 34px;
        margin: 20px auto 30px;
        max-width: 1000px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
        box-sizing: border-box;
    }

    /* Achtergrond achter alles licht en egaal */
    html,
    body {
        background: #e5e5e5;
    }

    /* Kleine marge tussen nav bar en de kaart */
    #content {
        margin-top: 16px;
    }

    /* Footer netjes onderaan gecentreerd */
    #footer,
    #powered_by {
        float: none !important;
        clear: both !important;
        width: 100%;
        text-align: center;
        margin-top: 30px;
    }

    /* Veiligheidsnet: geen extra witte blokken om de kaart heen */
    div.body,
    div#page {
        background: transparent;
    }

    /* CommunityCraft fix - title and subtitle on separate lines */
    #content h1 {
        display: block !important;
        float: none !important;
        clear: both;
        margin: 0 0 4px 0;
    }

    #content h1+p {
        display: block;
        margin: 0 0 12px 0;
    }

    /* Force top navigation pills to center text (override base theme) */
    #container #nav {
        display: flex;
        justify-content: center;
        padding: 0 20px;
    }

    #container #nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    #container #nav li {
        display: flex;
        margin: 0;
        padding: 0;
    }

    #container #nav li a {
        display: flex;
        align-items: center;
        justify-content: center;
        float: none !important;
        text-align: center;
        padding: 8px 18px;
        line-height: 1.3;
        height: auto;
        background: #362711 !important;
        color: #F4CD59 !important;
    }

    #container #nav li a:hover,
    #container #nav li a:focus,
    #container #nav li a.active {
        background: #F4CD59 !important;
        color: #362711 !important;
    }

    #reply {
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
    }

    background: transparent;
    border-top: none;
    color: #777;
    padding: 15px 0 10px;
}

/* =====================================================================
   CommunityCraft v4 - Fine tuning navigation, header text, footer and form card
   ===================================================================== */

/* Inactive nav labels readable */
#nav li a {
    color: #F4CD59 !important;
    text-shadow: none !important;
}

/* Active nav button stronger contrast */
#nav li.active a {
    background-color: #F4CD59 !important;
    color: #362711 !important;
}

/* Subtext under page title on its own line */
#content h1 {
    display: block;
    margin-bottom: 4px;
}

#content h1+p {
    display: block;
    margin-top: 2px;
}

/* Make sure dynamic ticket form sections stay inside the rounded card */
#ticketForm,
#ticketform {
    overflow: visible;
}

#ticketForm form,
#ticketform form {
    background: transparent;
}

/* Small visual separation between header nav and content */
#content {
    margin-top: 10px;
}

/* Footer should sit under the main content, not float to the right */
#footer,
#powered_by {
    float: none !important;
    clear: both !important;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

/* Ensure full-width white card so nothing "hangs" rechts */
#ticketForm,
#ticketform,
#ticketView {
    max-width: 1000px;
}

/* =====================================================================
   CommunityCraft v5 - Fix header subtitle, card layering & backgrounds
   ===================================================================== */

/* Header title + subtitel op aparte regel */
#content h1 {
    display: block;
    margin-bottom: 2px;
}

#content h1 span,
#content h1 small {
    display: block;
    margin-top: 3px;
    font-size: 0.7em;
    font-weight: 400;
}

/* Gebruik één duidelijke witte kaart: outer wrapper transparant */
#container {
    background: transparent;
    box-shadow: none;
}

/* Zorg dat de ticketkaart zelf de enige "card" is */
#ticketForm,
#ticketform,
#statusCard,
#ticketView {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 34px 34px;
    margin: 20px auto 30px;
    max-width: 1000px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

/* Achtergrond achter alles licht en egaal */
html,
body {
    background: #e5e5e5;
}

/* Kleine marge tussen nav bar en de kaart */
#content {
    margin-top: 16px;
}

/* Footer netjes onderaan gecentreerd */
#footer,
#powered_by {
    float: none !important;
    clear: both !important;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

/* Veiligheidsnet: geen extra witte blokken om de kaart heen */
div.body,
div#page {
    background: transparent;
}

/* CommunityCraft fix - title and subtitle on separate lines */
#content h1 {
    display: block !important;
    float: none !important;
    clear: both;
    margin: 0 0 4px 0;
}

#content h1+p {
    display: block;
    margin: 0 0 12px 0;
}

/* Force top navigation pills to center text (override base theme) */
#container #nav {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

#container #nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

#container #nav li {
    display: flex;
    margin: 0;
    padding: 0;
}

#container #nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    float: none !important;
    text-align: center;
    padding: 8px 18px;
    line-height: 1.3;
    height: auto;
    background: #362711 !important;
    color: #F4CD59 !important;
}

#container #nav li a:hover,
#container #nav li a:focus,
#container #nav li a.active {
    background: #F4CD59 !important;
    color: #362711 !important;
}

#reply {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
}

#reply textarea {
    width: 100% !important;
    max-width: 100% !important;
}

#reply h2 {
    float: none !important;
    display: block !important;
    clear: both !important;
    margin-bottom: 10px !important;
}

/* Fix search bar alignment and background */
.search.well form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
}

.search.well .flush-left {
    width: 100%;
}

.search.well input[type="text"],
.search.well select {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 4px;
}

.search.well .pull-right {
    float: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
