.sg-page {
    --sg-border: #dfe5ec;
    --sg-muted: #667085;
    min-height: calc(100vh - 140px);
    padding: 12px;
    color: #263238;
}

.sg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
}

.sg-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.sg-title .bi {
    color: #1e4487;
}

.sg-subtitle {
    margin: 3px 0 0;
    color: var(--sg-muted);
    font-size: .85rem;
}

.sg-search {
    width: min(440px, 100%);
}

.sg-breadcrumb {
    margin-bottom: 10px;
    padding: 9px 12px;
    border: 1px solid var(--sg-border);
    border-radius: 7px;
    background: #f8fafc;
}

.sg-breadcrumb .breadcrumb {
    font-size: .85rem;
}

.sg-breadcrumb .btn-link {
    color: #1e4487;
    font-size: inherit;
    text-decoration: none;
}

.sg-content {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    border: 1px solid var(--sg-border);
    border-radius: 8px;
    background: #fff;
}

.sg-content thead th {
    border-bottom-width: 1px;
    background: #f8fafc;
    color: #475467;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.sg-content tbody td {
    padding-top: .58rem;
    padding-bottom: .58rem;
    border-color: #edf0f3;
    font-size: .88rem;
}

.sg-icon-column {
    width: 48px;
}

.sg-date-column {
    width: 170px;
}

.sg-action-column {
    width: 64px;
}

.sg-item-icon {
    color: #1e4487;
    font-size: 1.25rem;
}

.sg-item-name {
    display: block;
    padding: 0;
    color: #263238;
    font-size: .9rem;
    text-align: left;
    text-decoration: none;
}

.sg-item-name:hover {
    color: #1e4487;
    text-decoration: underline;
}

.sg-item-path {
    display: block;
    margin-top: 2px;
    color: var(--sg-muted);
}

.sg-loading {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgb(255 255 255 / 82%);
}

.sg-loading .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

.sg-empty {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--sg-muted);
}

.sg-empty .bi {
    font-size: 2rem;
}

.sg-modal-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 16px;
}

.sg-preview-body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 0;
    background: #eef1f5;
}

.sg-preview-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.sg-preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sg-preview-video {
    width: min(1100px, 100%);
    max-height: 100%;
}

/* Estilos da tela Intranet */
.intranet-preview-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    overflow: auto;
    padding: 0;
    background: #eef1f5;
}

.intranet-preview-frame {
    width: 100%;
    min-height: 70vh;
    height: 70vh;
    border: 0;
    background: #fff;
}

.intranet-preview-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.intranet-preview-video {
    width: min(1100px, 100%);
    max-height: 70vh;
}

@media (max-width: 767.98px) {
    .sg-page {
        padding: 6px;
    }

    .sg-header {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .sg-search {
        width: 100%;
    }

    .sg-date-column,
    .sg-content tbody td:nth-child(3) {
        display: none;
    }
}
