@import "fonts.css";

.site_message {
    padding: 10px;
    text-align: center;
    background-color: #ff5454;
    width: 100%;
    margin: 0 !important;
    max-width: unset;
    font-weight: bold;
    color: white;
    font-size: 1.5em;
}

.alert-info {
    background-color: #e3f4fd;
    color: #006c97;
}
.alert-info a {
    color: #006c97;
}

.zone-content *:not(i), .btn {
    font-family: "Helvetica Neue", helvetica, arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.alert h4 {
    margin-top: 0;
    color: inherit;
}

h1, h2, h3, h4 {
    font-size: 1em;
    font-weight: 800;
    line-height: normal;
    margin-bottom: 10px;
    color: #0c5460;
}

ol, ul {
    margin: 10px 20px;
}

#page-title.title {
    text-align: left;
}

.col-sm-12 {
    padding: 0 20px 10px 20px;
}

.btn-sm {
    font-size: .9em;
}

.btn-xs {
    font-size: .7em;
}

.btn, a.btn {
    background-image: none;
    text-shadow: none;
    padding: 5px 20px;
    border-radius: 6px;
}

a.btn {
    text-decoration: none;
}

a.btn-info {
    color: #01324b;
    font-weight: bold;
}

.btn-primary, a.btn-primary {
    color: #01324b;
    background: none;
    background-color: #00bff3;
    border-color: #00bff3;
    text-shadow: none;
    cursor: pointer;
}

.btn-default, a.btn-default {
    color: #444444;
    background: none;
    background-color: #ffffff;
    border-color: #cccccc;
    text-shadow: none;
    cursor: pointer;
}

.btn-transparent-background {
    background: transparent;
    border-color: transparent;
}

select {
    min-width: 100px;
}

table button.btn {
    font-size: 1.2em;
    border-radius: 4px;
    padding: 1px 5px;
}

.inline-block {
    display: inline-block;
}

.screen-reader {
    position: absolute;
    left: -9999px;
}

.block {
    display: block;
}

.inline {
    display: inline;
}

img {
    max-width: 100%;
    border-radius: 4px;
}

/*accordian js*/
.accordion_section {
    border: thin dashed #aeaeae;
    position: relative;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.accordion_content {
    display: none;
    margin-left: 27px;
}

.accordion_trigger {
    cursor: pointer;
    padding: 0;
}

.accordion_trigger i {
    width: 20px;
    text-align: center;
}

.slide-toggle {
    cursor: pointer;
}

.temp_notice {
    margin-bottom: 0 !important;
}

#modal {
    position: fixed;
    top: 50%;
    left: 50%;
    background-color: #ffffff;
    border-radius: 12px;
    border: thin solid #cccccc;
    padding: 20px;
    z-index: 4;
    display: none;
    width: fit-content;
    transform: translate(-50%, -50%);
    max-width: 100vw;
    max-height: 100vh;
    overflow: auto;
}

#modal-content {
    overflow: auto;
    max-height: 100%;
    padding: 40px 20px 20px;
    display: block;
    border: none;
}

#modal-close {
    color: black;
    z-index: 5;
    display: block;
    position: absolute;
    right: 15px;
    font-size: 32px;
    top: 10px;
    cursor: pointer;
    background-color: #fff;
    border-radius: 50%;
    padding-top: 3px;
}

#modal-screen {
    position: fixed;
    top: -5%;
    bottom: -5%;
    right: -5%;
    left: -5%;
    background-color: #0066cc;
    opacity: .4;
    z-index: 3;
    display: none;
}

/*
.modal classes
same as above, but fits the content of modal
*/
.modal_set {
    z-index: 3;
    position: fixed;
}

.modal {
    position: fixed;
    left: 50%;
    top: 50%;
    width: fit-content;
    height: fit-content;
    max-height: 90vh;
    max-width: 100vw;
    overflow: auto;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: thin solid #cccccc;
    padding: 20px;
    display: none;
    opacity: 1;
}

/*
 * Summernote's dialogs, undoing the rule directly above.
 *
 * The .modal above is core's own legacy modal component — the one modal.js and
 * .es_modal drive — and it claims a bare Bootstrap class name for it. Summernote
 * renders every dialog as `class="modal note-modal …"` with its own
 * .modal-dialog > .modal-content inside, so it inherited a second white panel,
 * a grey border and 20px of padding wrapped around the real dialog: a frame
 * inside a frame.
 *
 * Scoped to .note-modal, which every Summernote dialog carries — link, image,
 * video, help, and the FileManager library picker. Deliberately NOT written as
 * a bare `.modal` reset: that would strip the legacy modals this file styles on
 * purpose, everywhere on the site.
 *
 * Inert until Summernote is actually loaded; nothing else emits .note-modal.
 */
.note-modal {
    background: none;
    border: none;
    border-radius: 0;
    /* Part of the same inherited block. Left in place it holds the dialog 20px
       off its own edges, which reads as a misalignment once the panel painting
       it is gone. */
    padding: 0;
}

/*
 * An image being dragged to a new position inside the editor.
 *
 * .note-dropzone is sized to cover the whole editable the moment any drag
 * starts, so an internal move dropped onto the text instead landed on the
 * dropzone and was re-pasted at the caret. core_js.js adds this class for the
 * duration of a drag that began inside the editable; a file dragged in from
 * the desktop never gets it, so drop-to-upload still works.
 */
.note-dropzone.note-dropzone-passthrough {
    display: none !important;
}

/*
 * The move handle on a selected image, and the caret that shows where it will
 * land. Both are built by wysiwyg_bind_image_move() in core_js.js.
 *
 * Summernote already draws .note-control-selection over a clicked image with a
 * resize grip in the south-east corner; the move grip is added to the middle of
 * that same box, where it cannot collide with the four corner holders.
 *
 * `.note-handle .note-control-selection > div` is absolutely positioned by
 * Summernote's own stylesheet, so the centring below only has to supply the
 * offsets.
 */
.note-control-selection .note-control-move {
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .65);
    border: 1px solid #fff;
    cursor: move;
    /* Above .note-control-selection-bg, which paints a 30% black wash over the
       whole image. */
    z-index: 2;
}

.note-control-selection .note-control-move svg {
    display: block;
    margin: 6px;
    width: 16px;
    height: 16px;
    fill: #fff;
    /* The grip is the event target; without this, pointerdown lands on the
       glyph and the drag never starts. */
    pointer-events: none;
}

/*
 * Hit-testing has to reach the text under the overlay while a move is in
 * progress — caretRangeFromPoint returns whatever is topmost, and that would
 * otherwise be the selection box itself. The box stays visible, so the image
 * being moved is still obvious; it just stops answering the mouse.
 */
.note-handle.note-handle-moving {
    pointer-events: none;
}

.note-editing-area .note-move-caret {
    position: absolute;
    width: 2px;
    background-color: #098ddf;
    pointer-events: none;
    z-index: 100;
}

/* Table / row / cell properties dialog (summernote-ext-tableprops.js) */
.tableprops-dialog .modal-dialog { max-width: 560px; }

.note-tableprops .tp-group {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 12px 12px;
    margin-bottom: 12px;
}

.note-tableprops legend {
    float: none;                 /* Bootstrap floats legends full-width */
    width: auto;
    padding: 0 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.note-tableprops label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 10px 4px 0;
    font-size: 13px;
}

.note-tableprops .form-control { width: auto; min-width: 90px; display: inline-block; }
.note-tableprops input[type="color"] { width: 40px; height: 30px; padding: 2px; }
.note-tableprops input[type="number"] { width: 70px; }
.note-tableprops .tp-unit { font-size: 11px; color: #6c757d; margin-left: -2px; }
.note-tableprops .tp-check { display: flex; width: 100%; }
.note-tableprops .tp-nocontext { color: #6c757d; font-style: italic; margin: 12px 0; }

/* Image alt-text dialog (summernote-ext-imagealt.js) */
.imagealt-dialog .modal-dialog { max-width: 520px; }

.note-imagealt .ia-preview {
    display: block;
    max-width: 100%;
    max-height: 140px;
    margin: 0 auto 14px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
}

.note-imagealt .ia-field { margin-bottom: 14px; }

.note-imagealt label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #495057;
}

.note-imagealt .ia-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.note-imagealt .ia-help {
    margin: 4px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #6c757d;
}

.note-imagealt .ia-alt:disabled { background: #e9ecef; }
.note-imagealt .ia-noimage { color: #6c757d; font-style: italic; margin: 12px 0; }

@media (max-width: 992px) {

    .modal {
        width: 100vw;
        height: 100vh;
    }
    .username.account-badge-open {
        display: none;
    }

    #modal {
        width: 100vw;
        height: 100vh;
        transform: unset;
        top: 0;
        left: 0;
        padding: 40px;
        border-radius: 12px;
        border: none;
    }
}

.site_notify_badge,
.es_quicklinks {
    float: right;
    display: flex;
    flex-direction: column;
    padding: 2px 20px 2px 5px;
    font-size: 1.5em;
}

#site_notifications, #site_quicklinks {
    color: white;
    background-color: #303030;
    font-size: 14px;
    text-align: left;
    border-left: thin dotted #ffffff;
}
#site_notifications .btn-close,
#site_quicklinks .btn-close {
    background-color: white;
}
#site_notifications > .offcanvas-header,
#site_quicklinks > .offcanvas-header {
    border-bottom: thin dashed #ffffff;
}
#site_notifications h1,
#site_notifications h2,
#site_notifications h3,
#site_notifications h4,
#site_notifications h5,
#site_quicklinks h1,
#site_quicklinks h2,
#site_quicklinks h3,
#site_quicklinks h4,
#site_quicklinks h5 {
    color: white;
}
.notification-badge {
    position: relative;
}
.notification-badge .badge.badge-primary {
    background-color: #b40000;
    color: white;
    font-size: .7em;
    padding: 3px 5px;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    left: 10px;
}

.indi-note {
    color: #ffffff;
    border: 1px solid #f7f7f7;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.indi-quicklink {
    color: #ffffff;
    border: 1px solid #f7f7f7;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: block;
}
.dark .indi-quicklink:hover {
    background-color: #f7f7f7;
    color: #000000 !important;
}

.indi-note h1 {
    font-size: 1.2em;
    margin-bottom: 5px;
    border-bottom: thin dotted #ffffff;
    padding-bottom: 5px;
}

.indi-note .btn {
    border: thin solid #ffffff;
}

.indi-note .notification-trash {
    cursor: pointer;
    float: right;
    padding: 10px;
}

.indi-note .date {
    font-size: .8em;
    font-style: italic;
    padding-bottom: 5px;
}

.indi-note.unread,
.indi-note.unread h1 {
    background-color: #ffffff;
    color: #000000 !important;
}

.indi-note .indi-content {
    display: none;
}

.modal-content {
    overflow: auto;
    max-height: 100%;
    padding: 20px;
    display: block;
    border: none;
}

.modal-close {
    color: white;
    z-index: 5002;
    display: block;
    position: absolute;
    right: -23px;
    font-size: 28px;
    top: -23px;
    width: 40px;
    height: 40px;
    text-align: center;
    cursor: pointer;
    background-color: black;
    border-radius: 0 0 0 10px;
    padding: 3px;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: #0066cc;
    opacity: .4;
    display: block;
}

.js_view_modal {
    cursor: pointer;
}

.bottom-right {
    bottom: 0;
    right: 0;
    position: absolute;
}

.form_num {
    width: 50px !important;
}

#breadcrumb, .breadcrumb {
    padding: 12px !important;
}

#breadcrumb a:first-child, .breadcrumb a:first-child {
    padding-left: 0 !important;
}

.breadcrumb .logout-button {
    margin: -5px;
}

/* ── Admin shell: group sections at the left, section content at the right ──
   The admin bar lists the four groups in Admin::ADMIN_GROUPS; this is the
   second level, listing what is inside the group being viewed.
   Deliberately custom class names rather than Bootstrap's: the theme
   overrides .card-body and .badge, so borrowing a framework name here is
   how a panel ends up invisible. */
.admin-shell {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* minmax(0, 1fr) above, not plain 1fr: a grid item's default min-width is
   auto, so one wide table in a section would push the column past the page
   instead of scrolling inside it. */
.admin-shell-main {
    min-width: 0;
}

.admin-side-nav {
    position: sticky;
    top: 12px;
    background: #f7f8fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px;
}

.admin-side-nav-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 6px 8px 8px;
}

.admin-side-nav ul,
.admin-side-nav ol {
    padding: 0;
    margin: 0 !important;
    list-style: none;
}

.admin-side-nav li {
    position: relative;
    padding: 0;
    list-style: none;
}

.admin-side-nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}

.admin-side-nav-link:hover {
    background: #e9ecf1;
    color: #222;
    text-decoration: none;
}

.admin-side-nav-link.active {
    background: #fff;
    color: #1a5fb4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Fixed width so the labels line up whether or not each icon is the same
   glyph width — FA Pro renders a placeholder for an icon it does not have,
   and a placeholder is not the width of the icon it stands in for. */
.admin-side-nav-link i {
    width: 15px;
    text-align: center;
    font-size: 13px;
    opacity: 0.75;
}

.admin-side-nav-link.active i {
    opacity: 1;
}

/* Below this the sidebar stops being a column and becomes a row of chips
   above the content — a 210px gutter on a phone leaves the section itself
   about half the screen. */
@media (max-width: 767px) {
    .admin-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .admin-side-nav {
        position: static;
    }

    .admin-side-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
}

.notify-flag {
    display: inline-block;
    background-color: red;
    color: white;
    border-radius: 50% 50%;
    min-width: 27px;
    text-align: center;
    padding: 5px;
    font-size: .8em;
    margin-left: 5px;
}

.notify-flag.null {
    background-color: #CCCCCC;
}

button.button-looks-like-link {
    border: none;
    padding: 0;
    margin: 0;
    display: inline;
    background: none;
    color: #0a6ebd;
    text-decoration: underline;
    cursor: pointer;
    text-align: left;
}

.widget .header {
    padding: 5px 0;
    border-bottom: thin solid #0a0b0d;
    margin-bottom: 5px;
}

.widget {
    padding: 20px;
    border: thin solid #e0e0e0;
    border-radius: 2px;
}

.widget ol,
.widget ul {
    margin: 0 !important;
}

label {
    display: block;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 5px;
}

.spinner-container {
    display: block;
    margin: 10px 0;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #e0e0e0;
    opacity: 1; /* Firefox */
}


/*
email template
*/
.email .tiny-text {
    font-size: .9em;
}

.email header {
    background-color: #4c7cc4;
    padding: 10px 10px 0;
}

ul.list li {
    list-style: none;
    padding: 10px 5px;
    border-bottom: thin dotted #cccccc;
    overflow: auto;
}

.list h4 {
    display: inline-block;
}

.notpublished {
    border: thin dashed #cccccc;
}

.html_element_post {
    cursor: pointer;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #D4D4D4 !important;
    opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #D4D4D4 !important;
}

::-ms-input-placeholder { /* Microsoft Edge */
    color: #D4D4D4 !important;
}

.float-right {
    float: right !important;
}

.float-left {
    float: left !important;
}

.float-none {
    float: none !important;
}

/*
Tabs
*/

.tab-row {
    padding: 10px 2px 0;
    position: relative;
    display: block;
    border-bottom: 1px solid #545454;
}

.tab {
    padding: 10px;
    border-radius: 4px 10px 0 0;
    background-color: #545454;
    display: inline-block;
    margin: 0 0 -1px 2px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: white;
    border-top: 1px solid #545454;
    border-right: 1px solid #545454;
    border-left: 1px solid #545454;
    cursor: pointer;
}

.tab:hover,
.tab-active {
    background-color: white;
    color: #0a6ebd;
}

.navbar-light .navbar-nav .nav-link {
    color: #000000;
}

/* Nav toggles are <button> now, not <a>.
   A container item goes nowhere by definition, and a parent that is also a page
   needs its toggle to be a separate control from its link — both are buttons, so
   they are reachable by keyboard and announce themselves correctly. Neither is
   meant to LOOK like a button, so the user-agent chrome comes off and they
   inherit the same treatment as the links beside them. */
.navbar-nav button.nav-link {
    background: none;
    border: 0;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.navbar-nav button.nav-link:focus-visible {
    outline: 2px solid #1a5fb4;
    outline-offset: 2px;
}

/* A parent that is also a page has two controls, its link and its toggle. They
   have to sit on one line: .nav-link is display:block, so without this the
   chevron drops onto a second row under the label. The old template forced this
   with an inline style on every such item. */
.navbar-nav > li.has-children > .nav-link {
    display: inline-block;
    vertical-align: middle;
}

/* The chevron beside a parent that is also a link: keep it tight to the label
   rather than letting it claim a nav item's worth of space. */
.navbar-nav button.nav-toggle {
    padding-left: 4px;
    padding-right: 4px;
}

.navbar-nav .nav-container .fa-chevron-down,
.navbar-nav .nav-toggle .fa-chevron-down {
    font-size: 0.8em;
    opacity: 0.7;
}

.navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .show>.nav-link {
    text-decoration: underline;
    font-weight: bold;
}

/* tabset */
.tabset .tabset-content {
    display: none;
}

.tabset .tabset-content.tabset-visible {
    display: block;
}

/* loader */
.loader {
    border: 12px solid #f3f3f3;
    border-radius: 50%;
    border-top: 12px solid #3498db;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        --webkit-transform: rotate(0deg);
    }
    100% {
        --webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* end loader */

/* forms */

.select2-container {
    max-width: 100% !important;
}

.select2-container--focus {
    box-shadow: 0 0 10px #0756ff;
}

.img_uploader {
    margin: 10px 0;
}

.img_uploader .uploader_img {
    max-width: 400px;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.img_uploader .upload_btn {
    font-size: 1.3em;
    display: none;
}

.img_uploader .upload_btn:hover {
    color: white;
}

.img_uploader input {
    width: 400px;
}

/* pagination nav <ul><li> */
ul.pager {
    display: block;
    margin: 10px auto !important;
    padding: 0px;
    border: thin solid #CCCCCC;
    border-radius: 6px;
    width: fit-content;
    overflow: hidden;
}

ul.pager li {
    display: inline-block;
    padding: 5px;
    cursor: pointer;
    border-right: thin solid #CCCCCC;
    border-left: thin solid transparent;
    text-align: center;
    margin: 0 !important;
    min-width: 20px !important;
}

ul.pager:last-child {
    border-right: thin solid transparent;
}

ul.pager li.bold {
    display: inline-block;
    padding: 5px;
    cursor: pointer;
    font-weight: bold;
    background-color: #CCCCCC;
}

/* end pagination nav <ul><li> */

datalist {
    padding: 10px;
    border: thin solid #CCCCCC;
}

datalist option {
    padding: 5px 0;
    border-bottom: thin dotted #e0e0e0;
    cursor: pointer;
}

datalist:last-child {
    border-bottom: none !important;
}

datalist .selected_option {
    background-color: #e0e0e0;
}

/* draggables */
.draggable {
    cursor: grab;
}

.draggable:active {
    cursor: grabbing;
}

a {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hide {
    display: none !important;
}

.acc-hidden {
    display: inline-flex;
    overflow: hidden;
    text-indent: -5000px;

}

.select2-dropdown,
.select2-container--open .select2-dropdown--below{
    z-index: 5002;
}

.tooltip {
    z-index: 50000;
}

#tasks_content ul > li {
}

#tasks_content .delegated {
    font-weight: bold;
}

@media (max-width: 620px) {


    .tab {
        border-radius: 4px;
        margin: 5px;
        width: 100%;
    }

    .tab:hover, .tab-active {
        background-color: white;
        color: #0a6ebd;
        border: 1px solid #CCCCCC;
    }
}
/* ── stacked modal levels (modal.js multi-modal support) ──────────────────
   Level 1 keeps the legacy #modal / #modal-content / #modal-close /
   #modal-screen IDs above. Levels 2+ carry these classes instead; the rules
   mirror the ID rules exactly (z-index is applied inline per level by
   modal.js: +10 per level over the 5000/5001/5002 base). */
.es_modal_window {
    position: fixed;
    top: 50%;
    left: 50%;
    background-color: #ffffff;
    border-radius: 12px;
    border: thin solid #cccccc;
    padding: 20px;
    z-index: 3;
    display: none;
    width: fit-content;
    transform: translate(-50%, -50%);
    max-width: 100vw;
    max-height: 100vh;
    overflow: auto;
}

.es_modal_content_box {
    overflow: auto;
    max-height: 100%;
    padding: 40px 20px 20px;
    display: block;
    border: none;
}

.es_modal_close_x {
    color: black;
    z-index: 5002;
    display: block;
    position: absolute;
    right: 15px;
    font-size: 32px;
    top: 10px;
    cursor: pointer;
    background-color: #fff;
    border-radius: 50%;
    padding-top: 3px;
}

.es_modal_screen_x {
    position: fixed;
    top: -5%;
    bottom: -5%;
    right: -5%;
    left: -5%;
    background-color: #0066cc;
    opacity: .4;
    z-index: 5000;
    display: none;
}

/* ── Navigation admin ───────────────────────────────────────────────────── */
.admin-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}
.admin-nav-header h3 { margin: 0; }
.admin-nav-intro { font-size: 13px; margin-bottom: 16px; }
.admin-nav-empty { padding: 20px; background: #fafbfc; border: 1px solid #eceef1; border-radius: 6px; }
.admin-nav-table { font-size: 13px; }
.admin-nav-table td { vertical-align: middle; }
.admin-nav-controls { white-space: nowrap; text-align: right; }
.admin-nav-controls-head { text-align: right; }
.admin-nav-icon { width: 16px; color: #888; margin-right: 4px; }
.admin-nav-target { font-size: 12px; word-break: break-all; }

/* An item that is switched off still has to be readable — it is the thing you
   came here to switch back on. */
.admin-nav-hidden td { background: #fbfbfd; }
.admin-nav-hidden td strong, .admin-nav-hidden .admin-nav-target { opacity: 0.55; }
.admin-nav-broken td { background: #fffafa; }

.admin-nav-flag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 9px;
    font-size: 11px;
    background: #eef1f4;
    color: #55606b;
    border: 1px solid #dce1e6;
}
.admin-nav-flag-warn { background: #fdf3e2; color: #8a5a12; border-color: #f2ddb5; }
.admin-nav-flag-bad  { background: #fcebea; color: #b02a26; border-color: #f3c9c7; }

.admin-nav-menu-tab {
    display: inline-block;
    padding: 4px 10px;
    margin-right: 4px;
    border-radius: 5px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
}
.admin-nav-menu-tab.active { background: #fff; border: 1px solid #e0e0e0; color: #1a5fb4; }

/* ── Modal loading placeholder ───────────────────────────────────────────────
   Shown from the moment an es_ajax_modal opens until its content arrives. A
   handler that calls an external API can take tens of seconds, and an empty
   modal for that long reads as broken.
   ------------------------------------------------------------------------- */
.es_modal_loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 20px;
    color: #666;
    font-size: 15px;
}

.es_modal_spinner {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border: 3px solid #d8dde2;
    border-top-color: #1a5fb4;
    border-radius: 50%;
    animation: es_modal_spin 0.8s linear infinite;
}

@keyframes es_modal_spin {
    to { transform: rotate(360deg); }
}

/* Respect a reduced-motion preference: keep the indicator, drop the spin. */
@media (prefers-reduced-motion: reduce) {
    .es_modal_spinner { animation-duration: 3s; }
}

/* The same indicator for a submit that is still in flight. Laid out as a row
   under the buttons rather than as a block in the middle of the modal, because
   the form it belongs to is still on screen and still readable. */
.es_modal_submitting {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 0 0;
    color: #666;
    font-size: 14px;
}

.es_modal_message {
    padding: 40px 20px;
    text-align: center;
    color: #b02a26;
    font-size: 14px;
}

/* ── Modules Admin ─────────────────────────────────────────────────────────
   Same visual language as the nav builder above: a compact table where a
   switched-off row stays readable, because it is the row you came to act on. */
.admin-mod-table { font-size: 13px; }
.admin-mod-table td { vertical-align: top; }
.admin-mod-intro { margin-bottom: 14px; max-width: 70ch; }
.admin-mod-controls { white-space: nowrap; text-align: right; }
.admin-mod-carries { line-height: 1.9; }
.admin-mod-version { margin-left: 6px; font-size: 11px; color: #8a949e; }
.admin-mod-dir { margin-top: 2px; font-size: 11px; }
.admin-mod-dir code { background: none; padding: 0; color: #8a949e; }

.admin-mod-off td { background: #fbfbfd; }
.admin-mod-off td strong { opacity: 0.55; }

.admin-mod-state { font-size: 12px; white-space: nowrap; }
.admin-mod-state-on  { color: #2f7d32; }
.admin-mod-state-off { color: #8a949e; }

.admin-mod-flag {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 7px;
    border-radius: 9px;
    font-size: 11px;
    background: #eef1f4;
    color: #55606b;
    border: 1px solid #dce1e6;
}
.admin-mod-flag-warn { background: #fdf3e2; color: #8a5a12; border-color: #f2ddb5; }
.admin-mod-flag-core { background: #eaf1fb; color: #2a5599; border-color: #c9dbf3; }
.admin-mod-state-core { color: #2a5599; }
.admin-mod-nocontrol { font-size: 11px; font-style: italic; }

/* ==========================================================================
   Floating notification badges
   --------------------------------------------------------------------------
   A stack in the bottom-right corner: one badge per unread, undismissed
   notification, with Dismiss all above them.

   Every class here is es_notify_ prefixed on purpose. The themes redefine
   Bootstrap's own names — .badge renders white-on-transparent and was
   invisible, .card-body was hijacked until it was scoped — so these borrow
   nothing that a theme is entitled to restyle.
   ========================================================================== */

#es_notify_stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1080;              /* over content, under .es_modal (1090+) */
    width: 330px;
    max-width: calc(100vw - 36px);
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    /* the container spans the corner even when empty; only the badges catch
       clicks, or an invisible box would swallow them */
    pointer-events: none;
}

#es_notify_stack > * {
    pointer-events: auto;
}

#es_notify_dismiss_all {
    align-self: flex-end;
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 14px;
    font-size: .78em;
    padding: 4px 12px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

#es_notify_dismiss_all:hover {
    background: #b40000;
    border-color: #b40000;
}

.es_notify_badge {
    position: relative;
    background: #ffffff;
    color: #000000;
    border: 1px solid #d5d5d5;
    border-left: 4px solid #b40000;
    border-radius: 5px;
    padding: 10px 30px 10px 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
    animation: es_notify_in .25s ease-out;
}

@keyframes es_notify_in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* respects the OS setting; the animation is decoration, not information */
@media (prefers-reduced-motion: reduce) {
    .es_notify_badge { animation: none; }
}

.es_notify_badge_close {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    font-size: 1.25em;
    line-height: 1;
    padding: 2px 5px;
    cursor: pointer;
    color: #777;
}

.es_notify_badge_close:hover {
    color: #b40000;
}

.es_notify_badge_body {
    cursor: pointer;
}

.es_notify_badge_title {
    font-size: 1em;
    font-weight: bold;
    margin: 0 0 4px;
    border: none;
    padding: 0;
    color: #000000;
}

.es_notify_badge_text {
    font-size: .85em;
    margin: 0 0 4px;
    color: #333333;
}

.es_notify_badge_date {
    font-size: .75em;
    font-style: italic;
    color: #666666;
}

.es_notify_badge_link {
    display: inline-block;
    margin-top: 6px;
    font-size: .8em;
    font-weight: bold;
}

.es_notify_badge.es_notify_going {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .2s ease-in, transform .2s ease-in;
}

/* --------------------------------------------------------------------------
   System messages — admin-posted dashboard notices.
   Shares .alert and .alert-* with the flash notices on purpose, so the two
   read as the same kind of object. What it must NOT share is .temp_notice,
   which javascript.js slides away after a moment.
   -------------------------------------------------------------------------- */

.es_system_message {
    margin-bottom: 12px;
}

.es_system_message_title {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0 0 4px;
    border: none;
    padding: 0;
}

.es_system_message_close {
    cursor: pointer;
    opacity: .6;
}

.es_system_message_close:hover {
    opacity: 1;
}

/* ── Box receipt (admin) ─────────────────────────────────────────────────
   Read-only log of what Estuaries did in Box. Custom class names rather
   than Bootstrap's — the theme overrides .badge to white-on-transparent,
   so an action chip borrowing that name would be invisible. */
.box-receipt-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.box-receipt-count {
    font-size: 13px;
    color: #6b7280;
}

.box-receipt-intro {
    font-size: 13px;
    max-width: 68ch;
}

.box-receipt-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px;
    margin-bottom: 16px;
    background: #f7f8fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.box-receipt-filters .form-control {
    width: auto;
    min-width: 120px;
}

.box-receipt-filter-id {
    max-width: 130px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.box-receipt-empty {
    padding: 18px;
    background: #f7f8fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    max-width: 68ch;
}

.box-receipt-table {
    font-size: 13px;
}

.box-receipt-when {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #6b7280;
}

.box-receipt-size {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.box-receipt-icon {
    color: #9aa1ab;
    margin-right: 4px;
}

/* The Box id is a link into this same page filtered to that id, so it reads
   as data first and a control second. */
.box-receipt-id {
    display: inline-block;
    margin-left: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 1px dotted #c3c8d0;
}

.box-receipt-id:hover {
    color: #1a5fb4;
    border-bottom-color: #1a5fb4;
    text-decoration: none;
}

.box-receipt-action {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #e9ecf1;
    color: #4b5563;
}

/* Created and deleted are the two that matter at a glance — one added
   something to Box, one took something away. */
.box-receipt-action-created  { background: #dff3e4; color: #1b6b36; }
.box-receipt-action-uploaded { background: #dff3e4; color: #1b6b36; }
.box-receipt-action-version  { background: #fdf1d6; color: #8a6100; }
.box-receipt-action-deleted  { background: #fbe0e0; color: #96222a; }

.box-receipt-app {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: #6b7280;
}

/* The sentence BoxAPI wrote, on its own row under the columns it explains.
   Its own row rather than a seventh column: it is a sentence, and a sentence
   in a table cell either wraps to four lines or squeezes everything else. */
.box-receipt-detail {
    padding-top: 0 !important;
    border-top: none !important;
    font-size: 12px;
    color: #6b7280;
}

.box-receipt-detail-row td {
    border-top: none !important;
}


@media (max-width: 767px) {
    .box-receipt-filters .form-control {
        min-width: 0;
        flex: 1 1 140px;
    }
}

/* ── Standard list controls (es_list_*) ──────────────────────────────────
   The house pattern for any list of rows: a live search box, sortable
   column headers, and a pager. Generic on purpose — a new list gets these
   by rendering the class names, so the behavior does not get reinvented
   per module. See CLAUDE.md, "Lists".

   Custom names rather than Bootstrap's: the theme overrides .badge and
   .card-body, so a control borrowing a framework name can come out
   invisible. */
.es_list_search {
    position: relative;
    margin-bottom: 10px;
    max-width: 420px;
}

.es_list_search .es_livesearch {
    padding-right: 32px;
}

/* The spinner sits INSIDE the search box and outside the swapped fragment,
   so it survives the repaint that answers it. */
.es_list_search_working {
    position: absolute;
    right: 11px;
    top: 50%;
    width: 13px;
    height: 13px;
    margin-top: -7px;
    border: 2px solid #c3c8d0;
    border-top-color: #1a5fb4;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.es_list_searching .es_list_search_working {
    opacity: 1;
    animation: es_list_spin 0.6s linear infinite;
}

@keyframes es_list_spin {
    to { transform: rotate(360deg); }
}

/* Dim the rows while a search is in flight, so a slow reply reads as
   "working" rather than as a list that has stopped responding. */
.es_list_searching .es_list_body {
    opacity: 0.55;
    transition: opacity 0.15s;
}

.es_list_head {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    margin-bottom: 4px;
}

.es_list_count {
    font-size: 13px;
    color: #6b7280;
}

.es_list_empty {
    padding: 18px;
    background: #f7f8fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    max-width: 68ch;
}

/* A sort header is a button so it is reachable from the keyboard and
   announces itself as a control; it is styled to read as a table heading. */
.es_list_sortable {
    padding: 0 !important;
}

.es_list_sort {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    background: none;
    border: none;
    font: inherit;
    font-weight: 700;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.es_list_sort:hover {
    background: #eef1f5;
}

.es_list_sort:focus-visible {
    outline: 2px solid #1a5fb4;
    outline-offset: -2px;
}

/* The idle glyph only appears on hover or focus: six columns each showing a
   permanent sort arrow reads as six active sorts. */
.es_list_sort_idle {
    opacity: 0;
    transition: opacity 0.12s;
}

.es_list_sort:hover .es_list_sort_idle,
.es_list_sort:focus-visible .es_list_sort_idle {
    opacity: 0.4;
}

.es_list_sorted .es_list_sort {
    color: #1a5fb4;
}

.es_list_pager {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.es_list_pager_at {
    font-size: 13px;
    color: #6b7280;
}

.es_list_page.disabled {
    opacity: 0.45;
    cursor: default;
}

/* ── Webhook log (admin) ─────────────────────────────────────────────────
   Uses the shared es_list_* controls; only the row semantics are local.
   Custom names rather than Bootstrap's — the theme overrides .badge. */
.webhook-log-table {
    font-size: 13px;
}

.webhook-log-when,
.webhook-log-took,
.webhook-log-status {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #6b7280;
}

.webhook-log-request code {
    font-size: 11px;
    background: #eef1f5;
    padding: 1px 5px;
    border-radius: 4px;
}

.webhook-log-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    word-break: break-all;
}

.webhook-log-ip {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: #9aa1ab;
}

/* The three verdicts. 'skip' is NOT a failure state — it means the
   integration declared no verifier yet — so it must not be red, or every
   integration looks broken before it has been given a secret. */
.es_probe_pass,
.es_probe_fail,
.es_probe_skip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.es_probe_pass { background: #dff3e4; color: #1b6b36; }
.es_probe_fail { background: #fbe0e0; color: #96222a; }
.es_probe_skip { background: #e9ecf1; color: #4b5563; }

.webhook-log-flag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    background: #fdf1d6;
    color: #8a6100;
}

.webhook-log-door {
    font-size: 11px;
    color: #6b7280;
}

/* A legacy door is a URL a provider had on file before the core endpoint
   existed. Called out because "these have stopped arriving" is the signal
   that the old URL is safe to retire. */
.webhook-log-door-legacy {
    color: #8a6100;
    font-weight: 600;
}

.webhook-log-detail {
    padding-top: 0 !important;
    border-top: none !important;
    font-size: 12px;
    color: #6b7280;
}

.webhook-log-detail-row td {
    border-top: none !important;
}

.webhook-log-payload {
    display: block;
    margin-top: 4px;
    padding: 6px 8px;
    background: #f7f8fa;
    border: 1px solid #e9ecf1;
    border-radius: 4px;
    font-size: 11px;
    word-break: break-all;
    max-height: 6em;
    overflow: auto;
}

.webhook-log-mode {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.webhook-log-mode-log     { background: #fdf1d6; color: #8a6100; }
.webhook-log-mode-enforce { background: #dff3e4; color: #1b6b36; }
.webhook-log-mode-off     { background: #fbe0e0; color: #96222a; }
