.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.line-through {
    text-decoration-line: line-through;
}

.break-all {
    word-break: break-all;
}

.max-w-xs {
    max-width: 20rem;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

.support-richtext {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    line-height: 1.5;
}

.support-richtext a {
    color: var(--color-primary-600);
    text-decoration: underline;
}

.support-richtext ul,
.support-richtext ol {
    margin: 0;
    padding-left: 1.25rem;
}

.support-richtext ul {
    list-style: disc;
}

.support-richtext ol {
    list-style: decimal;
}

.support-richtext strong,
.support-richtext b {
    font-weight: 600;
    color: var(--color-font-important-light);
}

.dark .support-richtext strong,
.dark .support-richtext b {
    color: var(--color-font-important-dark);
}

.support-richtext img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

#result_list tbody:has([data-booking-status="CANCELLED"]),
#result_list tbody:has([data-booking-status="FAILED"]) {
    opacity: 0.78;
}

#result_list tbody:has([data-booking-status="CANCELLED"]):hover,
#result_list tbody:has([data-booking-status="FAILED"]):hover {
    opacity: 1;
}

#result_list tbody:has(.upcoming-ride-handle[data-handled="true"]) {
    opacity: 0.78;
}

#result_list tbody:has(.upcoming-ride-handle[data-handled="true"]):hover {
    opacity: 1;
}

/* Unfold ships a prebuilt Tailwind bundle compiled against its own templates,
   so any utility it does not use itself is simply absent and does nothing when
   written here. The rules below back-fill the ones this admin relies on. */

.support-modal {
    max-width: 32rem;
    max-height: 85vh;
}

/* Unfold's bundle still has z-60 for the sidebar, and no longer emits z-70.
   The upcoming-ride modal has to stack above that sidebar. */
.z-70 {
    z-index: 70;
}

.max-w-3xs {
    max-width: 16rem;
}

/* Without this a filter row falls back to `stretch`, which pulls a submit
   button up to the height of the labelled inputs beside it. */
.items-end {
    align-items: flex-end;
}

/* Keeps a button in a stacked form from stretching to the column width. */
.self-end {
    align-self: flex-end;
}

.hover\:underline:hover {
    text-decoration-line: underline;
}

.first\:pt-0:first-child {
    padding-top: 0;
}

/* Unfold defines the orange palette but emits no text utilities for it. */
.text-orange-600 {
    color: var(--color-orange-600);
}

.dark\:text-orange-500:where(.dark, .dark *) {
    color: var(--color-orange-500);
}

.copyable {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.copy-button {
    display: inline-flex;
    flex: none;
    cursor: pointer;
    color: var(--color-base-400);
}

/* The icon font sets its own size, so the table copy affordance needs an
   explicit one to sit next to the extra small text it belongs to. */
.copy-button .material-symbols-outlined {
    font-size: 14px;
}

.copy-button:hover {
    color: var(--color-primary-600);
}

.dark .copy-button:hover {
    color: var(--color-primary-500);
}

.copy-button[data-copied="true"],
.dark .copy-button[data-copied="true"] {
    color: var(--color-green-500);
}

.divide-y > :not([hidden]) ~ :not([hidden]) {
    border-top: 1px solid var(--color-base-200);
}

.dark .divide-y > :not([hidden]) ~ :not([hidden]) {
    border-top-color: var(--color-base-800);
}

.support-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-base-200);
}

.dark .support-tabs {
    border-bottom-color: var(--color-base-800);
}

.support-tab {
    margin-bottom: -1px;
    padding: 0.5rem 0;
    font-weight: 500;
    white-space: nowrap;
    color: var(--color-base-500);
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.support-tab:hover {
    color: var(--color-base-700);
}

.dark .support-tab:hover {
    color: var(--color-base-300);
}

.support-tab--active {
    color: var(--color-primary-600);
    border-bottom-color: var(--color-primary-600);
}

.dark .support-tab--active {
    color: var(--color-primary-500);
    border-bottom-color: var(--color-primary-500);
}
