/**
 * Custom Address Formatter Module Styles
 */

/* Action buttons in Billing & Shipping popup */
.af-btn-group {
    display: inline-block;
    float: right;
    margin-bottom: 5px;
}

.af-action-btn {
    font-size: 11px !important;
    padding: 2px 8px !important;
    margin-left: 4px !important;
    border-radius: 3px !important;
    color: #4b5563 !important;
    background-color: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    transition: all 0.15s ease-in-out;
}

.af-action-btn:hover {
    color: #111827 !important;
    background-color: #e5e7eb !important;
    border-color: #9ca3af !important;
    text-decoration: none !important;
}

.af-action-btn i {
    margin-right: 3px;
}

/* Contact Picker List in Modal */
.af-contact-item {
    cursor: pointer;
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s ease;
}

.af-contact-item:last-child {
    border-bottom: none;
}

.af-contact-item:hover {
    background-color: #f9fafb;
}

.af-contact-name {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

.af-contact-title {
    font-size: 12px;
    color: #6b7280;
    margin-left: 6px;
}

.af-contact-address {
    font-size: 12px;
    color: #4b5563;
    margin-top: 4px;
}

.af-contact-badge-primary {
    font-size: 10px;
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 2px 6px;
    border-radius: 9999px;
    margin-left: 6px;
}

/* Update Invoices Modal */
.af-preview-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.af-preview-box p {
    margin-bottom: 4px;
    font-size: 13px;
}

/* Freight & Forwarding Row in Totals Table */
.af-freight-tr td {
    border-top: 1px solid #f0f0f0 !important;
    padding: 6px 10px !important;
}

.af-freight-title {
    font-size: 13px;
    color: #334155;
}

#af_freight_tax_hint {
    font-size: 11px;
    color: #2563eb;
    margin-top: 2px;
}

/* Company PAN display */
.af-pan-display-wrapper {
    font-size: 13px;
    color: #334155;
    margin-bottom: 4px;
}

/* Ensure PAN and GSTIN numbers never wrap or split across lines in HTML views */
.af-pan-display-wrapper,
.af-pan-nowrap,
.af-gstin-nowrap,
.af-customer-tax-line,
.af-customer-pan,
.af-customer-gstin {
    white-space: nowrap !important;
    word-break: keep-all !important;
    display: inline-block;
}

.af-customer-tax-block {
    margin-top: 4px;
    line-height: 1.4;
}

/* Ensure address blocks in admin and customer views don't force break within words */
.invoice-html-company-info,
.estimate-html-company-info,
.proposal-html-company-info,
.invoice-html-customer-details,
.estimate-html-customer-details,
.proposal-html-customer-details,
.invoice-html-customer-shipping-details,
.client-company-info,
.preview-top-wrapper address,
address {
    word-break: normal !important;
    overflow-wrap: normal !important;
}

