/**
 * Lightbox – Interne Materialverwaltung
 * Custom CSS
 *
 * @author Flo Heigl
 */

/* ─── IBM Plex Sans ────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

/* ─── Brand-Variablen ──────────────────────────────────────────────────────── */
:root {
    --bs-primary:        #2C4295;
    --bs-primary-rgb:    44, 66, 149;
    --bs-link-color:     #2C4295;
    --bs-link-hover-color: #1e2f6e;
    --brand: #2C4295;
}

/* ─── Grundlayout ──────────────────────────────────────────────────────────── */
body {
    background-color: #f0f2f8;
    font-size: 0.92rem;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
}

.container-fluid {
    max-width: 1600px;
}

/* ─── Navbar ───────────────────────────────────────────────────────────────── */
.navbar-brand {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.navbar.bg-brand {
    background-color: var(--brand) !important;
}

/* Logo in der Navbar (weiss auf Brand-Hintergrund) */
.navbar-logo {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* Logo auf weissem Hintergrund (Login) */
.login-logo {
    height: 42px;
    width: auto;
}

/* ─── Bootstrap Primary-Farbe überschreiben ────────────────────────────────── */
.btn-primary {
    --bs-btn-bg:           #2C4295;
    --bs-btn-border-color: #2C4295;
    --bs-btn-hover-bg:           #1e2f6e;
    --bs-btn-hover-border-color: #1e2f6e;
    --bs-btn-active-bg:          #1a2860;
    --bs-btn-active-border-color:#1a2860;
}

.btn-outline-primary {
    --bs-btn-color:        #2C4295;
    --bs-btn-border-color: #2C4295;
    --bs-btn-hover-bg:     #2C4295;
    --bs-btn-hover-border-color: #2C4295;
}

.text-primary { color: #2C4295 !important; }
.bg-primary   { background-color: #2C4295 !important; }
.border-primary { border-color: #2C4295 !important; }

/* ─── Cards ────────────────────────────────────────────────────────────────── */
.card {
    border-radius: 0.6rem;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 0.6rem 0.6rem 0 0 !important;
}

/* ─── Dashboard KPI-Icon ───────────────────────────────────────────────────── */
.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── Tabellen ─────────────────────────────────────────────────────────────── */
.table th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

/* Zielstelle hervorheben */
.destination-badge {
    font-weight: 600;
}

/* ─── Badges ───────────────────────────────────────────────────────────────── */
.badge {
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ─── Formular ─────────────────────────────────────────────────────────────── */
.form-label {
    margin-bottom: 0.3rem;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.footer {
    margin-top: 4rem;
}

/* ─── FullCalendar Anpassungen ─────────────────────────────────────────────── */
.fc-toolbar-title {
    font-size: 1.1rem !important;
    font-weight: 600;
}

.fc-event {
    cursor: pointer;
    border-radius: 4px !important;
    font-size: 0.78rem;
    padding: 1px 4px;
}

.fc-daygrid-event-dot {
    display: none;
}

.fc-list-event-title a {
    font-weight: 500;
}

/* ─── Status-Farben (Tabellen-Highlights) ──────────────────────────────────── */
.table-danger td {
    background-color: rgba(220, 53, 69, 0.08) !important;
}

.table-info td {
    background-color: rgba(13, 202, 240, 0.08) !important;
}

.table-warning td {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

/* ─── Monospace für SKU ────────────────────────────────────────────────────── */
.font-monospace {
    font-size: 0.82em;
}

/* ─── Progress-Bar in Verfügbarkeitsübersicht ─────────────────────────────── */
.progress {
    border-radius: 100px;
}

/* ─── Utility ──────────────────────────────────────────────────────────────── */
.text-nowrap {
    white-space: nowrap;
}

dl.row dt {
    font-size: 0.85rem;
}

dl.row dd {
    font-size: 0.9rem;
}
