/* Tahona WMS - Layout Styles */

/* Shell rules (.app-container, .app-header, .app-sidebar, .nav-item, .app-main, .icon-btn,
   .avatar, and the old .app-logo / .hamburger-btn / .profile-btn / .nav-submenu) now live in
   shell.css, which supersedes them: the shell became a flex row (sidebar beside a column) and
   the tokens replaced the pastel gradients. Only the pieces still shared by pages stay here. */

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-2);
    display: none;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 150ms ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 150ms ease;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--pastel-blue);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-primary);
    margin: var(--spacing-2) 0;
}

/* Page Header */
.page-header {
    margin-bottom: var(--spacing-6);
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-2);
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive: the shell's own breakpoint lives in shell.css (it has to know about the
   collapsed rail), so nothing here may touch .app-sidebar / .app-main — an override here would
   translate the new sticky sidebar off-screen at 768px and it would never come back. */
@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }
}

/* Screen-reader-only text: visually hidden but present in the accessibility tree.
   Used to name otherwise-empty table action-column headers (axe empty-table-header). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
