.inline {
    display: inline-block;
}

.scroll {
    overflow: auto;
}

.position-fixed {
    position: fixed;
}

.position-static {
    position: static;
}

.position-fix {
    position: fixed;
}

.position-absolute {
    position: absolute;
}

.position-relative {
    position: relative;
}

.top-zero {
    top: 0px;
}

.top-60 {
    top: 60px;
}

.top-160 {
    top: 160px;
}

.top-320 {
    top: 320px;
}

.top-680 {
    top: 680px;
}

.bottom-0 {
    bottom: 10px;
}

.bottom-680 {
    bottom: 680px;
}

.right-20 {
    right: 20px;
}

.margin-sides-20 {
    margin-left: 20px;
    margin-right: 20px;
}

.margin-right-20 {
    float: right;
    margin-right: 20px;
}

.z-index-1 {
    z-index: 1;
}

.max-100 {
    max-width: 100;
    height: auto;
}

.btn-link.no-underline {
    text-decoration: none;
}

.change-on-hover:hover {
    color: blue;
    cursor: pointer;
}

.hide {
    display: none;
}


/*#edit-form-title {
    top: 100px;
    height: 400px;
}*/

#rendered-page {
    margin-top: 40px;
}

/*#edit-form-textfield {
    position: fixed;
    top: 150px;
}*/

/*#save-fields-button {
    position: fixed;
    top: 622px;
}*/

.positioned-canvas-div {
    height: 600px;
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
}

#navigation-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit);
    gap: 10px;
    background-color: rgb(237, 235, 235);
    position: relative;
}

.navbar-content {
    padding: 10px;
    text-align: center;
    position: relative;
}

.scroll-shadow {
    box-shadow: inset 0 -10px 10px -10px rgba(0, 0, 0, 0.12);
}



/* Base container styling specific to StripeRegister */
.stripe-register-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    background-color: #fff;
}

/* Styling for the Stripe-specific form */
.stripe-form {
    display: flex;
    flex-direction: column;
}

.stripe-form h2 {
    text-align: center;
    color: #333;
}

/* Form input fields styling specific to Stripe */
.stripe-form-group {
    margin-bottom: 20px;
}

.stripe-form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.stripe-form-group input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 4px;
}

/* Style for the submit button specific to Stripe form */
.stripe-form button {
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
}

.stripe-form button:hover {
    background-color: #004080;
}

/*Spinner css*/

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /*full screen*/
}

/* Pulsating Loader */
.pulsating-image {
    width: 100px;
    height: 100px;
    animation: pulsate 1.5s infinite;
}

@keyframes pulsate {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}
/* ---------------------------------------------------------------- form editor */
.editor-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.editor-hint {
    margin: 8px 0 12px;
    padding: 6px 10px;
    font-size: 0.85rem;
    color: #374151;
    background: #f8fafc;
    border-left: 3px solid #0d6efd;
    border-radius: 4px;
}
.editor-shell {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 290px;
    gap: 16px;
    align-items: start;
}
.editor-tools,
.editor-panel {
    position: sticky;
    top: 64px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
}
.editor-tools {
    overflow: visible;
    z-index: 18; /* its file-upload popover opens over the PDF */
}
.editor-canvas {
    min-width: 0;
    overflow-x: auto;
    text-align: center;
}
.editor-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 616px;
    margin: 0 auto 4px;
}
.page-menu {
    position: relative;
}
.page-menu-list {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 25;
    min-width: 220px;
    padding: 4px 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-align: left;
}
.page-menu-list button {
    display: block;
    width: 100%;
    padding: 6px 12px;
    border: 0;
    background: none;
    text-align: left;
    font-size: 0.875rem;
}
.page-menu-list button:hover:not(:disabled) {
    background: #f3f4f6;
}
.page-menu-list button:disabled {
    color: #9ca3af !important;
}
.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
    padding: 6px 2px;
    font-size: 0.72rem;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}
.tool-btn .tool-icon {
    font-size: 1.15rem;
    line-height: 1.3;
}
.tool-btn:hover:not(.active) {
    background: #f3f4f6;
}
.tool-btn.active {
    color: #fff;
    background: #0d6efd;
    border-color: #0d6efd;
}
.editor-tools-popover {
    position: absolute;
    left: calc(100% + 8px);
    bottom: 0;
    width: 290px;
    z-index: 15;
}
.field-popover {
    padding: 12px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-align: left;
}
.fields-panel-section {
    margin-bottom: 10px;
}
.fields-panel-group {
    padding: 4px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 4px;
}
.fields-panel-row {
    padding: 6px;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 4px;
}
.fields-panel-row.hovered {
    background: #fef9c3;
}
.fields-panel-icon {
    width: 1.4em;
    text-align: center;
    color: #6b7280;
}
.fields-panel-name {
    max-width: 190px;
    font-size: 0.9rem;
    text-decoration: none;
}
.fields-panel-select {
    width: auto;
    max-width: 140px;
    font-size: 0.75rem;
    padding-top: 0;
    padding-bottom: 0;
}
.editor-settings {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    width: 380px;
    max-height: 75vh;
    overflow-y: auto;
    padding: 14px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}
.editor-settings section + section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}
.editor-settings h6 {
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.editor-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
}
.editor-modal {
    width: min(420px, calc(100vw - 32px));
    padding: 18px;
    background: #fff;
    border-radius: 12px;
}
@media (max-width: 1199px) {
    .editor-shell {
        grid-template-columns: 78px minmax(0, 1fr);
    }
    .editor-panel {
        grid-column: 1 / -1;
        position: static;
        max-height: none;
    }
}
/* the app's content column clips overflow, which stops the editor's bars from sticking */
.overflow-auto:has(> .editor),
.overflow-auto:has(.editor) {
    overflow: visible !important;
}
.fields-panel-name,
.fields-panel-name:hover {
    color: #1f2937;
    text-decoration: none;
}
.fields-panel-name:hover {
    color: #0d6efd;
}

/* fields list: one slim line per field */
.fp-section {
    margin-bottom: 8px;
}
.fp-group {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 3px 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    background: none;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}
.fp-group:hover {
    color: #111827;
}
.fp-chevron {
    width: 0.8em;
}
.fp-count {
    margin-left: auto;
    font-weight: 500;
    color: #9ca3af;
}
.fp-empty {
    padding: 4px 6px;
    font-size: 0.78rem;
    color: #9ca3af;
}
.fp-row {
    border-radius: 4px;
}
.fp-row.hovered {
    background: #fef9c3;
}
.fp-row.open {
    background: #f8fafc;
}
.fp-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 4px;
}
.fp-icon {
    flex: 0 0 1.3em;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}
.fp-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    font-size: 0.875rem;
    color: #1f2937;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: none;
    border: 0;
}
.fp-name:hover {
    color: #0d6efd;
}
.fp-pages {
    flex: 0 0 auto;
    font-size: 0.72rem;
    color: #9ca3af;
}
.fp-more {
    flex: 0 0 auto;
    width: 24px;
    padding: 0;
    line-height: 1;
    color: #6b7280;
    background: none;
    border: 0;
    border-radius: 4px;
    visibility: hidden;
}
.fp-row:hover .fp-more,
.fp-row.open .fp-more,
.fp-more:focus-visible {
    visibility: visible;
}
.fp-more:hover {
    background: #e5e7eb;
}
.fp-actions {
    padding: 4px 8px 8px 30px;
    font-size: 0.8rem;
}
.fp-actions .form-select {
    max-width: 170px;
}
.fp-help {
    margin-top: 10px;
    font-size: 0.75rem;
}

/* groups stand out as boxes in the fields list */
.fp-section.is-group {
    padding: 0 4px 4px;
    background: #f5f7ff;
    border: 1px solid #dfe5ff;
    border-left: 3px solid #6366f1;
    border-radius: 6px;
}
.fp-section.is-group .fp-group {
    color: #4338ca;
    border-bottom-color: #dfe5ff;
}
.fp-group-tag {
    padding: 0 5px;
    font-size: 0.62rem;
    color: #fff;
    background: #6366f1;
    border-radius: 3px;
}
.fp-row.selected {
    background: #e7f1ff;
    box-shadow: inset 2px 0 0 #0d6efd;
}
.tool-btn {
    position: relative;
}
.tool-key {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.6rem;
    color: #9ca3af;
}
.tool-btn.active .tool-key {
    color: rgba(255, 255, 255, 0.75);
}
.editor-shortcuts {
    margin: -4px 0 12px;
    padding: 10px 12px;
    font-size: 0.82rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.editor-shortcuts-grid {
    display: grid;
    grid-template-columns: max-content 1fr max-content 1fr;
    gap: 4px 10px;
    align-items: center;
}
.editor-shortcuts kbd {
    justify-self: start;
    font-size: 0.72rem;
    color: #111827;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

/* finding fields */
.tool-btn-find {
    margin-top: 10px;
    color: #15803d;
    border-color: #86efac;
    background: #f0fdf4;
}
.tool-btn-find:disabled {
    opacity: 0.6;
}
.suggestions-list {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}
.suggestion-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px;
    border-radius: 4px;
}
.suggestion-row.hovered {
    background: #dcfce7;
}
.suggestion-row.skipped .suggestion-name {
    color: #9ca3af;
    text-decoration: line-through;
}
.suggestion-name {
    flex: 1 1 auto;
    min-width: 0;
}
.suggestion-type {
    flex: 0 0 104px;
    font-size: 0.75rem;
}
.suggestions-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 8px;
    padding: 8px 0 2px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

/* beta features */
.beta-tag {
    display: inline-block;
    padding: 0 5px;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 3px;
}
.beta-tag-corner {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
}
.found-offer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

/* idle sign-out warning */
.idle-warning{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:2000;display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(560px, calc(100% - 32px));box-sizing:border-box;padding:12px 16px;background:#fff;border:1px solid #f0ad4e;border-left:4px solid #f0ad4e;border-radius:8px;box-shadow:0 6px 24px rgba(0,0,0,.18);font-size:.95rem}
.idle-warning .btn{white-space:nowrap}

/* Business Associate Agreement */
.baa-scroll{max-height:420px;overflow-y:auto}
.baa-text h5{margin-top:1.25rem;font-size:1rem;font-weight:600}
.baa-text p,.baa-text li{font-size:.92rem}
@media print{.no-print{display:none !important}.card{border:none !important;box-shadow:none !important}.baa-scroll{max-height:none;overflow:visible}}
