html,
body {
    height: 100%;
    margin: 0;
}

:root {
    --footer-height: 40px;
}

.layout-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.page-content {
    flex: 1;
    padding-bottom: calc(var(--footer-height) + 20px);
}

#footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: white;
    z-index: 999;
    font-size: 10px;
    margin-top: 30px;
    padding: 10px;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.home-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.home-card-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
}

.home-card-description {
    color: #6c757d;
    margin-bottom: 15px;
}

.home-card-alert {
    color: #dc3545;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.home-card-extra {
    font-size: .9rem;
    color: #6c757d;
    margin-top: 6px;
}

.home-card-action {
    margin-top: auto;
}

.home-card-action home-menu-item {
    width: 100%;
}

.table-full-page thead th {
    position: sticky;
    top: 178px;
    z-index: 998;
    background: white;
}

.buttons-container {
    position: sticky;
    top: 140px;
    height: 38px;
    z-index: 999;
    background: #eeeeee;
    margin: 0 10px;
    padding: 0;

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

.buttons-container-flex {
    position: sticky;
    top: 140px;
    height: 38px;
    z-index: 999;
    background: #eeeeee;
    margin: 0 10px;
    padding: 0;
}

.function-actions-container,
.page-actions-container {
    padding: 0;
    margin: 0;
}

.page-actions-container {
    margin-left: 0;
}

.my-indicator {
    display:none;
}
.htmx-request .my-indicator,
.htmx-request.my-indicator {
    display:block;
    opacity: 1;
    visibility: visible;
    transition: opacity 200ms ease-in;
}
