body{
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,sans-serif;
    background:#f5f6f7;
}

.header{
    background:#7A1E1E;
    color:#fff;
    padding:15px;
    display:flex;
    align-items:center;
    gap:15px;
}

.logo{
    height:50px;
}

.menu{
    background:#ffffff;
    padding:10px;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
}

.menu a{
    text-decoration:none;
    color:#333;
    font-weight:bold;
}

.body-content{
    padding:20px;
}

.tile-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(160px,1fr));
    gap:20px;
}

.tile{
    background:white;
    border-radius:15px;
    padding:25px;
    text-decoration:none;
    color:#333;

    display:flex;
    flex-direction:column;
    align-items:center;

    gap:10px;

    font-size:18px;

    box-shadow:
        0 3px 10px rgba(0,0,0,.1);
}

.tile:hover{
    background:#f0f0f0;
}

.footer{
    background:#222;
    color:white;
    padding:15px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logout-button{
    background:#b30000;
    color:white;
    text-decoration:none;
    padding:10px 20px;
    border-radius:8px;
}

.login-container{
    max-width:400px;
    margin:50px auto;
    background:white;
    padding:30px;
    border-radius:15px;
}

.login-container form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.login-container input{
    padding:12px;
}

.login-container button{
    padding:12px;
    background:#7A1E1E;
    color:white;
    border:none;
}

.error{
    color:red;
    margin-bottom:15px;
}
.card{
    background:#fff;
    border-radius:12px;
    padding:20px;
    margin-bottom:20px;
    box-shadow:
        0 2px 8px rgba(0,0,0,.08);
}

.image-preview-container{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.preview-image{
    width:250px;
    max-width:100%;
    border-radius:8px;
    border:1px solid #ddd;
}

.ocr-text{
    width:100%;
    min-height:250px;
}

.mapping-table{
    width:100%;
    border-collapse:collapse;
}

.mapping-table th,
.mapping-table td{
    border:1px solid #ddd;
    padding:10px;
    vertical-align:top;
}

.mapping-table tr:nth-child(even){
    background:#f7f7f7;
}

.mapping-table select{
    width:100%;
}

.winner-row{
    background:#dff0d8 !important;
    font-weight:bold;
}

.candidate-row{
    background:#eef6ff !important;
}

.action-bar{
    margin-top:20px;
    text-align:right;
}

.primary-button{
    background:#7A1E1E;
    color:#fff;
    border:none;
    border-radius:8px;
    padding:12px 24px;
    font-size:16px;
    cursor:pointer;
}
.filter-row input {
    width:100%;
    box-sizing:border-box;
}

.sortable {
    cursor:pointer;
    user-select:none;
}

.sortable span {
    color:#888;
    font-size:11px;
    margin-left:4px;
}


.app-header {
    background: #7b1126;
    height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo {
    height: 42px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: "Segoe UI", sans-serif;
}

.brand-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.select2-container--default
.select2-selection--single {
    height: 38px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.select2-container--default
.select2-selection--single
.select2-selection__rendered {
    line-height: 36px;
}

.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    height: 36px;
}

.select2-results__option--highlighted {
    background: #7A1E1E !important;
}

/* --------------------------------------------------
   bottle_details.php
-------------------------------------------------- */

.hero-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:24px;
    margin-bottom:20px;
}

.hero-text{
    flex:1;
}

.hero-image{
    width:220px;
    text-align:center;
    flex-shrink:0;
}

.hero-image img{
    width:100%;
    max-height:320px;
    object-fit:contain;
    border-radius:8px;
    border:1px solid #ddd;
    background:#fff;
}

.hero-text h2{
    margin-top:5px;
    margin-bottom:10px;
    color:#7A1E1E;
}

.hero-text h3{
    margin-bottom:0;
}

.image-slider{
    display:flex;
    gap:20px;
    overflow-x:auto;
    padding:10px 0;
}

.image-item{
    min-width:220px;
    text-align:center;
}

.image-item img{
    width:220px;
    max-width:100%;
    border-radius:8px;
    border:1px solid #ddd;
    background:#fff;
}

.image-caption{
    margin-top:10px;
    font-size:12px;
    color:#666;
}

.image-actions{
    margin-top:10px;
}

.detail-entry{
    padding-bottom:20px;
    margin-bottom:20px;
    border-bottom:1px solid #ddd;
}

.detail-entry:last-child{
    border-bottom:none;
    margin-bottom:0;
}

.detail-header{
    margin-bottom:10px;
    font-weight:600;
}

.detail-content{
    line-height:1.6;
    margin-bottom:10px;
}

.detail-actions{
    margin-top:10px;
}

.detail-actions a,
.image-actions a{
    color:#7A1E1E;
    font-weight:bold;
    text-decoration:none;
}

.detail-actions a:hover,
.image-actions a:hover{
    text-decoration:underline;
}

@media (max-width:768px){

    .hero-header{
        flex-direction:column;
    }

    .hero-image{
        width:100%;
    }

    .hero-image img{
        max-width:180px;
    }

    .image-item{
        min-width:160px;
    }

    .image-item img{
        width:160px;
    }

}

.details-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:10px;
}

.details-actions .primary-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    min-height:44px;
}

@media (max-width:768px){

    .details-actions{
        flex-direction:column;
    }

    .details-actions .primary-button{
        width:100%;
        box-sizing:border-box;
    }

}

.action-icons {

    white-space: nowrap;
    text-align: center;

}

/*--------------------------------------
Aktionicons z.B. in einer Aktionspalte
--------------------------------------*/
.action-icons a {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    text-decoration: none;
    border-radius: 4px;

    transition:
        transform .15s ease,
        background-color .15s ease;

}

.action-icons a:hover {

    background: #f2f2f2;
    transform: scale(1.15);

}
/*--------------------------------------
Kartenfarben abh. Weinart (weiss, rose, rot)
--------------------------------------*/
.card-white {

    background:#ffffff;

}

.card-red {

    background:
        rgba(122,30,30,.08);

}

.card-rose {

    background:
        rgba(255,105,180,.08);

}

.card-gray {

    background:
        rgba(120,120,120,.08);

}
/*--------------------------------------
für einen fixierten Tabellenkopf beim Scrollen
--------------------------------------*/
#inventoryTable thead {

    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;

}

.inventory-stat-line {

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:4px 0;

}

.inventory-stat-type {

    min-width:120px;

}

.inventory-stat-values {

    text-align:right;

    white-space:nowrap;

}

.inventory-stat-spacer {

    height:12px;

}

.inventory-stat-total {

    font-weight:bold;

}