/* Login */
#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    max-width: 400px;
    width: 100%;
}

.error-text {
    color: var(--pico-del-color);
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.hidden {
    display: none !important;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--pico-background-color);
    border-bottom: 1px solid var(--pico-muted-border-color);
    padding: 0.5rem 1rem;
}

nav a[data-section].active {
    font-weight: bold;
    text-decoration: underline;
}

/* Tabs */
.tab-bar {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--pico-muted-border-color);
    padding-bottom: 0;
}

.tab-btn {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -2px;
    padding: 0.5rem 1rem;
    background: none;
    color: var(--pico-muted-color);
    cursor: pointer;
    font-weight: 500;
}

.tab-btn.active {
    color: var(--pico-primary);
    border-bottom-color: var(--pico-primary);
}

.tab-btn:hover {
    color: var(--pico-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.toolbar select {
    max-width: 250px;
    margin-bottom: 0;
}

.toolbar input[type="search"] {
    max-width: 300px;
    margin-bottom: 0;
}

.toolbar button {
    margin-bottom: 0;
    white-space: nowrap;
}

/* Tables */
.actions-col {
    width: 150px;
    text-align: right;
}

tbody td:last-child {
    text-align: right;
}

tbody .action-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* Inline edit */
.inline-edit {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: flex-end;
}

.inline-edit input {
    width: 120px;
    margin: 0;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.inline-edit button {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    margin: 0;
}

/* Modal */
dialog article {
    max-width: 600px;
}

dialog label {
    margin-top: 0.5rem;
}

dialog input, dialog select, dialog textarea {
    margin-bottom: 0.5rem;
}

/* Bundle detail */
#bundle-detail article {
    margin-top: 1.5rem;
}

#bundle-detail header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#bundle-detail header h3 {
    margin: 0;
}

#bundle-detail header button {
    margin: 0;
}

/* Import report */
#import-report pre {
    white-space: pre-wrap;
    font-size: 0.875rem;
}

/* Price display */
.price-null {
    color: var(--pico-muted-color);
    font-style: italic;
}
