/* ============================================================
   WARENEINGANG – Eigenständiges Stylesheet
   (Zusammenführung: Layout/Sidebar/Help + WE-spezifische Klassen)
   ============================================================ */

/* Globale Einstellungen */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #e0e0e0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
}

/* =============================================
   LINKS: TEST-SIDEBAR
   ============================================= */
.info-sidebar {
    width: 300px;
    min-width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.info-sidebar h2 { font-size: 16px; color: #1a5b8e; border-bottom: 2px solid #1a5b8e; padding-bottom: 5px; margin-top: 0; }
.info-sidebar h3 { font-size: 14px; margin: 15px 0 5px 0; border-bottom: 1px solid #ddd; }
.info-item { background: #f4f4f4; padding: 8px; margin-bottom: 5px; border-radius: 4px; cursor: pointer; border-left: 3px solid #1a5b8e; transition: 0.2s; }
.info-item:hover { background: #e8e8e8; }
.info-item b { display: block; font-size: 14px; }
.info-item span { font-size: 11px; color: #666; }

/* =============================================
   MITTE: APP CONTAINER
   ============================================= */
.app-container {
    width: 450px;
    min-width: 450px;
    background-color: #f4f4f4;
    height: 850px;
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.header { background-color: #1a5b8e; color: white; padding: 12px 15px; display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; }
.search-container { padding: 8px 10px; background: white; border-bottom: 1px solid #ddd; }
.search-container input { width: 100%; padding: 10px 15px; font-size: 16px; border: 1px solid #999; border-radius: 4px; box-sizing: border-box; }
.tabs { display: flex; background: white; border-bottom: 2px solid #ddd; }
.tab { flex: 1; text-align: center; padding: 12px 0; font-weight: 700; font-size: 13px; color: #888; cursor: pointer; text-transform: uppercase; }
.tab.active { color: #1a5b8e; border-bottom: 4px solid #1a5b8e; }

.content-area { flex: 1; display: flex; flex-direction: column; padding: 15px; background: #fff; overflow: hidden; }
.tab-content { display: none; flex-direction: column; height: 100%; }
.tab-content.active { display: flex; }
.dynamic-content { flex: 1; overflow-y: auto; margin-bottom: 15px; padding-right: 5px; }

/* =============================================
   TYPOGRAFIE & BOXEN
   ============================================= */
.text-bold { font-weight: 700; }
.text-xl { font-size: 32px; margin-bottom: 2px; }
.text-lg { font-size: 20px; margin-bottom: 15px; }
.text-md { font-size: 18px; }
.text-sm { font-size: 14px; }
.standort-box { background-color: #0b1d2e; color: white; text-align: center; padding: 15px; font-size: 26px; font-weight: 700; border-radius: 8px; margin: 10px 0 20px 0; }
.standort-box-label { font-size: 12px; font-weight: 700; color: #ccc; text-transform: uppercase; margin-bottom: 4px; }
.badge-green { background-color: #43a047; color: white; border-radius: 24px; padding: 4px 14px; font-size: 24px; margin-left: 10px; }
.menge-container { text-align: center; margin: 24px 0; }
.menge-row { font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

hr { border: 0; border-top: 1px solid #ccc; margin: 15px 0; }
.alert-green { background-color: #2e7d32; color: white; font-weight: 700; text-align: center; padding: 12px; border-radius: 6px; font-size: 16px; }
.alert-red { background-color: #c62828; color: white; font-weight: 700; text-align: center; padding: 10px; border-radius: 6px; margin-bottom: 15px; }

.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; font-size: 15px; gap: 5px; }
.btn-yellow { background-color: #ffca28; color: #000; font-weight: 700; font-size: 18px; width: 100%; padding: 15px; border: none; border-radius: 6px; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.flex-row { display: flex; justify-content: space-between; margin-bottom: 15px; align-items: center; }

/* =============================================
   CARD-LAYOUT FÜR AUSWAHLLISTEN
   ============================================= */
.list-container {
    border: none;
    margin-bottom: 20px;
    background: transparent;
}

.list-item {
    padding: 15px 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.list-item:hover { border-color: #1a5b8e; background: #fcfcfc; }
.list-item:active { background: #e0e0e0; transform: scale(0.98); }
.list-item-header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; color: #1a5b8e; font-size: 16px; }
.list-item-sub { font-size: 14px; color: #555; line-height: 1.4; }

/* =============================================
   WE-SPEZIFISCHE KLASSEN
   ============================================= */
.we-scan-area { padding: 10px; background: #fff; }
.we-scan-area input { width: 100%; padding: 10px; font-size: 16px; border: 2px solid #1a5b8e; border-radius: 4px; }

.we-tab-bar { display: flex; border-bottom: 2px solid #1a5b8e; }
.we-tab { flex: 1; padding: 10px; border: none; background: #eee; font-weight: bold; cursor: pointer; }
.we-tab.active { background: #1a5b8e; color: white; }

.we-card { padding: 5px; }
.we-header-title { font-size: 18px; font-weight: bold; }
.we-sub-row { display: flex; justify-content: space-between; font-size: 14px; margin: 5px 0; }
.mnr-highlight { font-weight: bold; }
.mnr-highlight.novitaet { color: #c62828; font-size: 15px; }
.we-title-row { font-size: 14px; margin-bottom: 5px; }

.we-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; font-size: 13px; margin: 10px 0; }
.badge-mini { color: white; padding: 2px 4px; border-radius: 3px; text-align: center; grid-column: span 2; }

.we-alert-box { background: #c62828; color: white; text-align: center; font-weight: bold; padding: 8px; margin: 10px 0; border-radius: 4px; }

.we-controls-row { display: flex; gap: 10px; align-items: flex-end; margin-top: 15px; }
.control-group { flex: 1; }
.control-group label { display: block; font-size: 11px; font-weight: bold; color: #666; }
.menge-fett { font-size: 18px; }
.we-select-sticky { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }

.we-transport-row { margin-top: 15px; border-top: 1px solid #eee; padding-top: 5px; }
.we-transport-row label { font-size: 11px; font-weight: bold; color: #666; }
.we-transport-row input { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }

.we-offen-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.we-offen-table td { padding: 8px 4px; border-bottom: 1px solid #eee; }
.truncate { max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =============================================
   RECHTS: HILFE-SIDEBAR
   ============================================= */
.help-sidebar {
    width: 445px !important;
    min-width: 445px !important;
    max-width: 445px !important;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 850px;
    display: flex;
    flex-direction: column;
    border-right: 4px solid #ffca28;
    box-sizing: border-box;
    overflow: hidden;
}

.help-sidebar h2 {
    font-size: 14px;
    color: #fff;
    background-color: #1a5b8e;
    margin: 0;
    padding: 13px 10px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    letter-spacing: 0.5px;
}

.help-scroll-area {
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
}

.help-scroll-area h3 { font-size: 16px; color: #1a5b8e; margin-top: 0; border-bottom: 1px solid #eee; }
.help-scroll-area b { color: #000; }
.help-scroll-area hr { border-top: 1px dashed #ccc; margin: 15px 0; }