﻿
/***********************************/
/*      Index Seite               */
/***********************************/

/* erste Zeile image Grid mit 1 Spalte */
.outer-div-row1-index {
    display: grid;
    grid-template-columns: 60% 20% 20%;
    grid-template-rows: repeat(3, auto);
    gap: 10px;
    padding: 10px;
    margin-right: 10px;
    margin-left: -10px;
}

.left-column {
    grid-row: span 3; /* Nimmt zwei Zeilen ein */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, darkgrey, white);
    padding: 10px 20px;
    color: grey;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    left: 0;
    border-bottom: 3px solid lightgray;
    z-index: 1;
    height: 100px;
    width: 100%;
}

    header > * {
        flex: 0 0 33%;
    }

    header img {
        margin: auto;
        display: block;
    }

body {
    height: 100vh;
    overflow: hidden;
}

.main-content {
    height: 100%;
    overflow: auto;
}

.logo {
    margin: 0 auto;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

    .user-info span {
        margin-right: 1px;
        color: black;
    }

.logout-button {
    background-color: #f00;
    border: none;
    padding: 3px 8px;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: smaller;
    margin-bottom: 5px;
}

.app-version {
    font-size: smaller;
    color: black;
}

/* Devexpress Grid */
.dxGridRow {
    height: 50px;
    border-left: none !important;
    border-right: none !important;
}

.dxGridHeader {
    height: 50px;
    border-left: none !important;
    border-right: none !important;
}

.dxGridRow:hover {
    background-color: lightblue;
}


.li-app-version {
    cursor: pointer;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

    .li-app-version:hover {
        font-weight: bold;
        color: #3498db; /* Beispiel für eine schöne andere Farbe */
    }


/* Rechtsbündiger Container in der Toolbar */
.toolbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    right: 15px;
}

.toolbar-right-span {
    margin-right: 10px;
}

.Component-Container {
    padding-top: 5px;
    padding-bottom: 5px;
    height: 100%
}

    .Component-Container .Component-Container-Border {
        border: 1px solid #ccc;
        border-radius: 10px;
        box-sizing: border-box;
        height: 100%
    }

    .Component-Container .Component-Container-Header {
        background-color: #555; /* Hellgrauer Hintergrund */
        color: #fff;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        padding: 15px;
    }

        .Component-Container .Component-Container-Header h2 {
            font-size: 1.2em;
            margin: unset;
        }

    .Component-Container .Component-Container-Toolbar {
        padding: 10px 15px;
        background-color: #eee;
        border-bottom: 1px solid #ccc;
    }


/***********************************/
/*      Detail Seite               */
/***********************************/
/* erste Zeile image Grid mit 3 Spalten */
.outer-div-row1 {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    gap: 10px;
    padding: 10px;
    margin-right: 20px;
}

/* zweite Zeile image Grid mit 1 Spalte */
.outer-div-row2 {
    display: grid;
    gap: 10px;
}

/* dritte Zeile image Grid mit 2 Spalten */
.outer-div-row3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}

/* eine Box im Grid */
.inner-div {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 0;
    background-color: #f9f9f9;
    box-sizing: border-box;
    overflow: hidden; /* Für runde Ecken bei Header */
    position: relative; /* Für Positionierung des grünen Kreises */
    margin-bottom: 15px;
}

/* Header der Box */
.inner-div-header {
    background-color: #555; /* Hellgrauer Hintergrund */
    color: #fff; /* Helle Schrift */
    padding: 15px;
    margin: 0; /* Kein Abstand */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    /* Überschrift der Box */
    .inner-div-header h2 {
        font-size: 1.2em; /* Aktualisierte Schriftgröße */
        margin: 0;
    }

/* Grüner Kreis im Header */
.green-circle {
    width: 20px;
    height: 20px;
    background-color: lightgreen; /* Grüner Hintergrund */
    border-radius: 50%;
    margin: auto;
}

/* Roter Kreis im Header */
.red-circle {
    width: 20px;
    height: 20px;
    background-color: red; /* Roter Hintergrund */
    border-radius: 50%;
    margin: auto;
}

/* Toolbar der Box */
.toolbar {
    display: flex;
    justify-content: flex-start;
    padding: 10px 15px;
    background-color: #eee;
    border-bottom: 1px solid #ccc;
}

.toolbar-text {
    font-size: 13px;
    font-weight: bold;
}

.toolbar-list {
    font-size: 13px;
    font-weight: bold;
    list-style: none;
    max-height: 40px;
    overflow: auto;
    margin: 0
}

/* Button in der Toolbar */
.toolbar-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 3px 8px; /* Noch kleinere Buttons */
    margin-right: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: smaller;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

    .toolbar-button:hover {
        background-color: #0056b3;
    }

    .toolbar-button[disabled] {
        background-color: gray !important;
    }


.dxbl-grid-table tbody {
    cursor: pointer;
}

.dxbl-grid-focused-row .toolbar-button {
    color: black;
    background-color: white;
}
/* Inhalt der Box */
.inner-div-content {
    padding: 15px; /* Abstand zum äußeren Rahmen */
    color: #333; /* Textfarbe */
}

.inner-div-content-all-dentys {
    padding: 15px; /* Abstand zum äußeren Rahmen */
    justify-content: flex-start;
    padding: 0;
    background-color: #f9f9f9;
    display: flex;
    flex-wrap: wrap;
}

.inner-div-denty {
    padding: 0px; /* Abstand zum äußeren Rahmen */
    color: #333; /* Textfarbe */
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    margin: 10px 0;
}

/* Header der Box */
.inner-div-denty-header {
    background-color: lightgrey; /* Hellgrauer Hintergrund */
    padding: 15px;
    margin: 0; /* Kein Abstand */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    /* Überschrift der Box */
    .inner-div-denty-header h2 {
        font-size: larger; /* Aktualisierte Schriftgröße */
        margin: 0;
    }
/* Inhalt der Box */
.inner-div-denty-content {
    padding: 15px; /* Abstand zum äußeren Rahmen */
    color: #333; /* Textfarbe */
}

/* Toolbar der Box */
.toolbar-denty {
    display: flex;
    justify-content: flex-start;
    padding: 10px 15px;
    background-color: #eee;
    border-bottom: 1px solid #ccc;
}

/* Button in der Toolbar */
.toolbar-button-denty {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 3px 8px; /* Noch kleinere Buttons */
    margin-right: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: small;
}

/*Schrank für den Bestand mit 6 Spalten*/
.inner-div-denty-content-assortment {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

/* 1 Fach für den Bestand */
.inner-div-denty-drawer-content-assortment {
    height: 200px;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex; /* Flexbox verwenden, um Inhalte zu zentrieren */
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    cursor: grab;
    position: relative;
}

/* 1 Fach für den Bestand mit unbestätigter Entnahme*/
.inner-div-denty-drawer-content-assortment-open {
    height: 200px;
    width: 200px;
    border: 1px solid red;
    border-radius: 10px;
    display: flex; /* Flexbox verwenden, um Inhalte zu zentrieren */
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    cursor: grab;
    position: relative;
}

/*Fachnummer im Denty Fach*/
.drawer-number {
    position: absolute;
    top: 5px;
    right: 10px;
    border: none;
    color: lightgray;
    font-size: 12px;
    font-weight: 400;
}
/*Artikelnummer im Fach*/
.denty-drawer-articlenumber {
    white-space: normal;
    font-size: 13px;
    font-weight: bold;
    position: absolute;
    top: 5px;
    left: 10px;
}

/*Description im Fach*/
.denty-drawer-description {
    white-space: normal;
    font-size: 13px;
    font-weight: normal;
    position: absolute;
    top: 25px;
    left: 10px;
}

/*ProductName im Fach*/
.denty-drawer-productname {
    white-space: normal;
    font-size: 13px;
    font-weight: normal;
    position: absolute;
    top: 75px;
    left: 10px;
}
/*Bestand im Fach*/
.denty-drawer-amaount {
    white-space: normal;
    font-size: 13px;
    font-weight: bold;
    position: absolute;
    top: 100px;
    left: 10px;
}
/*Bild im Fach*/
.product-image {
    width: auto;
    max-width: 80%;
    height: 30px;
    position: absolute;
    top: 150px;
    left: 10px;
    font-weight: bold;
    font-size: 13px;
}

.slider-container {
    display: flex;
    align-items: center;
}

    .slider-container input[type=range] {
        margin: 0 5px;
        width: 400px; /* Breite des Sliders */
    }

.h3-detail {
    color: black;
}

.table-container {
    overflow-x: auto;
    margin: 0 auto;
    max-width: 100%;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 15px;
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    table-layout: fixed;
}

    .modern-table thead tr {
        background-color: #009879;
        color: #ffffff;
        text-align: left;
    }

    .modern-table th:not(.dxbl-grid-empty-cell), .modern-table td:not(.dxbl-grid-empty-cell) {
        padding: 12px 15px;
        width: calc(50% - 5px)
    }

    .modern-table th.expandableIndicatorRow:not(.dxbl-grid-empty-cell), .modern-table td.expandableIndicatorRow:not(.dxbl-grid-empty-cell) {
        width: 10px
    }

    .modern-table td[title] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .modern-table tbody tr {
        border-bottom: 1px solid #dddddd;
    }

        .modern-table tbody tr:nth-of-type(even) {
            background-color: #f3f3f3;
        }

        .modern-table tbody tr:last-of-type {
            border-bottom: 2px solid #009879;
        }

        .modern-table tbody tr:hover {
            background-color: #f1f1f1;
            cursor: pointer;
        }

.note-input-container {
    margin-bottom: 20px;
}

.note-textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 16px;
}

.btn-add {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

    .btn-add:hover {
        background-color: #218838;
    }

.notes-list {
    margin-top: 20px;
}

.note-item {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.note-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-update {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    margin-right: 5px;
}

    .btn-update:hover {
        background-color: #0056b3;
    }

.btn-delete {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

    .btn-delete:hover {
        background-color: #c82333;
    }
/*Signalfarben*/
.color-square {
    width: 25px;
    height: 25px;
    display: inline-block;
    margin: 5px;
    border: 1px solid #000; /* optional: fügt einen Rahmen hinzu */
}
/* Backgroundcolors */
.color-square-backgroundcolors {
    width: 30px;
    height: 30px;
    display: inline-block;
    border: 1px solid #000; /* optional: fügt einen Rahmen hinzu */
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 10px;
}

    .color-grid div {
        display: flex;
        justify-content: center;
        align-items: center;
    }
