#nprogress .bar {
    background: var(--td-brand-color-7) !important;
}

.color-warning {
    color: var(--td-warning-color);
}

.color-success {
    color: var(--td-success-color);
}

.color-error {
    color: var(--td-error-color);
}

.color-disabled {
    color: var(--td-text-color-disabled);
}

.grid-cols-auto-1 {
    grid-template-columns: auto minmax(0, 1fr);
}

.grid-rows-auto-1fr {
    grid-template-rows: auto minmax(0, 1fr);
}

.page-container {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
    background-color: var(--td-bg-color-page);
}

.page-container > * {
    min-width: 0;
    min-height: 0;
}

.card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.card > .t-loading__parent {
    min-height: 0;
    overflow: hidden;
}

.card > .t-loading__parent > .t-card__body {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.table-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.table-container > .t-table {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    min-height: 0;
}

.pagination-wrapper {
    display: flex;
    flex-shrink: 0;
    justify-content: flex-end;
}

.dialog-form :where(.t-form__item) {
    margin-bottom: 16px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.form-hint {
    color: var(--td-text-color-placeholder);
    font-size: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
}

.stat-label {
    color: var(--td-text-color-secondary);
    font-size: 13px;
}

.section-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
}

.section-card > .t-loading__parent {
    min-height: 0;
    overflow: hidden;
}

.section-card > .t-loading__parent > .t-card__body {
    min-height: 0;
    overflow: auto;
}

.editor-page {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.editor-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.editor-card > .t-loading__parent {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.editor-card > .t-loading__parent > .t-card__body {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.editor-form {
    height: 100%;
}

.editor-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: 100%;
    gap: 1px;
    background-color: var(--td-component-border);
}

.editor-layout.article-editor-layout {
    grid-template-columns: 30% 40% 30%;
}

.column {
    min-width: 0;
    overflow-y: auto;
    background-color: var(--td-bg-color-container);
}

.middle-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.content-section {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 420px;
}

.section-title {
    border-bottom: 2px solid var(--td-brand-color-7);
    color: var(--td-text-color-primary);
    font-size: 15px;
    font-weight: 600;
}

.editor-content .section-title {
    margin-top: 16px;
}

.section-title:has(> .t-button),
.section-title:has(> span) {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-section:last-child {
    margin-bottom: 0;
}

.cover-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.cover-preview {
    width: 120px;
    height: 80px;
    overflow: hidden;
    border: 1px solid var(--td-component-border);
    border-radius: var(--td-radius-default);
}

.cover-preview .t-image,
.cover-preview img {
    width: 100%;
    height: 100%;
}

.content-editor-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.editor-wrapper {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    border: 1px solid var(--td-component-border);
    border-radius: var(--td-radius-default);
}

.editor-toolbar-container {
    flex-shrink: 0;
    border-bottom: 1px solid var(--td-component-border);
}

.editor-content-container {
    flex: 1;
    overflow-y: auto;
}

.editor-box {
    height: 100%;
}

.info-item {
    border: 1px solid var(--td-component-border);
    border-radius: var(--td-radius-default);
    background: var(--td-bg-color-container-hover);
}

.info-label {
    margin-bottom: 6px;
    color: var(--td-text-color-secondary);
    font-size: 12px;
}

.info-value {
    line-height: 1.6;
    color: var(--td-text-color-primary);
    font-weight: 600;
}
