/*
    //////////////////////////////////////////////////////////////////
    Styles for the data table
    //////////////////////////////////////////////////////////////////
*/

.table-header-sort-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit; /* inherit Polaris header font/size */
    color: inherit; /* inherit header color */
    text-align: left;
    cursor: pointer; /* show it is clickable */
}

    /* Optional: subtle underline or color change on hover to hint interaction */
    .table-header-sort-button:hover {
        text-decoration: underline;
    }

.table-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* adjust to taste / Polaris spacing */
    padding-bottom: 1rem;
}

/* Left label (count) takes minimal space */
.table-header-left {
    flex: 0 0 auto;
}

/* Search grows to fill available space */
.table-header-search {
    flex: 1 1 auto;
    min-width: 0; /* allows the search field to actually shrink on small screens */
}

/* Right actions (Add button) hug the right edge */
.table-header-actions {
    flex: 0 0 auto;
}









/*
    //////////////////////////////////////////////////////////////////
    From here on, they are just the styles defined by the template
    //////////////////////////////////////////////////////////////////
*/

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
