﻿/* ------------------------------------------------------------
   Child Dialog Content Container (Controls Scroll + Nuclear Reset)
------------------------------------------------------------ */
.tsm-child-content-container {
    /* Scroll behavior */
    overflow-y: auto;
    max-height: calc(100vh - 210px);
    /* Nuclear reset - combined */
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

    /* Nuclear reset for all child elements */
    .tsm-child-content-container * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: normal !important;
    }

/* ------------------------------------------------------------
   Parent Dialog Footer (Row Layout + Nuclear Reset)
------------------------------------------------------------ */
.tsm-parent-dialog-footer {
    /* Flex layout */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    /* Spacing - combined */
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
}

/* Footer buttons (Previous / Next) */
.tsm-parent-btn-footer {
    flex: 0 0 auto; /* Fixed width — do not stretch */
    min-width: 80px;
    margin: 0 5px;
}

/* Base button style */
.tsm-parent-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* ------------------------------------------------------------
   Center Label Wrapper
------------------------------------------------------------ */
.tsm-label-wrapper {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.tsm-label-container {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 100%;
}

/* ------------------------------------------------------------
   Button Overrides (Global Nuclear Reset)
   VERSION 2: Short Buttons (Active Version)
------------------------------------------------------------ */
.tsm-child-content-container button,
.tsm-child-content-container .btn,
.tsm-child-content-container .tsm-parent-btn-footer,
button,
.btn,
.tsm-parent-btn-footer {
    /* Vertical spacing */
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-top: 0.125rem !important;
    margin-bottom: 0.125rem !important;
    /* Height and text */
    min-height: 2rem !important;
    line-height: 1.1 !important;
}

/* ------------------------------------------------------------
   Optional Button Layout Versions
   (Keep Commented for Quick Switching)
------------------------------------------------------------ */

/* VERSION 1: Normal Buttons */
/*
.tsm-child-content-container button,
.tsm-child-content-container .btn,
.tsm-child-content-container .tsm-parent-btn-footer,
button,
.btn,
.tsm-parent-btn-footer {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    min-height: 2.5rem !important;
    line-height: 1.2 !important;
}
*/

/* VERSION 3: Tall Buttons */
/*
.tsm-child-content-container button,
.tsm-child-content-container .btn,
.tsm-child-content-container .tsm-parent-btn-footer,
button,
.btn,
.tsm-parent-btn-footer {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    margin-top: 0.375rem !important;
    margin-bottom: 0.375rem !important;
    min-height: 3rem !important;
    line-height: 1.3 !important;
}
*/

/* ===============================
   Buttons (general)
   =============================== */

button000 {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}