/* public/css/layout.css */

/* Main layout containers */
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.main-container {
    flex-grow: 1;
    display: flex;
    overflow: hidden;
    padding-bottom: 33px;
}

/* --- V5.0.1 DATASHEET LAYOUT RESTORED --- */
/* This rule applies the two-panel layout only when the datasheet tab is active */
#datasheet-panel.active {
    display: flex;
    flex-direction: row; /* Ensure side-by-side layout */
    width: 100%;
}

/* Base styles for panels inside the main container */
.vendor-panel {
    /* Set a fixed base width for the vendor panel */
    flex: 0 0 260px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-primary);
    padding: 25px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.content-area {
    /* The content area will grow to fill the remaining space */
    flex-grow: 1;
    padding: 0 25px 25px 25px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Placeholder styles for when no content is selected */
.placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
}

.placeholder p {
    font-size: 1.1em;
    margin-top: 10px;
}

/* NEW: Styles for the embedded iframe */
.management-iframe {
    width: 100%;
    height: 100%;
    border: none;
}