﻿.rounded-close-btn {
    border-radius: 50% !important;
    background-color: transparent;
    transition: background-color 0.2s;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .rounded-close-btn:hover {
        background-color: #e6e6e6 !important;
    }
.dense-field {
    height: 40px !important; /* Standard is usually 56px+ */
}

    /* Adjust the internal alignment so the text stays centered */
    .dense-field .rz-form-field-content {
        display: flex;
        align-items: center;
        height: 100%;
    }

    /* Optional: Shrink the floating label slightly so it doesn't feel cramped */
    .dense-field .rz-form-field-label {
        font-size: 0.75rem !important;
        top: 4px !important;
    }
    /* 1. Changes the label color when it is floating (focused or has value) */
    .dense-field.rz-state-focused .rz-form-field-label,
    .dense-field.rz-state-filled .rz-form-field-label {
        color: #007bff !important; /* Your preferred blue */
    }

    /* 2. Changes the underline/border color to match when focused */
    .dense-field.rz-state-focused .rz-form-field-content {
        border-color: #007bff !important;
    }

    /* 3. Optional: Changes the label color even when it's NOT floating */
    .dense-field .rz-form-field-label {
        color: rgba(0, 123, 255, 0.7);
    }
/* --- TOOLBAR BASE STYLES --- */
/* --- 1. BASE TOOLBAR CONTAINER (Desktop First) --- */
.toolbar-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid #ccc;
}

/* --- 2. DESKTOP MENU STYLES --- */
.menu-desktop {
    display: block; /* Shown by default */
}

.desktop-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

/* --- 3. MOBILE BAR HIDING (Crucial for Desktop) --- */
.mobile-bottom-bar {
    display: none; /* Explicitly hidden so it doesn't show under desktop bar */
}

/* --- 4. RESPONSIVE OVERRIDES (Mobile) --- */
@media (max-width: 768px) {
    /* 1. Add padding to your main content container */
    /* Adjust '.main' or '.content' to match your app's main class */
    .main, .content, .rz-body {
        padding-bottom: 80px !important;
    }

    /* Hide the desktop version */
    .menu-desktop {
        display: none !important;
    }

    /* Show and Pin the Mobile Bar to Bottom */
    .mobile-bottom-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1100;
        background: #fff;
        border-top: 1px solid #ddd;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        /* Account for notch/home bar on modern phones */
        padding: 4px 4px calc(4px + env(safe-area-inset-bottom)) 4px;
    }

    .mobile-flex-container {
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 100%;
    }

    .mobile-group {
        display: flex;
        gap: 2px;
        align-items: center;
    }

    /* Tighten Radzen button spacing for mobile layout */
    .mobile-flex-container .rz-button {
        margin: 0 !important;
    }
}
/* Toolbar */
.pdf-toolbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px;
    background: #fff;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
}

/* PDF iframe */
.pdf-frame {
    width: 100%;
    height: calc(100vh - 60px);
    margin-top: 60px;
    border: none;
    -webkit-overflow-scrolling: touch;
}

/* Loading spinner */
.loading-container {
    margin-top: 100px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Full-height layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}