body {
    font-family: arial, sans-serif;
    font-size: 150%;
    /*background-color: #e5d4b9;*/
    background-color: white;
}

.Wt-auth-logged-in {
    text-align: right;
}

.Wt-auth-icon {
    cursor: pointer;
    cursor: hand;
    padding-left: 4px;
    padding-right: 4px;
}

/*.Wt-auth-registration {*/
/*    width: 600px;*/
/*}*/

.Wt-auth-login {
    width: 80vw;
    margin: auto;
}

/* Framework auth forms (JWt's Bootstrap 3 templates) put each label in a col-sm-2 column
   beside a col-sm-8 input. In the registration dialog and the narrow Procore sign-in card
   that wraps every label ("Email / address") and leaves the inputs a third of the width,
   so stack label over a full-width input there. (YakDocs' standalone page: .yd-auth-card.) */
.Wt-auth-registration { max-width: 100%; }
.Wt-auth-registration > p { display: none; } /* "Please complete…" / "Register using a user name…": the dialog title says it */
.Wt-auth-registration .form-horizontal .form-group,
.procore-auth-choice .form-horizontal .form-group { margin: 0 0 1.125rem; }
.Wt-auth-registration .form-horizontal .control-label,
.Wt-auth-registration .form-horizontal .form-group > [class*="col-sm-"],
.procore-auth-choice .form-horizontal .control-label,
.procore-auth-choice .form-horizontal .form-group > [class*="col-sm-"] {
    float: none;
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: left;
}
.Wt-auth-registration .form-horizontal .control-label,
.procore-auth-choice .form-horizontal .control-label {
    display: block;
    margin-bottom: .375rem;
    font-size: 1rem;
    font-weight: 600;
}
.Wt-auth-registration .form-horizontal .form-control,
.procore-auth-choice .form-horizontal .form-control {
    width: 100%;
    height: auto;
    min-height: 2.75rem;
    padding: .5rem .75rem;
    font-size: 1rem;
}
.Wt-auth-registration .form-horizontal .help-block,
.procore-auth-choice .form-horizontal .help-block {
    margin: .375rem 0 0;
    font-size: .9375rem;
    line-height: 1.4;
}
.Wt-auth-registration .form-horizontal .modal-footer { padding: 1rem 0 0; margin-top: .25rem; }
.procore-auth-choice .Wt-auth-login { width: 100%; margin: 0; }
.procore-auth-choice .Wt-auth-login .btn-link { display: inline; width: auto; }

.my-btn {
    width: 100px;
    height: 50px;
    background-color: #942a25;
    color: #0e0e0e;
}

/** Make Opentip visible over overlays **/
.opentip-container {
    z-index: 7000 !important;
}

/*
 * Override some bootstrap styles.
 */

/*
 * Do not show informational help, only errors.
 */
.form-horizontal .help-inline > span {
    display: none;
}

.control-group.error .help-inline > span {
    display: inline-block;
}

.control-group.success .control-label,
.control-group.success .help-inline {
    color: inherit;
}

/* Dialog bodies must never outgrow the viewport.
   This used to be `.modal-body { max-height: none }` ("do not constrain"),
   which is exactly what made long dialogs unusable fleet-wide: JWt's layout
   engine also writes an INLINE `max-height:100%` on .modal-body, and since the
   .Wt-dialog ancestor has no resolved height that 100% resolves to the content
   height — so the body grows unbounded and the adjacent `overflow-y:auto` can
   never fire. A long WMessageBox (e.g. YakDocs' Field Type Reference: 4089px
   body in a 900px viewport) then pushes its footer/Ok button off-screen with
   no way to scroll, leaving the backdrop as the only exit.

   Cap the body at the viewport and let it scroll instead. !important is
   required, not defensive: the cap competes with Wt's INLINE declaration, not
   merely with other stylesheets, and does nothing without it. vh resolves
   against the viewport (not the unbounded parent), so it holds however Wt
   sizes the ancestor wrappers. Dialogs shorter than the cap are unaffected;
   the fixed-height .long-text-modal / .internal-long-text-modal variants set
   their height on .modal-content, not the body, so they are untouched too.
   Shared across every JWt app via BaseApplication's /rsc/css/style.css. */
.Wt-dialog .modal-body {
    max-height: 70vh !important;
    overflow-y: auto;
    overscroll-behavior: contain;   /* don't scroll the page behind at the ends */
}



/**
 *
 */
.pointer {
    cursor: pointer;
}
.basic-container {
    padding: 30px;
}
.centered-text {
    text-align: center;
}
.standard-padding {
    padding: 1.5rem;
}

.scroll {
    overflow-y: scroll;
    margin: auto;
}

.fh
{
    height: 100%;
}
.flex {
    display: flex;
}
.flex-row {
    display: flex;
    flex-direction: row;
}
.flex-col {
    display: flex;
    flex-direction: column;
}
.side-scroll-max {
    max-height: calc(100vh - 115px);
    overflow-y: scroll;
}

/** AppFrame **/

.navbar-collapse {
    background: white;
}

/** Query Widget */
.query-widget {
    display: flex;
    flex-direction:column;
}
.query-widget .header-container {
    /*display: table-row;*/
    display: flex;
    flex-direction: row;

    width: 100%;
    margin-left: 15px;
}
.query-widget .title {
    /*display: table-cell;*/
    width: 50%;
    font-weight: bold;
    padding-left: 15px;
    padding-right: 15px; /* new todo: check suitability */
    margin-top: 0 !important;;
    margin-bottom: 0 !important;;

}
.query-widget .timestamp {
    /*display: table-cell;*/
    width: 50%;
    text-align:right;
    padding-right: 15px;
}
.query-widget .query-text {
    /*display: table-cell;*/
    width: 100%;
    /*height: 100px;*/
    padding: 15px;
}

.query-widget .ace_editor, .query-text>div {
    height: 150px;
}


/** Help Text Tab **/
.help-text-tab {
    padding: 1.5rem;
}

/** Other **/
table.pricing-table {
    text-align: center;

}
table.pricing-table th, table.pricing-table td {
    text-align: center;
    padding: 15px;
}


/** Page Styles **/

.navbar-header, .navbar-collapse {
    background-color: #2c3e50;
}

.query-page-sidebar {
    background-color: #ecf0f1;
    min-width: 500px;
    /*margin-left: 3em;*/
    /*height: 89vh;*/
    /*overflow-y: scroll;*/
    box-shadow: 1px 1px 3px 1px #ccc;
    border-radius: 4px;
}
.query-page-sidebar-contents-stack {
    padding: 15px;
    background-color: #ecf0f1;
}

li.active {
    color: gold;
}


.Wt-stack.contents
{
    /*height: 90vh;*/
    /*height: 92.5vh;*/
    /*height: 93.5vh;*/
    min-height: calc( 100vh - 72px );
    position: relative;
    top:0;
    left:0;
    width: 100%;

    padding-top:21px;
    /*margin-top: -60px;*/
    overflow: hidden;

    /*z-index: 1;*/
    overflow-y: auto;
}
.Wt-stack.contents > div {
    position: relative;

}
* {
    box-sizing: border-box;
}


/** Dashboard **/
.navbar {
    height: 60px !important;
    z-index: 2;
    margin-bottom: 0 !important;
    box-shadow: 1px 2px 3px 1px #ccc;
}

.sortable { list-style-type: none; margin: 0; padding: 0; /*width: 450px; // unconstrained width for now */ }
.sortable li { margin: 3px 3px 3px 0; /*padding: 1px;*/ float: left; /*width: 300px; height: 300px;*/ /*font-size: 4em;*/ text-align: center;
    height: 450px; overflow-y: auto; padding: 30px;
    position: relative;
}

.widget-delete {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.dashboard-item {
    background-color: #f5f5f5;
    border: 1px #ddd;
    -webkit-box-shadow: 1px 1px 3px 1px #ccc;
    -moz-box-shadow: 1px 1px 3px 1px #ccc;
    box-shadow: 1px 1px 3px 1px #ccc;
    margin: 15px !important;
}

/** Loading screen */

.Wt-loading {
    z-index: 3;
}

/* Loading indicator — Wt/JWt's WDefaultLoadingIndicator ("Loading..." top right).
   The toolkit injects `div.Wt-loading { background-color: red; color: white;
   font-size: small; position: absolute; right: 0; top: 0 }` as an inline <style>,
   so a bare `.Wt-loading` rule is a specificity point short and never applies;
   `body div.Wt-loading` (0,1,2) beats it without !important. Product themes can
   still restyle it with a scoped rule such as `.yd-azure .Wt-loading` (0,2,0).
   Recolour per product via --loading-bg/--loading-fg/--loading-border/--loading-dot;
   otherwise it follows the shared tokens (--surface/--text/--accent) when present.
   `display` is deliberately NOT set: Wt toggles it inline to show/hide, and apps
   that hide the indicator with `.Wt-loading { display: none }` stay hidden.
   NOTE: this must live HERE, not in ../css/style.css. Every live Jak product loads
   /rsc/css/style.css via BaseApplication.useVersionedStyleSheet; the near-identical
   /css/style.css is not served to anyone. */
body div.Wt-loading {
    position: fixed;
    top: 0.75rem;
    right: 1rem;
    left: auto;
    z-index: 10000;
    box-sizing: border-box;
    padding: 0.375rem 0.875rem 0.375rem 0.75rem;
    background: var(--loading-bg, var(--surface, #ffffff));
    color: var(--loading-fg, var(--text, #1b2434));      /* ≥ 12:1 on the default bg */
    border: 1px solid var(--loading-border, var(--surface-border, rgba(27, 36, 52, 0.14)));
    border-radius: 999px;
    box-shadow: 0 0.25rem 1rem -0.25rem rgba(15, 23, 42, 0.28), 0 1px 2px rgba(15, 23, 42, 0.10);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}
body div.Wt-loading::before {
    content: "";
    display: inline-block;
    vertical-align: -0.0625rem;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--loading-dot, var(--accent, #2f6fdb));
    animation: yw-loading-pulse 1.2s ease-in-out infinite;
}
@keyframes yw-loading-pulse {
    0%, 100% { opacity: 1;    transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.7); }
}
@media (prefers-reduced-motion: reduce) {
    body div.Wt-loading::before { animation: none; }
}
@media (max-width: 480px) {
    body div.Wt-loading { top: 0.5rem; right: 0.5rem; }
}

/** Live Feed **/
.live-feed-id {
    color: goldenrod;
}

/** Pages **/
.dashboard-page-body {
    padding-left: 30px;
    padding-right: 30px;
}

.live-feed-page-body {
    text-align: center;
    padding-left: 30px;
    padding-right: 30px;
}
.live-feed-page-body>* {
    text-align: left;
}


/** Progress Bar */
.progress {
    height: 21px !important;
    min-height: 40px;
    color: white;
}

/** Lists **/
.list-group {
    box-shadow: 1px 1px 3px 1px #ccc;
}

/** Footer **/
.basic-page {
    width: 100%;
    padding: 30px;
    position: relative;
}
/** If modifying this height or the sticky header height/padding, we need to modify `.Wt-stack.contents` as well */
.footed-page {
    /*min-height: 100%;*/
    width: 100%;
    padding: 30px;
    position: relative;
    /*min-height: calc(100vh - 50px);*/
    min-height: calc(100vh - 72px);
    padding-bottom: 70px;
}
.footer {
    /*width: 100%;*/
    height: 30px;
    background-color: #ecf0f1;
    position:absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 60px;
}


/** Loader Widget **/
.loader-widget {
    position:fixed;
    top:0;
    left:0;
    background:rgba(0,0,0,0.6);
    z-index:5000;
    width:100%;
    /*height:100%;*/
    height: 100vh;
}
.over-text {
    margin: 35% auto 0 auto;
    max-width: 300px;
    z-index: 1000;
    padding: 10px;
    background: #fff;
    text-align: center;
    font-size: 2em;
    border-radius: 4px;
    border: 1px solid #2c3e50;
    color: #2c3e50;
}

/** Long text modals **/
.long-text-modal {
    /*overflow-y: scroll;*/
    overflow-y: auto;
}

.internal-long-text-modal .Wt-msgbox-text {
    overflow-y: scroll;
    max-height: 300px;
    padding: 20px;
}

/* WMessageBox: prevent icon/text overlap (float + fixed 25px icon fails at
   larger rem body sizes). Flex replaces the bootstrap/JWT float layout. */
.Wt-msgbox-body,
.modal-dialog .modal-body.Wt-msgbox-body,
.Wt-dialog .Wt-msgbox-body {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.Wt-msgbox-icon,
.modal-dialog .modal-body .Wt-msgbox-icon,
.Wt-dialog .Wt-msgbox-icon {
    float: none !important;
    display: block;
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    margin: 0.15rem 0 0 0 !important;
    line-height: 1;
    font-size: 2rem;
}
.Wt-msgbox-text,
.modal-dialog .modal-body .Wt-msgbox-text,
.Wt-dialog .Wt-msgbox-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    margin: 0;
    line-height: 1.55;
}
.Wt-msgbox-text p {
    margin: 0 0 0.5rem;
}
.Wt-msgbox-text p:last-child {
    margin-bottom: 0;
}

.trial-expired-dialog {
    max-width: min(28rem, 94vw);
}
.trial-expired-gate {
    max-width: 36rem;
    margin: 2rem auto;
    padding: 1.5rem 1.75rem;
    border: 1px solid #e6e1d4;
    border-radius: 0.75rem;
    background: #fff;
}
.trial-expired-gate__title {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}
.trial-expired-gate__body {
    display: block;
    color: #565f72;
    line-height: 1.55;
    margin: 0 0 1.1rem;
}
.trial-expired-gate .btn,
.trial-expired-gate a.btn {
    display: inline-block;
    text-decoration: none;
}

/** ClearFix **/
.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

/*.clearfix {
    display: inline-block;
}*/

html[xmlns] .clearfix {
    display: block;
}

* html .clearfix {
    height: 1%;
}

/**
 * Universal Styling
 */
.label-header {
    font-weight: bold;
}


/** Stripe Elements Base Styling */

.globalContent {
    -ms-flex-positive: 1;
    flex-grow: 1;
}

@font-face {
    font-family: StripeIcons;
    src: url(data:application/octet-stream;base64,d09GRk9UVE8AAAZUAAoAAAAAB6AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAADKAAAAx8AAAOKkWuAp0dTVUIAAAZIAAAACgAAAAoAAQAAT1MvMgAAAXAAAABJAAAAYGcdjVZjbWFwAAACvAAAAFYAAACUKEhKfWhlYWQAAAD8AAAAMAAAADYJAklYaGhlYQAAAVAAAAAgAAAAJAYoAa5obXR4AAABLAAAACQAAAAoEOAAWW1heHAAAAD0AAAABgAAAAYAClAAbmFtZQAAAbwAAAD%2FAAABuXejDuxwb3N0AAADFAAAABMAAAAg%2F7gAMgAAUAAACgAAeNpjYGRgYABifeaSpHh%2Bm68MzMwHgCIMl08yqyDo%2F95Mkcy8QC4zAxNIFAD8tAiweNpjfMAQyfiAgYEpgoGBcQmQlmFgYPgAZOtAcQZEDgCHaQVGeNpjYGRgYD7z34eBgSmCgeH%2Ff6ZIBqAICuACAHpYBNp42mNgZtzAOIGBlYGDqYDJgYGBwQNCMwYwGDEcA%2FKBUthBqHe4H4MDg4L6Imae%2Fz4MB5jPMGwBCjOC5Bi9mKYAKQUGBgAFHgteAAAAeNplkMFqwkAURU9itBVKF6XLLrLsxiGKMYH0B4IgoqjdRokajAmNUfolhX5Df7IvZhBt5zHMeffduQwDPPCFQbWM81mzyZ3uocEz95qtK0%2BTN140t2jzLk7DaotiEmk2eWSlucErH5otnvjW3OSTH82tSg8n8eaYRkVXOY4TzIaLURB2tDaPi0OSZ3Y9G09tx6lxm5erPDtVA%2BX7wT7axXm5Vmmy7ClXDfqe515CCJkQs%2BFIKk8t6KJwzhUwY8iCkVBI54%2FvvzKXruBAQk6GfZM0ZipKxdfqVpylfErlP11uKHypgL2k7iSz8qxFTSV5SU%2FIlT2gjyfl%2FgKN9EDsAHjaY2BgYGaA4DAGRgYQkAHyGMF8NgYrIM3JIAHEEACj8QNOBhYGOyDNAYRMQFpBcZL6ov%2F%2Foaw5%2F%2F%2F%2Ff3kvH8iD2McCxExAO1kYWIE2cjCwAwAgUQwvAAB42mNgZgCD%2F1sZjBiwAAAswgHqAHjaNVFbbxNHGN2JMmtlNnIoZFFx1F2nDoTWgJLIhRQqWlRowyXiUkqE1IZLVW0dJzHYjpAhxnbYi8HXdWxsEKCIi0DdqjxVyhOKkBBS%2FdAX%2FkJfmiCe0Gz4orbjLNFo5uj79B19Z85BXGsLhxAiB7ef%2BFmZGj8XaVb9dgdn%2B5Dd02J%2F2JqFIXtpeQ5Lc6h1YzKbXcN2F%2F2qg373wZ3ly%2Bs5gpCwfpO3d8dnXwyfOheJhC9FgsovsanJ4MCuzw84sN%2BBb1Zh34ADfU7za6fq%2Fyl8Ib7K9E4Eo9HgpHLQu6aL45CB8ug6yqAbKIeyqMAhjjD1nM49596hbqQgHf2B%2Fm5xt3S8sqXlORFe%2FHuSvuD3vesUQ4eVxjgEfm08PWK5%2FoF14lBjDAJvXI0xMRS0%2BMVjbGLIbzV%2BP2y5aOC46IfAb7TzT5cFbSJwEKCc9eXifGgqtOBahN3vWy7aOS76f1zkrVNiaNw1NIpfhyBg8X%2FN428t3v2KJl6KtVqxWpXpCD2Bq5XZW3XPrWv1dMVHEmZy9pr8dhsGdQuhKt%2FTh9Mz6nTCE34Yeyy56byfUHMzqaWrEpRpHldmrpqJrosXPyV0N%2BzAsMJYKzwMwjacTmtXGe9%2B7InkrtPz3aRoaIWPSUEtGjL1wUcYFnoJXeChG7qwpmfUHkI30XsvRdMsmKZMs9TwEsjR67ik6%2Fk14hk4jVcGe4k9yMMojGDNyKiqRy1opi5phUrG7HLDnkfdxOHktZIu072wB9jFhpHReoj3UXNF3lmReb%2FC0eaMx%2BESO1NY1w2myfuMuXW7VKvJ9CQ9im9Wy3XmllpLVX0kWUzNpmW6E%2FrY8ePkjLaV%2FPCMWVTeTJidTYtyuJpuWhSOMYsuwBhMgNK0dCtxS3O7%2Fmtvy7YL9lKn7RfvbODaEerw%2BXfuPfT92WDkiopLpaJZ9pQNUy9JAlNdyjVVH6PDTDV7saB2TadSCVWQYIQeZ2F8QgTVM30zdZtFlcOVSmU1WYFXolFFeRB9Kgt8PJmMx2vJu7IwvZoOS9XRFwsLsXCylKjMyGxXrV5kXxb%2BBxsddR0AAAEAAAAAAAAAAAAA)
    format("woff");
}

.container,
.container-fluid,
.container-lg,
.container-wide,
.container-xl {
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-lg {
    max-width: 1040px;
}
/*.container,
.container-lg {
    max-width: 1040px;
}*/
/*.max-width-container {
    max-width: 1040px;
}*/

.container-wide,
.container-xl {
    max-width: 1160px;
}

.common-SuperTitle {
    font-weight: 300;
    font-size: 45px;
    line-height: 60px;
    color: #32325d;
    letter-spacing: -.01em;
}

@media (min-width: 670px) {
    .common-SuperTitle {
        font-size: 50px;
        line-height: 70px;
    }
}

.common-IntroText {
    font-weight: 400;
    font-size: 21px;
    line-height: 31px;
    color: #525f7f;
}

@media (min-width: 670px) {
    .common-IntroText {
        font-size: 24px;
        line-height: 36px;
    }
}

.common-BodyText {
    font-weight: 400;
    font-size: 17px;
    line-height: 26px;
    color: #6b7c93;
}

.common-Link {
    color: #6772e5;
    font-weight: 500;
    transition: color 0.1s ease;
    cursor: pointer;
}

.common-Link:hover {
    color: #32325d;
}

.common-Link:active {
    color: #000;
}

.common-Link--arrow:after {
    font: normal 16px StripeIcons;
    content: "\2192";
    padding-left: 5px;
}

.common-Button {
    white-space: nowrap;
    display: inline-block;
    height: 40px;
    line-height: 40px;
    padding: 0 14px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    background: #fff;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #6772e5;
    text-decoration: none;
    transition: all 0.15s ease;
}

.common-Button:hover {
    color: #7795f8;
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.common-Button:active {
    color: #555abf;
    background-color: #f6f9fc;
    transform: translateY(1px);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.common-Button--default {
    color: #fff;
    background: #6772e5;
}

.common-Button--default:hover {
    color: #fff;
    background-color: #7795f8;
}

.common-Button--default:active {
    color: #e6ebf1;
    background-color: #555abf;
}

.common-Button--dark {
    color: #fff;
    background: #32325d;
}

.common-Button--dark:hover {
    color: #fff;
    background-color: #43458b;
}

.common-Button--dark:active {
    color: #e6ebf1;
    background-color: #32325d;
}

.common-Button--disabled {
    color: #fff;
    background: #aab7c4;
    pointer-events: none;
}

.common-ButtonIcon {
    display: inline;
    margin: 0 5px 0 0;
    position: relative;
}

.common-ButtonGroup {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: -10px;
}

.common-ButtonGroup .common-Button {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin: 10px;
}

/** Page-specific styles */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(1turn);
    }
}

@keyframes void-animation-out {
    0%,
    to {
        opacity: 1;
    }
}

body {
    overflow-x: hidden;
    /*background-color: #f6f9fc;*/
}

main {
    position: relative;
    display: block;
    z-index: 1;
}

.stripes {
    position: absolute;
    width: 100%;
    transform: skewY(-12deg);
    height: 950px;
    top: -350px;
    background: linear-gradient(180deg, #e6ebf1 350px, rgba(230, 235, 241, 0));
}

.stripes .stripe {
    position: absolute;
    height: 190px;
}

.stripes .s1 {
    height: 380px;
    top: 0;
    left: 0;
    width: 24%;
    background: linear-gradient(90deg, #e6ebf1, rgba(230, 235, 241, 0));
}

.stripes .s2 {
    top: 380px;
    left: 4%;
    width: 35%;
    background: linear-gradient(
            90deg,
            hsla(0, 0%, 100%, 0.65),
            hsla(0, 0%, 100%, 0)
    );
}

.stripes .s3 {
    top: 380px;
    right: 0;
    width: 38%;
    background: linear-gradient(90deg, #e4e9f0, rgba(228, 233, 240, 0));
}

main > .container-lg {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    position: relative;
    max-width: 750px;
    padding: 110px 20px 110px;
}

main > .container-lg .cell {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    -ms-flex: auto;
    flex: auto;
    min-width: 100%;
    min-height: 500px;
    padding: 0 40px;
}

main > .container-lg .cell + .cell {
    margin-top: 70px;
}

main > .container-lg .cell.intro {
    padding: 0;
}

@media (min-width: 670px) {
    main > .container-lg .cell.intro {
        -ms-flex-align: center;
        align-items: center;
        text-align: center;
    }

    .optionList {
        margin-left: 13px;
    }
}

main > .container-lg .cell.intro > * {
    width: 100%;
    max-width: 700px;
}

main > .container-lg .cell.intro .common-IntroText {
    margin-top: 10px;
}

main > .container-lg .cell.intro .common-BodyText {
    margin-top: 15px;
}

main > .container-lg .cell.intro .common-ButtonGroup {
    width: auto;
    margin-top: 20px;
}

main > .container-lg .example {
    -ms-flex-align: center;
    align-items: center;
    border-radius: 4px;
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    padding: 80px 0px;
    margin-left: -20px;
    margin-right: -20px;
}

@media (min-width: 670px) {
    main > .container-lg .example {
        padding: 40px;
    }
}

main > .container-lg .example.submitted form,
main > .container-lg .example.submitting form {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

main > .container-lg .example.submitted .success,
main > .container-lg .example.submitting .success {
    pointer-events: all;
}

main > .container-lg .example.submitting .success .icon {
    opacity: 1;
}

main > .container-lg .example.submitted .success > * {
    opacity: 1;
    transform: none !important;
}

main > .container-lg .example.submitted .success > :nth-child(2) {
    transition-delay: 0.1s;
}

main > .container-lg .example.submitted .success > :nth-child(3) {
    transition-delay: 0.2s;
}

main > .container-lg .example.submitted .success > :nth-child(4) {
    transition-delay: 0.3s;
}

main > .container-lg .example.submitted .success .icon .border,
main > .container-lg .example.submitted .success .icon .checkmark {
    opacity: 1;
    stroke-dashoffset: 0 !important;
}

main > .container-lg .example * {
    margin: 0;
    padding: 0;
}

main > .container-lg .example .caption {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    padding: 15px 10px 0;
    color: #aab7c4;
    font-family: Roboto, "Open Sans", "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 500;
}

main > .container-lg .example .caption * {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

main > .container-lg .example .caption .no-charge {
    color: #cfd7df;
    margin-right: 10px;
}

main > .container-lg .example .caption a.source {
    text-align: right;
    color: inherit;
    transition: color 0.1s ease-in-out;
    margin-left: 10px;
}

main > .container-lg .example .caption a.source:hover {
    color: #6772e5;
}

main > .container-lg .example .caption a.source:active {
    color: #43458b;
}

main > .container-lg .example .caption a.source  svg {
    margin-right: 10px;
}

main > .container-lg .example .caption a.source svg path {
    fill: currentColor;
}

main > .container-lg .example form {
    position: relative;
    width: 100%;
    max-width: 500px;
    transition-property: opacity, transform;
    transition-duration: 0.35s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

main > .container-lg .example form input::-webkit-input-placeholder {
    opacity: 1;
}

main > .container-lg .example form input::-moz-placeholder {
    opacity: 1;
}

main > .container-lg .example form input:-ms-input-placeholder {
    opacity: 1;
}

main > .container-lg .example .error {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    top: 100%;
    margin-top: 20px;
    left: 0;
    padding: 0 15px;
    font-size: 13px !important;
    opacity: 0;
    transform: translateY(10px);
    transition-property: opacity, transform;
    transition-duration: 0.35s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

main > .container-lg .example .error.visible {
    opacity: 1;
    transform: none;
}

main > .container-lg .example .error .message {
    font-size: inherit;
}

main > .container-lg .example .error svg {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-top: -1px;
    margin-right: 10px;
}

main > .container-lg .example .success {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 10px;
    text-align: center;
    pointer-events: none;
    overflow: hidden;
}

@media (min-width: 670px) {
    main > .container-lg .example .success {
        padding: 40px;
    }
}

main > .container-lg .example .success > * {
    transition-property: opacity, transform;
    transition-duration: 0.35s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(50px);
}

main > .container-lg .example .success .icon {
    margin: 15px 0 30px;
    transform: translateY(70px) scale(0.75);
}

main > .container-lg .example .success .icon svg {
    will-change: transform;
}

main > .container-lg .example .success .icon .border {
    stroke-dasharray: 251;
    stroke-dashoffset: 62.75;
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: spin 1s linear infinite;
}

main > .container-lg .example .success .icon .checkmark {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    transition: stroke-dashoffset 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) 0.35s;
}

main > .container-lg .example .success .title {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 8px;
}

main > .container-lg .example .success .message {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.6em;
}

main > .container-lg .example .success .message span {
    font-size: inherit;
}

main > .container-lg .example .success .reset:active {
    transition-duration: 0.15s;
    transition-delay: 0s;
    opacity: 0.65;
}

main > .container-lg .example .success .reset svg {
    will-change: transform;
}

footer {
    position: relative;
    max-width: 750px;
    padding: 50px 20px;
    margin: 0 auto;
}

.optionList {
    margin: 6px 0;
}

.optionList li {
    display: inline-block;
    margin-right: 13px;
}

.optionList a {
    color: #aab7c4;
    transition: color 0.1s ease-in-out;
    cursor: pointer;
    font-size: 15px;
    line-height: 26px;
}

.optionList a.selected {
    color: #6772e5;
    font-weight: 600;
}

.optionList a:hover {
    color: #32325d;
}

.optionList a.selected:hover {
    cursor: default;
    color: #6772e5;
}

/**
 * Stripe Example 2
 */

.example.example2 {
    background-color: #fff;
}

.example.example2 * {
    font-family: Source Code Pro, Consolas, Menlo, monospace;
    font-size: 16px;
    font-weight: 500;
}

.example.example2 .row {
    display: -ms-flexbox;
    display: flex;
    margin: 0 5px 10px;
}

.example.example2 .field {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 0 10px;
}

.example.example2 .field.half-width {
    width: 50%;
}

.example.example2 .field.quarter-width {
    width: calc(25% - 10px);
}

.example.example2 .baseline {
    position: absolute;
    width: 100%;
    height: 1px;
    left: 0;
    bottom: 0;
    background-color: #cfd7df;
    transition: background-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.example.example2 label {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 8px;
    color: #cfd7df;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform-origin: 0 50%;
    cursor: text;
    transition-property: color, transform;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.example.example2 .input {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    padding-bottom: 7px;
    color: #32325d;
    background-color: transparent;
}

.example.example2 .input::-webkit-input-placeholder {
    color: transparent;
    transition: color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.example.example2 .input::-moz-placeholder {
    color: transparent;
    transition: color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.example.example2 .input:-ms-input-placeholder {
    color: transparent;
    transition: color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.example.example2 .input.StripeElement {
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity;
}

.example.example2 .input.focused,
.example.example2 .input:not(.empty) {
    opacity: 1;
}

.example.example2 .input.focused::-webkit-input-placeholder,
.example.example2 .input:not(.empty)::-webkit-input-placeholder {
    color: #cfd7df;
}

.example.example2 .input.focused::-moz-placeholder,
.example.example2 .input:not(.empty)::-moz-placeholder {
    color: #cfd7df;
}

.example.example2 .input.focused:-ms-input-placeholder,
.example.example2 .input:not(.empty):-ms-input-placeholder {
    color: #cfd7df;
}

.example.example2 .input.focused + label,
.example.example2 .input:not(.empty) + label {
    color: #aab7c4;
    transform: scale(0.85) translateY(-25px);
    cursor: default;
}

.example.example2 .input.focused + label {
    color: #24b47e;
}

.example.example2 .input.invalid + label {
    color: #ffa27b;
}

.example.example2 .input.focused + label + .baseline {
    background-color: #24b47e;
}

.example.example2 .input.focused.invalid + label + .baseline {
    background-color: #e25950;
}

.example.example2 input[type="text"], .example.example2 button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border-style: none;
}

.example.example2 input:-webkit-autofill {
    -webkit-text-fill-color: #e39f48;
    transition: background-color 100000000s;
    -webkit-animation: 1ms void-animation-out;
}

.example.example2 .StripeElement--webkit-autofill {
    background: transparent !important;
}

.example.example2 input, .example.example2 button {
    -webkit-animation: 1ms void-animation-out;
}

.example.example2 button {
    display: block;
    width: calc(100% - 30px);
    height: 40px;
    margin: 40px 15px 0;
    background-color: #24b47e;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
}

.example.example2 .error svg {
    margin-top: 0 !important;
}

.example.example2 .error svg .base {
    fill: #e25950;
}

.example.example2 .error svg .glyph {
    fill: #fff;
}

.example.example2 .error .message {
    color: #e25950;
}

.example.example2 .success .icon .border {
    stroke: #abe9d2;
}

.example.example2 .success .icon .checkmark {
    stroke: #24b47e;
}

.example.example2 .success .title {
    color: #32325d;
    font-size: 16px !important;
}

.example.example2 .success .message {
    color: #8898aa;
    font-size: 13px !important;
}

.example.example2 .success .reset path {
    fill: #24b47e;
}

.example.example2 .success {
    display: none;
}
.example.example2 .error {
    display: none;
}


/** Standards **/

li.active {
    background-color: lightblue;
    /*border-radius: 5px;*/
}

.vertical-padding-md {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.vertical-padding-sm {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.vertical-padding-lg {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.standard-border {
    border-bottom: 1px solid #f1f4f8 !important
}

/* Experimental */
.shadow-lg {
    box-shadow: 0px 1.5rem 4rem rgba(22,28,45,0.1) !important;
}
.card {
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}
.form-row > .col, .form-row > [class*=col-] {
    padding-right: 10px;
    padding-left: 10px;
}
.card-body, .card-footer, .card-header, .card-meta, [class*=card-img] {
    position: relative;
    display: block;
    flex-grow: 0;
    width: 100%;
    box-sizing: border-box;
    min-height: 1px;
}
.card-body {
    flex: 1 1 auto;
    padding: 2rem;
}
.pricing-icon {
    margin-left: 30px;
    margin-right: 30px;
}
div.card {
    height: auto;
    border: 1px solid #f1f4f8 !important;

    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0px;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 0 solid #f1f4f8;
    /*border-radius: .375rem;*/
    border-radius: 1rem;
}
.d-flex {
    display: flex !important;
}
.justify-content-center {
    justify-content: center !important;
}

/* General Styles */
h1
{
    margin-bottom: 1.5rem;
}


/** Easy Loader, only CSS **/
.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
}

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


.marketing-free-trial-btn {
    color: #ffffff;
    background-color: #337ab7;
    border-color: #337ab7;
    font-weight: bold;
    padding: 19.0px;
}

@media only screen and (min-width: 768px) {
    .marketing-free-trial-btn {
        font-size: 22px;
        margin: 30px;
        margin-left: 65px;
    }
}

@media only screen and (max-width: 768px) {
    .marketing-free-trial-btn  {
        background-color: #337ab7;
        margin-left: 0px !important;
        margin: 0px !important;
        font-size: 6vw;
    }
}

@media only screen and (min-width: 768px) {

    .internal-long-text-modal,
    .internal-long-text-modal .modal-body,
    .internal-long-text-modal .modal-footer,
    .internal-long-text-modal .modal-header,
    .internal-long-text-modal .modal-content
    {
        width: 500px;
    }
    .internal-long-text-modal,
    .internal-long-text-modal .modal-content
    {
        height: 500px;
    }

    .long-text-modal,
    .long-text-modal .modal-body,
    .long-text-modal .modal-footer,
    .long-text-modal .modal-header,
    .long-text-modal .modal-content
    {
        /*width: 1000px;*/
    }
    .long-text-modal,
    .long-text-modal .modal-content
    {
        height: 700px;
    }

}

@media only screen and (max-width: 768px) {
    /*.modal-xs { width: 300px; }
    .internal-long-text-modal { width: 300px; height: 300px; }*/
    .Wt-dialog,
    .Wt-dialog .modal-body,
    .Wt-dialog .modal-footer,
    .Wt-dialog .modal-header,
    .Wt-dialog .modal-content
    {
        width: 300px;
    }
    .Wt-auth-registration {
        width: 300px;
    }
    .Wt-auth-registration .form-control {
        width: 80%;
    }

    .internal-long-text-modal,
    .internal-long-text-modal .modal-body,
    .internal-long-text-modal .modal-footer,
    .internal-long-text-modal .modal-header,
    .internal-long-text-modal .modal-content
    {
        width: 300px;
    }
    .internal-long-text-modal,
    .internal-long-text-modal .modal-content
    {
        height: 500px;
    }


    .long-text-modal,
    .long-text-modal .modal-body,
    .long-text-modal .modal-footer,
    .long-text-modal .modal-header,
    .long-text-modal .modal-content
    {
        width: 300px;
    }
    .long-text-modal,
    .long-text-modal .modal-content
    {
        height: 500px;
    }
}

/** Basic tables **/
/*.basic-table, table {
    border-radius: 4px;
    border-color: #cccccc;
    border-bottom-style: inset;
}

.basic-tv.Wt-tableview {
    border-radius: 4px;
    border-color: #cccccc;
    border-bottom-style: inset;

}
.basic-tv.Wt-tableview .Wt-contents .Wt-tv-c,   .basic-tv.Wt-tableview .Wt-contents .Wt-tv-c2, .basic-tv.Wt-tableview .Wt-tv-contents > div
{
    padding: 10px !important;
}*/

/** Basic icons **/

.create-question-widget {
    border: 1px solid #ccc;
}
.vertical-padding {
    padding-top: 15px;
    padding-bottom: 15px;
}
.vertical-margin {
    padding-top: 30px;
    padding-bottom: 30px;
}
.small-margins {
    margin: 15px;
}
.vertical-small-margins {
    margin-top: 15px;
    margin-bottom: 15px;
}


.position-relative {
    position: relative !important;
}
.hover-remove {
    position: absolute;
    left: 15px;
    top: 25px;
    cursor: pointer;
}

.page-description {
    margin-bottom:15px;
}


@media(max-width: 800px)  {
    .large-margins {
        margin: 5px;
    }
}
@media(min-width: 800px) {
    .large-margins {
        margin: 30px;
    }
}


/** New Style **/
.navbar-default .navbar-brand {
    color: #2c3e50 !important;
}

.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
    color: #2c3e50 !important;;
    background-color: aliceblue !important;;
    font-weight: bold !important;
}
.navbar-right > li > a > span {
    color: #2c3e50 !important;
}
.navbar-default .navbar-nav > .active > a {
    color: #2c3e50 !important;
}
.navbar-default .navbar-nav > li > a {
    color: #2c3e50 !important;
}
/*.navbar-default .navbar-nav > li > a {*/
    /*color: #2c3e50;*/
    /*color: white !important;*/
    /*font-weight: bold;*/
/*}*/

.navbar-default .navbar-collapse, .navbar-default .navbar-form {
    border-color: white !important;
}

.navbar-header, .navbar-collapse {
    /* background-color: #2c3e50; */
    background-color: white !important;
}

.navbar-collapse element.style {
    /*display: none;*/
    border-bottom: 1px solid #ccc;
    box-shadow: 1px 1px 3px 1px #ccc;
}

/* ---- Mobile nav hamburger (shared across all apps) -------------------
   JWt's WNavigationBar setResponsive(true) toggle is unreliable under the
   Bootstrap 3 theme: its collapse handler targets Bootstrap 5 JS that isn't
   loaded, wt.css force-shows .navbar-collapse, and it renders a mispositioned
   expand/collapse button pair. BaseApplication.ensureMobileNav() injects a
   single .jak-navbar-toggle that flips .jak-nav-open on the .navbar; these
   rules show it on phones and drive the collapse. Bars are dark to suit the
   default white navbar; apps with a dark navbar override the colour, and apps
   with a bespoke nav override providesOwnMobileNav() and are untouched. */
.navbar {
    position: relative;            /* anchor for absolute hamburger / brand padding */
}
.navbar .jak-navbar-toggle {
    display: none;                 /* shown only in the collapse zone (mobile) below */
    position: absolute;
    top: 13px;
    right: 14px;
    width: 46px;
    /* 44, not 38: it is the only tap target on a phone that reaches the whole nav,
       and it measured 46x38 on every Jak product, under the touch guideline. */
    height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 11px;
    background: transparent;
    /* neutral grey border so the button outline reads on a light OR dark navbar */
    border: 1px solid rgba(128, 140, 155, .5);
    border-radius: 6px;
    cursor: pointer;
    z-index: 3;
}
.navbar .jak-navbar-toggle > span {
    display: block;
    height: 2px;
    border-radius: 2px;
    /* Visible on any navbar without per-app overrides: a dark fill (bold on the
       default white navbar) plus a 1px light outline so the bars still read on a
       dark navbar (where the dark fill alone would vanish). Apps with a dark navbar
       can still override `background` for crisp light bars (e.g. YakDocs). */
    background: #2c3e50;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .55);
}
.navbar .jak-navbar-toggle:hover { background: rgba(44, 62, 80, .06); }
.navbar .jak-navbar-toggle:focus-visible { outline: 3px solid #1c5fd6; outline-offset: 2px; }

/* 767, not 768. The desktop navbar in css/yw-theme.css is `@media (min-width: 768px)`,
   so at EXACTLY 768 both blocks fired: the hamburger appeared while the full navbar was
   still laid out beside it. Confirmed on referencesearchmanager, which showed
   hamburger=flex and .navbar-collapse=flex at the same time. Bootstrap 3's own
   @grid-float-breakpoint splits at 767/768 for the same reason. */
@media (max-width: 767px) {
    .navbar .navbar-toggle { display: none !important; }   /* hide JWt's native (broken) toggle */
    .navbar .jak-navbar-toggle { display: flex; }

    /* Long brand titles (e.g. "Reference Search Manager") must not run under the
       absolute hamburger. Shrink type + reserve right gutter for the 46px toggle. */
    .navbar .navbar-header {
        padding-right: 60px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .navbar-default .navbar-brand,
    .navbar .navbar-brand {
        font-size: 0.95rem !important;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding-right: 0.25rem;
    }

    .navbar .navbar-collapse { display: none !important; }  /* overrides wt.css force-show */
    .navbar.jak-nav-open .navbar-collapse {
        display: block !important;
        width: 100%;
        clear: both;
    }
    .navbar.jak-nav-open .navbar-nav { float: none; margin: 6px 0; }
    .navbar.jak-nav-open .navbar-nav > li { float: none; }
    .navbar.jak-nav-open .navbar-right { float: none !important; margin: 0; }

    /* Help / other WPopupMenu submenus: keep under the parent item on mobile.
       Wt positions popups absolutely via JS (and SlideInFromTop transforms on the
       collapse break that positioning), so force in-flow when the bar is open. */
    .navbar.jak-nav-open .navbar-nav .dropdown-menu,
    .navbar.jak-nav-open .navbar-nav li > .dropdown-menu,
    .navbar.jak-nav-open .navbar-nav li > .Wt-popupmenu {
        position: static !important;
        float: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0;
    }
}

.yak-file-upload-widget span {
    display: none;
}
/* =====================================================================
   Subscribe modal — Stripe Payment Element (yw-* themed, mobile-first).
   Replaces the retired ".example.example2" Stripe-demo form. Colors read
   from the yw-* design tokens with safe fallbacks so apps that don't load
   yw-theme.css still render sensibly.
   ===================================================================== */
/* Subscribe form body. Now rendered INLINE inside .yw-checkout on the billing
   page (no modal), so it fills its centered container rather than sizing itself to
   the viewport — no max-height/overflow-y (the page scrolls naturally). */
.yw-subscribe {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    box-sizing: border-box;
    font-size: 1rem;
    color: var(--text, #14213c);
}
.yw-subscribe * { box-sizing: border-box; }

.yw-subscribe-mount { margin: 0 0 1rem; }
.yw-subscribe-coupon { margin: 0 0 1rem; }

.yw-subscribe-coupon input {
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    color: var(--text, #14213c);
    background: var(--input-bg, #ffffff);
    border: 1px solid var(--surface-border, rgba(17, 28, 51, 0.18));
    border-radius: 10px;
}
.yw-subscribe-coupon input:focus {
    outline: none;
    border-color: var(--accent, #2f7ef0);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #2f7ef0) 25%, transparent);
}

.yw-subscribe-error {
    display: none;
    margin: 0 0 1rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.9375rem;
    color: var(--err-text, #97301f);
    background: var(--err-bg, #fdf3f1);
    border: 1px solid var(--err-border, #e6bcb5);
    border-radius: 8px;
}
.yw-subscribe-error.visible { display: block; }

.yw-subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 48px;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-contrast, #ffffff);
    background: var(--accent, #24b47e);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}
.yw-subscribe-btn:hover { background: var(--accent-strong, #1f9d6d); }
.yw-subscribe-btn:disabled { opacity: 0.6; cursor: default; }

.yw-subscribe-btn .yw-btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: yw-subscribe-spin 0.7s linear infinite;
}
.yw-subscribe-btn.is-busy .yw-btn-spinner { display: inline-block; }
@keyframes yw-subscribe-spin { to { transform: rotate(360deg); } }

/* Inline checkout panel that replaces the old Subscribe modal: a centered card on
   the billing page that hosts the plan header + Stripe Payment Element (.yw-subscribe).
   Because it lives in normal page flow there is no off-screen / re-center problem. */
.yw-checkout {
    width: 100%;
    max-width: 56rem;
    margin: 1.5rem auto;
    padding: clamp(1rem, 3vw, 2rem);
    box-sizing: border-box;
    background: var(--surface, #ffffff);
    border: 1px solid var(--surface-border, rgba(17, 28, 51, 0.13));
    border-radius: 14px;
    text-align: left;
}
.yw-checkout-header {
    display: block;
    margin: 0.25rem 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text, #14213c);
}
/* In-place "Payment received — activating…" confirmation shown after a successful
   inline subscribe, until the webhook flips the page to the Subscribed view. */
.yw-checkout-activating {
    display: block;
    margin: 0.5rem 0;
    font-size: 1.0625rem;
    color: var(--text, #14213c);
}
/* "← Back to plans" — a button rendered as a text link, kept a ≥44px tap target. */
.yw-checkout-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0.25rem 0.25rem 0;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent, #2f7ef0);
    cursor: pointer;
}
.yw-checkout-back:hover { text-decoration: underline; }
.yw-checkout-back:focus-visible {
    outline: 3px solid var(--accent, #2f7ef0);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Center ANY CloseableModal and keep it fully on-screen even as its content grows
   after render. Wt centers the WDialog on its INITIAL (short) height and does not
   re-center, so a tall modal otherwise renders low and runs off the bottom of the
   viewport. Pin it to the viewport centre and cap its size; the body scrolls
   internally. CloseableModal.kt applies this class to every instance (matching the
   Yac sibling), so this covers all current + future modals — not just billing. */
.closeable-modal {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-height: 94vh !important;
    max-width: 96vw;
}
/* Give closeable modals a sane phone width instead of the generic 300px
   .Wt-dialog rule below (which still applies to auth/other dialogs). */
@media (max-width: 768px) {
    .closeable-modal { width: min(96vw, 34rem) !important; }
}

/* Shared post-logout confirmation. */
.yak-logout-page {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.yak-logout-card {
    width: min(100%, 32rem);
    padding: 2rem 2rem 1.25rem;
    border: 1px solid var(--surface-border, rgba(15, 23, 42, 0.12));
    border-radius: 1rem;
    background: var(--surface, #fff);
    color: var(--text, #0f172a);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.yak-logout-check {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #e8f7ee;
    color: #16794b;
    font-size: 1.8rem;
    font-weight: 700;
}

.yak-logout-card h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.yak-logout-card p { margin: 0.35rem 0; }
.yak-logout-page .yak-logout-card h1,
.yak-logout-page .yak-logout-card p { color: inherit; }
.yak-logout-page .yak-logout-card .yak-logout-hint { color: var(--text-muted, #64748b); }
.yak-logout-return { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
    .yak-logout-page *,
    .yak-logout-page *::before,
    .yak-logout-page *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ---- Bootoast toast icons ----------------------------------------------
   Bootoast draws its leading icon as <span class="glyphicon glyphicon-NAME">
   (see rsc/external/bootoast/README.md for the markup it emits). JWt's bundled
   Bootstrap 3 declares the "Glyphicons Halflings" @font-face, but the jar ships
   no themes/bootstrap/3/fonts/ directory, so the font 404s and every toast icon
   renders as a tofu box. Re-point bootoast's four icons at Font Awesome, which
   includeStandardStyles already loads on every page; the bare .glyphicon rule
   catches any other name. Sizing and float stay with bootoast.min.css, and the
   named rules come last so they win on equal specificity. */
.bootoast > .glyphicon {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}
.bootoast > .glyphicon::before              { content: "\f05a"; }  /* info-circle        */
.bootoast > .glyphicon-ok-sign::before      { content: "\f058"; }  /* check-circle       */
.bootoast > .glyphicon-info-sign::before    { content: "\f05a"; }  /* info-circle        */
.bootoast > .glyphicon-exclamation-sign::before { content: "\f06a"; }  /* exclamation-circle */
.bootoast > .glyphicon-remove-sign::before  { content: "\f057"; }  /* times-circle       */

/* Team roster pending invitations (com.aldecorp.widgets.administration.UserListWidget):
   one full-width row per invite, email left, role + Revoke right, so the list lines up
   with the full-width roster table above it. Product palettes override the fallbacks. */
.yw-pending-invites { margin-top: 1.5rem; }
.yw-pending-invites h4 { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; }
.yw-pending-invites .pending-invite-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--surface-border, #d9dee7);
    border-top-width: 0;
    background: var(--surface, transparent);
    font-size: 1rem;
}
.yw-pending-invites .pending-invite-row:nth-child(2) { border-top-width: 1px; border-radius: 0.5rem 0.5rem 0 0; }
.yw-pending-invites .pending-invite-row:last-child { border-radius: 0 0 0.5rem 0.5rem; }
.yw-pending-invites .pending-invite-row:nth-child(2):last-child { border-radius: 0.5rem; }
.pending-invite-row__email { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.pending-invite-row__role { color: var(--text-muted, #4a5568); font-size: 0.875rem; text-transform: capitalize; }
