/* FIN Expense Voucher Styles */

.expense-voucher-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
}

.voucher-card {
    border: 2px solid;
    border-radius: var(--bs-border-radius-lg);
    padding: 2rem;
    position: relative;
    background-color: white;
}

.voucher-card::before,
.voucher-card::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
}

.voucher-card::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: var(--bs-border-radius-lg);
}

.voucher-card::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.voucher-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid;
    margin-bottom: 1.5rem;
}

.company-logo .logo-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    border-radius: var(--bs-border-radius);
    flex-shrink: 0;
}

.company-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.voucher-title {
    text-align: right;
}

.voucher-title h2 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.receipt-number {
    border-bottom: 2px dotted;
    padding-bottom: 4px;
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

.voucher-date {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.voucher-date label {
    font-weight: 600;
}

.company-info {
    margin-bottom: 1.5rem;
}

.info-row,
.detail-row {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px dotted;
}

.info-row label,
.detail-row label {
    font-weight: 600;
    min-width: 120px;
}

.info-row span,
.detail-row span {
    flex: 1;
}

.expense-details {
    margin: 1.5rem 0;
}

.detail-row .amount {
    font-size: 1.3rem;
    font-weight: 700;
}

.total-row {
    border-top: 2px solid;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.total-row label {
    font-size: 1.1rem;
    font-weight: 700;
}

.total-row .amount {
    font-size: 1.5rem;
}

.voucher-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.footer-item i {
    width: 20px;
    font-size: 1rem;
}

.detail-row-dates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px dotted;
}

.date-item {
    display: flex;
    gap: 1rem;
}

.date-item label {
    font-weight: 600;
    min-width: 100px;
}

.date-item span {
    flex: 1;
}

.action-buttons-nav {
    display: flex;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-item i {
    width: 20px;
}

.remarks-section,
.shipping-info {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--bs-border-radius);
    border-left: 4px solid;
}

.remarks-section label,
.shipping-info h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.remarks-section p {
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.info-grid label {
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Expense Info Component Styles */
.expense-info-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
}

.status-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.status-section .badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.payee-section,
.approval-section,
.void-section {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--bs-border-radius);
    border-left: 4px solid;
}

.payee-section h4,
.approval-section h4,
.void-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-section,
.transactions-section {
    margin-top: 1.5rem;
}

.items-section h4,
.transactions-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-section .table,
.transactions-section .table {
    font-size: 0.9rem;
}

.items-section .table th,
.transactions-section .table th {
    background-color: var(--bs-light);
    font-weight: 600;
}

.void-section {
    border-left-color: var(--bs-danger) !important;
}


@media (max-width: 768px) {
    .voucher-header {
        flex-direction: column;
        gap: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
