:root {
    --card-radius: 1.1rem;
}

body {
    min-height: 100vh;
}

.card-soft {
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.06);
}

.table td,
.table th {
    vertical-align: middle;
}

.thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 0.9rem;
    background: #f0f0f0;
}

.thumb-lg {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 1rem;
    background: #f6f6f6;
}

.muted-label {
    font-size: .85rem;
    color: #6c757d;
}

.kpi-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.actions-inline form {
    display: inline-block;
}

pre.sql-hint {
    white-space: pre-wrap;
    font-size: .9rem;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .table-mobile-stack thead {
        display: none;
    }

    .table-mobile-stack,
    .table-mobile-stack tbody,
    .table-mobile-stack tr,
    .table-mobile-stack td {
        display: block;
        width: 100%;
    }

    .table-mobile-stack tr {
        border-bottom: 1px solid #e9ecef;
        padding: .75rem 0;
    }

    .table-mobile-stack td {
        border: 0;
        padding: .25rem 0;
    }

    .table-mobile-stack td::before {
        content: attr(data-label);
        display: block;
        font-size: .8rem;
        color: #6c757d;
        margin-bottom: .15rem;
    }
}


.hero-card {
    background: linear-gradient(135deg, rgba(25,135,84,.12), rgba(25,135,84,.03));
}

.quick-action {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 .35rem 1rem rgba(0,0,0,.05);
    transition: transform .12s ease, box-shadow .12s ease;
    min-height: 128px;
}

.quick-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 .5rem 1.2rem rgba(0,0,0,.08);
    color: inherit;
}

.quick-action-emoji {
    font-size: 1.7rem;
    line-height: 1;
}

.quick-action-title {
    font-weight: 700;
    margin-top: .75rem;
    margin-bottom: .25rem;
}

.quick-action-text {
    color: #6c757d;
    font-size: .92rem;
    line-height: 1.3;
}

.mobile-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: rgba(25,135,84,.08);
    color: #146c43;
    font-weight: 600;
    font-size: .88rem;
}

.messe-list {
    margin: 0;
    padding-left: 1.1rem;
}

.messe-list li + li {
    margin-top: .35rem;
}

.recent-link {
    text-decoration: none;
    color: inherit;
    border-radius: 1rem;
    padding: .3rem;
}

.recent-link:hover {
    background: rgba(0,0,0,.03);
    color: inherit;
}

@media (max-width: 767.98px) {
    .container.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1.25rem !important;
    }

    .quick-action {
        min-height: 118px;
        padding: .9rem;
    }

    .kpi-number {
        font-size: 1.7rem;
    }
}


.quick-section + .quick-section {
    margin-top: 1rem;
}

.quick-card {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
    background: #fff;
}

.quick-card .card-body {
    padding: 1rem;
}

.sticky-mobile-actions {
    position: sticky;
    bottom: .75rem;
    z-index: 10;
}

.image-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

@media (max-width: 767.98px) {
    .sticky-mobile-actions .btn {
        width: 100%;
    }
}


/* Navigation contrast fix */
.navbar.bg-success {
    background-color: #146c43 !important;
}

.navbar.bg-success .navbar-brand,
.navbar.bg-success .navbar-brand:hover,
.navbar.bg-success .navbar-brand:focus,
.navbar.bg-success .nav-link,
.navbar.bg-success .nav-link:hover,
.navbar.bg-success .nav-link:focus,
.navbar.bg-success .navbar-text,
.navbar.bg-success .navbar-toggler {
    color: rgba(255,255,255,.96) !important;
}

.navbar.bg-success .nav-link {
    font-weight: 600;
}

.navbar.bg-success .nav-link:hover,
.navbar.bg-success .nav-link:focus {
    text-decoration: underline;
    text-underline-offset: .2rem;
}

.navbar.bg-success .nav-link.active,
.navbar.bg-success .nav-link[aria-current="page"] {
    color: #ffffff !important;
    background: rgba(255,255,255,.12);
    border-radius: .6rem;
}

.navbar.bg-success .navbar-toggler {
    border-color: rgba(255,255,255,.35);
}


.kpi-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.kpi-link:hover,
.kpi-link:focus {
    color: inherit;
}

.kpi-link .card {
    transition: transform .12s ease, box-shadow .12s ease;
}

.kpi-link:hover .card,
.kpi-link:focus .card {
    transform: translateY(-1px);
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.08);
}
