body,
ul,
li,
span,
div,
p {
    margin: 0;
    padding: 0;
}

*:focus {
    outline: none;
}

li {
    list-style: none;
}

body {
    background: #fff;
    color: #333333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

body::after {
    content: "";
    display: block;
    min-height: 80px;
    margin-top: auto;
    order: 1;
}

.left-section {
    width: 50%;
    height: 100vh;
    /* Set height to 100% of viewport height */
    padding: 20px;
    box-sizing: border-box;
    float: left;
    overflow-y: auto;
    overflow-x: hidden;
    /* Make the sections vertically scrollable */
}

.right-section {
    width: 50%;
    height: 100vh;
    /* Set minimum height to 100% of viewport height */
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    /* Make the sections vertically scrollable */
    border: 0;
    float: right;
}

/************** Tooltip **************/

.tooltip {
    position: relative;
    /* display: inline-block;*/
}

.tooltip a {
    color: #fff;
    !important;
}

.tooltip .tooltiptext {
    visibility: hidden;
    max-width: 320px;
    min-width: 100px;
    background-color: #333;
    color: #fff;
    !important;
    font-style: normal;
    !important;
    font-size: 14px;
    font-weight: normal !important;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 95%;
    left: 0%;
    margin-left: -10px;
    opacity: 0;
    transition: opacity 0.3s;
}


.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    cursor: pointer;
}

.edit-link {
    text-decoration: underline;
    cursor: pointer;
}

.edit-link:hover {
    color: #2980b9;
}

.active-edit-highlight {
    background-color: #fff176 !important;
    outline: 2px solid #fbc02d !important;
    border-radius: 3px !important;
    box-shadow: 0 0 6px rgba(251, 192, 45, 0.6) !important;
    transition: background-color 0.2s ease, outline 0.2s ease;
}

/************** Search **************/

.pads-search-wrapper {
    width: 80%;
    max-width: 700px;
    margin: 20px auto;
    padding: 10px 40px;
    box-sizing: border-box;
}

.pads-search-box {
    position: relative;
}

.pads-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.pads-search-select {
    width: 180px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.pads-search-input {
    flex: 1;
    min-width: 240px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.pads-search-submit {
    height: 42px;
    padding: 0 20px;
    font-size: 16px;
    background-color: #0070c0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pads-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1000;
    background: #fafafa;
    border: 1px solid #aaa;
    max-height: 220px;
    overflow-y: auto;
    box-sizing: border-box;
}

.pads-search-result {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.pads-search-result:hover {
    background: #e9eefc;
}

/************** Header and Footer **************/

.topnav {
    background-color: #536a7d;
    /* Elegant, toned-down version of #0070c0 */
    position: sticky;
    top: 0;
    z-index: 1000;
    text-align: right;
    padding: 4px 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #f8fafc;
}

.topnav a,
.topnav button {
    color: #f8fafc;
    text-align: center;
    padding: 4px 12px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.topnav a:hover,
.topnav button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* footer */

footer {
    background: #ddd;
    padding-top: 30px;
    margin-top: 0;
    order: 2;
    clear: both;
    /* Ensures that the footer clears any floated elements */
}

footer:after {
    content: "";
    display: block;
    clear: both;
}

.pads-fb-trigger {
    margin-top: 10px;
    text-align: center;
}

.pads-fb-wrapper {
    display: none;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 20px;
}

.pads-fb-form {
    display: flex;
    width: 100%;
    gap: 8px;
    align-items: center;
    box-sizing: border-box;
}

.pads-fb-userbox {
    flex: 0 0 auto;
    min-width: 260px;
    height: 34px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    line-height: 20px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pads-fb-message {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.pads-fb-button {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #2563eb;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.pads-fb-status {
    text-align: center;
    color: green;
    font-size: 0.9em;
    margin-top: 10px;
}

.pads-footer-copy {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 20px;
    text-align: center;
}

@media (max-width: 900px) {
    .pads-fb-form {
        flex-wrap: wrap;
    }

    .pads-fb-userbox,
    .pads-fb-message,
    .pads-fb-button {
        flex: 1 1 100%;
    }
}


/************** Input Fields **************/

input[type=number] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=number] {
    width: 200px;
    !important;
}

input[type=editorsubmit] {
    width: 200px;
    background-color: #0070c0;
    color: white;
    padding: 14px 20px;
    margin: 20px 0px;
    border: none;
    border-radius: 4px;
    cursor: pointer;

}

input[type=text] {
    background-color: white;
    background-image: url('searchicon.png');
    background-position: 10px 14px;
    background-repeat: no-repeat;
    padding: 12px 20px 12px 40px;
    width: 400px;
    !important;
    margin: 0;
    box-sizing: border-box;
    font-size: 22px;
    line-height: 22px;
    border: 1px solid #aaa;
    border-radius: 4px;
    vertical-align: middle;
}

input[type=submit] {
    font-family: arial;
    width: 50px;
    //margin: 0px 0px 0px 5px;
    padding: 18px 0;
    width: 87px;
    font-size: 12px;
    background-color: #0070c0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 3px;
}





#wordid_ {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: field;
    color: fieldtext;
}


.greyBorder {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 20px;
}


.explanation {
    margin-left: 10px;
    font-size: 12px;
}

.container {
    display: flex;
    flex-wrap: wrap;
}

.element {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 8px 0;
}

.element_label {
    height: 16px;
    width: 4%;
    padding: 12px 0;
    margin: 2px 0;
    background-color: #f2f2f2;
}

.element_input {
    margin: 2px 0 !important;
}

.element_controll {
    margin: 0 12px;
}

.container_controll {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.category_controll {
    margin: 0 12px;
}

.wrapper {
    width: 70%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2%;

}

.entry-wrapper {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2%;
    box-sizing: border-box;
}

option,
optgroup {
    -webkit-appearance: none;
}

select {
    background-color: #0070c0;
    color: white;
    font-family: arial;
    height: 50px;
    width: 100px;
    font-size: 16px;
}


option {
    background-color: #0070c0;
    color: white;
    font-family: arial;
    height: 50px;
    font-size: 16px;
}

.logo {
    margin: 32px auto 76px;
    text-indent: -10000px;
    background: url(logo.png) no-repeat;
    width: 584px;
    height: 85px;
    display: block;
}

/************** ENTRY **************/

.entry {
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    font-family: "Cambria", serif;
    line-height: 1.2;
}

.entryheader {
    margin-top: 10px;
    text-align: center;
}

.word {
    font-size: 38px;
    font-weight: bold;
    color: darkblue;
    /* -webkit-text-stroke: 1px #333333; */
}

.WordPron {
    margin-left: 12px;
    font-size: 28px;
    font-family: calibri;
}

.ConstructionPattern {
    font-weight: bold;
    color: darkblue;
}

.ConstructionPattern .SquareBrackets {
    line-height: 0px;
    font-size: 10px;
    color: #999999;
    /* color: #169f9f; */
}

.ConstructionSuper {
    /* vertical-align: super;
	font-size:18px; !important;*/
}

.WordInformation {
    font-size: 16px;
    font-family: "Arial";
    margin-top: 10px;
    margin-bottom: 40px;
}

.WordTransitivity {
    font-variant: small-caps;
}

.head_of_construction {
    color: #000;
    font-size: 18px;
    line-height: 1.2;
    padding-bottom: 1px;
    margin-top: 15px;
}

.body_of_construction {
    border-left: 2px solid darkblue;
    border-top: 2px solid darkblue;
    margin-left: 20px;

}

.head_of_sfield {
    margin-left: 4px;
}

.sfield {
    border-right: solid #0070c0 1px;
    border-top: solid #0070c0 1px;
    border-bottom: solid #0070c0 1px;

    padding-bottom: 4px;
    padding-right: 4px;
    /* margin-bottom:10px;*/
    /* margin-left:4px;*/
}

.ConstructionCaps {
    font-variant: small-caps;
}

.ConstructionInflection {
    /* top:11px; */
}

.blueBoxLong {
    padding-left: 4px;
    /* padding-top: 1px;*/
    /* padding-bottom: 1px;*/
    padding-right: 3px;
    /* margin-top:2px; */
    background-color: #0070c0;
    color: #fff;
}

.SignPost {
    /*padding-left: 4px;
    padding-top: 1px;
    padding-right: 3px;
	background-color:#0070c0;
	color: #fff;*/
    padding-bottom: 1px;
    margin-left: 22px;
    margin-top: 4px;
    font-size: 12px;
}

.FieldVagueDefinition {
    /* font-size: 18px;*/
    /* font-weight: bold;*/
    /* font-family: arial; */
    /*line-height: 18px;*/
}

.FrameIndication {
    font-weight: normal;
    color: #660033;
    ;
    border: solid 1px;
    padding-left: 2px;
    padding-right: 2px;

}



/******* Portions *******/

.MainSensePortion {
    margin-top: 2px;
    padding-right: 2px;
    padding-bottom: 1px;
    /*text-align: justify;*/
    font-size: 18px;
    line-height: 1.22;
    background-color: #f8f8ff;
}

.SubSensePortion {
    font-size: 16px;
    margin: 2px 0 2px 0px;

    border-top: 1px solid lightgray;
    border-bottom: 1px solid lightgray;

    padding: 1px 0;
    line-height: 1.25;
}


.SubSensePortion Table {
    margin: 2px 0 2px 0px;
}

p {
    padding-left: 2px;
    background-color: #fbfbfb;
}

p.Usage {
    /* background-color: #e8e8e8; */
    border-top: 1px solid lightgray;

}

/******* Sense derivation *******/


.Derivation {
    font-family: "Arial";
    font-size: 90%;
    font-variant: small-caps;
    /* font-weight: bold;*/
    color: #660033;
    /* color: darkblue;  */

}


/**** BULLETS ****/

p {
    position: relative
}

.SenseFieldBullet {
    color: #0070c0;
}

.PhrasemeBullet {
    position: absolute;
    right: 100.5%;
    top: 2px;
    font-weight: bold;
}

.SpecialCaseBullet {
    color: #0070c0;
}

.SensePatternBullet {
    padding: 0px 4px 1px 4px;
    background-color: #0070c0;
    color: #fff;
    font-weight: bold;
}

.DefinitionBullet {
    color: #333333;
    font-weight: bold;
    /* color: #666666; */
}

.DerivationBullet {
    color: darkblue;
    /* color: #d00090; */
}

.UsagePatternBullet {
    color: #660033;
}

/***** SENSE PATTERNS *****/

.SensePattern {
    color: darkblue;
    /* color: #0000aa; */
}

.MainSensePattern {
    font-weight: bold;
}

.UsagePattern {
    /* font-weight: bold */
    ;
    color: #660033;
}

.SubSensePattern {
    font-weight: bold;
}

.ExtensionPattern {
    font-weight: bold;
}

/******* Definitions ********/

.MainSenseDefinition {
    font-weight: bold;
}

.UsageDefinition {}

.SubSenseDefinition {
    font-weight: bold;
}

.ExtensionDefinition {
    font-weight: bold;
}



/***** Rest of LU *****/

.EditorMessage {

    background-color: lightyellow;

}

.Indication {}

.Example {
    font-style: italic;
}


.Synonym {
    color: darkblue;
}

.Collocation {
    color: darkblue;
}

.ExampleBullet {
    display: inline-block;
    line-height: 0px;
    vertical-align: 1.5px;

    border-radius: 50%;
    border: 1px solid;

    font-size: 60%;
}

.ExampleBullet span {
    display: inline-block;

    padding-top: 50%;
    padding-bottom: 50%;

    margin-left: 3px;
    margin-right: 3px;
}

.CollocationBullet {
    display: inline-block;
    line-height: 0px;
    vertical-align: 1.5px;

    border-radius: 50%;
    border: 1px solid;

    font-size: 60%;
    color: darkblue;
}

.CollocationBullet span {
    display: inline-block;

    padding-top: 50%;
    padding-bottom: 50%;

    margin-left: 3px;
    margin-right: 3px;
}

.SubsensesIndication {
    width: 130px;
    vertical-align: top;
    text-align: right;
    color: #660033;
    background-color: #fff0f0;

    font-family: "Arial";
    font-size: 90%;
    font-variant: small-caps;
    /* font-weight: bold;*/
    // color: darkblue; //
}

/******* Inline roles *******/

.Protagonist {
    font-variant: small-caps;
}

.ConstructionPattern .Protagonist {
    font-size: 110%;
    color: #0070c0;
    font-variant: small-caps;
}

.MainSensePattern .Protagonist {
    font-size: 110%;
    color: #0070c0;
    font-weight: bold;
}

.MainSensePattern .Collocated {
    font-size: 110%;
}

.MainSenseDefinition .Protagonist {
    font-variant: normal;
    /* text-decoration: underline #d0d0d0;*/
    /* cursor: pointer;*/

}

.MainSenseDefinition>.Metatext>.Protagonist {
    color: #666666;
}

.Example .Protagonist {
    font-variant: small-caps;
}

.Synonym .Protagonist {
    font-variant: small-caps;
    color: #0070c0;
}

.SensePattern .Protagonist {
    color: #0070c0;
    font-variant: small-caps;
}

.SubSenseDefinition .Protagonist {
    font-variant: normal;
}

.ExtensionDefinition .Protagonist {
    font-variant: normal;
    /* text-decoration: underline #d0d0d0; */
    cursor: pointer;
}

.Collocation .Protagonist {

    font-variant: small-caps;
    color: #0070c0;
}

.SlashBetweenLetters {
    vertical-align: 2px;
    font-size: 70%;
}

.Subject {
    color: #660033;
}

.Adverb {
    color: #169f9f;
    /* salmon   #FF6347  #fa6858*/
    /*font-variant:small-caps;*/
}

.FieldDisambiguator {
    color: #169f9f;
    /* #0070c0; salmon; */
}

.Object {
    color: darkblue;
}

.RoundBrackets {
    /* font-weight: normal; */
}

.SquareBrackets {
    font-family: "Arial", sans-serif;
    font-stretch: condensed;
    font-weight: 400;
    font-size: 92%;
}

.Label {
    font-variant: small-caps;
}

.Collocated {
    font-variant: small-caps;


}

.Metatext {
    font-variant: small-caps;
    font-family: "Arial";
    font-stretch: condensed;
    /* font-size:92%;*/
}

.Generic {
    /* font-family:"Arial"; */
    font-family: "Cambria";

}

.Fixed {
    font-style: italic;
    font-variant: small-caps;
}

.Uncollocated {
    font-variant: normal;

    /*font-family:"Courier";
	font-size:115%;*/
}

.Emphasized {
    font-weight: bold;
}

.Deemphasized {
    font-weight: normal;
}

.Subscribed {
    line-height: 0px;
    font-size: 70%;
    text-decoration: none;
    /* vertical-align: -2px; */
    /* font-weight:normal; */
}

.Superscribed {
    line-height: 0px;
    font-size: 70%;
    text-decoration: none;
    vertical-align: 6px;
    font-weight: normal;
}

.SensePatternExplanation {
    text-decoration: underline dashed #aaaaff;
    cursor: e-resize;
}


/* ============================================================
   === Editor Panel (.editor-wrapper) ===
   Scoped overrides — reset global style_main.css rules
   (blue selects, search-icon on inputs, etc.) so the admin
   editor forms look clean without touching the rest of the site.
   ============================================================ */

.editor-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    border: 2px solid #ddd;
}

.editor-wrapper input,
.editor-wrapper select {
    width: 100%;
    padding: 12px 20px !important;
    margin: 8px 0 !important;
    display: block !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    background-image: none !important;
    /* cancels searchicon from global rule */
    font-size: 14px !important;
    /* cancels 22px from global input rule  */
    line-height: normal !important;
    height: auto !important;
    min-height: 42px !important;
}

.editor-wrapper select {
    background-color: white !important;
    /* cancels blue global select */
    color: black !important;
    height: auto !important;
    /* cancels 50px global select */
    font-family: inherit !important;
    -webkit-appearance: auto !important;
    appearance: auto !important;
}

/* Tighten row inputs inside repeaters */
.editor-wrapper .lu-row input {
    margin: 0 0 2px 0 !important;
}

/* Radio buttons used for the "hide none / hidden" feature in repeaters.
   Must use !important on every property to beat .editor-wrapper input !important rules. */
.editor-wrapper input[type="radio"].lu-radio,
.editor-wrapper .lu-row input[type="radio"].lu-radio {
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 4px 0 0 !important;
    display: inline-block !important;
    border: revert !important;
    background: revert !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    -webkit-appearance: radio !important;
    appearance: radio !important;
    line-height: normal !important;
}

.lu-radio-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.82em !important;
    font-weight: normal !important;
    cursor: pointer !important;
    color: currentColor !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}


.editor-wrapper option,
.editor-wrapper optgroup {
    background-color: white !important;
    color: black !important;
    height: auto !important;
    font-size: 14px !important;
    -webkit-appearance: auto !important;
    appearance: auto !important;
    padding: 4px !important;
}

.editor-wrapper select,
.editor-wrapper input[type=number] {
    width: 200px !important;
}

.editor-wrapper .custom-number-input {
    width: 100% !important;
    padding: 12px 20px;
    margin: 8px 0;
    display: block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: white;
    color: #000;
}

.editor-wrapper .custom-number-input2 {
    width: 100%;
    max-width: 200px;
    padding: 12px 20px;
    margin: 8px 0;
    display: block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: white;
    color: #000;
}

.editor-wrapper .action-button {
    padding: 8px 16px;
    font-weight: bold;
    background-color: #e0e0e0;
    color: #000;
    border: 1px solid #bbb;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.95em;
}

.editor-wrapper input[type=submit],
.editor-wrapper input[type=button] {
    width: 200px !important;
    background-color: #0070c0 !important;
    color: white !important;
    padding: 14px 20px !important;
    margin: 20px 0px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    letter-spacing: normal !important;
    font-size: 14px !important;
}

.editor-wrapper input.btn-secondary {
    background-color: #6c757d !important;
}

.editor-wrapper.greyBorder {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 20px;
}

.editor-wrapper .explanation {
    margin-left: 10px;
    font-size: 12px;
}

.editor-wrapper .container {
    display: flex;
    flex-wrap: wrap;
}

.editor-wrapper .element {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 8px 0;
}

.editor-wrapper .element_label {
    height: auto;
    min-width: 4%;
    padding: 12px 0;
    margin: 2px 0;
}

.editor-wrapper .element_input {
    margin: 2px 0 !important;
}

.editor-wrapper .element_controll {
    margin: 0 12px;
    background: #e0e0e0;
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.editor-wrapper .container_controll {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.editor-wrapper .category_controll {
    margin: 0 12px;
    background: #e0e0e0;
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.editor-wrapper .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 999;
    color: black;
    font-weight: bold;
}

.editor-wrapper .show-list {
    margin: 0;
    width: 70%;
    border-top: none;
    background-color: #fafafa;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.editor-wrapper .show-list a {
    display: block;
    width: 100%;
    color: #660033;
    font-family: arial;
    text-decoration: none;
    font-size: 13px;
    padding: 10px 40px;
}

/* Soft-deleted repeater rows */
.editor-wrapper .lu-row--deleted {
    opacity: 0.35;
    text-decoration: line-through;
}

.editor-wrapper .lu-row--deleted button {
    pointer-events: all !important;
    text-decoration: none;
    opacity: 1;
}

/* Dynamic row action buttons */
.editor-wrapper .lu-row button {
    background-color: #e0e0e0;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    color: #000;
}

/* Repeater Drag and Drop */
.editor-wrapper .lu-drag-handle {
    cursor: grab;
    user-select: none;
    color: #888;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 3px;
    border-radius: 2px;
    transition: color 0.15s ease, background 0.15s ease;
}

.editor-wrapper .lu-drag-handle:hover {
    color: #222;
    background-color: #eaeaea;
}

.editor-wrapper .lu-drag-handle:active {
    cursor: grabbing;
}

.editor-wrapper .lu-row[draggable="true"] {
    transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.editor-wrapper .lu-row.lu-row--dragging {
    opacity: 0.35;
    border-left-color: #3b82f6 !important;
    background-color: #f0f7ff;
}

.editor-wrapper .lu-row.lu-drag-over-top {
    border-top: 2px solid #3b82f6;
}

.editor-wrapper .lu-row.lu-drag-over-bottom {
    border-bottom: 2px solid #3b82f6;
}

/************** Soft-Delete Toggle **************/
/* Hidden by default; revealed when an editor clicks "Show Deleted Entries" */
.status-deleted {
    display: none !important;
}

body.show-deleted-items .status-deleted {
    display: block !important;
    opacity: 0.55;
    border-left: 3px solid #dc3545;
    padding-left: 6px;
    background-color: #fff8f8;
    margin-bottom: 4px;
}

body.show-deleted-items .status-deleted * {
    text-decoration: line-through;
}

body.show-deleted-items .status-deleted button,
body.show-deleted-items .status-deleted form {
    text-decoration: none;
}

/************** User Management (UM) **************/

.um-page {
    width: 100%;
    max-width: 1550px;
    margin: 30px auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.um-title {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
}

.um-alert {
    margin-bottom: 15px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid;
}

.um-alert-error {
    color: #b00020;
    background: #fdecea;
    border-color: #f5c2c7;
}

.um-card {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.um-card-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
}

.um-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.um-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
}

.um-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    word-break: break-word;
    overflow-wrap: break-word;
}

.um-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.um-btn,
.um-btn:link,
.um-btn:visited {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.um-btn-primary {
    background: #2563eb;
    color: #fff;
}

.um-btn-danger {
    background: #dc2626;
    color: #fff;
}

.um-btn-secondary {
    background: #4b5563;
    color: #fff;
}

.um-form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.um-field {
    flex: 1;
    min-width: 180px;
}

.um-field-small {
    flex: 1;
    min-width: 160px;
}

.um-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.um-field-input,
.um-select {
    width: 100% !important;
    box-sizing: border-box;
    height: 42px;
    padding: 10px 12px !important;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    background-image: none !important;
    color: #111827;
    font-size: 14px !important;
    font-weight: normal !important;
    line-height: normal !important;
}

.um-error {
    color: #b00020;
    margin-top: 6px;
    font-size: 14px;
}

.um-success {
    color: #15803d;
    font-size: 14px;
}

.um-mt-40 {
    margin-top: 40px;
}

.um-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
}

.um-table-wrapper th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    box-shadow: inset 0 -1px 0 #ddd;
}

.um-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.um-modal.is-open {
    display: block;
}

.um-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.um-modal-dialog {
    position: relative;
    width: calc(100% - 32px);
    max-width: 900px;
    margin: 60px auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    z-index: 2001;
}

body.um-modal-open {
    overflow: hidden;
}

.um-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/************** Edit Own Password (pw) **************/

.pw-shell {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.pw-card {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pw-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

.pw-text {
    margin: 0 0 24px 0;
    color: #6b7280;
    font-size: 14px;
}

.pw-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.pw-field {
    flex: 1;
    min-width: 240px;
}

.pw-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #111827;
}

.pw-input {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 14px;
}

.pw-error {
    color: #b00020;
    margin-top: 6px;
    font-size: 14px;
}

.pw-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.pw-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background: #2563eb;
    color: #fff;
}

.pw-success {
    color: #15803d;
    font-size: 14px;
}

.pw-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid;
}

.pw-alert-error {
    color: #b00020;
    background: #fdecea;
    border-color: #f5c2c7;
}