.branding-settings-card {
    border: 1px solid hsl(0 0% 18%);
    border-radius: 0.75rem;
    padding: 1.25rem;
    background: hsl(0 0% 7%);
    color: hsl(0 0% 98%);
}

.branding-settings-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.branding-settings-card p {
    margin: 0.35rem 0 0;
    color: hsl(0 0% 64%);
    font-size: 0.875rem;
    line-height: 1.45;
}

.branding-preview-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    margin-top: 1rem;
    padding: 1rem;
    overflow: hidden;
    border: 1px dashed hsl(0 0% 28%);
    border-radius: 0.65rem;
    background: hsl(0 0% 4%);
}

.branding-preview-box img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 130px;
    object-fit: contain;
}

.branding-preview-placeholder {
    color: hsl(0 0% 56%);
    font-size: 0.85rem;
    text-align: center;
}

.branding-file-label {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.branding-file-input {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.6rem;
    border: 1px solid hsl(0 0% 22%);
    border-radius: 0.5rem;
    background: hsl(0 0% 5%);
    color: inherit;
    font-size: 0.875rem;
}

.branding-file-input::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.45rem 0.75rem;
    border: 0;
    border-radius: 0.4rem;
    background: hsl(48 96% 53%);
    color: hsl(0 0% 4%);
    cursor: pointer;
    font-weight: 600;
}

.branding-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.branding-button {
    min-height: 2.25rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
}

.branding-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.branding-button-primary {
    background: hsl(48 96% 53%);
    color: hsl(0 0% 4%);
}

.branding-button-secondary {
    border-color: hsl(0 0% 25%);
    background: transparent;
    color: inherit;
}

.branding-message {
    min-height: 1.25rem;
    margin-top: 0.8rem !important;
}

.branding-message[data-type="success"] {
    color: hsl(142 71% 55%);
}

.branding-message[data-type="error"] {
    color: hsl(0 84% 67%);
}

.branding-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    color: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.branding-nav-link:hover {
    background: hsl(0 0% 16%);
}

/* Logomarca principal no cabeçalho da barra lateral administrativa. */
[data-slot="sidebar"][data-state="expanded"] [data-sidebar="header"] [data-sidebar="menu-button"] {
    height: 88px !important;
    min-height: 88px;
    padding: 3px 8px !important;
    overflow: visible;
}

[data-slot="sidebar"][data-state="expanded"] [data-sidebar="header"] img[data-dynamic-brand-logo="true"] {
    width: 205px !important;
    max-width: calc(100% - 4px);
    height: 82px !important;
    object-fit: contain;
    object-position: left center;
}

[data-sidebar="sidebar"][data-mobile="true"] [data-sidebar="header"] [data-sidebar="menu-button"] {
    height: 84px !important;
    min-height: 84px;
    padding: 3px 8px !important;
    overflow: visible;
}

[data-sidebar="sidebar"][data-mobile="true"] [data-sidebar="header"] img[data-dynamic-brand-logo="true"] {
    width: 195px !important;
    max-width: calc(100% - 4px);
    height: 78px !important;
    object-fit: contain;
    object-position: left center;
}

[data-slot="sidebar"][data-state="collapsed"] [data-sidebar="header"] img[data-dynamic-brand-logo="true"] {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
    object-position: center;
}

html:not(.dark) .branding-settings-card {
    border-color: hsl(0 0% 86%);
    background: white;
    color: hsl(0 0% 5%);
}

html:not(.dark) .branding-settings-card p {
    color: hsl(0 0% 42%);
}

html:not(.dark) .branding-preview-box,
html:not(.dark) .branding-file-input {
    border-color: hsl(0 0% 82%);
    background: hsl(0 0% 98%);
}

html:not(.dark) .branding-nav-link:hover {
    background: hsl(0 0% 94%);
}
