﻿div.acc-table-container {
    border-radius: 0.5rem;
}

div.acc-table-container  > table {
        width: 100%;
        border-collapse: collapse;
        border: none;
        margin-bottom: 1rem;
    }

:is(div.acc-table-container > table) :where(td,th) {
            padding: 0.5rem;
            border: 1px solid var(--acc-table-border-color);
        }

:is(div.acc-table-container > table)  > thead > tr {
            background-color: var(--acc-table-even-row-background-color);
            color: var(--acc-table-text-color);
            font-weight: bold;
        }

:is(:is(div.acc-table-container > table) > thead > tr)  > th {
                font-weight: bold;
                text-align: start;
            }

:is(:is(:is(div.acc-table-container > table) > tbody) > tr)  > td {
                    color: var(--acc-table-text-color);
                    font-weight: normal;
                }

:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type {
                        display: flex;
                        gap: 0.5rem;
                        flex-wrap: wrap;
                        border-bottom: none;
                    }

:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type  > a {
                            font-size: small;
                            border-radius: 0.25rem;
                            border-width: 1px;
                            border-style: solid;
                            padding: 0.2rem 0.6rem;
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            text-align: center;
                            user-select: none;
                            cursor: pointer;
                            position: relative;
                        }

:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a)  > i {
                                display: flex;
                                padding: 0.25rem 0;
                            }

:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a)::after {
                                content: attr(data-title);
                                position: absolute;
                                top: -32px;
                                padding: 0.2rem 0.4rem;
                                color: var(--tw-gray-100);
                                font-size: smaller;
                                border-radius: 0.75rem;
                                z-index: 2;
                                white-space: nowrap;
                                scale: 0;
                                transition: scale 0.2s ease;
                            }

:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover::after {
                                    scale: 1;
                                }

:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover::before {
                                    scale: 1.75 1;
                                }

:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a)::before {
                                content: "▲";
                                rotate: 180deg;
                                display: flex;
                                position: absolute;
                                top: -20px;
                                scale: 0;
                                transition: scale 0.2s ease;
                            }

.details:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a) {
                                border-color: var(--tw-yellow-600);
                                color: var(--tw-yellow-600);
                            }

.details:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):not(.custom) > i::before {
                                    font-family: 'bootstrap-icons';
                                    content: "\f479";
                                }

.details:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover {
                                    background-color: rgba(234, 179, 0, .4);
                                }

@supports (color: color-mix(in srgb, black, white)) {

.details:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover {
                                    background-color: color-mix(in srgb, var(--tw-yellow-500) 40%, transparent 60%);
                                }
}

.details:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover::after {
                                        background-color: var(--tw-yellow-600);
                                    }

.details:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):focus {
                                    box-shadow: 0 0 0 3px var(--tw-yellow-300);
                                }

.update:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a) {
                                border-color: var(--tw-blue-600);
                                color: var(--tw-blue-600);
                            }

.update:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):not(.custom) > i::before {
                                    content: "\f4cb";
                                }

.update:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover {
                                    background-color: rgba(50, 128, 255, .4);
                                }

@supports (color: color-mix(in srgb, black, white)) {

.update:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover {
                                    background-color: color-mix(in srgb, var(--tw-blue-500) 40%, transparent 60%);
                                }
}

.update:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover::after {
                                        background-color: var(--tw-blue-600);
                                    }

.update:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):focus {
                                    box-shadow: 0 0 0 3px var(--tw-blue-300);
                                }

.delete:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a) {
                                border-color: var(--tw-red-600);
                                color: var(--tw-red-600);
                            }

.delete:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a) form {
                                    display: none;
                                }

.delete:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):not(.custom) > i::before {
                                    content: "\f5de";
                                }

.delete[data-status=locked]:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a) > i::before {
                                    content: "\f47b";
                                }

.delete[data-status=pending]:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a) > i::before {
                                    content: "\f130";
                                    animation: spinner-border 3s linear infinite;
                                }

.delete:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover {
                                    background-color: rgba(251, 44, 54, .4);
                                }

@supports (color: color-mix(in srgb, black, white)) {

.delete:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover {
                                    background-color: color-mix(in srgb, var(--tw-red-500) 40%, transparent 60%);
                                }
}

.delete:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover::after {
                                        background-color: var(--tw-red-600);
                                    }

.delete:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):focus {
                                    box-shadow: 0 0 0 3px var(--tw-red-300);
                                }

.master:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a) {
                                border-color: var(--tw-gray-600);
                                color: var(--tw-gray-600);
                            }

.master:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):not(.custom) > i::before {
                                    content: "\f4da";
                                }

.master:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover {
                                    background-color: rgba(74, 85, 101, .4);
                                }

@supports (color: color-mix(in srgb, black, white)) {

.master:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover {
                                    background-color: color-mix(in srgb, var(--tw-gray-600) 40%, transparent 60%);
                                }
}

.master:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover::after {
                                        background-color: var(--tw-gray-600);
                                    }

.master:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):focus {
                                    box-shadow: 0 0 0 3px var(--tw-gray-300);
                                }

.apply:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a) {
                                border-color: var(--tw-purple-600);
                                color: var(--tw-purple-600);
                            }

.apply:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):not(.custom) > i::before {
                                    content: "\f675";
                                }

.apply:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover {
                                    background-color: rgba(152, 16, 250, .4);
                                }

@supports (color: color-mix(in srgb, black, white)) {

.apply:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover {
                                    background-color: color-mix(in srgb, var(--tw-purple-600) 40%, transparent 60%);
                                }
}

.apply:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):hover::after {
                                        background-color: var(--tw-purple-600);
                                    }

.apply:is(:is(:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td):last-of-type > a):focus {
                                    box-shadow: 0 0 0 3px var(--tw-purple-300);
                                }

[ondblclick]:is(:is(:is(div.acc-table-container > table) > tbody) > tr) {
                    cursor: pointer;
                }

.primary:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td {
                    color: var(--acc-primary-color);
                }

.success:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td {
                    color: var(--acc-success-color);
                }

.warning:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td {
                    color: var(--acc-warning-color);
                }

.ptn-special:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td {
                    color: var(--acc-primary-color);
                }

.danger:is(:is(:is(div.acc-table-container > table) > tbody) > tr) > td {
                    color: var(--acc-danger-color);
                }

:is(:is(:is(div.acc-table-container > table) > tbody) > tr):nth-child(odd) {
                    background-color: var(--acc-table-odd-row-background-color);
                }

:is(:is(:is(div.acc-table-container > table) > tbody) > tr):nth-child(even) {
                    background-color: var(--acc-table-even-row-background-color);
                }

:is(:is(:is(div.acc-table-container > table) > tbody) > tr):hover {
                    background-color: var(--acc-table-hover-row-background-color);
                }

:is(div.acc-table-container > table)  > tfoot > tr > td {
            width: 100%;
        }

:is(:is(div.acc-table-container > table) > tfoot > tr > td)  > div {
                display: flex;
                justify-content: space-between;
            }

:is(:is(:is(div.acc-table-container > table) > tfoot > tr > td) > div)  > a {
                    display: flex;
                    cursor: pointer;
                    gap: 0.5rem;
                    align-items: center;
                    justify-content: center;
                }

:is(:is(:is(:is(div.acc-table-container > table) > tfoot > tr > td) > div) > a)  > i {
                        display: inline-flex;
                    }

:is(:is(:is(div.acc-table-container > table) > tfoot > tr > td) > div)  > ul {
                    display: flex;
                    list-style-type: none;
                    gap: 1rem;
                    margin: 0;
                }

:is(:is(:is(:is(div.acc-table-container > table) > tfoot > tr > td) > div) > ul)  > li {
                        border: 1px solid var(--tw-gray-200);
                        cursor: pointer;
                        aspect-ratio: 1 !important;
                        width: 24px;
                        max-height: 24px;
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        border-radius: 50%;
                        padding: 0.25rem;
                    }

:is(:is(:is(:is(:is(div.acc-table-container > table) > tfoot > tr > td) > div) > ul) > li)  > a {
                            font-family: fadigits !important;
                        }

.active:is(:is(:is(:is(:is(div.acc-table-container > table) > tfoot > tr > td) > div) > ul) > li) {
                            background-color: var(--tw-blue-300);
                        }

:is(div.acc-table-container > table)  > tfoot > * {
            user-select: none;
            color: var(--tw-gray-600);
        }

.acc-table:is(div.acc-table-container > table) img {
            aspect-ratio: 1;
            min-width: 2rem;
            width: 2rem;
            max-width: 2rem;
            min-height: 2rem;
            height: 2rem;
            max-height: 2rem;
            object-fit: cover;
            border-radius: 0.25rem;
        }

.form:is(div.acc-table-container > table) * {
                width: 100%;
            }

.form:is(div.acc-table-container > table) tbody {
                vertical-align: top;
            }

:is(.form:is(div.acc-table-container > table) fieldset) > label {
                    display: none;
                }

:is(.form:is(div.acc-table-container > table) fieldset) textarea {
                    overflow:hidden;
                }

@media screen and (max-width: 640px) {
    table.acc-table {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        border: none;
    }

        table.acc-table  > thead {
            display: none;
        }

        table.acc-table :where(td,th) {
            border: none;
        }

        table.acc-table  > tbody {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

            :is(table.acc-table > tbody)  > tr {
                display: flex;
                flex-direction: column;
                border: 1px solid var(--acc-table-border-color);
                border-radius: 0.25rem;
                padding: 1rem;
            }

                :is(:is(table.acc-table > tbody) > tr)  > td {
                    display: flex;
                    border: none !important;
                    border-bottom: 1px solid var(--acc-table-border-color) !important;
                    align-items: center;
                    width: 100%;
                }

                    :is(:is(:is(table.acc-table > tbody) > tr) > td):last-of-type {
                        border: none !important;
                    }

                    :is(:is(:is(table.acc-table > tbody) > tr) > td)::before {
                        content: attr(data-title);
                        display: inline-block;
                        padding-inline-end: 0.5rem;
                        width: 8rem;
                        min-width: 8rem;
                        color: var(--tw-gray-400);
                    }
}

.table-fixed {
    table-layout: fixed;
}
