/* Blumen Südfels — touchscreen dashboard design system */

:root {
    --bso-green: #1f6a3d;
    --bso-green-dark: #123a24;
    --bso-green-light: #2f9c58;
    --bso-cream: #f4f6f2;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    background-color: var(--bso-cream);
    color: #1f2a22;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Room at the bottom for the fixed touch-nav */
.dash-page {
    padding: 16px 16px 100px;
    min-height: 100%;
    box-sizing: border-box;
}

a { color: var(--bso-green); }

/* Big, thumb-friendly buttons everywhere on this touchscreen */
.btn {
    min-height: 52px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
}
.btn-sm { min-height: 40px; font-size: 0.95rem; }
.form-control, .form-select {
    min-height: 52px;
    font-size: 1.1rem;
    border-radius: 10px;
}

.btn-success, .btn-primary { background-color: var(--bso-green); border-color: var(--bso-green); }
.btn-success:hover, .btn-success:focus { background-color: var(--bso-green-dark); border-color: var(--bso-green-dark); }
.btn-outline-success { color: var(--bso-green); border-color: var(--bso-green); }
.btn-outline-success:hover { background-color: var(--bso-green); }
.text-success { color: var(--bso-green) !important; }
.bg-success { background-color: var(--bso-green) !important; }

.dash-card {
    background: #fff;
    border: 1px solid #e4e9e2;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(18, 58, 36, .05);
}
.dash-card h2, .dash-card h3, .dash-card h4 { margin-top: 0; }

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.dash-header h1 {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0;
    color: var(--bso-green-dark);
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}
.dash-table th {
    background: var(--bso-green);
    color: #fff;
    text-align: left;
    padding: 10px 12px;
    position: sticky;
    top: 0;
}
.dash-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef1ec;
    vertical-align: middle;
}
.dash-table tbody tr:hover { background: rgba(31, 106, 61, .06); }
.dash-table tbody tr:nth-child(even) { background: #fafbf9; }

.dash-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
}
.dash-badge--open { background: #e4f6ea; color: var(--bso-green-dark); }
.dash-badge--closed { background: #fbe4e4; color: #a1201a; }

/* Fixed bottom touch navigation */
.dash-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    background: var(--bso-green-dark);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .18);
    z-index: 1000;
}
.dash-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 4px;
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 700;
    min-height: 76px;
}
.dash-nav__item i { font-size: 1.5rem; }
.dash-nav__item.active, .dash-nav__item:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* Numeric keypad (login) */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
}
.keypad button {
    aspect-ratio: 1;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 16px;
    border: none;
    background: #fff;
    color: var(--bso-green-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.keypad button:active { background: var(--bso-green); color: #fff; }
.keypad button.key-confirm { background: var(--bso-green); color: #fff; }
.keypad button.key-clear { background: #a1201a; color: #fff; }

@media (min-width: 768px) {
    .dash-page { padding: 24px 32px 110px; }
}
