/* Lattice Invoices Admin Styles */

/* Status badges */
.lattice-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lattice-badge-issued {
    background: #fef3c7;
    color: #92400e;
}

.lattice-badge-sent {
    background: #dbeafe;
    color: #1e40af;
}

.lattice-badge-paid {
    background: #d1fae5;
    color: #065f46;
}

.lattice-badge-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.lattice-badge-cancelled {
    background: #f3f4f6;
    color: #4b5563;
}

.lattice-badge-credited {
    background: #ede9fe;
    color: #5b21b6;
}

.lattice-badge-b2b {
    background: #6366f1;
    color: #fff;
}

.lattice-badge-system {
    background: #e0f2fe;
    color: #0369a1;
}

.lattice-badge-note {
    background: #fef9c3;
    color: #854d0e;
}

/* Invoice preview */
.lattice-invoice-preview {
    max-width: 100%;
    overflow: auto;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lattice-invoice-preview iframe {
    width: 100%;
    min-height: 600px;
    border: none;
}

/* Invoice actions */
.lattice-invoice-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.lattice-invoice-actions .button {
    margin-right: 0;
}

/* Invoice notes */
.lattice-invoice-notes {
    margin-top: 20px;
}

.lattice-invoice-notes h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

/* My Account status styles */
.lattice-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.lattice-status-issued {
    background: #fef3c7;
    color: #92400e;
}

.lattice-status-sent {
    background: #dbeafe;
    color: #1e40af;
}

.lattice-status-paid {
    background: #d1fae5;
    color: #065f46;
}

.lattice-status-overdue {
    background: #fee2e2;
    color: #991b1b;
}

.lattice-status-cancelled {
    background: #f3f4f6;
    color: #4b5563;
}

.lattice-status-credited {
    background: #ede9fe;
    color: #5b21b6;
}

/* Search form */
.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box input[type="search"] {
    min-width: 250px;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .lattice-invoice-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box input[type="search"] {
        min-width: auto;
    }
}
