﻿html,
body,
#app {
    height: 100%;
}

.ant-layout {
    min-height: 100vh;
}

body {
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f5f5;
}

ul,
ol {
    list-style: none;
}

.action {
    cursor: pointer;
}

.ant-pro-page-container {
    margin: 0;
}

.ant-pro-page-container-children-content {
    margin-block: 16px;
}

.ant-pro-sider .ant-menu-item-selected {
    font-weight: 500;
}

.shell-empty-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 48px 24px;
}

.shell-content {
    min-height: calc(100vh - 112px);
}

.shell-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}

.shell-header-toggle,
.shell-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background-color 0.2s ease;
}

.shell-header-toggle:hover,
.shell-header-action:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.shell-right-content {
    display: flex;
    align-items: center;
    height: 100%;
}

.shell-right-perfil {
    display: none;
}

.shell-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 48px 24px;
}

.shell-state-loading {
    flex-direction: column;
}

@media (min-width: 992px) {
    .shell-right-perfil {
        display: block;
    }
}

/* CRUD screens */
.crud-page-description {
    margin: 0;
}

.crud-list-card.ant-card,
.crud-form-card.ant-card,
.crud-actions-card.ant-card {
    border-radius: 0;
    box-shadow: none;
}

.crud-list-table {
    margin-top: 4px;
}

.crud-table-footer {
    margin-top: 12px;
    padding-top: 8px;
}

.crud-form-alert {
    margin-bottom: 16px;
}

.crud-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.crud-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.crud-actions-card .ant-card-body {
    padding-top: 12px;
    padding-bottom: 12px;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    body .ant-design-pro > .ant-layout {
        min-height: 100vh;
    }
}
