/**
 * Furever Friends Invoice Manager — Admin UI Styles
 * Handles general admin layout, buttons, modal, and admin views.
 */

:root {
    --bg-cream: #FAF4EB;
    --primary-brown: #4A2E18;
    --brand-orange: #E46813;
    --brand-orange-light: #FCEBD9;
    --brand-orange-pill: #F7BA4C;
    --brand-pill-text: #593504;
    --border-color: #EBDBC8;
    --text-muted: #6F6257;
    --danger-red: #C53030;
    --badge-bg: #F5E6D3;
    --badge-border: #D9A066;
}

/* Base admin wrap */
.ff-admin-wrap {
    max-width: 960px;
}

/* Action Buttons */
.ff-btn {
    background: var(--brand-orange);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.ff-btn:hover { 
    opacity: 0.92; 
}
.ff-btn-dark { 
    background: var(--primary-brown); 
}
.ff-btn-green { 
    background: #2E7D32; 
}
.ff-btn-blue { 
    background: #1976D2; 
}
.ff-btn-whatsapp {
    background: #25D366;
    color: #fff;
}
.ff-btn-whatsapp:hover {
    background: #1EBE5B;
    color: #fff;
}

/* Modal Overlay & Past Invoices Dialog */
.ff-modal-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.5); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 999999; 
}
.ff-modal { 
    background: #fff; 
    border-radius: 10px; 
    max-width: 600px; 
    width: 92%; 
    max-height: 80vh; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
}
.ff-modal-header { 
    padding: 16px 20px; 
    background: var(--bg-cream); 
    border-bottom: 1px solid var(--border-color); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.ff-modal-body { 
    padding: 16px 20px; 
    overflow-y: auto; 
}
.ff-invoice-list-item { 
    padding: 12px; 
    border-bottom: 1px solid #eee; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer; 
}
.ff-invoice-list-item:hover { 
    background: var(--brand-orange-light); 
}

.ff-modal-search-wrap {
    padding: 10px 16px;
    background: #FAF4EB;
    border-bottom: 1px solid #EBDBC8;
}
.ff-modal-search {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #D9A066;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}
.ff-modal-search:focus {
    border-color: #E46813;
    box-shadow: 0 0 0 2px rgba(228, 104, 19, 0.15);
}

.ff-btn-sub-action {
    background: #FAF4EB;
    border: 1px solid #D9A066;
    color: #4A2E18;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: all 0.2s;
}
.ff-btn-sub-action:hover {
    background: #E46813;
    border-color: #E46813;
    color: #fff;
}
.ff-btn-sub-action.ff-btn-sub-edit {
    background: #E46813;
    border-color: #E46813;
    color: #fff;
}
.ff-btn-sub-action.ff-btn-sub-edit:hover {
    background: #4A2E18;
    border-color: #4A2E18;
}
.ff-btn-sub-action.ff-btn-sub-wa {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.ff-btn-sub-action.ff-btn-sub-wa:hover {
    background: #1EBE5B;
    border-color: #1EBE5B;
    color: #fff;
}
