﻿.pulsing-image img {
    display: block;
    width: 200px; /* Aumentando o tamanho inicial da imagem */
    margin: 250px auto 0; /* Aumenta a margem superior para mover a imagem para baixo */
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) translateY(0); /* Tamanho original e posição vertical inicial */
    }

    50% {
        transform: scale(1.5) translateY(20px); /* Aumenta a imagem para 150% e move um pouco para baixo durante o pulso */
    }
}

.rounded-button {
    border-radius: 10px; /* ou qualquer outro valor desejado */
}

.filter-container {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 10px; /* Espaço entre os itens internos */
    background-color: #f5f5f5; /* Cor de fundo do contêiner */
    border-radius: 5px; /* Bordas arredondadas */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra suave */
    margin-bottom: 20px; /* Espaço abaixo do contêiner */
}

.detail-item {
    margin-bottom: 5px; /* Espaçamento entre os itens */
}

.asset-compact-fieldset .rz-fieldset-content {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.asset-compact-fieldset .row {
    --bs-gutter-y: 0.5rem;
}

.asset-money-input {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.asset-money-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
}

.asset-money-input .rz-numeric,
.asset-money-input .rz-inputtext {
    border-radius: 0 6px 6px 0 !important;
}

.asset-values-row {
    --bs-gutter-y: 1rem;
}

.asset-attachment-reference {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.asset-attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}

/* Sidebar menu contrast */
.rz-panel-menu .rz-panel-menu-item-link,
.rz-panel-menu .rz-panel-menu-item-text,
.rz-panel-menu .rz-panel-menu-item-icon {
    color: #0f172a !important;
    opacity: 1;
}

.rz-panel-menu .rz-panel-menu-item-link:hover,
.rz-panel-menu .rz-panel-menu-item-link:focus,
.rz-panel-menu .rz-panel-menu-item-link:active {
    color: #0f172a !important;
}

.rz-panel-menu .rz-panel-menu-item-active > .rz-panel-menu-item-link,
.rz-panel-menu .rz-panel-menu-item-active > .rz-panel-menu-item-link .rz-panel-menu-item-text {
    color: #0f172a !important;
}

/* Asset search input group */
.asset-search-group {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background-color: #ffffff;
    overflow: hidden;
    min-height: 40px;
}

.asset-search-group .asset-search-action,
.asset-search-group .rz-button.asset-search-action {
    border: none !important;
    background-color: transparent !important;
    color: #1e3a5f !important;
    padding: 0 12px !important;
    height: 40px !important;
    min-width: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    box-shadow: none !important;
}

.asset-search-group .asset-search-action:hover,
.asset-search-group .asset-search-action:focus,
.asset-search-group .rz-button.asset-search-action:hover,
.asset-search-group .rz-button.asset-search-action:focus {
    background-color: #e2e8ff !important;
}

.asset-search-group .asset-search-input {
    flex: 1;
}

.asset-search-group .asset-search-input .rz-textbox {
    border: none !important;
    box-shadow: none !important;
    width: 100%;
}

.asset-search-group .asset-search-button + .asset-search-input {
    border-left: 1px solid #e5e7eb;
}

.asset-search-group .asset-search-input + .asset-search-button {
    border-left: 1px solid #e5e7eb;
}

.asset-search-help {
    font-size: 0.9rem;
    color: #64748b;
}

.asset-custody-edit-field,
.asset-custody-edit-group {
    margin-top: 0.25rem;
    min-height: 40px;
    border-radius: 10px !important;
}

.asset-custody-edit-field.rz-textbox {
    width: 100%;
    border: 1px solid #d1d5db;
    box-shadow: none;
}

.barcode-video {
    width: 100%;
    border-radius: 12px;
    background-color: #0f172a;
    max-height: 320px;
}

.batch-add-button .rz-button-icon-left {
    order: 2;
    margin-right: 0;
    margin-left: 0.5rem;
}

.batch-add-button .rz-button-text {
    order: 1;
}

.stock-sku-search-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto auto;
    gap: 0.5rem;
    align-items: center;
}

.add-stock-item-line-dialog .rz-grid-table,
.stock-catalog-search-dialog .rz-grid-table,
.person-search-dialog .rz-grid-table {
    min-width: 760px;
}

.add-stock-item-line-dialog {
    min-width: 0;
}

.add-stock-item-line-dialog .rz-grid {
    width: 100%;
}

@media (max-width: 640px) {
    .stock-sku-search-row {
        grid-template-columns: 1fr;
    }

    .stock-sku-search-row .rz-button {
        width: 100%;
    }
}

.photo-capture-single {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.photo-capture-thumb {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.photo-capture-thumb-actions .rz-button {
    min-width: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.asset-editor-shell {
    width: 100%;
    margin: 0;
    overflow: visible;
    background: transparent;
    color: #1e293b;
}

.asset-editor-body {
    overflow: visible;
    padding: 0 0 12px;
}

.asset-editor-grid {
    row-gap: 22px;
}

.asset-editor-main,
.asset-side-panel {
    min-width: 0;
}

.asset-side-panel {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.asset-editor-shell .rz-fieldset {
    margin: 0;
    border: 1px solid #e3e9f1;
    border-radius: 10px;
    background: #ffffff;
}

.asset-editor-shell .rz-fieldset-content {
    padding: 18px;
}

.asset-editor-shell .rz-fieldset-legend,
.asset-editor-shell .rz-fieldset-legend-text {
    color: #2563eb;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.asset-editor-shell .rz-label {
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
}

.asset-editor-shell .rz-textbox,
.asset-editor-shell .rz-dropdown,
.asset-editor-shell .rz-datepicker,
.asset-editor-shell .rz-numeric,
.asset-editor-shell .rz-inputtext {
    min-height: 42px;
    border-color: #cbd6e4;
    border-radius: 8px;
    color: #1e293b;
    font-size: 14px;
}

.asset-editor-shell .rz-textbox:focus,
.asset-editor-shell .rz-inputtext:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.asset-editor-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 0 0;
    border-top: 1px solid #e6ebf2;
    background: transparent;
}

.asset-media-fieldset .rz-fieldset-content {
    padding: 18px;
}

.image-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.image-picker-preview {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid #e3e9f1;
    border-radius: 10px;
    background: #0f172a;
}

.image-picker-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-picker-preview-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
}

.image-picker-preview-badge .rz-icon {
    font-size: 15px;
}

.image-picker-remove.rz-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
}

.image-picker-remove.rz-button:hover,
.image-picker-remove.rz-button:focus {
    background: #e11d48;
}

.image-picker-actions {
    display: flex;
    gap: 10px;
}

.image-picker-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    border: 1px solid #cbd6e4;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.image-picker-action {
    flex: 1 1 0;
}

.image-picker-action:hover,
.image-picker-action:focus {
    border-color: #94a3b8;
    background: #f8fafc;
}

.image-picker-action .rz-icon {
    font-size: 18px;
}

.image-picker-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 20px;
    border: 2px dashed #c2d2e8;
    border-radius: 10px;
    background: #f8fbff;
    color: #334155;
    text-align: center;
}

.image-picker-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #e6efff;
    color: #2563eb;
}

.image-picker-empty-icon .rz-icon {
    font-size: 28px;
}

.image-picker-empty-title {
    font-size: 14px;
    font-weight: 700;
}

.image-picker-empty-hint {
    color: #64748b;
    font-size: 12px;
}

.image-picker-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.image-picker-file-name {
    overflow: hidden;
    color: #64748b;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .asset-editor-body,
    .asset-editor-footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .asset-editor-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .image-picker-actions {
        flex-direction: column;
    }

    .asset-editor-footer .rz-button {
        width: 100%;
    }
}
