/* erp3dp – ergänzende Styles zu Bootstrap 5 */
:root {
    --erp-brand: #e8590c;
}

body {
    background-color: var(--bs-tertiary-bg);
    min-height: 100vh;
}

.navbar-brand .brand-mark {
    color: var(--erp-brand);
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.page-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.card {
    border: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .08);
}

.card-header {
    background-color: transparent;
    font-weight: 600;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: var(--bs-secondary-color);
    font-size: .85rem;
}

.color-swatch {
    display: inline-block;
    width: .9rem;
    height: .9rem;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color);
    vertical-align: -.1rem;
    margin-right: .35rem;
}

.table td, .table th {
    vertical-align: middle;
}

.table-nowrap td, .table-nowrap th {
    white-space: nowrap;
}

.progress-thin {
    height: .5rem;
}

.printer-card .progress {
    height: .6rem;
}

dl.details dt {
    color: var(--bs-secondary-color);
    font-weight: 500;
}

dl.details dd {
    margin-bottom: .6rem;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.auth-card-wide {
    max-width: 680px;
}

.text-pre {
    white-space: pre-line;
}

@media print {
    .navbar, .btn, form, .no-print { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; }
}

a.stat-card {
    color: inherit;
    transition: box-shadow .15s ease-in-out;
}

a.stat-card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 4px 12px rgba(0, 0, 0, .1);
}

/* Dunkles Farbschema */
[data-bs-theme="dark"] .card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .5);
}

[data-bs-theme="dark"] .navbar-brand .brand-mark {
    color: #ff7a2e;
}

/* Produktbilder */
.product-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: .375rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
}

.product-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary-color);
}

.product-main-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: .5rem;
    background: var(--bs-tertiary-bg);
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: .5rem;
}

.product-gallery figure {
    margin: 0;
    position: relative;
}

.product-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: .375rem;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--bs-tertiary-bg);
}

.product-gallery img.is-primary {
    border-color: var(--bs-primary);
}
