/* ------------------------------
   Download Filter
------------------------------ */ 

.hal-download-filter {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(220px, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #f7f7f7;
}

.hal-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hal-filter-field label {
    font-size: 14px;
    font-weight: 600;
}

.hal-filter-field input,
.hal-filter-field select {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    background: #ffffff;
    box-sizing: border-box;
    font: inherit;
}

.hal-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hal-filter-button {
    min-height: 44px;
    padding: 8px 18px;
    border: 0;
    border-radius: 6px;
    background: #222222;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.hal-filter-button:hover {
    opacity: 0.8;
}

.hal-filter-reset {
    text-decoration: none;
}

.hal-download-empty {
    padding: 24px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    text-align: center;
}

/*------------------------------*/

.hal-download-table {
    width: 100%;
    margin-top: 30px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.hal-download-row {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) minmax(180px, 2fr) 100px 160px;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid #e8e8e8;
}

.hal-download-row:last-child {
    border-bottom: 0;
}

.hal-download-head {
    font-weight: 700;
    background: #f5f5f5;
}

.hal-download-title {
    font-weight: 600;
}

.hal-download-file {
    word-break: break-word;
}

.hal-download-size {
    white-space: nowrap;
    color: #666666;
}

.hal-download-action {
    text-align: right;
}

.hal-download-button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    background: #222222;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    white-space: nowrap;
}

.hal-download-button:hover {
    opacity: 0.8;
}


/* Mobile Ansicht */
@media (max-width: 700px) {

    .hal-download-table {
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .hal-download-head {
        display: none;
    }

    .hal-download-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px 14px;
        margin-bottom: 16px;
        padding: 18px;
        border: 1px solid #e2e2e2;
        border-radius: 8px;
        background: #ffffff;
    }

    .hal-download-title {
        grid-column: 1 / -1;
        font-size: 18px;
    }

    .hal-download-file {
        grid-column: 1;
        font-size: 14px;
    }

    .hal-download-size {
        grid-column: 2;
        text-align: right;
        font-size: 14px;
    }

    .hal-download-action {
        grid-column: 1 / -1;
        margin-top: 8px;
        text-align: left;
    }

    .hal-download-button {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
  .hal-download-filter {
    grid-template-columns: 1fr;
}

.hal-filter-actions {
    flex-direction: column;
    align-items: stretch;
}

.hal-filter-button {
    width: 100%;
}

.hal-filter-reset {
    text-align: center;
}
}



/* ------------------------------
   Logout Button
------------------------------ */

.hal-logout-button {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #222222;
    border-radius: 6px;
    color: #222222;
    background: transparent;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.hal-logout-button:hover {
    background: #222222;
    color: #ffffff;
}