html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


.navbar-logo {
    height: 40px;
    margin-right: 10px;
}



input[type="hidden"] {
    display: none !important;
}

/*.form-check-input {
    position: relative;
    z-index: 2;
}*/


.form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

    .form-section label {
        font-weight: 600;
    }

.settings-stack label {
    display: block !important;
}

/* ── Layout ──────────────────────────────────────────────── */
.payment-editor {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.pe-doc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 860px) {
    .pe-doc-row {
        grid-template-columns: 1fr;
    }
}

/* ── Cards ───────────────────────────────────────────────── */
.pe-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.pe-card--stripe {
    border-left: 4px solid #635BFF;
}

.pe-card--invoice {
    border-left: 4px solid #1a6b3a;
}

.pe-card--po {
    border-left: 4px solid #7c3500;
}

/* ── Card header ─────────────────────────────────────────── */
.pe-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pe-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

.pe-icon--stripe {
    background: #f0efff;
}

.pe-icon--invoice {
    background: #edfaf3;
}

.pe-icon--po {
    background: #fff3ec;
}

.pe-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.pe-card__desc {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* ── Badges ──────────────────────────────────────────────── */
.pe-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    white-space: nowrap;
}

.pe-badge--secure {
    background: #e8f5e9;
    color: #2e7d32;
}

.pe-badge--vendor {
    background: #fff3e0;
    color: #e65100;
}

/* ── Form fields ─────────────────────────────────────────── */
.pe-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pe-form-row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex-direction: unset;
}

    .pe-form-row--half > div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

.pe-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.pe-input {
    width: 100% !important;
    box-sizing: border-box;
}

.pe-textarea {
    min-height: 64px;
    resize: vertical;
}

/* ── Divider ─────────────────────────────────────────────── */
.pe-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

    .pe-divider::before,
    .pe-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e2e8f0;
    }

/* ── Buttons ─────────────────────────────────────────────── */
.pe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s, box-shadow .15s;
    align-self: flex-start;
    margin-top: 4px;
    border: none;
}

    .pe-btn:hover {
        opacity: .88;
        box-shadow: 0 2px 8px rgba(0,0,0,.12);
    }

.pe-btn--stripe {
    background: #635BFF;
    color: #fff;
}

.pe-btn--invoice {
    background: #1a6b3a;
    color: #fff;
}

.pe-btn--po {
    background: #7c3500;
    color: #fff;
}

/* ── Locked form sections (approved events, EP view) ───────────────────────── */

.recf-locked-section .recf-locked-body {
    position: relative;
    opacity: .55;
    filter: grayscale(1);
    user-select: none;

    /* Blocks clicks from reaching the widgets, including ones the `inert` attribute
       cannot reach. Kendo's Editor renders its editing surface in an iframe, and
       `inert` does not propagate into a nested browsing context — without this, an EP
       could still type into every WYSIWYG tab on an approved event. */
    pointer-events: none;
}

/* Belt and braces over the same gap: a transparent sheet across the subtree, so
   nothing inside can receive a pointer event even if pointer-events is overridden
   by a widget's own styling. */
.recf-locked-section .recf-locked-body::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.recf-lock-banner {
    margin-bottom: 12px;
}

/* ── Grid filter bar (award catalog) ───────────────────────────────────────── */

/* align-items is flex-start, not flex-end: the Program filter is a MultiSelect that grows
   taller as chips wrap onto a second line, and bottom-aligning the row meant Season's
   label dropped below Program's every time more than one program was selected. Top-
   aligning keeps every label on the same line regardless of how tall Program gets. */
.recf-grid-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    margin: 0 0 12px;
}

.recf-grid-filter label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* The checkbox has no stacked label above it. With the row top-aligned, it needs pushing
   down by roughly a label's height so it lines up with the DROPDOWNS beside it rather than
   their labels. */
.recf-grid-filter-check {
    margin-top: 21px;
}

.recf-field-hint {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

/* Award catalog grid's Programs cell: one chip per program, wrapping onto as many lines
   as it needs. Chosen over truncating to fixed row heights because truncation hides
   exactly the information — which programs — an RSM is looking at this column to see;
   letting rows vary in height is the smaller cost. */
.recf-program-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 0;
}

.recf-program-chip {
    display: inline-block;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 10px;
    padding: 2px 9px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Deliberately not chip-styled — "all programs" is the absence of a selection, not one
   of the choices, and giving it a chip would visually claim otherwise. */
.recf-program-chips-empty {
    color: #666;
    font-style: italic;
}

/* ── Award picker (event Awards tab) ───────────────────────────────────────── */

.recf-award-picker-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.recf-award-column {
    flex: 1 1 320px;
    min-width: 280px;
}

.recf-award-help {
    color: #666;
    font-size: 13px;
    margin: 4px 0 8px;
}

.recf-award-add-hint {
    padding: 8px 10px;
    color: #444;
}

/* Legacy free-text awards, kept visible but clearly secondary until the
   migration review queue is cleared and the column is dropped. */
.recf-award-legacy {
    margin-top: 24px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fafafa;
}

.recf-award-legacy > summary {
    cursor: pointer;
    font-weight: 600;
    color: #555;
}

.recf-award-legacy-body {
    margin-top: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #444;
}

.award-alias-panel {
    padding: 12px;
}

.award-alias-help {
    color: #666;
    font-size: 13px;
    margin: 0 0 10px;
}

/* Legacy awards text on the public event page, shown while an event's awards
   are unmigrated or only partly migrated. */
.award-legacy-text {
    color: #444;
}

/* ── Custom grid command icons ──────────────────────────────────────────────── */

/* Kendo's built-in command.Edit() renders its pencil icon by embedding the SVG path
   markup directly in the server-rendered HTML, via an internal icon lookup that isn't
   exposed on GridCustomActionCommandBuilder (confirmed by reflecting on the type — it has
   IconClass(string) and nothing else icon-related). A custom command's .IconClass(...)
   only sets that raw class name; in this theme (2026.2.520, SVG-native) there is no font
   or sprite behind it, so the icon span rendered empty for EventsAdmin's "Edit" command,
   which has to stay a custom command because it navigates to a separate page rather than
   opening Kendo's built-in inline row editor.
   This supplies the missing glyph as a CSS mask — the exact same path data Kendo's own
   Edit button renders — so the two Edit buttons end up visually identical. mask-image
   plus background-color: currentColor (rather than a flat background-image) is what lets
   it inherit the button's text color instead of baking in a fixed one. */
.k-svg-i-pencil {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3E%3Cpath%20d='m334.9%2086.6%2045.3-45.3c12.4-12.4%2032.8-12.4%2045.3%200l45.3%2045.3c12.4%2012.4%2012.4%2032.8%200%2045.3l-45.3%2045.3zm-22.6%2022.6L32%20389.5V480h90.5l280.3-280.3zM99.9%20412.1l-22.6-22.6%20235-235%2022.6%2022.6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3E%3Cpath%20d='m334.9%2086.6%2045.3-45.3c12.4-12.4%2032.8-12.4%2045.3%200l45.3%2045.3c12.4%2012.4%2012.4%2032.8%200%2045.3l-45.3%2045.3zm-22.6%2022.6L32%20389.5V480h90.5l280.3-280.3zM99.9%20412.1l-22.6-22.6%20235-235%2022.6%2022.6z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-color: currentColor;
}
