/* Navigation */
.pom-nav { display: flex; border-bottom: 2px solid #ddd; margin-bottom: 20px; flex-wrap: wrap; } 
.pom-nav div { padding: 12px 20px; cursor: pointer; font-weight: bold; color: #555; flex: 1; text-align: center; white-space: nowrap; transition: 0.2s; } 
.pom-nav div:hover { background: #f7fafc; }
.pom-nav div.active { border-bottom: 2px solid #3182ce; color: #3182ce; margin-bottom: -2px; } 

/* Tabs & Layout */
.pom-tab { display: none; } 
.pom-tab.active { display: block; animation: fadeIn 0.3s; } 
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Form Centering */
.pom-form-center { margin: 0 auto; max-width: 700px; }
.pom-profile-center { margin: 0 auto; max-width: 900px; }

/* Profile Grid */
.profile-grid { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 20px; }
.profile-grid > div { flex: 1; min-width: 280px; }
.profile-section-title { border-bottom: 2px solid #e2e8f0; padding-bottom: 8px; margin-bottom: 15px; color: #2d3748; font-size: 1.1em; font-weight: bold; }

/* Order Boxes */
.pom-box { border: 1px solid #cbd5e0; padding: 15px; margin-bottom: 15px; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); scroll-margin-top: 20px; } 
.pom-box summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; cursor: pointer; list-style: none; outline: none; font-size: 1.05em; }
.pom-box summary::-webkit-details-marker { display: none; }

/* Badges */
.pom-status { padding: 4px 10px; border-radius: 6px; font-size: 0.85em; font-weight: bold; margin-left: auto; } 
.pom-price-badge { background: #e2e8f0; padding: 4px 10px; border-radius: 6px; font-weight: bold; color: #2d3748; font-size: 0.9em; } 

/* Tables (Responsive) */
.scroll-hint { display: none; } /* Hidden on desktop */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #eee; border-radius: 4px; }
.pom-table { width: 100%; font-size: 0.9em; border-collapse: collapse; min-width: 500px; } 
.pom-table td { padding: 10px 8px; border-bottom: 1px solid #eee; vertical-align: middle; } 
.pom-table th { text-align: left; background: #f7fafc; padding: 10px 8px; border-bottom: 2px solid #e2e8f0; font-size: 0.85em; color: #4a5568; text-transform: uppercase; }

/* Chat UI */
.pom-chat-fe { max-height: 250px; overflow-y: auto; background: #f7fafc; padding: 15px; border: 1px solid #e2e8f0; border-radius: 4px; margin-top: 15px; margin-bottom: 10px; } 
.pom-msg { padding: 10px 12px; margin-bottom: 8px; border-radius: 6px; font-size: 13px; width: 85%; line-height: 1.4; } 
.pom-msg.admin { background: #e6fffa; text-align: left; border: 1px solid #b2f5ea; color: #234e52; } 
.pom-msg.client { background: #edf2f7; margin-left: auto; text-align: right; border: 1px solid #cbd5e0; color: #2d3748; }

/* Invoices */
.inv-box { border: 1px solid #cbd5e0; padding: 25px; background: #fff; margin-bottom: 15px; border-radius: 4px; }
.inv-header { display: flex; justify-content: space-between; border-bottom: 2px solid #2d3748; margin-bottom: 20px; padding-bottom: 15px; }

/* Responsive Grid/Flex Utilities */
.pom-flex-row { display: flex; gap: 15px; margin-bottom: 15px; }
.pom-flex-row > div { flex: 1; }

/* =========================================
   📱 MOBILE OVERRIDES (Phones & Tablets)
   ========================================= */
@media (max-width: 768px) {
    .pom-nav div { padding: 10px 5px; font-size: 0.85em; flex: 1 1 50%; }
    
    .scroll-hint { display: block; font-size: 12px; color: #718096; text-align: right; margin-bottom: 4px; font-style: italic; }

    .pom-flex-row, .profile-grid { flex-direction: column; gap: 10px; margin-bottom: 15px; }
    
    .pom-box summary { flex-direction: column; align-items: flex-start; gap: 8px; }
    .pom-status { margin-left: 0; }
    .pom-price-badge { margin-left: 0; }
    
    .inv-box { padding: 15px; }
    .inv-header { flex-direction: column; text-align: center; gap: 15px; }
    .inv-header > div { text-align: center !important; }
    
    input[type="text"], input[type="number"], input[type="url"], select, textarea { padding: 10px !important; font-size: 16px !important; }
    button { padding: 12px 15px !important; font-size: 1em !important; width: 100%; margin-bottom: 5px; }
}