﻿.admin-content {
    width: 100%;
    max-width: 1024px;
    margin: 3rem auto;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

    .alert.alert-danger {
        background-color: #fef2f2;
        color: #c10007;
    }

.uploading {
    display: flex;
    width: 100%;
    margin-bottom: 1.5rem;
    border: 1px solid var(--stroke-default);
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    height: 2.375rem;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
}

/** FORM */
.form {
    background: var(--bg-white);
    padding: 1.5rem;
    border: 1px solid var(--stroke-default);
    border-radius: 0.75rem;
}

.quill-hidden {
    display: none;
}

.ql-toolbar.ql-snow {
    border: 1px solid var(--stroke-default);
    font-family: var(--font-family);
    padding: 0.5rem 0.75rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.ql-container.ql-snow {
    border: 1px solid var(--stroke-default);
    margin-bottom: 1.5rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    height: 12rem;
}

.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
    border-color: var(--stroke-default);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}

/** TABLE */
.table {
    background: var(--bg-white);
    border: 1px solid var(--stroke-default);
    border-radius: 0.75rem;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    height: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
    padding-left: 1rem;
}

td {
    border-top: 1px solid var(--stroke-default);
    height: 2.5rem;
    padding-left: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    td.fit-content {
        width: 0;
    }

    td:last-child {
        padding-right: 1rem;
    }

tr.selectable {
    cursor: pointer;
}

    tr.selectable:hover td {
        background: var(--highlight);
    }

/** TAGS */
.tag {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
    justify-content: center;
    font-size: 0.75rem;
    text-transform: capitalize;
}

    .tag.published {
        color: green;
        background: #f4fff4;
        border: 1px solid #67dd67;
    }

    .tag.restricted {
        color: #dd8f00;
        background: #fff5e3;
        border: 1px solid #ffc864;
    }

    .tag.draft {
        color: #5b3b3b;
        background: #f2f2f2;
        border: 1px solid #d9d4f7;
    }


/** WIDTH */
.w-max-10 {
    max-width: 10rem;
}
