.saida-page #saida-results-table thead th:nth-child(5) {
    background: linear-gradient(135deg, rgba(126, 240, 201, 0.35), rgba(20, 255, 243, 0.45));
    color: #14fff3;
    box-shadow: 0 0 18px rgba(20, 255, 243, 0.35);
}

.saida-page #saida-results-table tbody td:nth-child(5) {
    background: rgba(20, 255, 243, 0.12);
    border: 1px solid rgba(20, 255, 243, 0.35);
    font-weight: 600;
    color: #bffcf7;
}

.saida-page #saida-results-table tbody tr.is-selected td:nth-child(5) {
    background: linear-gradient(135deg, rgba(20, 255, 243, 0.8), rgba(126, 240, 201, 0.9));
    border-color: rgba(3, 18, 26, 0.35);
    color: #03121a;
}

:root {
    --saida-border: rgba(255, 255, 255, 0.08);
}

.saida-feedback {
    width: min(1100px, calc(100% - 20px));
    margin: 12px auto 0;
    padding: 12px 18px;
    border-radius: 18px;
    border: 1px solid var(--saida-border);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.92rem;
    display: none;
}

.saida-feedback[data-variant] {
    display: block;
}

.saida-feedback[data-variant="info"] {
    border-color: rgba(95, 180, 255, 0.4);
    color: #9ccfff;
}

.saida-feedback[data-variant="success"] {
    border-color: rgba(122, 244, 192, 0.55);
    color: #7ef0c9;
}

.saida-feedback[data-variant="error"] {
    border-color: rgba(255, 138, 138, 0.6);
    color: #ff9b9b;
}

.saida-table--selectable tbody tr {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.saida-table--selectable tbody tr:hover td {
    background: rgba(95, 180, 255, 0.15);
}

.saida-table--selectable tbody tr.is-selected {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(11, 26, 45, 0.55);
}

.saida-table--selectable tbody tr.is-selected td {
    background: linear-gradient(130deg, rgba(126, 240, 201, 0.7), rgba(20, 255, 243, 0.85));
    color: #14fff3;
    font-weight: 600;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65), 0 0 16px rgba(95, 180, 255, 0.35);
}

.saida-table--selectable tbody tr.is-selected td .barcode-chip {
    background: rgba(3, 18, 26, 0.2);
    border-color: rgba(3, 18, 26, 0.35);
    color: #14fff3;
}

.details-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.details-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.stock-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stock-chip {
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid var(--saida-border);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.details-wrapper {
    border-radius: 18px;
    border: 1px solid var(--saida-border);
    padding: 18px 20px;
    display: grid;
    gap: 10px;
    background: rgba(5, 9, 20, 0.75);
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.inventory-header h2 {
    margin-bottom: 0;
}

.inventory-status {
    margin-bottom: 0.8rem;
    color: var(--inventory-muted, rgba(255, 255, 255, 0.65));
}

.saida-page #saida-results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px 6px;
    font-size: 0.9rem;
}

.saida-page #saida-results-table thead th {
    letter-spacing: 0.15em;
    font-size: 0.68rem;
    padding: 12px 16px;
    position: relative;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    text-transform: uppercase;
    color: var(--inventory-muted, rgba(255, 255, 255, 0.65));
}

.saida-page #saida-results-table thead th:not(:first-child)::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 28%;
    bottom: 28%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.saida-page #saida-results-table tbody td {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    text-align: center;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.saida-page #saida-results-table tbody tr:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.03);
}

.saida-page #saida-results-table td:nth-child(1),
.saida-page #saida-results-table td:nth-child(2) {
    text-align: left;
}

.saida-page #saida-results-table td:nth-child(5),
.saida-page #saida-results-table td:nth-child(6),
.saida-page #saida-results-table td:nth-child(7) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.saida-page #saida-results-table td:nth-child(9) {
    text-align: center;
}

.detail-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
}

.detail-line span {
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

.exit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exit-form.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-grid input,
.form-grid select {
    border-radius: 16px;
    border: 1px solid var(--saida-border);
    background: rgba(4, 7, 18, 0.9);
    color: var(--text);
    padding: 10px 14px;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.history-panel label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.history-panel select {
    border-radius: 16px;
    border: 1px solid var(--saida-border);
    background: rgba(5, 9, 22, 0.9);
    color: var(--text);
    padding: 8px 12px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
}

.history-meta {
    text-align: right;
}

.history-filter-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.8rem;
}

.history-filter {
    width: min(320px, 100%);
}

.history-table-wrapper {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px;
    background: rgba(4, 7, 18, 0.65);
}

.history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 8px 6px;
    font-size: 0.88rem;
}

.history-table thead th {
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    padding: 10px 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--inventory-muted, rgba(255, 255, 255, 0.65));
}

.history-table tbody td {
    text-align: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.history-table tbody tr:hover td {
    background: rgba(95, 180, 255, 0.12);
}

.history-table td:nth-child(1) {
    text-align: left;
    font-weight: 600;
}

.history-table td:nth-child(4) {
    font-variant-numeric: tabular-nums;
    text-align: right;
    background: rgba(20, 255, 243, 0.1);
    border: 1px solid rgba(20, 255, 243, 0.3);
    color: #b6fff8;
    font-weight: 600;
}

.history-table td:nth-child(5),
.history-table td:nth-child(6) {
    text-align: left;
}

.saida-dialog {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 12, 0.72);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.saida-dialog[hidden] {
    display: none;
}

.saida-dialog__card {
    width: min(520px, 100%);
    background: rgba(5, 7, 18, 0.95);
    border-radius: 28px;
    border: 1px solid rgba(122, 244, 192, 0.4);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.saida-dialog__close {
    align-self: flex-end;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.4rem;
    cursor: pointer;
}

.saida-dialog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.dialog-chip {
    border-radius: 18px;
    border: 1px solid var(--saida-border);
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
}

.dialog-chip span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
}

.saida-dialog__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
