/* =====================================================================
   Flyout module styles
   - cp_  : Create Time Entry / Create Ticket Note popups (.create_popup.cp_modern)
   - tp_  : Ticket preview (flyout_ticket_history, rendered inside a Swal .tp_modal)
   Dark mode overrides are grouped at the bottom of the file.
   ===================================================================== */


/* === CREATE POPUPS (TIME ENTRY / NOTE) === */

/* Window */
.create_popup.cp_modern {
    top: 50%;
    left: 50%;
    width: 96%;
    max-width: 1540px;
    height: calc(100% - 48px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    color: #1b1f24;
    font-family: Poppins, Arial, sans-serif;
    font-size: 13px;
    text-align: left;
}

.create_popup.cp_modern > div {
    padding-left: 0;
}

.cp_window {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header */
.cp_header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    flex: none;
}

.cp_modern h2.cp_title {
    margin: 0;
    padding: 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    color: #1b1f24;
}

.cp_ticket_type {
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    padding: 2px 7px;
    background: #e7f1fb;
    color: #1b75bc;
}

.cp_ticket_type:empty {
    display: none;
}

.cp_ticket_number {
    font-weight: 600;
    color: #5b6470;
}

.cp_spacer {
    flex: 1;
}

.cp_close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #5b6470;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.cp_close:hover {
    background: #f6f8fa;
}

/* Scrolling body */
.cp_body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.cp_body > * {
    flex: none;
}

/* Ticket card */
.cp_modern .cp_ticket_card {
    background: #f6f8fa;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 15px;
    color: #1b1f24;
    font-size: 13px;
    max-height: none;
    overflow: visible;
    margin: 0;
}

.cp_ticket_title {
    font-weight: 600;
    font-size: 13.5px;
}

.cp_modern .cp_ticket_desc {
    color: #5b6470;
    margin: 3px 0 0;
    padding: 0;
    line-height: 1.5;
    white-space: pre-line;
    word-break: break-word;
}

.cp_modern .cp_ticket_desc.cp_clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cp_link {
    color: #1b75bc;
    font-weight: 500;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

/* Quick code bar */
.cp_quickcode_bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #efedff;
    border-radius: 10px;
    padding: 10px 15px;
    flex-wrap: wrap;
}

.cp_quickcode_bar label {
    font-weight: 600;
    color: #5b3fd1;
    white-space: nowrap;
}

.cp_modern .cp_quickcode_bar select {
    width: auto;
    min-width: 360px;
    font-weight: 500;
}

.cp_hint {
    color: #5b6470;
    font-size: 12px;
}

/* Columns */
.cp_columns {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.cp_col_left {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.cp_col_right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.cp_box {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 15px;
}

.cp_box_head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 9px;
}

.cp_modern .required {
    color: #b23a2e;
    font-weight: 600;
}

/* Visibility + quick code badges */
.cp_vis,
.cp_from_qc {
    font-size: 10.5px;
    font-weight: 600;
    border-radius: 9px;
    padding: 2px 8px;
    white-space: nowrap;
}

.cp_vis_public {
    background: #e5f4e4;
    color: #2e7d32;
}

.cp_vis_private {
    background: #fbebeb;
    color: #b23a2e;
}

.cp_from_qc {
    background: #efedff;
    color: #5b3fd1;
}

.cp_modern label.cp_label {
    display: flex;
    align-items: center;
    gap: 6px;
    position: static;
    font-size: 12px;
    font-weight: 500;
    color: #5b6470;
    margin: 0 0 4px;
    padding: 0;
    transform: none;
}

/* Inputs */
.cp_modern select,
.cp_modern input[type="text"],
.cp_modern input[type="number"],
.cp_modern input[type="date"],
.cp_modern textarea {
    font-family: inherit;
    font-size: 12.5px;
    color: #1b1f24;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 7px;
    padding: 7px 11px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    margin: 0;
}

.cp_modern select:focus,
.cp_modern input:focus,
.cp_modern textarea:focus {
    border-color: #1b75bc;
    box-shadow: 0 0 0 3px rgba(27, 117, 188, 0.15);
}

.cp_modern textarea {
    display: block;
    resize: vertical;
    line-height: 1.75;
}

.cp_modern textarea.cp_autogrow {
    min-height: 90px;
    max-height: 420px;
    field-sizing: content;
}

.cp_modern textarea.cp_autogrow_tall {
    min-height: 220px;
}

.cp_modern textarea.cp_template_text {
    line-height: 1.6;
    margin: 0 0 8px;
    resize: none;
    background: #f6f8fa;
    color: #5b6470;
    field-sizing: content;
}

.cp_modern textarea.cp_template_text + textarea,
.cp_modern textarea + textarea.cp_template_text {
    margin-top: 8px;
}

.cp_modern .mcnoc_highlight,
.cp_modern .mcnoc_highlight + .select2-container .select2-selection {
    border-color: #b23a2e;
    background-color: #fff6f5 !important; /* beats the global yellow .mcnoc_highlight */
    box-shadow: 0 0 0 3px rgba(178, 58, 46, 0.15);
}

.cp_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}

.cp_grid_full {
    grid-column: 1 / 3;
}

.cp_grid_spaced {
    margin-top: 12px;
}

.cp_grid.cp_grid_single {
    grid-template-columns: 1fr;
}

.cp_time_worked {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cp_modern .cp_time_worked input[type="number"] {
    width: 72px;
    text-align: center;
}

.cp_time_worked span,
.cp_datetime span {
    color: #5b6470;
}

.cp_datetime {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cp_modern .cp_datetime input[type="date"],
.cp_modern .cp_datetime input.cp_date {
    flex: 1;
    min-width: 0;
}

/* Time entry dates open the LaunchPad calendar (lp_datepicker_init); the box itself is read-only. */
.cp_modern .cp_datetime input.cp_date {
    cursor: pointer;
}

/* The end date is worked out from the start and the time worked, and can't be picked. */
.cp_modern .cp_datetime input.cp_date_locked {
    cursor: default;
    opacity: 0.6;
}

.cp_modern .cp_datetime select {
    width: 64px;
    flex: none;
    padding: 7px 6px;
}

.cp_modern p.cp_note {
    font-size: 11.5px;
    color: #5b6470;
    margin: 9px 0 0;
    padding: 0;
}

/* Select2 inside the popups */
.cp_modern .select2-container--default .select2-selection--single {
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
}

.cp_modern .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
    font-size: 12.5px;
    color: #1b1f24;
    padding-left: 11px;
}

.cp_modern .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
}

.cp_modern .select2-container--default.select2-container--focus .select2-selection--single,
.cp_modern .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #1b75bc;
}

.cp_modern .select2-dropdown {
    border-color: var(--line);
    border-radius: 8px;
    padding: 4px;
    font-size: 12.5px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.cp_modern .select2-container--default .select2-results__option {
    padding: 7px 10px !important; /* general.css forces padding on all select2 options with !important */
    border-radius: 6px;
    color: #1b1f24;
    font-family: Poppins, Arial, sans-serif;
    font-size: 12.5px;
    line-height: 1.4;
}

.cp_modern .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.cp_modern .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #f3f5f8;
    color: #1b1f24;
}

.cp_modern .select2-container--default .select2-results__option--selected,
.cp_modern .select2-container--default .select2-results__option[aria-selected="true"] {
    background: #e7f1fb;
    color: #1b75bc;
    font-weight: 600;
}

/* Locked option (Create Time Entry: Actively Working) */
.cp_modern .select2-container--default .select2-results__option--disabled,
.cp_modern .select2-container--default .select2-results__option[aria-disabled="true"] {
    background: transparent;
    color: #9aa3ae;
    cursor: not-allowed;
}

.cp_modern .select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 8px;
}

/* Footer */
.cp_footer {
    border-top: 1px solid var(--line);
    padding: 13px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    flex: none;
}

.cp_btn {
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: inherit;
    font-weight: 500;
    font-size: 13px;
    color: #1b1f24;
    cursor: pointer;
    line-height: 1.4;
}

.cp_btn:hover {
    background: #f6f8fa;
}

.cp_btn.cp_btn_primary {
    background: #1b75bc;
    border-color: #1b75bc;
    color: #ffffff;
    font-weight: 600;
}

.cp_btn.cp_btn_primary:hover {
    background: #155f99;
}

/* Hidden helper (kept last in this section so it wins over display rules above) */
.cp_modern .cp_hidden {
    display: none;
}

@media (max-width: 900px) {

    .create_popup.cp_modern {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .cp_columns {
        flex-direction: column;
    }

    .cp_col_left,
    .cp_col_right {
        width: 100%;
    }

    .cp_modern .cp_quickcode_bar select {
        min-width: 0;
        width: 100%;
    }

}


/* === CREATE TICKET (.ct_modern, create_ticket_popup.php) === */

/* The field wrappers keep .top_label (the VCT form hides fields through it); undo its old styles here. */
.ct_modern .ct_field {
    position: static;
    margin: 0;
    padding: 0;
}

.ct_modern .cp_col_left {
    gap: 14px;
}

.ct_modern .top_label select,
.ct_modern .top_label input[type="text"],
.ct_modern .top_label textarea {
    width: 100%;
}

.ct_modern .top_label textarea {
    height: auto;
}

/* Same height as the text inputs and the searchable Client box (34px) */
.ct_modern select,
.ct_modern select > button {
    line-height: 1.4;
}

.ct_modern textarea#ct_description {
    min-height: 320px;
}

.ct_qc {
    color: #5b6470;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ct_modern select.ct_qc_select {
    width: 240px;
}

.ct_count {
    color: #5b6470;
    font-size: 11px;
    font-weight: 500;
}

.ct_modern a.ct_addc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1b75bc;
    color: #ffffff;
    font-size: 10px;
    text-decoration: none;
}

.ct_modern a.ct_addc:hover {
    background: #155f99;
    color: #ffffff;
}

.ct_modern a.ct_addc i {
    margin: 0;
}

/* Priority: buttons for the hidden select */
.ct_modern select.ct_native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ct_prio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 6px;
}

.ct_pb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #5b6470;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.ct_pb i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.ct_pb_r i {
    background: #c2362f;
}

.ct_pb_o i {
    background: #f07c2b;
}

.ct_pb_y i {
    background: #e0a417;
}

.ct_pb_gr i {
    background: #8a95a6;
}

.ct_pb:focus-visible {
    outline: 2px solid #1b75bc;
    outline-offset: 2px;
}

.ct_pb_r:hover,
.ct_pb_r[aria-checked="true"] {
    border-color: #c2362f;
}

.ct_pb_o:hover,
.ct_pb_o[aria-checked="true"] {
    border-color: #f07c2b;
}

.ct_pb_y:hover,
.ct_pb_y[aria-checked="true"] {
    border-color: #e0a417;
}

.ct_pb_gr:hover,
.ct_pb_gr[aria-checked="true"] {
    border-color: #8a95a6;
}

.ct_pb_r[aria-checked="true"] {
    background: #fbebeb;
    color: #c2362f;
    box-shadow: 0 0 0 3px rgba(194, 54, 47, 0.15);
}

.ct_pb_o[aria-checked="true"] {
    background: #fff0e6;
    color: #d9480f;
    box-shadow: 0 0 0 3px rgba(240, 124, 43, 0.18);
}

.ct_pb_y[aria-checked="true"] {
    background: #fff8e6;
    color: #b86a00;
    box-shadow: 0 0 0 3px rgba(224, 164, 23, 0.18);
}

.ct_pb_gr[aria-checked="true"] {
    background: #f0f2f5;
    color: #1b1f24;
    box-shadow: 0 0 0 3px rgba(91, 100, 112, 0.15);
}

/* Missing priority after "Create ticket" */
#ct_priority.mcnoc_highlight + .ct_prio .ct_pb {
    border-color: #b23a2e;
}

/* Additional contacts as tags (select2 multiple) */
.cp_modern .select2-container--default .select2-selection--multiple {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
}

.cp_modern .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #1b75bc;
    box-shadow: 0 0 0 3px rgba(27, 117, 188, 0.15);
}

.cp_modern .select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: 1px solid #c7dcf0;
    border-radius: 12px;
    background: #e7f1fb;
    color: #1b75bc;
    font-size: 11.5px;
    font-weight: 600;
}

/* Required fields left (footer) */
.ct_left {
    color: #b23a2e;
    font-size: 12px;
    font-weight: 500;
}

.ct_left::before {
    content: "* ";
}

.ct_left.ct_left_done {
    color: #2e9d57;
}

.ct_left.ct_left_done::before {
    content: "\2713  ";
}

/* VCT form: a section whose fields are all hidden goes away too */
.ct_section:not(:has(.ct_field:not([style*="display: none"]))) {
    display: none;
}

@media (max-width: 900px) {

    .ct_modern select.ct_qc_select {
        width: 160px;
    }

}

/* === TICKET PREVIEW === */

/* Swal container */
.swal2-popup.tp_modal {
    width: 97%;
    max-width: 1640px;
    padding: 0;
    margin: 20px auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.swal2-popup.tp_modal .swal2-html-container {
    margin: 0;
    padding: 0;
    text-align: left;
    color: #1b1f24;
}

/* The footer only carries the review buttons; plain previews close from the header. */
.swal2-popup.tp_modal .swal2-actions {
    display: none;
}

.swal2-popup.tp_modal:has(.tp_review) .swal2-actions {
    display: block;
}

.swal2-popup.tp_modal .swal2-actions {
    margin: 0;
    padding: 12px 24px;
    border-top: 1px solid var(--line);
    text-align: right;
}

.swal2-popup.tp_modal .swal2-actions .swal2-styled {
    border: 1px solid #1b75bc;
    background: #1b75bc;
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: Poppins, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
}

.swal2-popup.tp_modal .swal2-actions .swal2-styled:hover {
    background: #155f99;
}

.swal2-popup.tp_modal .swal2-actions .swal2-cancel {
    border-color: var(--line);
    background: #ffffff;
    color: #1b1f24;
    font-weight: 500;
}

.swal2-popup.tp_modal .swal2-actions .swal2-cancel:hover {
    background: #f6f8fa;
}

.tp_wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 44px);
    font-family: Poppins, Arial, sans-serif;
    font-size: 13px;
    color: #1b1f24;
    text-align: left;
}

.tp_wrap.tp_review {
    height: calc(100vh - 112px);
}

.swal2-popup.tp_modal .tp_wrap p {
    margin: 0;
    padding: 0;
}

.tp_wrap button {
    font-family: inherit;
    cursor: pointer;
}

.tp_spacer {
    flex: 1;
}

/* Account instructions banner */
.tp_banner {
    background: #fdf1d3;
    border-left: 4px solid #e8a317;
    border-bottom: 1px solid #f1dfae;
    color: #6b5210;
    text-align: center;
    padding: 12px 24px;
    font-size: 12.5px;
    line-height: 1.55;
    flex: none;
}

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

.tp_banner_text.tp_clamp_4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tp_banner_toggle {
    background: none;
    border: 0;
    color: #8a5a00;
    font-weight: 600;
    font-size: 12px;
    margin-top: 4px;
    text-decoration: underline;
    padding: 0;
}

/* Header */
.tp_header {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    flex: none;
}

.tp_header_row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp_header_row.tp_meta_row {
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.tp_type {
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
    padding: 3px 7px;
    border: 1px solid #c7dcf0;
    background: #e7f1fb;
    color: #1b75bc;
}

.tp_type.tp_type_sr {
    border-color: #b9dfbd;
    background: #e5f4e4;
    color: #2e7d32;
}

.tp_wrap a.tp_number {
    font-weight: 600;
    font-size: 16px;
    color: #1b1f24;
    text-decoration: none;
}

.tp_wrap a.tp_copy {
    color: #5b6470;
    font-size: 14px;
}

.tp_vip {
    background: #b8322f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 6px;
}

.tp_title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    margin-left: 10px;
    min-width: 0;
    word-break: break-word;
}

.tp_close {
    font-size: 16px;
    color: #5b6470;
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    background: #ffffff;
    flex: none;
    padding: 0;
}

.tp_pill,
.tp_meta {
    border-radius: 14px;
    padding: 4px 11px;
    font-size: 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.tp_pill b,
.tp_meta b {
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-right: 2px;
    color: #5b6470;
}

.tp_pill {
    font-weight: 600;
    background: #e7f1fb;
    border-color: #c7dcf0;
    color: #1b75bc;
}

.tp_pill b {
    color: inherit;
    opacity: 0.75;
}

.tp_meta.tp_meta_amber {
    border-color: #f1d28f;
    background: #fff4dd;
    color: #8a5a00;
}

.tp_meta.tp_meta_amber b {
    color: inherit;
}

.tp_dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: currentColor;
}

.tp_dot.tp_priority_critical {
    background: #c2362f;
}

.tp_dot.tp_priority_high {
    background: #f07c2b;
}

.tp_dot.tp_priority_medium {
    background: #e0a417;
}

.tp_dot.tp_priority_low,
.tp_dot.tp_priority_other {
    background: #9aa3ad;
}

/* Buttons */
.tp_btn {
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 8px;
    padding: 7px 13px;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    color: #1b1f24;
    line-height: 1.4;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tp_btn:hover {
    border-color: #c7d0da;
}

.tp_wrap a.tp_btn {
    color: #1b1f24;
}

.tp_btn.tp_btn_primary {
    background: #1b75bc;
    border-color: #1b75bc;
    color: #ffffff;
    font-weight: 600;
}

.tp_btn.tp_btn_ghost {
    background: transparent;
    color: #1b75bc;
    border-color: #c7dcf0;
}

.tp_btn.tp_btn_block {
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
}

.tp_link,
.tp_wrap a.tp_link {
    color: #1b75bc;
    background: none;
    border: 0;
    font-weight: 500;
    font-size: 12.5px;
    padding: 0;
    text-decoration: none;
}

/* Body */
.tp_body {
    flex: 1;
    display: flex;
    min-height: 0;
}

/* Left column */
.tp_left {
    width: 340px;
    border-right: 1px solid var(--line);
    padding: 16px 18px;
    overflow-y: auto;
    flex: none;
    background: #fafbfc;
    box-sizing: border-box;
}

.tp_box {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.tp_box_head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tp_box_head:before {
    content: "";
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #3d9be0;
    flex: none;
}

.tp_box_account .tp_box_head:before {
    background: #43b66b;
}

.tp_box_details .tp_box_head:before {
    background: #b9a2ff;
}

.tp_box_related .tp_box_head:before {
    background: #f2b84b;
}

.tp_row {
    display: flex;
    align-items: center;
    font-size: 12.5px;
    padding: 3px 0;
    gap: 6px;
}

.tp_row_key {
    width: 86px;
    color: #5b6470;
    flex: none;
}

.tp_row_val {
    min-width: 0;
    word-break: break-word;
}

.tp_wrap label.tp_row_key {
    position: static;
    transform: none;
    font-size: 12.5px;
    margin: 0;
    padding: 0;
}

.tp_wrap .tp_input {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #1b1f24;
    font-family: inherit;
    font-size: 12px;
    padding: 3px 7px;
    height: auto;
    margin: 0;
    box-sizing: border-box;
}

.tp_wrap select[multiple].tp_input {
    height: auto;
}

.tp_edit_actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tp_seg {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    margin-left: auto;
}

.tp_seg_btn {
    background: none;
    border: 0;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #5b6470;
}

.tp_seg_btn.tp_seg_on {
    background: #e7f1fb;
    color: #1b75bc;
}

.tp_related_ticket {
    padding: 6px 0;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.tp_related_ticket:first-child {
    border-top: 0;
}

.tp_wrap .tp_related_ticket a {
    color: #1b75bc;
    font-weight: 600;
    text-decoration: none;
}

.tp_related_contact {
    color: #5b6470;
}

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

.tp_wrap p.tp_related_empty {
    font-size: 12px;
    color: #5b6470;
    padding: 4px 0;
}

.tp_wrap a.tp_view_all {
    display: inline-block;
    margin-top: 6px;
}

/* Middle column: the only scroll area besides the left column */
.tp_mid {
    flex: 1;
    overflow-y: auto;
    background: #f3f5f8;
    padding: 18px 24px;
    min-width: 0;
}

.tp_desc_card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px 16px;
    margin-bottom: 16px;
}

.tp_cap {
    font-size: 10.5px;
    color: #5b6470;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.tp_wrap p.tp_desc_text {
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 6px;
}

.tp_desc_text.tp_clamp_3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tabs */
.tp_wrap .tp_tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
    position: sticky;
    top: -18px;
    background: #f3f5f8;
    z-index: 2;
    padding-top: 4px;
}

.tp_wrap .tp_tabs .tp_tab {
    flex: none;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 10px 0;
    font-size: 13.5px;
    color: #5b6470;
    font-weight: 500;
    text-align: left;
}

.tp_wrap .tp_tabs .tp_tab:hover {
    background: none;
    color: #1b1f24;
}

.tp_wrap .tp_tabs .tp_tab.active {
    color: #1b1f24;
    background: none;
    border-bottom-color: #1b75bc;
}

.tp_count {
    font-size: 11px;
    background: #eef3f8;
    border-radius: 8px;
    padding: 1px 7px;
    margin-left: 5px;
}

.tp_count:empty {
    display: none;
}

/* History filters */
.tp_filters {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.tp_filter {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 3px 11px;
    font-size: 11.5px;
    color: #5b6470;
    background: #ffffff;
}

.tp_filter.tp_filter_on {
    background: #1f3864;
    color: #ffffff;
    border-color: #1f3864;
}

.tp_filter_divider {
    width: 1px;
    height: 18px;
    background: var(--line);
    margin: 0 4px;
}

.tp_toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tp_toggle i {
    width: 24px;
    height: 13px;
    border-radius: 7px;
    background: #d5dbe2;
    position: relative;
    transition: 0.15s;
}

.tp_toggle i:after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
    transition: 0.15s;
}

.tp_toggle.tp_toggle_on i {
    background: #1b75bc;
}

.tp_toggle.tp_toggle_on i:after {
    left: 13px;
}

/* === Ticket view: description email, collapsible history, attachments, address (launchpad-ticket-view.html) === */

/* Address row (Contact box) */
.tp_row.tp_row_top,
.tp_row:has(#tp_addr_edit) {
    align-items: flex-start;
}

.tp_addr {
    font-size: 12.5px;
    line-height: 1.5;
}

.tp_addr_none {
    font-size: 12px;
    color: #5b6470;
}

.tp_addr_acts {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.tp_wrap .tp_addr_btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    color: #1b75bc;
    text-decoration: none;
    cursor: pointer;
}

.tp_wrap .tp_addr_btn:hover {
    background: #e7f1fb;
    border-color: #c7dcf0;
}

/* Description: the first lines, then "Show full email" */
.tp_desc_text {
    line-height: 1.6;
    word-break: break-word;
}

/* Web addresses in the description and emails (tp_linkify) */
.tp_wrap a.tp_ln {
    color: #1b75bc;
    font-weight: inherit;
    text-decoration: none;
    word-break: break-all;
}

.tp_wrap a.tp_ln:hover {
    color: #155d96;
    text-decoration: underline;
}

.tp_desc_text.tp_desc_clamp {
    position: relative;
    max-height: 13em;
    overflow: hidden;
}

.tp_desc_text.tp_desc_clamp.tp_desc_over::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3em;
    background: linear-gradient(rgba(255, 255, 255, 0), #ffffff);
    pointer-events: none;  /* links under the fade stay clickable */
}

.tp_desc_acts {
    display: flex;
    gap: 14px;
    margin-top: 6px;
}

.tp_fwd {
    margin-top: 10px;
    padding: 6px 0 6px 14px;
    border-left: 3px solid var(--line);
}

.tp_fwh {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 2px 10px;
    font-size: 12px;
    margin-bottom: 8px;
}

.tp_fwh span {
    color: #5b6470;
}

.tp_sig {
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #f6f8fa;
    font-size: 12px;
    color: #5b6470;
}

.tp_quoted {
    margin-top: 8px;
    padding: 8px 12px;
    border-left: 3px solid var(--line);
    font-size: 12.5px;
    color: #5b6470;
}

/* History: collapsible entries */
.tp_entry .tp_entry_head {
    flex-wrap: nowrap;
    margin-bottom: 0;
    cursor: pointer;
}

.tp_entry_who {
    white-space: nowrap;
}

.tp_entry_preview {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #5b6470;
}

.tp_entry.tp_open .tp_entry_preview {
    visibility: hidden;
}

.tp_entry_att {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #5b6470;
}

.tp_entry_chev {
    display: flex;
    margin-left: auto;
    color: #5b6470;
    transition: transform 0.15s;
}

.tp_entry.tp_open .tp_entry_chev {
    transform: rotate(180deg);
    color: #1b75bc;
}

.tp_entry_more {
    display: none;
}

.tp_entry.tp_open .tp_entry_more {
    display: block;
    margin-top: 8px;
}

.tp_entry_more .tp_time_chip {
    display: inline-block;
    margin: 0 0 6px;
}

.tp_entry_acts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.tp_entry.tp_flash {
    animation: tp_flash 1.4s ease;
}

@keyframes tp_flash {
    0%,
    40% {
        box-shadow: 0 0 0 3px #1b75bc;
    }

    100% {
        box-shadow: none;
    }
}

/* Attachments tab */
.tp_atl {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.tp_ath,
.tp_atr {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 70px minmax(0, 1.7fr) auto;
    gap: 12px;
    align-items: center;
    padding: 9px 16px;
}

.tp_ath {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #5b6470;
    background: #f0f3f7;
    border-bottom: 1px solid var(--line);
}

.tp_atr {
    border-top: 1px solid var(--line);
}

.tp_ath + .tp_atr {
    border-top: 0;
}

.tp_atr:hover {
    background: #f3f6f9;
}

.tp_atn {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tp_atn b {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 600;
}

.tp_fi {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 9.5px;
    font-weight: 800;
}

.tp_fi.tp_fi_img {
    background: #e7f1fb;
    color: #1b75bc;
}

.tp_fi.tp_fi_pdf {
    background: #fdecea;
    color: #b23a2e;
}

.tp_fi.tp_fi_doc {
    background: #efedff;
    color: #5b3fd1;
}

.tp_ats,
.tp_atf {
    font-size: 12px;
    color: #5b6470;
}

.tp_atf b {
    color: #1b1f24;
    font-weight: 600;
}

.tp_ata {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.tp_wrap .tp_btn.tp_btn_sm {
    height: 30px;
    padding: 0 11px;
    font-size: 12px;
}

@media (max-width: 1000px) {
    .tp_ath {
        display: none;
    }

    .tp_atr {
        grid-template-columns: 1fr;
    }

    .tp_ata {
        justify-content: flex-start;
    }
}

/* Attachments: email signature images are left out until "Show" */
.tp_atr.tp_atr_sig {
    display: none;
}

.tp_atl.tp_atl_sig .tp_atr.tp_atr_sig {
    display: grid;
}

.tp_atr.tp_atr_none,
.tp_atr.tp_atr_foot {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #5b6470;
}

.tp_atr.tp_atr_none:hover,
.tp_atr.tp_atr_foot:hover {
    background: none;
}

/* Attachment preview: a pop-up over the Ticket UI. Above every SweetAlert window (z-index 100006 in general.css),
   below tooltips (200000). */
.tp_pv {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(27, 31, 36, 0.55);
    backdrop-filter: blur(2px);
}

.tp_pv_box {
    display: flex;
    flex-direction: column;
    width: min(1100px, 100%);
    max-height: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(16, 24, 40, 0.3);
    overflow: hidden;
    font-family: Poppins, Arial, sans-serif;
}

.tp_pv_head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: #1b1f24;
}

.tp_pv_head b {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 600;
}

.tp_pv .tp_btn.tp_btn_sm {
    height: 30px;
    padding: 0 11px;
    font-size: 12px;
    text-decoration: none;
}

.tp_pv_x {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: none;
    font-size: 20px;
    line-height: 1;
    color: #5b6470;
    cursor: pointer;
}

.tp_pv_x:hover {
    color: #1b1f24;
}

.tp_pv_body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: auto;
    background: #f6f8fa;
}

.tp_pv_img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
}

.tp_pv_frame {
    display: block;
    width: 100%;
    height: calc(100vh - 120px);
    border: 0;
    background: #ffffff;
}

/* History entries */
.tp_entry {
    border: 1px solid var(--line);
    border-left: 4px solid #3d9be0;
    border-radius: 8px;
    padding: 10px 14px 11px;
    margin-bottom: 10px;
    background: #f3f8fd;
}

.tp_entry.tp_entry_client {
    border-left-color: #43b66b;
    background: #f2faf3;
}

.tp_entry.tp_entry_time {
    border-left-color: #e0b100;
    background: #fffbea;
}

.tp_entry.tp_entry_internal {
    border-left-color: #b23a2e;
    background: #fdf1f0;
}

.tp_entry.tp_entry_system {
    border-left-color: #b2b9c2;
    background: #f6f7f9;
}

.tp_entry_head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #5b6470;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.tp_entry_type {
    font-weight: 600;
    color: #1b1f24;
}

.tp_tag {
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 6px;
    border: 1px solid var(--line);
}

.tp_tag.tp_tag_pub {
    background: #e5f4e4;
    color: #2e7d32;
    border-color: #b9dfbd;
}

.tp_tag.tp_tag_prv {
    background: #fbebeb;
    color: #b23a2e;
    border-color: #f0c4c0;
}

.tp_tag.tp_tag_sys {
    background: #f0f2f5;
    color: #5b6470;
}

.tp_time_chip {
    margin-left: auto;
    background: #e7f1fb;
    color: #1b75bc;
    border-radius: 10px;
    padding: 1px 9px;
    font-size: 11.5px;
}

.tp_wrap p.tp_entry_body {
    line-height: 1.55;
    word-break: break-word;
}

.tp_entry_private {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
}

.tp_empty {
    color: #5b6470;
    padding: 30px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
}

/* Service calls / to-dos / checklists inside the preview */
.tp_wrap .td_sp_tab_actions {
    padding: 0 0 12px;
    border-bottom: 0;
}

.tp_wrap .td_sp_list {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.tp_wrap .td_sp_item {
    border-bottom-color: var(--line);
}

/* Title & description editor */
.tp_editor {
    position: absolute;
    inset: 0;
    background: rgba(27, 31, 36, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.tp_editor_box {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    width: 640px;
    max-width: 92%;
    padding: 20px;
    box-sizing: border-box;
}

.tp_wrap .tp_editor_box h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 14px;
    padding: 0;
    text-align: left;
    color: #1b1f24;
}

.tp_wrap .tp_editor_box label {
    display: block;
    position: static;
    transform: none;
    font-size: 12px;
    color: #5b6470;
    margin: 10px 0 4px;
    padding: 0;
}

.tp_wrap .tp_editor_box .tp_input {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 7px;
}

.tp_wrap .tp_editor_box textarea.tp_input {
    height: 180px;
    resize: vertical;
}

.tp_editor_actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

/* Hidden helper (kept last in this section so it wins over display rules above) */
.tp_wrap .tp_hidden {
    display: none;
}

@media (max-width: 900px) {

    .swal2-popup.tp_modal {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .tp_wrap {
        height: 100vh;
    }

    .tp_body {
        flex-direction: column;
        overflow-y: auto;
    }

    .tp_left {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        overflow-y: visible;
    }

    .tp_mid {
        overflow-y: visible;
    }

    .tp_title {
        flex-basis: 100%;
        margin-left: 0;
        order: 5;
    }

    .tp_header_row {
        flex-wrap: wrap;
    }

}


/* === FLYOUT PANEL (TEAM / TICKETS, includes/modules/flyout/flyout_content.php) === */

.fo_sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sidebar_container {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 5500;
    display: flex;
    flex-direction: column;
    width: 384px;
    max-width: calc(100vw - 50px);
    height: 100vh;
    height: 100dvh;
    padding: 0;
    border-left: 1px solid var(--line);
    background: #ffffff;
    color: #1b1f24;
    font-family: Poppins, Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.25s ease;   /* only the slide animates (no shadow / layout animation) */
    will-change: transform;
}

.sidebar_container.is_visible {
    transform: translateX(0);
    box-shadow: -14px 0 36px rgba(31, 56, 100, 0.22), -2px 0 14px rgba(27, 117, 188, 0.3);
}

/* Thin blue accent line + soft glow on the left edge */
.sidebar_container.is_visible::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 3px;
    background: linear-gradient(180deg, transparent, #1b75bc 12%, #1b75bc 88%, transparent);
    pointer-events: none;
}

.sidebar_container.is_visible::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 18px;
    background: linear-gradient(90deg, rgba(27, 117, 188, 0.14), transparent);
    pointer-events: none;
}

.sidebar_container .fo_ic {
    flex: none;
}

/* Pin (desktop) and close (phones) */
.flyout_controls {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.flyout_pin {
    margin: 0;
    padding: 0;
}

.flyout_pin a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: #5b6470;
    font-size: 14px;
    opacity: 0.6;
}

.flyout_pin a:hover {
    background: #f3f5f8;
    opacity: 1;
}

body.flyout_pinned .flyout_pin a {
    color: #1b75bc;
    opacity: 1;
}

.flyout_close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #5b6470;
    cursor: pointer;
}

.flyout_backdrop {
    display: none;
}

/* TEAM / TICKETS tabs: one rail on the panel's left edge */
.flyout_tabs {
    position: absolute;
    right: 100%;
    top: 56px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 5px;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background: #ffffff;
    box-shadow: -6px 4px 16px rgba(31, 56, 100, 0.22);
}

.flyout_tabs button {
    position: relative;
    padding: 14px 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5b6470;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    cursor: pointer;
    transition: color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.flyout_tabs button:hover {
    background: #f3f5f8;
    color: #1b1f24;
}

.flyout_tabs button.is_visible {
    background: #1b75bc;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(27, 117, 188, 0.3);
}

.flyout_tabs button:focus-visible {
    outline: 2px solid #1b75bc;
    outline-offset: 2px;
}

/* Collapsed: TEAM and TICKETS as two separate raised tabs (the text is rotated, so left/right are mirrored) */
.sidebar_container:not(.is_visible) .flyout_tabs {
    top: 64px;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.sidebar_container:not(.is_visible) .flyout_tabs button {
    padding: 17px 10px;
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 11px 11px 0;
    background: linear-gradient(270deg, #ffffff 0%, #f3f5f8 100%);
    color: #1b1f24;
    box-shadow: 5px -5px 14px rgba(31, 56, 100, 0.22), 2px -1px 3px rgba(16, 24, 40, 0.08), inset -1px -1px 0 rgba(255, 255, 255, 0.75);
}

.sidebar_container:not(.is_visible) .flyout_tabs button::before {
    content: "";
    position: absolute;
    right: -1px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 3px 0 0 3px;
    background: #e2e6ea;
    transition: background 0.15s;
}

.sidebar_container:not(.is_visible) .flyout_tabs button:hover {
    color: #1b75bc;
    transform: rotate(180deg) translateX(3px);
}

.sidebar_container:not(.is_visible) .flyout_tabs button:hover::before {
    background: #1b75bc;
}

/* Pinned and open (desktop): TEAM / TICKETS move into the panel header as one switch.
   The panel stays open; clicking the open tab does nothing, clicking the other one switches. */
@media (min-width: 901px) {

    body.flyout_pinned .sidebar_container.is_visible .fo_head {
        display: flex;
        align-items: center;
        height: 52px;
        padding: 0 80px 0 20px;
    }

    body.flyout_pinned .sidebar_container.is_visible .fo_head h2 {
        display: none;
    }

    body.flyout_pinned .sidebar_container.is_visible .flyout_tabs {
        top: 11px;
        left: 20px;
        right: auto;
        flex-direction: row;
        gap: 2px;
        padding: 3px;
        border: 1px solid var(--line);
        border-radius: 9px;
        box-shadow: none;
    }

    body.flyout_pinned .sidebar_container.is_visible .flyout_tabs button {
        padding: 5px 14px;
        border-radius: 7px;
        font-size: 11px;
        letter-spacing: 0.06em;
        writing-mode: horizontal-tb;
        transform: none;
    }

    body.flyout_pinned .sidebar_container.is_visible .flyout_tabs button:hover {
        transform: none;
    }

}

/* Panes */
.sidebar_container .content_container.is_visible {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c9d1da transparent;
}

.fo_head {
    padding: 12px 80px 8px 20px;
}

.sidebar_container .fo_head h2 {
    margin: 0;
    padding: 0;
    color: #1b1f24;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    text-transform: none;
}

/* === TEAM === */
.fo_sum {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 16px 8px 20px;
    border-bottom: 1px solid var(--line);
}

.fo_sc {
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 600;
}

.fo_sc_working,
.fo_sc_available,
.fo_st_working,
.fo_st_available {
    background: #e5f4e4;
    color: #2e9d57;
}

.fo_sc_lunch,
.fo_sc_break,
.fo_st_lunch,
.fo_st_break {
    background: #fff4dd;
    color: #b86a00;
}

.fo_sc_training,
.fo_st_training {
    background: #efedff;
    color: #5b3fd1;
}

.sidebar_container .team_listing {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar_container .team_listing li.fo_t {
    position: relative;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 7px 16px 7px 20px;
    border-bottom: 1px solid var(--line);
    transition: background 0.12s;
}

.sidebar_container .team_listing li.fo_t:hover {
    background: #f7f9fb;
}

.sidebar_container .team_listing li.fo_t.fo_me {
    background: #e7f1fb;
    box-shadow: inset 3px 0 0 #1b75bc;
}

/* Signed out (the coordinator on duty sees them, and can sign them in) */
.sidebar_container .team_listing li.fo_t.fo_out .fo_av,
.sidebar_container .team_listing li.fo_t.fo_out .fo_nm {
    opacity: 0.5;
    filter: grayscale(1);
}

.fo_st_out {
    background: #eef1f5;
    color: #5b6470;
}

.fo_av {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #dbe6f2;
    color: #1f3864;
    font-size: 9.5px;
    font-weight: 600;
    cursor: default;
    outline: none;
}

.fo_av:focus-visible {
    box-shadow: 0 0 0 2px #1b75bc;
}

.fo_badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    box-sizing: border-box;
}

.fo_badge:empty {
    display: none;
}

.fo_badge svg {
    animation: fo_bob 1.8s ease-in-out infinite;
}

.fo_bd_working {
    background: #fff4dd;
    color: #e98a2b;
}

.fo_bd_available {
    background: #e5f4e4;
    color: #2e9d57;
}

.fo_bd_lunch,
.fo_bd_break {
    background: #fff4dd;
    color: #b86a00;
}

.fo_bd_training {
    background: #efedff;
    color: #5b3fd1;
}

/* Idle for too long */
.fo_badge.fo_pulse_badge {
    animation: fo_idle_pulse 1.6s infinite;
}

@keyframes fo_bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1.5px);
    }
}

@keyframes fo_idle_pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 138, 43, 0.6);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(233, 138, 43, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 138, 43, 0);
    }
}

/* Hover the initials: what the tech is doing */
.fo_avtip {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px 9px;
    border-radius: 7px;
    background: #1b1f24;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-3px);
    transition: opacity 0.12s, transform 0.12s;
}

.fo_avtip::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    border: 5px solid transparent;
    border-right-color: #1b1f24;
    transform: translateY(-50%);
}

.fo_avtip b {
    font-weight: 600;
}

.fo_avtip span {
    opacity: 0.75;
}

.fo_avtip .fo_tn {
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
}

.fo_av:hover .fo_avtip,
.fo_av:focus-visible .fo_avtip {
    opacity: 1;
    transform: translateY(-50%);
}

.fo_nm {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
}

.sidebar_container .team_listing li.pointer_icon .user_name {
    cursor: pointer;
}

.sidebar_container .team_listing li.pointer_icon .user_name:hover {
    color: #1b75bc;
    text-decoration: underline;
}

.fo_you {
    color: #5b6470;
    font-size: 10px;
    font-weight: 500;
}

.fo_crown {
    display: inline-flex;
}

.fo_crown.mcnoc_hidden {
    display: none;
}

.fo_crown svg {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.fo_die_wrap {
    display: inline-flex;
    margin-left: 3px;
}

.fo_die {
    position: relative;
    display: inline-flex;
}

.fo_die svg {
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.45));
}

.fo_die .fo_tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    z-index: 5;
    padding: 3px 8px;
    border-radius: 5px;
    background: #1b1f24;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity 0.12s;
}

.fo_die:hover .fo_tip,
.fo_die:focus-visible .fo_tip {
    opacity: 1;
}

.fo_rt {
    flex: none;
    text-align: right;
}

.fo_tm {
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.fo_tm.fo_idle {
    color: #b86a00;
}

/* Working: time on each ticket (one line per ticket when there are several) */
.fo_tm.fo_tkl {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 2px;
}

.fo_tkr {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    font-size: 10.5px;
    white-space: nowrap;
}

.fo_tkn {
    color: #5b6470;
    font-weight: 500;
}

.fo_tkt_stop {
    color: #5b6470;
}

.fo_st {
    display: inline-block;
    margin-top: 1px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 9.5px;
    font-weight: 700;
}

/* === TICKETS === */
.fo_pane {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 6px 16px 16px 20px;
}

.fo_srow {
    display: flex;
    gap: 8px;
}

.fo_inp {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #5b6470;
    font-size: 12.5px;
    box-sizing: border-box;
}

.sidebar_container .fo_inp input,
.fo_res .fo_inp input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #1b1f24;
    font-family: inherit;
    font-size: 12.5px;
    outline: none;
}

.fo_inp input::placeholder {
    color: #5b6470;
}

.fo_inp:focus-within {
    border-color: #1b75bc;
    box-shadow: 0 0 0 3px rgba(27, 117, 188, 0.18);
}

#flyout_lookup_ticket {
    text-transform: uppercase;
}

#flyout_lookup_ticket::placeholder {
    text-transform: none;
}

.fo_inp_go {
    display: flex;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.fo_inp_go:hover {
    color: #1b75bc;
}

.fo_ib {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #1b1f24;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.fo_ib:hover {
    border-color: #1b75bc;
    color: #1b75bc;
}

.fo_adv {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 2px 0;
    border: 0;
    background: none;
    color: #1b75bc;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.fo_chev {
    display: flex;
    margin-left: auto;
    color: #5b6470;
    transition: transform 0.15s;
}

.fo_adv[aria-expanded="true"] .fo_chev {
    transform: rotate(180deg);
}

.fo_card {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f7f9fb;
}

.fo_f2 > * + * {
    margin-top: 10px;
}

.fo_lab {
    margin: 0 0 5px;
    color: #5b6470;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fo_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fo_chip {
    padding: 3px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    color: #1b1f24;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
}

.fo_chip:hover {
    border-color: #1b75bc;
}

.fo_chip[aria-pressed="true"] {
    border-color: #1f3864;
    background: #1f3864;
    color: #ffffff;
}

.fo_chip.fo_chip_static {
    cursor: default;
}

.adv_search_dates {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    margin-top: 8px;
}

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

#flyout_advanced_search .select2-container .select2-selection--single {
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

#flyout_advanced_search .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 10px;
    color: #1b1f24;
    font-family: inherit;
    font-size: 12.5px;
    line-height: 32px;
}

#flyout_advanced_search .select2-container .select2-selection--single .select2-selection__placeholder {
    color: #5b6470;
}

#flyout_advanced_search .select2-container .select2-selection--single .select2-selection__arrow {
    height: 32px;
    right: 6px;
}

/* Chevron instead of Select2's triangle, like the other flyout dropdowns */
#flyout_advanced_search .select2-container .select2-selection--single .select2-selection__arrow b {
    top: 45%;
    left: 50%;
    width: 6px;
    height: 6px;
    margin: -4px 0 0 -3px;
    border-style: solid;
    border-color: #5b6470;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
    transition: transform 0.15s;
}

#flyout_advanced_search .select2-container--open .select2-selection--single .select2-selection__arrow b {
    margin-top: -1px;
    border-color: #1b75bc;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(-135deg);
}

#flyout_advanced_search .select2-container .select2-selection--single .select2-selection__clear {
    height: 32px;
    margin-right: 22px;
    color: #5b6470;
    font-size: 16px;
    font-weight: 400;
}

#flyout_advanced_search .select2-container .select2-selection--single .select2-selection__clear:hover {
    color: #c5293d;
}

/* Open / focused: keep the rounded corners and show the focus ring */
#flyout_advanced_search .select2-container--focus .select2-selection--single,
#flyout_advanced_search .select2-container--open .select2-selection--single {
    border-color: #1b75bc;
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(27, 117, 188, 0.18);
}

/* The open list: a floating panel like the "Switch ticket" list */
#flyout_advanced_search .select2-container--open .select2-dropdown {
    z-index: 6000;
    overflow: hidden;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(31, 56, 100, 0.22);
}

#flyout_advanced_search .select2-dropdown--below {
    margin-top: 6px;
}

#flyout_advanced_search .select2-dropdown--above {
    margin-top: -6px;
}

#flyout_advanced_search .select2-search--dropdown {
    padding: 0 0 6px;
}

#flyout_advanced_search .select2-container--default .select2-search--dropdown .select2-search__field {
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 0 10px 0 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6470' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center;
    color: #1b1f24;
    font-family: inherit;
    font-size: 12.5px;
    box-sizing: border-box;
}

#flyout_advanced_search .select2-container--default .select2-search--dropdown .select2-search__field::placeholder {
    color: #5b6470;
}

#flyout_advanced_search .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #1b75bc;
    box-shadow: 0 0 0 3px rgba(27, 117, 188, 0.18);
}

#flyout_advanced_search .select2-results > .select2-results__options {
    max-height: 240px;
}

#flyout_advanced_search .select2-container--default .select2-results__option {
    padding: 8px 10px !important; /* general.css forces padding on all select2 options with !important */
    border-radius: 8px;
    color: #1b1f24;
    font-family: inherit;
    font-size: 12.5px;
    line-height: 1.4;
}

#flyout_advanced_search .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
#flyout_advanced_search .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #e7f1fb;
    color: #1b1f24;
}

#flyout_advanced_search .select2-container--default .select2-results__option--selected,
#flyout_advanced_search .select2-container--default .select2-results__option[aria-selected="true"] {
    background: #e7f1fb;
    color: #1b75bc;
    font-weight: 600;
}

/* "Type at least 2 letters", "Searching...", "No matching Client" */
#flyout_advanced_search .select2-container--default .select2-results__option.select2-results__message {
    padding: 6px 4px !important;
    background: none;
    color: #5b6470;
    font-size: 11.5px;
    font-weight: 400;
}

.fo_btnrow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fo_full {
    flex: 1;
}

.fo_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #1b1f24;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.fo_btn:hover {
    border-color: #1b75bc;
    color: #1b1f24;
}

.fo_btn.mcnoc_hidden {
    display: none;
}

.fo_btn.fo_btn_primary {
    border-color: #1b75bc;
    background: #1b75bc;
    color: #ffffff;
    font-weight: 600;
}

.fo_btn.fo_btn_primary:hover {
    border-color: #155f99;
    background: #155f99;
    color: #ffffff;
}

.fo_btn.fo_btn_g {
    border-color: #22a65a;
    background: #22a65a;
    color: #ffffff;
    font-weight: 600;
}

.fo_btn.fo_btn_g:hover {
    border-color: #1c8f4d;
    background: #1c8f4d;
    color: #ffffff;
}

.fo_btn.fo_btn_rd {
    border-color: #f0c4c0;
    background: #fbebeb;
    color: #c2362f;
    font-weight: 600;
}

.fo_btn.fo_btn_rd:hover {
    border-color: #c2362f;
    color: #c2362f;
}

.fo_lnk {
    padding: 6px;
    color: #5b6470;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
}

.fo_lnk:hover {
    color: #1b1f24;
}

/* Pills */
.fo_pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border: 1px solid;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.fo_pill i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.fo_pill.fo_pill_cfg {
    border-color: transparent;
}

.fo_p_r {
    border-color: #f0c4c0;
    background: #fbebeb;
    color: #c2362f;
}

.fo_p_o {
    border-color: #f6c3a3;
    background: #fff0e6;
    color: #d9480f;
}

.fo_p_y {
    border-color: #f1d28f;
    background: #fff4dd;
    color: #b86a00;
}

.fo_p_gr {
    border-color: var(--line);
    background: #f0f2f5;
    color: #5b6470;
}

/* Your current tickets */
.fo_cur {
    position: relative;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7f9fb;
}

.fo_curh {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sidebar_container .fo_curh h3 {
    margin: 0;
    padding: 0;
    color: #5b6470;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fo_ccnt {
    padding: 1px 8px;
    border-radius: 10px;
    background: #e7f1fb;
    color: #1b75bc;
    font-size: 11px;
    font-weight: 700;
}

.fo_native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.fo_rel {
    position: relative;
}

.fo_csel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
}

.fo_csel:hover,
.fo_csel.fo_open {
    border-color: #1b75bc;
}

.fo_csel.fo_open {
    box-shadow: 0 0 0 3px rgba(27, 117, 188, 0.18);
}

.fo_cur_single .fo_csel {
    cursor: default;
}

.fo_cur_single .fo_csel:hover {
    border-color: var(--line);
}

.fo_cur_single .fo_csel_tg {
    display: none;
}

.fo_cm {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.fo_l1 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.fo_l1 .fo_pill {
    margin-left: auto;
}

.sidebar_container .fo_num {
    color: #1b75bc;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.sidebar_container a.fo_num:hover {
    text-decoration: underline;
}

.fo_l2 {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #1b1f24;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar_container a.fo_l2 {
    color: #1b1f24;
    text-decoration: none;
}

.sidebar_container a.fo_l2:hover {
    color: #1b75bc;
    text-decoration: underline;
}

.fo_l3 {
    overflow: hidden;
    color: #5b6470;
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fo_csel_tg {
    display: flex;
    padding: 4px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: #5b6470;
    cursor: pointer;
    transition: transform 0.15s;
}

.fo_csel_tg:hover {
    background: #f3f5f8;
}

.fo_csel_tg[aria-expanded="true"] {
    color: #1b75bc;
    transform: rotate(180deg);
}

.fo_pop {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 6;
    max-height: 300px;
    padding: 6px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(31, 56, 100, 0.22);
}

.fo_sec {
    padding: 8px 11px 4px;
    color: #5b6470;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fo_copt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.fo_copt:hover,
.fo_copt:focus-visible,
.fo_copt.fo_on {
    background: #e7f1fb;
    outline: none;
}

.fo_sdot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.fo_sdot_run {
    background: #2e9d57;
}

.fo_sdot_stop {
    background: #b86a00;
}

/* Timer */
.fo_tmr {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 2px 10px;
}

.fo_play {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(180deg, #34b768, #1f8a48);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 4px #e5f4e4;
    text-decoration: none;
    transition: box-shadow 0.15s, transform 0.15s;
}

.fo_play.ticket_timer_running {
    background: linear-gradient(180deg, #e2554d, #b52d27);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 4px #fbebeb;
}

/* Scheduling rules on: Stop timer (while running) and Reset timer can't be used (ticket_timer.js) */
.sidebar_container .fo_locked,
.sidebar_container .fo_locked:hover {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.sidebar_container .fo_play:hover {
    color: #ffffff;
    transform: scale(1.05);
}

.fo_i_play,
.fo_i_pause {
    display: flex;
}

.fo_i_pause,
.fo_play.ticket_timer_running .fo_i_play {
    display: none;
}

.fo_play.ticket_timer_running .fo_i_pause {
    display: flex;
}

.sidebar_container #ticket_timer_value.fo_clock {
    display: block;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    text-align: left;
}

.fo_state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #b86a00;
    font-size: 11px;
    font-weight: 600;
}

.fo_state i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.fo_state_run,
#ticket_timer:has(.ticket_timer_running) .fo_state_stop {
    display: none;
}

#ticket_timer:has(.ticket_timer_running) .fo_state {
    color: #2e9d57;
}

#ticket_timer:has(.ticket_timer_running) .fo_state_run {
    display: inline;
}

/* Timer / ticket actions */
.fo_acts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.sidebar_container a.fo_ab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #5b6470;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.fo_c {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.fo_k_reset .fo_c {
    border: 1px solid rgba(217, 119, 6, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #fff1d6 100%);
    color: #d97706;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(217, 119, 6, 0.22);
}

.fo_k_clear .fo_c {
    border: 1px solid rgba(194, 54, 47, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #fde4e2 100%);
    color: #c2362f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(194, 54, 47, 0.22);
}

.fo_k_note .fo_c {
    border: 1px solid rgba(27, 117, 188, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #dcecfa 100%);
    color: #1b75bc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(27, 117, 188, 0.22);
}

.fo_k_time .fo_c {
    border: 1px solid rgba(46, 157, 87, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #dcf2e1 100%);
    color: #2e9d57;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(46, 157, 87, 0.22);
}

.fo_k_hist .fo_c {
    border: 1px solid rgba(91, 63, 209, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #ece8ff 100%);
    color: #5b3fd1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(91, 63, 209, 0.22);
}

.sidebar_container a.fo_ab:hover .fo_c {
    color: #ffffff;
    transform: translateY(-1px);
}

.sidebar_container a.fo_ab:active .fo_c {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.sidebar_container a.fo_k_reset:hover {
    color: #d97706;
}

.fo_k_reset:hover .fo_c {
    border-color: #b45309;
    background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
}

.sidebar_container a.fo_k_clear:hover {
    color: #c2362f;
}

.fo_k_clear:hover .fo_c {
    border-color: #9f2a24;
    background: linear-gradient(180deg, #c2362f 0%, #9f2a24 100%);
}

.sidebar_container a.fo_k_note:hover {
    color: #1b75bc;
}

.fo_k_note:hover .fo_c {
    border-color: #155f99;
    background: linear-gradient(180deg, #1b75bc 0%, #155f99 100%);
}

.sidebar_container a.fo_k_time:hover {
    color: #2e9d57;
}

.fo_k_time:hover .fo_c {
    border-color: #237a43;
    background: linear-gradient(180deg, #2e9d57 0%, #237a43 100%);
}

.sidebar_container a.fo_k_hist:hover {
    color: #5b3fd1;
}

.fo_k_hist:hover .fo_c {
    border-color: #4a32ad;
    background: linear-gradient(180deg, #5b3fd1 0%, #4a32ad 100%);
}

/* Offered ticket */
.fo_offer.fo_offered {
    overflow: hidden;
    border: 1px solid #c7dcf0;
    border-radius: 12px;
    background: #f7f9fb;
    box-shadow: 0 0 0 3px rgba(27, 117, 188, 0.14);
}

.fo_offh {
    padding: 10px 12px;
    border-bottom: 1px solid #c7dcf0;
    background: #e7f1fb;
    color: #1b75bc;
    font-size: 12.5px;
    font-weight: 600;
}

.fo_pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #1b75bc;
    vertical-align: 1px;
    animation: fo_pulse 1.6s infinite;
}

@keyframes fo_pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(27, 117, 188, 0.3);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(27, 117, 188, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(27, 117, 188, 0);
    }
}

/* Not offered: the area just shows a message ("Searching…", "No tickets available…") */
.fo_offer:not(.fo_offered) .fo_offb {
    color: #5b6470;
    font-size: 12px;
    text-align: center;
}

.fo_offer:not(.fo_offered) .fo_offb:not(:empty) {
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff4dd;
    color: #b86a00;
}

.fo_offer.fo_offered .fo_offb {
    padding: 12px 12px 0;
}

.fo_tk1 {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fo_grow {
    flex: 1;
}

.fo_cl {
    margin-top: 7px;
    font-weight: 700;
}

.fo_ttl {
    margin-top: 6px;
    font-size: 13.5px;
    font-weight: 700;
}

.fo_desc {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    color: #5b6470;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.fo_desc p {
    margin: 0 0 6px;
    padding: 0;
}

.fo_desc img {
    max-width: 100%;
    height: auto;
}

.fo_desc.fo_clip {
    position: relative;
    max-height: 96px;
    overflow: hidden;
}

.fo_desc.fo_clip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26px;
    background: linear-gradient(transparent, #f7f9fb);
}

.fo_more {
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: #1b75bc;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.fo_three {
    display: flex;
    gap: 6px;
    padding: 12px;
}

.fo_three .fo_btn {
    flex: 1 1 0;
    gap: 5px;
    padding: 8px 6px;
    font-size: 12px;
}

/* Send back reason */
.sidebar_container .fo_reason_h {
    margin: 0;
    text-align: left;
    padding: 0;
    color: #1b1f24;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
}

.fo_req {
    color: #c2362f;
}

.sidebar_container textarea.fo_ta {
    display: block;
    width: 100%;
    height: 72px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #1b1f24;
    font-family: inherit;
    font-size: 12.5px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.sidebar_container textarea.fo_ta:focus {
    border-color: #1b75bc;
    box-shadow: 0 0 0 3px rgba(27, 117, 188, 0.18);
}

/* Request a ticket */
.fo_act {
    padding: 18px 16px;
    text-align: center;
}

.fo_act_ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #e7f1fb;
    color: #1b75bc;
}

.sidebar_container .fo_act h3 {
    margin: 0 0 12px;
    padding: 0;
    color: #1b1f24;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
}

/* === YOUR STATUS (bottom) === */
.sidebar_container .user_status_container {
    flex: none;
    padding: 12px 16px 16px 20px;
    border-top: 1px solid var(--line);
}

.user_status_container ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.user_status_container li {
    margin: 0;
    line-height: 1.4;
    padding: 0;
}

.fo_bb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

.fo_bx {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 40px;
    border: 2px solid #1b1f24;
    border-radius: 4px;
    background: #ffffff;
    color: #1b1f24;
    box-sizing: border-box;
    transition: border-color 0.12s, background 0.12s;
}

.fo_bb:hover .fo_bx {
    border-color: #1b75bc;
}

.fo_bl {
    color: #5b6470;
    font-size: 10.5px;
    font-weight: 500;
}

.fo_bb.status_active .fo_bx {
    border-color: #22a65a;
    background: #22a65a;
    color: #ffffff;
}

.fo_bb.status_active .fo_bl {
    color: #2e9d57;
    font-weight: 600;
}

/* Signed out: the sign-in button stays red until you sign in */
#status_signedin:not(.status_active) .fo_bx {
    border-color: #c2362f;
    color: #c2362f;
}

#status_signedin:not(.status_active) .fo_bl {
    color: #c2362f;
    font-weight: 600;
}

.fo_bb:focus-visible {
    outline: 2px solid #1b75bc;
    outline-offset: 2px;
}

/* Break / lunch countdown */
.sidebar_container #flyout_timer {
    margin: 0 0 10px;
    padding: 6px;
    border: 1px solid #f1d28f;
    border-radius: 8px;
    background: #fff4dd;
    color: #b86a00;
    text-align: center;
}

.sidebar_container #flyout_timer p {
    margin: 0;
    padding: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.sidebar_container #flyout_timer span {
    display: block;
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Pinned: the page makes room for the panel */
.flyout_pinned .sitewrapper {
    width: calc(100% - 384px);
}

/* ...and keeps only a small gap on the right, since the panel is already there (mobile resets this below). */
body.launchpad_page.flyout_pinned > .sitewrapper > main {
    padding: 0 15px 0 16px;
}

/* The top-of-page banners (LP.banner, #lp-banners) sit outside .sitewrapper, so they make the same room;
   otherwise their right side, with the Mark as read button, is under the pinned panel. */
.flyout_pinned #lp-banners {
    box-sizing: border-box;
    width: calc(100% - 384px);
}

/* === SEARCH RESULTS (Swal) === */
.swal2-popup.fo_res_modal {
    width: 960px;
    max-width: 95vw;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-family: Poppins, Arial, Helvetica, sans-serif;
    text-align: left;
}

.swal2-popup.fo_res_modal .swal2-html-container {
    margin: 0;
    padding: 0;
}

.fo_res {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 80px);
    color: #1b1f24;
    font-size: 13px;
    line-height: 1.4;
}

.fo_res_h {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.swal2-popup .fo_res_h h3 {
    margin: 0;
    padding: 0;
    color: #1b1f24;
    font-size: 17px;
    font-weight: 600;
}

.fo_res_cnt {
    padding: 2px 8px;
    border-radius: 10px;
    background: #f0f2f5;
    color: #5b6470;
    font-size: 11px;
    font-weight: 700;
}

.fo_res_x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #5b6470;
    cursor: pointer;
}

.fo_res_f {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
}

.fo_res .fo_res_q {
    flex: 0 1 260px;
    width: auto;
    margin-left: auto;
}

.fo_res_tw {
    flex: 1;
    max-height: 55vh;
    overflow: auto;
}

.fo_tbl {
    width: 100%;
    border-collapse: collapse;
}

.fo_tbl th {
    position: sticky;
    top: 0;
    padding: 8px 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #f0f3f7;
    color: #5b6470;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.fo_tbl th button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.fo_tbl td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
    white-space: nowrap;
}

/* Client names wrap; the title gets the leftover width and is cut with "…" (full title on hover) */
.fo_tbl td.fo_client {
    min-width: 140px;
    max-width: 220px;
    white-space: normal;
}

.fo_tbl td.fo_num {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fo_tbl td.fo_tc {
    width: 45%;
    max-width: 0;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
}

.fo_tbl tbody tr {
    cursor: pointer;
}

.fo_tbl tbody tr:hover td,
.fo_tbl tbody tr:focus td {
    background: #f0f4f8;
    outline: none;
}

.fo_tbl .fo_op {
    width: 30px;
    color: #1b75bc;
    opacity: 0;
}

.fo_tbl tbody tr:hover .fo_op,
.fo_tbl tbody tr:focus .fo_op {
    opacity: 1;
}

.fo_empty {
    padding: 40px 20px;
    color: #5b6470;
    text-align: center;
}

.fo_empty b {
    display: block;
    margin: 8px 0 2px;
    color: #1b1f24;
    font-size: 14px;
}

.fo_res_foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    color: #5b6470;
    font-size: 12px;
}

/* Phones: the panel opens over the page with a backdrop and a close button */
@media (max-width: 900px) {

    .sidebar_container {
        width: calc(100vw - 52px);
        max-width: 400px;
    }

    .flyout_close {
        display: inline-flex;
    }

    .flyout_pin {
        display: none;
    }

    .sidebar_container.is_visible + .flyout_backdrop {
        position: fixed;
        inset: 0;
        z-index: 5490;
        display: block;
        border: 0;
        background: rgba(16, 24, 40, 0.5);
    }

    .flyout_pinned .sitewrapper,
    .flyout_pinned #lp-banners {
        width: 100%;
    }

    body.launchpad_page.flyout_pinned > .sitewrapper > main {
        padding: 0 1em;
    }

}

@media (prefers-reduced-motion: reduce) {

    .fo_badge svg,
    .fo_badge.fo_pulse_badge,
    .fo_pulse {
        animation: none;
    }

}

/* === DARK MODE === */

/* Create popups */
.launchpad_dark .create_popup.cp_modern {
    background: #121922;
    border-color: var(--line);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: #e6ebf1;
}

.launchpad_dark .cp_header,
.launchpad_dark .cp_footer {
    background: #161e28;
    border-color: var(--line);
}

.launchpad_dark .cp_modern h2.cp_title {
    color: #e6ebf1;
}

.launchpad_dark .cp_ticket_type {
    background: #13273a;
    color: #6fc3ff;
}

.launchpad_dark .cp_ticket_number,
.launchpad_dark .cp_hint,
.launchpad_dark .cp_time_worked span,
.launchpad_dark .cp_datetime span,
.launchpad_dark .cp_modern p.cp_note,
.launchpad_dark .cp_modern label.cp_label {
    color: #7c8999;
}

.launchpad_dark .cp_close {
    background: #0e131a;
    border-color: var(--line);
    color: #7c8999;
}

.launchpad_dark .cp_close:hover {
    background: #1a2330;
}

.launchpad_dark .cp_modern .cp_ticket_card {
    background: #1a2330;
    border-color: var(--line);
    color: #e6ebf1;
}

.launchpad_dark .cp_modern .cp_ticket_desc {
    color: #7c8999;
}

.launchpad_dark .cp_link {
    color: #6fc3ff;
}

.launchpad_dark .cp_quickcode_bar {
    background: #241f3d;
}

.launchpad_dark .cp_quickcode_bar label {
    color: #b9a2ff;
}

.launchpad_dark .cp_box {
    background: #161e28;
    border-color: var(--line);
}

.launchpad_dark .cp_modern .required {
    color: #ff8f8f;
}

.launchpad_dark .cp_vis_public {
    background: #1e3437;
    color: #5fd38a;
}

.launchpad_dark .cp_vis_private {
    background: #362b34;
    color: #ff8f8f;
}

.launchpad_dark .cp_from_qc {
    background: #241f3d;
    color: #b9a2ff;
}

.launchpad_dark .cp_modern select,
.launchpad_dark .cp_modern input[type="text"],
.launchpad_dark .cp_modern input[type="number"],
.launchpad_dark .cp_modern input[type="date"],
.launchpad_dark .cp_modern textarea {
    background: #0e131a;
    border-color: var(--line);
    color: #e6ebf1;
    color-scheme: dark;
}

.launchpad_dark .cp_modern select option {
    background: #0e131a;
    color: #e6ebf1;
}

.launchpad_dark .cp_modern select:focus,
.launchpad_dark .cp_modern input:focus,
.launchpad_dark .cp_modern textarea:focus {
    border-color: #3d9be0;
    box-shadow: 0 0 0 3px rgba(61, 155, 224, 0.25);
}

.launchpad_dark .cp_modern textarea.cp_template_text {
    background: #1a2330;
    color: #7c8999;
}

.launchpad_dark .cp_modern .mcnoc_highlight,
.launchpad_dark .cp_modern .mcnoc_highlight + .select2-container .select2-selection {
    border-color: #ff8f8f;
    background-color: #2a1d22 !important;
    box-shadow: 0 0 0 3px rgba(255, 143, 143, 0.2);
}

.launchpad_dark .cp_modern .select2-container--default .select2-selection--single {
    background: #0e131a;
    border-color: var(--line);
}

.launchpad_dark .cp_modern .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e6ebf1;
}

.launchpad_dark .cp_modern .select2-dropdown {
    background: #121922;
    border-color: var(--line);
    color: #e6ebf1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
    scrollbar-color: #2a3646 transparent;
}

.launchpad_dark .cp_modern .select2-container--default .select2-results__option {
    background: transparent;
    color: #e6ebf1;
}

.launchpad_dark .cp_modern .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.launchpad_dark .cp_modern .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #1a2330;
    color: #e6ebf1;
}

.launchpad_dark .cp_modern .select2-container--default .select2-results__option--selected,
.launchpad_dark .cp_modern .select2-container--default .select2-results__option[aria-selected="true"] {
    background: #13273a;
    color: #6fc3ff;
}

.launchpad_dark .cp_modern .select2-container--default .select2-results__option--disabled,
.launchpad_dark .cp_modern .select2-container--default .select2-results__option[aria-disabled="true"] {
    background: transparent;
    color: #5b6678;
}

.launchpad_dark .cp_modern .select2-container--default .select2-search--dropdown .select2-search__field {
    background: #0e131a;
    border-color: var(--line);
    color: #e6ebf1;
}

.launchpad_dark .cp_btn {
    background: #0e131a;
    border-color: var(--line);
    color: #e6ebf1;
}

.launchpad_dark .cp_btn:hover {
    background: #1a2330;
}

.launchpad_dark .cp_btn.cp_btn_primary {
    background: #3d9be0;
    border-color: #3d9be0;
    color: #ffffff;
}

.launchpad_dark .cp_btn.cp_btn_primary:hover {
    background: #2f86c7;
}

/* Ticket preview */
.launchpad_dark .swal2-popup.tp_modal {
    background: #121922;
    border-color: var(--line);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.launchpad_dark .swal2-popup.tp_modal .swal2-html-container,
.launchpad_dark .tp_wrap {
    color: #e6ebf1;
}

.launchpad_dark .swal2-popup.tp_modal .swal2-actions {
    border-color: var(--line);
}

.launchpad_dark .swal2-popup.tp_modal .swal2-actions .swal2-styled {
    border-color: #3d9be0;
    background: #3d9be0;
}

.launchpad_dark .swal2-popup.tp_modal .swal2-actions .swal2-cancel {
    border-color: var(--line);
    background: #1a2330;
    color: #e6ebf1;
}

.launchpad_dark .tp_banner {
    background: #2b2418;
    border-left-color: #f2b84b;
    border-bottom-color: #4a3b1f;
    color: #f3d79b;
}

.launchpad_dark .tp_banner_toggle {
    color: #f2b84b;
}

.launchpad_dark .tp_header {
    background: #161e28;
    border-color: var(--line);
}

.launchpad_dark .tp_type {
    background: #13273a;
    border-color: #2c4c6a;
    color: #6fc3ff;
}

.launchpad_dark .tp_type.tp_type_sr {
    background: #1e3437;
    border-color: #2d5a45;
    color: #5fd38a;
}

.launchpad_dark .tp_wrap a.tp_number {
    color: #e6ebf1;
}

.launchpad_dark .tp_wrap a.tp_copy,
.launchpad_dark .tp_close {
    color: #7c8999;
}

.launchpad_dark .tp_close {
    background: #0e131a;
    border-color: var(--line);
}

.launchpad_dark .tp_pill,
.launchpad_dark .tp_meta {
    background: #121922;
    border-color: var(--line);
}

.launchpad_dark .tp_pill b,
.launchpad_dark .tp_meta b {
    color: #7c8999;
}

.launchpad_dark .tp_pill {
    background: #13273a;
    border-color: #2c4c6a;
    color: #6fc3ff;
}

.launchpad_dark .tp_pill b,
.launchpad_dark .tp_meta.tp_meta_amber b {
    color: inherit;
}

.launchpad_dark .tp_meta.tp_meta_amber {
    background: #2b2418;
    border-color: #6b5226;
    color: #f2b84b;
}

.launchpad_dark .tp_btn,
.launchpad_dark .tp_wrap a.tp_btn {
    background: #1a2330;
    border-color: var(--line);
    color: #e6ebf1;
}

.launchpad_dark .tp_btn:hover {
    border-color: #3a4a60;
}

.launchpad_dark .tp_btn.tp_btn_primary {
    background: #3d9be0;
    border-color: #3d9be0;
    color: #ffffff;
}

.launchpad_dark .tp_btn.tp_btn_ghost {
    background: transparent;
    border-color: #2c4c6a;
    color: #6fc3ff;
}

.launchpad_dark .tp_link,
.launchpad_dark .tp_wrap a.tp_link,
.launchpad_dark .tp_wrap .tp_related_ticket a {
    color: #6fc3ff;
}

.launchpad_dark .tp_left {
    background: #121922;
    border-color: var(--line);
}

.launchpad_dark .tp_box,
.launchpad_dark .tp_desc_card {
    background: #161e28;
    border-color: var(--line);
}

.launchpad_dark .tp_row_key,
.launchpad_dark .tp_cap,
.launchpad_dark .tp_related_contact,
.launchpad_dark .tp_wrap p.tp_related_empty,
.launchpad_dark .tp_entry_head,
.launchpad_dark .tp_empty {
    color: #7c8999;
}

.launchpad_dark .tp_wrap .tp_input {
    background: #0e131a;
    border-color: var(--line);
    color: #e6ebf1;
    color-scheme: dark;
}

.launchpad_dark .tp_seg {
    border-color: var(--line);
}

.launchpad_dark .tp_seg_btn {
    color: #7c8999;
}

.launchpad_dark .tp_seg_btn.tp_seg_on {
    background: #13273a;
    color: #6fc3ff;
}

.launchpad_dark .tp_related_ticket {
    border-color: var(--line);
}

.launchpad_dark .tp_mid,
.launchpad_dark .tp_wrap .tp_tabs {
    background: #0a0e13;
}

.launchpad_dark .tp_wrap .tp_tabs {
    border-color: var(--line);
}

.launchpad_dark .tp_wrap .tp_tabs .tp_tab {
    color: #7c8999;
}

.launchpad_dark .tp_wrap .tp_tabs .tp_tab:hover,
.launchpad_dark .tp_wrap .tp_tabs .tp_tab.active {
    background: none;
    color: #e6ebf1;
}

.launchpad_dark .tp_wrap .tp_tabs .tp_tab.active {
    border-bottom-color: #3d9be0;
}

.launchpad_dark .tp_count {
    background: #1f2a38;
}

.launchpad_dark .tp_filter {
    background: #121922;
    border-color: var(--line);
    color: #7c8999;
}

.launchpad_dark .tp_filter.tp_filter_on {
    background: #13273a;
    border-color: #2c4c6a;
    color: #6fc3ff;
}

.launchpad_dark .tp_filter_divider {
    background: var(--line);
}

.launchpad_dark .tp_toggle i {
    background: #2a3646;
}

.launchpad_dark .tp_toggle i:after {
    background: #7c8999;
}

.launchpad_dark .tp_toggle.tp_toggle_on i {
    background: #2c4c6a;
}

.launchpad_dark .tp_toggle.tp_toggle_on i:after {
    background: #6fc3ff;
}

.launchpad_dark .tp_entry {
    border-color: var(--line);
    border-left-color: #3d9be0;
    background: #141e2a;
}

.launchpad_dark .tp_entry.tp_entry_client {
    border-left-color: #43b66b;
    background: #161e28;
}

.launchpad_dark .tp_entry.tp_entry_time {
    border-left-color: #e0b100;
    background: #161e28;
}

.launchpad_dark .tp_entry.tp_entry_internal {
    border-left-color: #e05a5a;
    background: #1d1a22;
}

.launchpad_dark .tp_entry.tp_entry_system {
    border-left-color: #4b5664;
    background: #141b24;
}

.launchpad_dark .tp_entry_type {
    color: #e6ebf1;
}

.launchpad_dark .tp_tag {
    border-color: var(--line);
}

.launchpad_dark .tp_tag.tp_tag_pub {
    background: #1e3437;
    color: #5fd38a;
    border-color: #2d5a45;
}

.launchpad_dark .tp_tag.tp_tag_prv {
    background: #362b34;
    color: #ff8f8f;
    border-color: #6a3a42;
}

.launchpad_dark .tp_tag.tp_tag_sys {
    background: #1f2a38;
    color: #7c8999;
}

.launchpad_dark .tp_time_chip {
    background: #13273a;
    color: #6fc3ff;
}

.launchpad_dark .tp_entry_private,
.launchpad_dark .tp_empty {
    border-color: var(--line);
}

.launchpad_dark .tp_wrap .td_sp_list {
    background: #161e28;
    border-color: var(--line);
}

.launchpad_dark .tp_wrap .td_sp_item {
    border-bottom-color: var(--line);
}

.launchpad_dark .tp_wrap .td_sp_item:hover {
    background: #1a2330;
}

.launchpad_dark .tp_editor {
    background: rgba(0, 0, 0, 0.6);
}

.launchpad_dark .tp_editor_box {
    background: #161e28;
    border-color: var(--line);
}

.launchpad_dark .tp_wrap .tp_editor_box h3 {
    color: #e6ebf1;
}

.launchpad_dark .tp_wrap .tp_editor_box label {
    color: #7c8999;
}

/* Flyout panel (dark) */
.launchpad_dark .sidebar_container {
    border-left-color: var(--line);
    background: #121926;
    color: #e6ebf1;
}

.launchpad_dark .sidebar_container.is_visible {
    box-shadow: -14px 0 36px rgba(0, 0, 0, 0.55), -2px 0 14px rgba(61, 155, 224, 0.28);
}

.launchpad_dark .sidebar_container.is_visible::before {
    background: linear-gradient(180deg, transparent, #3d9be0 12%, #3d9be0 88%, transparent);
}

.launchpad_dark .sidebar_container.is_visible::after {
    background: linear-gradient(90deg, rgba(61, 155, 224, 0.14), transparent);
}

.launchpad_dark .sidebar_container .content_container.is_visible {
    scrollbar-color: #34425a transparent;
}

.launchpad_dark .flyout_pin a,
.launchpad_dark .flyout_close {
    color: #8a95a6;
}

.launchpad_dark .flyout_pin a:hover {
    background: #1b2433;
}

.launchpad_dark.flyout_pinned .flyout_pin a {
    color: #3d9be0;
}

.launchpad_dark .flyout_close {
    border-color: var(--line);
    background: #0e131a;
}

.launchpad_dark .flyout_tabs {
    border-color: var(--line);
    background: #121926;
    box-shadow: -6px 4px 16px rgba(0, 0, 0, 0.55);
}

.launchpad_dark .flyout_tabs button {
    color: #8a95a6;
}

.launchpad_dark .flyout_tabs button:hover {
    background: #1b2433;
    color: #e6ebf1;
}

.launchpad_dark .flyout_tabs button.is_visible {
    background: #3d9be0;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(61, 155, 224, 0.28);
}

.launchpad_dark .sidebar_container:not(.is_visible) .flyout_tabs {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.launchpad_dark .sidebar_container:not(.is_visible) .flyout_tabs button {
    border-color: var(--line);
    background: linear-gradient(270deg, #121926 0%, #1b2433 100%);
    color: #e6ebf1;
    box-shadow: 5px -5px 16px rgba(0, 0, 0, 0.45), inset -1px -1px 0 rgba(255, 255, 255, 0.06);
}

.launchpad_dark .sidebar_container:not(.is_visible) .flyout_tabs button::before {
    background: #243041;
}

.launchpad_dark .sidebar_container:not(.is_visible) .flyout_tabs button:hover {
    color: #3d9be0;
}

.launchpad_dark .sidebar_container:not(.is_visible) .flyout_tabs button:hover::before {
    background: #3d9be0;
}

.launchpad_dark .sidebar_container .fo_head h2,
.launchpad_dark .sidebar_container .fo_reason_h,
.launchpad_dark .sidebar_container .fo_act h3,
.launchpad_dark .fo_l2,
.launchpad_dark .sidebar_container a.fo_l2 {
    color: #e6ebf1;
}

/* Team (dark) */
.launchpad_dark .fo_sum,
.launchpad_dark .sidebar_container .team_listing li.fo_t {
    border-color: var(--line);
}

.launchpad_dark .fo_sc_working,
.launchpad_dark .fo_sc_available,
.launchpad_dark .fo_st_working,
.launchpad_dark .fo_st_available,
.launchpad_dark .fo_bd_available {
    background: #1e3437;
    color: #5fd38a;
}

.launchpad_dark .fo_sc_lunch,
.launchpad_dark .fo_sc_break,
.launchpad_dark .fo_st_lunch,
.launchpad_dark .fo_st_break,
.launchpad_dark .fo_bd_lunch,
.launchpad_dark .fo_bd_break {
    background: #2b2418;
    color: #f2b84b;
}

.launchpad_dark .fo_bd_working {
    background: #2b2418;
    color: #f0a040;
}

.launchpad_dark .fo_sc_training,
.launchpad_dark .fo_st_training,
.launchpad_dark .fo_bd_training {
    background: #2a2440;
    color: #b9a2ff;
}

.launchpad_dark .sidebar_container .team_listing li.fo_t:hover {
    background: #161e2a;
}

.launchpad_dark .sidebar_container .team_listing li.fo_t.fo_me {
    background: #13273a;
    box-shadow: inset 3px 0 0 #3d9be0;
}

.launchpad_dark .fo_st_out {
    background: #1e2835;
    color: #8a95a6;
}

.launchpad_dark .fo_av {
    background: #1f2a38;
    color: #cfd6df;
}

.launchpad_dark .fo_badge {
    border-color: #121926;
}

.launchpad_dark .fo_avtip,
.launchpad_dark .fo_die .fo_tip {
    background: #e6ebf1;
    color: #0e131a;
}

.launchpad_dark .fo_avtip::before {
    border-right-color: #e6ebf1;
}

.launchpad_dark .fo_you,
.launchpad_dark .fo_lab,
.launchpad_dark .fo_sec,
.launchpad_dark .fo_l3,
.launchpad_dark .fo_bl,
.launchpad_dark .fo_lnk,
.launchpad_dark .fo_csel_tg,
.launchpad_dark .fo_chev,
.launchpad_dark .sidebar_container .fo_curh h3,
.launchpad_dark .sidebar_container a.fo_ab {
    color: #8a95a6;
}

.launchpad_dark .fo_tm.fo_idle {
    color: #f2b84b;
}

.launchpad_dark .fo_tkn,
.launchpad_dark .fo_tkt_stop {
    color: #8a95a6;
}

.launchpad_dark .sidebar_container .team_listing li.pointer_icon .user_name:hover {
    color: #3d9be0;
}

/* Tickets (dark) */
.launchpad_dark .fo_inp,
.launchpad_dark .fo_ib,
.launchpad_dark .fo_chip,
.launchpad_dark .fo_btn,
.launchpad_dark .fo_csel,
.launchpad_dark .fo_res_x,
.launchpad_dark .sidebar_container textarea.fo_ta,
.launchpad_dark #flyout_advanced_search .select2-container .select2-selection--single {
    border-color: var(--line);
    background: #0e131a;
    color: #e6ebf1;
    color-scheme: dark;
}

.launchpad_dark .fo_inp {
    color: #8a95a6;
}

.launchpad_dark .sidebar_container .fo_inp input,
.launchpad_dark .fo_res .fo_inp input,
.launchpad_dark #flyout_advanced_search .select2-container .select2-selection--single .select2-selection__rendered {
    color: #e6ebf1;
}

.launchpad_dark .fo_inp input::placeholder,
.launchpad_dark #flyout_advanced_search .select2-container .select2-selection--single .select2-selection__placeholder {
    color: #8a95a6;
}

/* Client dropdown in Advanced search (dark) */
.launchpad_dark #flyout_advanced_search .select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: #8a95a6;
}

.launchpad_dark #flyout_advanced_search .select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: #3d9be0;
}

.launchpad_dark #flyout_advanced_search .select2-container--focus .select2-selection--single,
.launchpad_dark #flyout_advanced_search .select2-container--open .select2-selection--single {
    border-color: #3d9be0;
    box-shadow: 0 0 0 3px rgba(61, 155, 224, 0.22);
}

.launchpad_dark #flyout_advanced_search .select2-container--open .select2-dropdown {
    border-color: var(--line);
    background: #121922;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.launchpad_dark #flyout_advanced_search .select2-container--default .select2-search--dropdown .select2-search__field {
    border-color: var(--line);
    background-color: #0e131a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a95a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    color: #e6ebf1;
}

.launchpad_dark #flyout_advanced_search .select2-container--default .select2-search--dropdown .select2-search__field::placeholder,
.launchpad_dark #flyout_advanced_search .select2-container--default .select2-results__option.select2-results__message {
    color: #8a95a6;
}

.launchpad_dark #flyout_advanced_search .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #3d9be0;
    box-shadow: 0 0 0 3px rgba(61, 155, 224, 0.22);
}

.launchpad_dark #flyout_advanced_search .select2-container--default .select2-results__option {
    color: #e6ebf1;
}

.launchpad_dark #flyout_advanced_search .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.launchpad_dark #flyout_advanced_search .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #1a2330;
    color: #e6ebf1;
}

.launchpad_dark #flyout_advanced_search .select2-container--default .select2-results__option--selected,
.launchpad_dark #flyout_advanced_search .select2-container--default .select2-results__option[aria-selected="true"] {
    background: #13273a;
    color: #6fc3ff;
}

.launchpad_dark .fo_inp:focus-within,
.launchpad_dark .fo_csel.fo_open,
.launchpad_dark .sidebar_container textarea.fo_ta:focus {
    border-color: #3d9be0;
    box-shadow: 0 0 0 3px rgba(61, 155, 224, 0.25);
}

.launchpad_dark .fo_ib:hover,
.launchpad_dark .fo_inp_go:hover,
.launchpad_dark .fo_adv,
.launchpad_dark .fo_more {
    color: #3d9be0;
}

.launchpad_dark .fo_ib:hover,
.launchpad_dark .fo_chip:hover,
.launchpad_dark .fo_btn:hover,
.launchpad_dark .fo_csel:hover {
    border-color: #3d9be0;
}

.launchpad_dark .fo_btn:hover {
    color: #e6ebf1;
}

.launchpad_dark .fo_chip[aria-pressed="true"] {
    border-color: #3d9be0;
    background: #3d9be0;
    color: #ffffff;
}

.launchpad_dark .fo_card,
.launchpad_dark .fo_cur {
    border-color: var(--line);
    background: #161e2a;
}

.launchpad_dark .fo_btn.fo_btn_primary {
    border-color: #3d9be0;
    background: #3d9be0;
    color: #ffffff;
}

.launchpad_dark .fo_btn.fo_btn_primary:hover {
    border-color: #2f86c7;
    background: #2f86c7;
}

.launchpad_dark .fo_btn.fo_btn_g {
    border-color: #22a65a;
    background: #22a65a;
    color: #ffffff;
}

.launchpad_dark .fo_btn.fo_btn_rd {
    border-color: #6a3a42;
    background: #362b34;
    color: #ff8f8f;
}

.launchpad_dark .fo_btn.fo_btn_rd:hover {
    border-color: #ff8f8f;
    color: #ff8f8f;
}

.launchpad_dark .fo_lnk:hover {
    color: #e6ebf1;
}

.launchpad_dark .fo_p_r {
    border-color: #6a3a42;
    background: #362b34;
    color: #ff8f8f;
}

.launchpad_dark .fo_p_o {
    border-color: #6b4126;
    background: #33261d;
    color: #ffa36b;
}

.launchpad_dark .fo_p_y {
    border-color: #6b5226;
    background: #2b2418;
    color: #f2b84b;
}

.launchpad_dark .fo_p_gr {
    border-color: #34425a;
    background: #1f2a38;
    color: #aab4c0;
}

.launchpad_dark .fo_ccnt {
    background: #13273a;
    color: #6fc3ff;
}

.launchpad_dark .sidebar_container .fo_num,
.launchpad_dark .fo_tbl .fo_op {
    color: #6fc3ff;
}

.launchpad_dark .sidebar_container a.fo_l2:hover {
    color: #6fc3ff;
}

.launchpad_dark .fo_csel_tg:hover {
    background: #1b2433;
}

.launchpad_dark .fo_pop {
    border-color: var(--line);
    background: #161e28;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.launchpad_dark .fo_copt:hover,
.launchpad_dark .fo_copt:focus-visible,
.launchpad_dark .fo_copt.fo_on {
    background: #13273a;
}

.launchpad_dark .fo_sdot_run {
    background: #5fd38a;
}

.launchpad_dark .fo_sdot_stop {
    background: #f2b84b;
}

.launchpad_dark .fo_play {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 4px #1e3437;
}

.launchpad_dark .fo_play.ticket_timer_running {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 4px #362b34;
}

.launchpad_dark .fo_state {
    color: #f2b84b;
}

.launchpad_dark #ticket_timer:has(.ticket_timer_running) .fo_state {
    color: #5fd38a;
}

.launchpad_dark .fo_acts {
    border-color: var(--line);
}

.launchpad_dark .fo_k_reset .fo_c {
    border-color: rgba(217, 119, 6, 0.45);
    background: linear-gradient(180deg, rgba(217, 119, 6, 0.3) 0%, rgba(217, 119, 6, 0.12) 100%);
    color: #eab476;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.launchpad_dark .fo_k_clear .fo_c {
    border-color: rgba(194, 54, 47, 0.45);
    background: linear-gradient(180deg, rgba(194, 54, 47, 0.3) 0%, rgba(194, 54, 47, 0.12) 100%);
    color: #de918d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.launchpad_dark .fo_k_note .fo_c {
    border-color: rgba(27, 117, 188, 0.45);
    background: linear-gradient(180deg, rgba(27, 117, 188, 0.3) 0%, rgba(27, 117, 188, 0.12) 100%);
    color: #82b3da;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.launchpad_dark .fo_k_time .fo_c {
    border-color: rgba(46, 157, 87, 0.45);
    background: linear-gradient(180deg, rgba(46, 157, 87, 0.3) 0%, rgba(46, 157, 87, 0.12) 100%);
    color: #8cc9a3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.launchpad_dark .fo_k_hist .fo_c {
    border-color: rgba(91, 63, 209, 0.45);
    background: linear-gradient(180deg, rgba(91, 63, 209, 0.3) 0%, rgba(91, 63, 209, 0.12) 100%);
    color: #a596e6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.launchpad_dark .sidebar_container a.fo_k_reset:hover {
    color: #eab476;
}

.launchpad_dark .sidebar_container a.fo_k_clear:hover {
    color: #de918d;
}

.launchpad_dark .sidebar_container a.fo_k_note:hover {
    color: #82b3da;
}

.launchpad_dark .sidebar_container a.fo_k_time:hover {
    color: #8cc9a3;
}

.launchpad_dark .sidebar_container a.fo_k_hist:hover {
    color: #a596e6;
}

.launchpad_dark .fo_k_reset:hover .fo_c {
    background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
}

.launchpad_dark .fo_k_clear:hover .fo_c {
    background: linear-gradient(180deg, #c2362f 0%, #9f2a24 100%);
    color: #ffffff;
}

.launchpad_dark .fo_k_note:hover .fo_c {
    background: linear-gradient(180deg, #1b75bc 0%, #155f99 100%);
    color: #ffffff;
}

.launchpad_dark .fo_k_time:hover .fo_c {
    background: linear-gradient(180deg, #2e9d57 0%, #237a43 100%);
    color: #ffffff;
}

.launchpad_dark .fo_k_hist:hover .fo_c {
    background: linear-gradient(180deg, #5b3fd1 0%, #4a32ad 100%);
    color: #ffffff;
}

.launchpad_dark .fo_offer.fo_offered {
    border-color: #2c4c6a;
    background: #161e2a;
    box-shadow: 0 0 0 3px rgba(61, 155, 224, 0.18);
}

.launchpad_dark .fo_offh {
    border-color: #2c4c6a;
    background: #13273a;
    color: #6fc3ff;
}

.launchpad_dark .fo_pulse {
    background: #3d9be0;
}

.launchpad_dark .fo_offer:not(.fo_offered) .fo_offb:not(:empty) {
    background: #2b2418;
    color: #f2b84b;
}

.launchpad_dark .fo_desc {
    border-color: var(--line);
    color: #8a95a6;
}

.launchpad_dark .fo_desc.fo_clip::after {
    background: linear-gradient(transparent, #161e2a);
}

.launchpad_dark .fo_req {
    color: #ff8f8f;
}

.launchpad_dark .fo_act_ic {
    background: #13273a;
    color: #3d9be0;
}

/* Your status (dark) */
.launchpad_dark .sidebar_container .user_status_container {
    border-color: var(--line);
}

.launchpad_dark .fo_bx {
    border-color: #ffffff;
    background: #0b0f16;
    color: #ffffff;
}

.launchpad_dark .fo_bb:hover .fo_bx {
    border-color: #3d9be0;
}

.launchpad_dark .fo_bb.status_active .fo_bx {
    border-color: #22a65a;
    background: #22a65a;
}

.launchpad_dark .fo_bb.status_active .fo_bl {
    color: #5fd38a;
}

.launchpad_dark #status_signedin:not(.status_active) .fo_bx {
    border-color: #ff8f8f;
    color: #ff8f8f;
}

.launchpad_dark #status_signedin:not(.status_active) .fo_bl {
    color: #ff8f8f;
}

.launchpad_dark .sidebar_container #flyout_timer {
    border-color: #6b5226;
    background: #2b2418;
    color: #f2b84b;
}

/* Search results (dark) */
.launchpad_dark .swal2-popup.fo_res_modal {
    border-color: var(--line);
    background: #161e28;
}

.launchpad_dark .fo_res,
.launchpad_dark .swal2-popup .fo_res_h h3,
.launchpad_dark .fo_empty b {
    color: #e6ebf1;
}

.launchpad_dark .fo_res_h,
.launchpad_dark .fo_res_foot,
.launchpad_dark .fo_tbl th,
.launchpad_dark .fo_tbl td {
    border-color: var(--line);
}

.launchpad_dark .fo_res_cnt {
    background: #1f2a38;
    color: #aab4c0;
}

.launchpad_dark .fo_tbl th {
    background: #131a23;
    color: #8a95a6;
}

.launchpad_dark .fo_tbl tbody tr:hover td,
.launchpad_dark .fo_tbl tbody tr:focus td {
    background: #1a2330;
}

.launchpad_dark .fo_empty,
.launchpad_dark .fo_res_foot,
.launchpad_dark .fo_res_x {
    color: #8a95a6;
}

@media (max-width: 900px) {

    .launchpad_dark .sidebar_container.is_visible + .flyout_backdrop {
        background: rgba(0, 0, 0, 0.6);
    }

}

/* Create ticket (dark) */
.launchpad_dark .ct_qc,
.launchpad_dark .ct_count {
    color: #8a95a6;
}

.launchpad_dark .ct_modern a.ct_addc {
    background: #3d9be0;
}

.launchpad_dark .ct_pb {
    border-color: var(--line);
    background: #0e131a;
    color: #8a95a6;
}

.launchpad_dark .ct_pb_r[aria-checked="true"] {
    border-color: #ff8f8f;
    background: #362b34;
    color: #ff8f8f;
}

.launchpad_dark .ct_pb_o[aria-checked="true"] {
    border-color: #ffa36b;
    background: #33261d;
    color: #ffa36b;
}

.launchpad_dark .ct_pb_y[aria-checked="true"] {
    border-color: #f2b84b;
    background: #2b2418;
    color: #f2b84b;
}

.launchpad_dark .ct_pb_gr[aria-checked="true"] {
    border-color: #aab4c0;
    background: #1f2a38;
    color: #e6ebf1;
}

.launchpad_dark .cp_modern .select2-container--default .select2-selection--multiple {
    border-color: var(--line);
    background: #0e131a;
}

.launchpad_dark .cp_modern .select2-container--default .select2-selection--multiple .select2-selection__choice {
    border-color: #2c4c6a;
    background: #13273a;
    color: #6fc3ff;
}

.launchpad_dark .ct_left {
    color: #ff8f8f;
}

.launchpad_dark .ct_left.ct_left_done {
    color: #5fd38a;
}


/* === Width helpers for themed (lp-pop) dialogs ===
   general.css sets .wide_modal / .medium_modal on plain SweetAlert2 popups; the LaunchPad pop-up theme
   (.lp-pop, loaded after it) would otherwise reset the width to 440px / 520px. */
.swal2-popup.lp-pop.wide_modal {
    width: 95%;
}

.swal2-popup.lp-pop.medium_modal {
    width: 50%;
}

/* === SPELLING AND GRAMMAR CHECK POP-UP ===
   Colours use the pop-up theme's --lp-* tokens (lp-popups.css), which already switch for
   body.launchpad_dark, so this needs no separate dark-mode rules. */

/* Sizes to the text: never narrower than a normal wide pop-up, never wider than 760px */
.swal2-popup.lp-pop.gc_modal {
    width: fit-content;
    min-width: min(480px, calc(100vw - 32px));
    max-width: min(760px, calc(100vw - 32px));
}

.gc_wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.gc_bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.gc_btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    background: var(--lp-card);
    color: var(--lp-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.gc_btn_ok {
    border-color: var(--lp-g);
    color: var(--lp-g);
}

.gc_btn_ok:hover {
    background: var(--lp-g-bg);
}

.gc_btn_no {
    border-color: var(--lp-r);
    color: var(--lp-r);
}

.gc_btn_no:hover {
    background: var(--lp-r-bg);
}

.gc_count {
    margin-left: auto;
    color: var(--lp-muted);
    font-size: 12px;
}

/* The text with the changes marked in it */
.gc_diff {
    max-height: 320px;
    overflow-y: auto;
    padding: 10px 14px;
    border: 1px solid var(--lp-line);
    border-radius: 10px;
    background: var(--lp-soft);
    color: var(--lp-text);
    font-size: 13px;
    line-height: 2;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.gc_del,
.gc_ins {
    padding: 1px 4px;
    border-radius: 4px;
}

.gc_del {
    background: var(--lp-r-bg);
    color: var(--lp-r);
    text-decoration: line-through;
}

.gc_ins {
    background: var(--lp-g-bg);
    color: var(--lp-g);
    font-weight: 600;
}

.gc_arrow {
    color: var(--lp-muted);
    font-size: 0.85em;
}

.gc_mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 3px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    vertical-align: middle;
    opacity: 0.45;
    cursor: pointer;
}

.gc_mini:hover {
    opacity: 1;
}

.gc_mini_ok {
    background: var(--lp-g-bg);
    color: var(--lp-g);
}

.gc_mini_no {
    background: var(--lp-r-bg);
    color: var(--lp-r);
}

/* Accepted: old word faded, new word stands out, ✓ highlighted */
.gc_on .gc_del {
    opacity: 0.55;
}

.gc_on .gc_mini_ok {
    border-color: var(--lp-g);
    opacity: 1;
}

/* Rejected: old word kept (amber), new word struck through, ✗ highlighted */
.gc_off .gc_del {
    background: var(--lp-o-bg);
    color: var(--lp-o);
    text-decoration: none;
}

.gc_off .gc_ins {
    font-weight: 400;
    text-decoration: line-through;
    opacity: 0.5;
}

.gc_off .gc_mini_no {
    border-color: var(--lp-r);
    opacity: 1;
}

/* === WELCOME / SIGN-IN POP-UP === */
.swal2-popup.lp-pop.fo_wl {
    width: 440px;
    padding: 0;
    overflow: hidden;
}

.fo_wl .swal2-html-container {
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-align: center;
}

.fo_wl .fo_wl_head {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: radial-gradient(120% 140% at 50% 0%, #2a8fe0 0%, #1B75BC 38%, #1F3864 100%);
}

/* Stars: one 3px dot with a shadow per star */
.fo_wl .fo_wl_head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    box-shadow: 0 9px #fff, 163px 88px #fff, 326px 63px #fff, 48px 38px #fff, 211px 12px #fff, 374px 92px #fff, 97px 66px #fff, 260px 40px #fff, 422px 15px #fff, 145px 94px #fff, 308px 69px #fff, 31px 44px #fff, 194px 18px #fff, 356px 98px #fff;
    opacity: 0.7;
    animation: fo_wl_twinkle 2.4s ease-in-out infinite;
}

.fo_wl .fo_wl_rocket {
    position: absolute;
    top: 34px;
    left: 50%;
    width: 64px;
    height: 64px;
    margin-left: -32px;
    animation: fo_wl_bob 2.6s ease-in-out infinite;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

.fo_wl .fo_wl_flame {
    transform-origin: 50% 0;
    animation: fo_wl_flicker 0.18s ease-in-out infinite alternate;
}

.fo_wl .fo_wl_hill {
    position: absolute;
    right: -10%;
    bottom: -60px;
    left: -10%;
    height: 110px;
    border-radius: 50%;
    background: var(--lp-card);
}

.fo_wl .fo_wl_body {
    position: relative;
    padding: 6px 28px 0;
}

.fo_wl .fo_wl_av {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: -36px auto 0;
    border: 4px solid var(--lp-card);
    border-radius: 50%;
    background: linear-gradient(135deg, #5b3fd1, #1B75BC);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.22);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.fo_wl .fo_wl_av i {
    position: absolute;
    right: -1px;
    bottom: 1px;
    width: 15px;
    height: 15px;
    border: 3px solid var(--lp-card);
    border-radius: 50%;
    background: #a0a8b4;
}

.fo_wl .fo_wl_gm {
    margin-top: 12px;
    color: var(--lp-pri);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.fo_wl .fo_wl_body h2 {
    margin: 2px 0 0;
    padding: 0;
    font-size: 24px;
    font-weight: 700;
}

.fo_wl .fo_wl_body p {
    margin: 4px 0 0;
    font-size: 13.5px;
}

.fo_wl .fo_wl_meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.fo_wl .fo_wl_meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 11px;
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    background: var(--lp-soft);
    color: var(--lp-muted);
    font-size: 12px;
    font-weight: 600;
}

.fo_wl .fo_wl_meta svg {
    color: var(--lp-pri);
}

.fo_wl .swal2-actions.lp-acts {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    width: auto;
    margin: 22px 28px 24px;
}

.fo_wl .swal2-actions .lp-btn {
    justify-content: center;
    gap: 7px;
    height: 44px;
    font-size: 14px;
}

.fo_wl .swal2-actions .lp-btn-p {
    display: inline-flex;
    box-shadow: 0 6px 16px rgba(27, 117, 188, 0.35);
}

@keyframes fo_wl_twinkle {
    50% { opacity: 0.15; }
}

@keyframes fo_wl_bob {
    50% { transform: translateY(-6px); }
}

@keyframes fo_wl_flicker {
    to { transform: scaleY(1.35); }
}

@media (prefers-reduced-motion: reduce) {
    .fo_wl .fo_wl_head::before,
    .fo_wl .fo_wl_rocket,
    .fo_wl .fo_wl_flame {
        animation: none;
    }
}

/* === ONSITE (onsite_status.js) === */
/* The Onsite timer above the status buttons: counts up while Onsite */
.sidebar_container #flyout_onsite_timer {
    margin: 0 0 10px;
    padding: 6px;
    border: 1px solid #c7dcf0;
    border-radius: 8px;
    background: #e7f1fb;
    color: #1b75bc;
    text-align: center;
}

.sidebar_container #flyout_onsite_timer p {
    margin: 0;
    padding: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.sidebar_container #flyout_onsite_timer span {
    display: block;
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Team tab: the Onsite pill, badge and summary count */
.fo_sc_onsite,
.fo_st_onsite,
.fo_bd_onsite {
    background: #e7f1fb;
    color: #1b75bc;
}

/* "You're currently marked as Onsite" */
.swal2-popup.fo_onsite_pop .swal2-icon {
    border: 0;
    color: #1b75bc;
}

/* The coordinator's Mark as Onsite button in the Team manage window */
.fo_onsite_markrow {
    margin-top: 12px;
}

.fo_onsite_mark {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.fo_onsite_ic {
    display: inline-flex;
    color: #1b75bc;
}

/* Onsite (dark) */
.launchpad_dark .sidebar_container #flyout_onsite_timer {
    border-color: #2c4c6a;
    background: #13273a;
    color: #6fc3ff;
}

.launchpad_dark .fo_sc_onsite,
.launchpad_dark .fo_st_onsite,
.launchpad_dark .fo_bd_onsite {
    background: #13273a;
    color: #6fc3ff;
}

.launchpad_dark .swal2-popup.fo_onsite_pop .swal2-icon,
.launchpad_dark .fo_onsite_ic {
    color: #6fc3ff;
}

/* === PROJECT (onsite_status.js; design from launchpad-flyout.html) === */
/* Six status buttons: slightly narrower so they fit one row, as in the design */
.user_status_container ul {
    gap: 6px;
}

.fo_bx {
    width: 52px;
}

/* Team tab: the teal Project pill, badge and summary count */
.fo_sc_project,
.fo_st_project,
.fo_bd_project {
    background: #dff3f4;
    color: #0b7f86;
}

/* "Working on a project?" */
.fo_pjbody {
    text-align: center;
}

.fo_pjbody .fo_pji {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b7f86;
    background: #dff3f4;
}

.fo_pjbody h3 {
    margin: 14px 0 6px;
    font-size: 17px;
    font-weight: 700;
}

.fo_pjbody p {
    margin: 0;
    color: #5b6470;
    font-size: 13px;
    line-height: 1.55;
}

.fo_pjbody .fo_pjl {
    display: block;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #5b6470;
    margin: 16px 0 6px;
}

.fo_pjbody .fo_pjin {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ccd2da;
    border-radius: 9px;
    background: #ffffff;
    color: #1b1f24;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
    outline: none;
}

.fo_pjbody .fo_pjin::placeholder {
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
}

.fo_pjbody .fo_pjin:focus {
    border-color: #0b7f86;
    box-shadow: 0 0 0 3px #dff3f4;
}

.fo_pjbody .fo_pjin.fo_pj_bad {
    border-color: #c2362f;
}

.fo_pjbody .fo_pjerr {
    text-align: left;
    font-size: 11.5px;
    color: #c2362f;
    font-weight: 600;
    margin-top: 5px;
}

.swal2-popup.fo_project_pop .lp-btn.fo_pj_ok {
    background: #0b7f86;
    border-color: #0b7f86;
    color: #ffffff;
}

/* Project (dark) */
.launchpad_dark .fo_sc_project,
.launchpad_dark .fo_st_project,
.launchpad_dark .fo_bd_project,
.launchpad_dark .fo_pjbody .fo_pji {
    background: #12313a;
    color: #5fd0d6;
}

.launchpad_dark .fo_pjbody p,
.launchpad_dark .fo_pjbody .fo_pjl {
    color: #8a95a6;
}

.launchpad_dark .fo_pjbody .fo_pjin {
    border-color: #34445c;
    background: #0e131a;
    color: #e6ebf1;
}

.launchpad_dark .fo_pjbody .fo_pjin:focus {
    border-color: #5fd0d6;
    box-shadow: 0 0 0 3px #12313a;
}

.launchpad_dark .fo_pjbody .fo_pjin.fo_pj_bad {
    border-color: #ff8f8f;
}

.launchpad_dark .fo_pjbody .fo_pjerr {
    color: #ff8f8f;
}

.launchpad_dark .swal2-popup.fo_project_pop .lp-btn.fo_pj_ok {
    background: #5fd0d6;
    border-color: #5fd0d6;
    color: #0b1a1c;
}

/* The Project timer above the status buttons: counts up from 0 while on a project */
.sidebar_container #flyout_project_timer {
    margin: 0 0 10px;
    padding: 6px;
    border: 1px solid #b6e2e5;
    border-radius: 8px;
    background: #dff3f4;
    color: #0b7f86;
    text-align: center;
}

.sidebar_container #flyout_project_timer p {
    margin: 0;
    padding: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.sidebar_container #flyout_project_timer p b {
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.sidebar_container #flyout_project_timer > span {
    display: block;
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.launchpad_dark .sidebar_container #flyout_project_timer {
    border-color: #1f4f57;
    background: #12313a;
    color: #5fd0d6;
}

/* Ticket view (dark): description email, history, attachments, address */
.launchpad_dark .tp_addr_none,
.launchpad_dark .tp_fwh span,
.launchpad_dark .tp_quoted,
.launchpad_dark .tp_entry_preview,
.launchpad_dark .tp_entry_att,
.launchpad_dark .tp_entry_chev,
.launchpad_dark .tp_ath,
.launchpad_dark .tp_ats,
.launchpad_dark .tp_atf {
    color: #8a95a6;
}

.launchpad_dark .tp_wrap .tp_addr_btn {
    background: #0e131a;
    color: #3d9be0;
}

.launchpad_dark .tp_wrap .tp_addr_btn:hover {
    background: #13273a;
    border-color: #24486a;
}

.launchpad_dark .tp_desc_text.tp_desc_clamp.tp_desc_over::after {
    background: linear-gradient(rgba(22, 30, 40, 0), #161e28);
}

.launchpad_dark .tp_wrap a.tp_ln {
    color: #6fc3ff;
}

.launchpad_dark .tp_wrap a.tp_ln:hover {
    color: #9fd7ff;
}

.launchpad_dark .tp_sig {
    background: #1a2330;
    color: #8a95a6;
}

.launchpad_dark .tp_entry.tp_open .tp_entry_chev {
    color: #3d9be0;
}

.launchpad_dark .tp_atl {
    background: #121922;
}

.launchpad_dark .tp_ath {
    background: #161e28;
}

.launchpad_dark .tp_atr:hover {
    background: #18212d;
}

.launchpad_dark .tp_atf b {
    color: #e6ebf1;
}

.launchpad_dark .tp_fi.tp_fi_img {
    background: #13273a;
    color: #3d9be0;
}

.launchpad_dark .tp_fi.tp_fi_pdf {
    background: #3a1d1f;
    color: #ff8f8f;
}

.launchpad_dark .tp_fi.tp_fi_doc {
    background: #241f3d;
    color: #b9a2ff;
}

/* Attachment preview (dark) */
.launchpad_dark .tp_pv {
    background: rgba(0, 0, 0, 0.65);
}

.launchpad_dark .tp_pv_box {
    background: #121922;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.launchpad_dark .tp_pv_head {
    color: #e6ebf1;
}

.launchpad_dark .tp_pv_x {
    color: #8a95a6;
}

.launchpad_dark .tp_pv_x:hover {
    color: #e6ebf1;
}

.launchpad_dark .tp_pv_body {
    background: #0e131a;
}

.launchpad_dark .tp_atr.tp_atr_none,
.launchpad_dark .tp_atr.tp_atr_foot {
    color: #8a95a6;
}


/* === ILLUSTRATED ICONS (flyout_illustrations(); design from launchpad-flyout-search.html) === */
/* --k is the icon's colour; the drawings use the other values for their shades. */
.fo_ico {
    --k: #1b75bc;
    --btn: #ffffff;
    --c1: var(--k);
    --c2: color-mix(in srgb, var(--k) 32%, var(--btn));
    --c3: color-mix(in srgb, var(--k) 60%, #000000);
    --w: var(--btn);
    --cf: color-mix(in srgb, var(--k) 55%, #000000);
    --fm: #f6e7cc;
    --gl: color-mix(in srgb, var(--k) 22%, #ffffff);
    --hl: #f5c04a;
    --tl: #e5534b;
    --lt: #56b05a;
    --ch: #f5c04a;
    --sd: #fff4dc;
    flex: none;
    overflow: visible;
}

.fo_ico * {
    transform-box: fill-box;
}

.fo_ico [transform] {
    transform-box: view-box;
}

.fo_ik_office {
    --k: #3e5ba9;
}

.fo_ik_lunch {
    --k: #e07a10;
}

.fo_ik_break {
    --k: #8b5a2b;
}

.fo_ik_training {
    --k: #5b3fd1;
}

.fo_ik_project {
    --k: #0b7f86;
}

.fo_ik_onsite {
    --k: #1b75bc;
}

.fo_ik_ticket {
    --k: #e98a2b;
}

.fo_ik_inbox {
    --k: #1b75bc;
}

.fo_ik_accept {
    --k: #2e9d57;
}

.fo_ik_back {
    --k: #5b6470;
}

.fo_ik_note {
    --k: #1b75bc;
}

.fo_ik_te {
    --k: #2e9d57;
}

.fo_ik_reset {
    --k: #b86a00;
}

.fo_ik_clear {
    --k: #b23a2e;
}

.fo_ik_hist {
    --k: #5b6470;
}

/* On a filled button the drawing turns white */
.fo_btn.fo_btn_g .fo_ico,
.fo_btn.fo_btn_primary .fo_ico {
    --c1: #ffffff;
    --c2: rgba(255, 255, 255, 0.55);
    --c3: rgba(255, 255, 255, 0.85);
    --w: var(--k);
}

/* Your status: each button in its icon's colour; on = filled */
.fo_bb .fo_bx {
    border-color: color-mix(in srgb, var(--k) 35%, var(--line));
    border-radius: 9px;
    background: color-mix(in srgb, var(--k) 7%, #ffffff);
    transition: background 0.18s, border-color 0.18s, transform 0.12s;
}

.fo_bb:hover .fo_bx {
    border-color: var(--k);
}

.fo_bb:active .fo_bx {
    transform: scale(0.94);
}

.fo_bb.status_active .fo_bx {
    border-color: var(--k);
    background: var(--k);
    box-shadow: 0 3px 10px color-mix(in srgb, var(--k) 40%, transparent);
}

.fo_bb.status_active .fo_bl {
    color: var(--k);
}

.fo_bb.status_active .fo_ico {
    --c1: #ffffff;
    --c2: rgba(255, 255, 255, 0.55);
    --c3: rgba(255, 255, 255, 0.9);
    --w: var(--k);
    --gl: var(--k);
    --hl: #ffe08a;
    --tl: rgba(255, 255, 255, 0.7);
    --lt: rgba(255, 255, 255, 0.7);
    --ch: #ffe08a;
    --sd: var(--k);
}

.fo_bb.status_active .fo_ik_onsite {
    --c3: color-mix(in srgb, var(--k) 45%, #0b1a2c);
}

.fo_bb.status_active .fo_ik_project {
    --c2: rgba(255, 255, 255, 0.8);
    --c3: rgba(255, 255, 255, 0.55);
}

.fo_bb.status_active .fo_ik_lunch {
    --c3: color-mix(in srgb, var(--k) 55%, #000000);
}

/* Signed out: Sign in stays red until you sign in */
#status_signedin.fo_bb:not(.status_active),
#status_signedin.fo_bb:not(.status_active) .fo_ico {
    --k: #c2362f;
}

/* Your current tickets: the actions */
.fo_c {
    width: 38px;
    height: 36px;
}

.fo_c .fo_ico {
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6));
}

.sidebar_container a.fo_ab:hover .fo_c .fo_ico {
    filter: none;
}

/* Search button joined to the field; New kept apart */
.fo_srow {
    gap: 12px;
}

.fo_sjoin {
    display: flex;
    flex: 1;
    min-width: 0;
}

.fo_sjoin .fo_inp {
    flex: 1;
    width: auto;
    min-width: 0;
    border-right: 0;
    border-radius: 8px 0 0 8px;
}

.fo_sjoin .fo_inp:focus-within {
    box-shadow: none;
}

.fo_srow > .fo_ib {
    flex: none;
}

.fo_sgo {
    margin: 0;
    padding: 0 14px;
    border: 1px solid #1b75bc;
    border-radius: 0 8px 8px 0;
    background: #1b75bc;
    color: #ffffff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.12s;
}

.fo_sgo:hover {
    filter: brightness(1.08);
}

.fo_sgo:focus-visible {
    outline: 2px solid #1b75bc;
    outline-offset: 2px;
}

/* Team: the coordinator's crown, tilted on the first letter of the name */
.fo_cap {
    position: relative;
    display: inline-block;
}

.fo_cap .fo_crown {
    position: absolute;
    left: -5px;
    top: -8px;
    width: 14px;
    height: 11.5px;
    margin: 0;
    transform: rotate(-24deg);
    transform-origin: 50% 100%;
    filter: drop-shadow(0 1.5px 1px rgba(0, 0, 0, 0.3));
}

.fo_cap .fo_crown svg {
    display: block;
    filter: none;
}

/* Small animations: status buttons while on, the actions on hover */
@keyframes fo_bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1.4px); }
}

@keyframes fo_steam {
    0% { opacity: 0; transform: translateY(3px); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-3px); }
}

@keyframes fo_swing {
    0%, 100% { transform: rotate(-14deg); }
    50% { transform: rotate(14deg); }
}

@keyframes fo_peek {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes fo_blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@keyframes fo_dash {
    0% { opacity: 0; transform: translateX(2px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-3px); }
}

@keyframes fo_drop {
    0%, 100% { transform: translateY(-1.5px); }
    50% { transform: translateY(1.5px); }
}

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

.fo_ik_onsite .spd {
    opacity: 0;
}

.fo_ik_onsite .whl rect {
    transform-box: view-box;
}

.fo_bb.status_active .fo_ik_onsite .car {
    animation: fo_bob 0.5s ease-in-out infinite;
}

.fo_bb.status_active .fo_ik_onsite .spd {
    animation: fo_dash 0.7s linear infinite;
}

.fo_bb.status_active .fo_ik_onsite .whl {
    transform-origin: center;
    animation: fo_turn 0.6s linear infinite;
}

.fo_bb.status_active .fo_ik_break .steam {
    animation: fo_steam 1.8s ease-in-out infinite;
}

.fo_bb.status_active .fo_ik_lunch .bun {
    animation: fo_bob 1.2s ease-in-out infinite;
}

.fo_bb.status_active .fo_ik_training .tassel {
    transform-origin: 50% 0;
    animation: fo_swing 1.4s ease-in-out infinite;
}

.fo_bb.status_active .fo_ik_project .paper {
    animation: fo_peek 1.6s ease-in-out infinite;
}

.fo_bb.status_active .fo_ik_office .win rect:nth-child(odd) {
    animation: fo_blink 2.4s ease-in-out infinite;
}

.fo_bb.status_active .fo_ik_office .win rect:nth-child(even) {
    animation: fo_blink 2.4s ease-in-out 1.2s infinite;
}

.fo_bb:hover .fo_ico {
    animation: fo_bob 0.6s ease-in-out 1;
}

.fo_btn:hover .fo_ik_inbox .arr {
    animation: fo_drop 1.4s ease-in-out infinite;
}

.fo_ik_te .hand {
    transform-origin: 0 100%;
}

.fo_ik_reset .spin {
    transform-origin: 50% 50%;
}

.fo_ab:hover .fo_ik_note .pen {
    animation: fo_bob 0.5s ease-in-out 2;
}

.fo_ab:hover .fo_ik_reset .spin {
    animation: fo_turn 0.8s ease-in-out 1;
}

.fo_ab:hover .fo_ik_te .hand {
    animation: fo_turn 1.2s linear 1;
}

@media (prefers-reduced-motion: reduce) {
    .fo_ico,
    .fo_ico * {
        animation: none !important;
    }
}

/* Illustrated icons (dark) */
.launchpad_dark .fo_ico {
    --btn: #0b0f16;
}

.launchpad_dark .fo_ik_office {
    --k: #8da6ee;
}

.launchpad_dark .fo_ik_lunch {
    --k: #f6a04d;
}

.launchpad_dark .fo_ik_break {
    --k: #d19a66;
}

.launchpad_dark .fo_ik_training {
    --k: #b9a2ff;
}

.launchpad_dark .fo_ik_project {
    --k: #5fd0d6;
}

.launchpad_dark .fo_ik_onsite,
.launchpad_dark .fo_ik_inbox,
.launchpad_dark .fo_ik_note {
    --k: #6fc3ff;
}

.launchpad_dark .fo_ik_ticket {
    --k: #f0a040;
}

.launchpad_dark .fo_ik_accept,
.launchpad_dark .fo_ik_te {
    --k: #5fd38a;
}

.launchpad_dark .fo_ik_back,
.launchpad_dark .fo_ik_hist {
    --k: #aab4c0;
}

.launchpad_dark .fo_ik_reset {
    --k: #f2b84b;
}

.launchpad_dark .fo_ik_clear {
    --k: #f08a80;
}

.launchpad_dark #status_signedin.fo_bb:not(.status_active),
.launchpad_dark #status_signedin.fo_bb:not(.status_active) .fo_ico {
    --k: #ff8f8f;
}

.launchpad_dark .fo_bb .fo_bx {
    border-color: color-mix(in srgb, var(--k) 35%, var(--line));
    background: color-mix(in srgb, var(--k) 7%, #0b0f16);
}

.launchpad_dark .fo_bb:hover .fo_bx {
    border-color: var(--k);
}

.launchpad_dark .fo_bb.status_active .fo_bx {
    border-color: var(--k);
    background: var(--k);
}

.launchpad_dark .fo_bb.status_active .fo_bl {
    color: var(--k);
}

.launchpad_dark .fo_c .fo_ico {
    filter: none;
}

.launchpad_dark .fo_sgo {
    border-color: #3d9be0;
    background: #3d9be0;
    color: #ffffff;
}
