html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior-y: none;
}

#mainContainer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#toolbar {
    flex: 0 0 auto;
    padding: 10px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
    display: flex;
}

#toolbar-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

#invoiceNumberContainer {
    display: flex;
    align-items: center;
    gap: 8px;
}

#invoiceNumberContainer label {
    font-size: 13px;
    color: #444;
    white-space: nowrap;
}

#invoiceNumberContainer input {
    height: 30px;
    width: 180px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: 700;
    text-align: right;
}



#toolbarActions {
    display: flex;
    align-items: center;
    gap: 10px;
}


#workspace {
    flex: 1 1 auto;
    padding: 10px;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.workspace-row {
    flex: 0 0 auto;
    padding: 0px;
}

#customerLocationContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.info-field {
    display: flex;
    flex-direction: column;
    min-width: 280px;
}

.info-field label {
    font-size: 12px;
    margin-bottom: 4px;
    color: #555;
}

.info-fieldshort {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.info-fieldshort label {
    font-size: 12px;
    margin-bottom: 4px;
    color: #555;
}


.info-placeholder {
    min-height: 32px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fafafa;
    padding: 6px 8px;
    box-sizing: border-box;
}

.workspace-row-flexible {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#totalsRow {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.total-field {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}

.total-field label {
    font-size: 12px;
    margin-bottom: 4px;
    color: #555;
}

label[for="ctrlTotal"] {
    font-weight: 700;
}

.total-field input {
    height: 32px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#paymentButtons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
}


body.ui-suspended {
    overflow: hidden;
}

.ui-suspense-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
}

.ui-suspense-overlay.is-hidden {
    display: none;
}

.ui-suspense-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ui-suspense-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #d9d9d9;
    border-top-color: #3a7ec1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.ui-suspense-text {
    font-size: 14px;
    color: #2f2f2f;
    font-weight: 600;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.additional-details-dialog {
    padding: 10px;
}

.additional-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px;
}

.additional-details-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.additional-details-field {
    display: flex;
    flex-direction: column;
}

.additional-details-field label {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

.additional-details-field input {
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 8px;
    box-sizing: border-box;
}

.additional-details-actions {
    margin-top: 8px;
}

.stripe-log-messages {
    width: 500px;
    height: 190px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fafafa;
    padding: 6px 8px;
    box-sizing: border-box;
    overflow-y: auto;
    margin-bottom: 10px;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
    display: flex;
}