/* ==========================================================================
   OLD PROFITABILITY PAGE - EXPANDED VIEW CSS REFERENCE
   Complete CSS for order-details expanded rows
   ========================================================================== */

/* Main Container
   ========================================================================== */

.order-details {
    display: none;
    border-top: 1px solid #e9ecef;
    background: white;
    padding: 10px;
}

.order-item-card.expanded .order-details {
    display: block;
}

.order-body {
    padding: 12px;
}

/* Price Breakdown Box
   ========================================================================== */

.price-breakdown {
    background: #f8f9fa;              /* Light gray background */
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 11px;
}

/* Source Information (Price Source, Shipping Source)
   ========================================================================== */

.source-info {
    font-size: 9px;
    color: #6c757d;                   /* Muted gray */
    margin-top: 2px;
}

.source-info .source-label {
    font-weight: bold;
}

/* Commission Boxes (Yellow/Gold Background)
   ========================================================================== */

.commission-box {
    background: #fff3cd;              /* Light yellow/gold */
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 6px;
    margin-bottom: 6px;
    font-size: 11px;
}

/* Fee Boxes (Red/Pink Background)
   ========================================================================== */

.fee-box {
    background: #f8d7da;              /* Light red/pink */
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 6px;
    margin-bottom: 6px;
    font-size: 11px;
}

/* Discount Boxes (Cyan/Blue Background)
   ========================================================================== */

.discount-box {
    background: #d1ecf1;              /* Light cyan/blue */
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 6px;
    margin-bottom: 6px;
    font-size: 11px;
}

/* Financial Summary (Compact Row)
   ========================================================================== */

.financial-summary {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.financial-metric {
    text-align: center;
    min-width: 70px;
}

.financial-metric .value {
    font-size: 11px;
    font-weight: bold;
    color: #212529;
}

.financial-metric .label {
    font-size: 8px;
    color: #6c757d;
    text-transform: uppercase;
}

.financial-metric.positive .value {
    color: #0d6e0d;
    font-weight: 600;
}

.financial-metric.negative .value {
    color: #dc3545;
}

/* Confidence Indicators
   ========================================================================== */

.confidence-indicator {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: bold;
    margin-left: 6px;
}

.confidence-high {
    background: #d4edda;              /* Light green */
    color: #155724;                   /* Dark green text */
}

.confidence-medium {
    background: #fff3cd;              /* Light yellow */
    color: #495057;                   /* Dark grey text */
}

.confidence-low {
    background: #f8d7da;              /* Light red */
    color: #721c24;                   /* Dark red text */
}

/* Profit Indicators
   ========================================================================== */

.profit-indicator {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 11px;
}

.profit-indicator.positive {
    background: #d4edda;
    color: #155724;
}

.profit-indicator.negative {
    background: #f8d7da;
    color: #721c24;
}

/* Profit Pills
   ========================================================================== */

.profit-pill {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-top: 5px;
    display: inline-block;
}

.profit-pill.positive {
    background: #d4edda;
    color: #155724;
}

.profit-pill.negative {
    background: #f8d7da;
    color: #721c24;
}

/* ==========================================================================
   DARK MODE STYLES
   ========================================================================== */

/* Main Container Dark Mode
   ========================================================================== */

body.dark-mode .order-details {
    background: #2d2d2d;
    border-top-color: #444;
}

body.dark-mode .order-header {
    background: #252525;
    border-bottom-color: #444;
}

/* Price Breakdown Dark Mode
   ========================================================================== */

body.dark-mode .price-breakdown {
    background: #252525;
    color: #e0e0e0;
}

body.dark-mode .price-breakdown strong {
    color: #f0f0f0;
}

/* Commission Box Dark Mode
   ========================================================================== */

body.dark-mode .commission-box {
    background: #3a3a1a;              /* Dark yellow/gold */
    border-color: #555;
}

/* Fee Box Dark Mode
   ========================================================================== */

body.dark-mode .fee-box {
    background: #3a1a1a;              /* Dark red */
    border-color: #555;
}

/* Discount Box Dark Mode
   ========================================================================== */

body.dark-mode .discount-box {
    background: #1a3a3a;              /* Dark cyan */
    border-color: #555;
}

/* Source Info Dark Mode
   ========================================================================== */

body.dark-mode .source-info {
    color: #b0b0b0;
}

/* Financial Metrics Dark Mode
   ========================================================================== */

body.dark-mode .financial-metric .value {
    color: #e0e0e0;
}

body.dark-mode .financial-metric .label {
    color: #b0b0b0;
}

body.dark-mode .financial-metric.positive .value {
    color: #5cb85c;
}

body.dark-mode .financial-metric.negative .value {
    color: #ff6b6b;
}

/* Profit Indicators Dark Mode
   ========================================================================== */

body.dark-mode .profit-indicator.positive {
    background: #2d5a2d;
    color: #90ee90;
}

body.dark-mode .profit-indicator.negative {
    background: #5a2d2d;
    color: #ff9999;
}

/* Profit Pills Dark Mode
   ========================================================================== */

body.dark-mode .profit-pill.positive {
    background: #2d5a2d;
    color: #90ee90;
}

body.dark-mode .profit-pill.negative {
    background: #5a2d2d;
    color: #ff9999;
}

/* Button Styles Dark Mode
   ========================================================================== */

body.dark-mode .btn-info {
    background: #2d5a6a;
    border-color: #1d4a5a;
}

body.dark-mode .btn-info:hover {
    background: #3d6a7a;
    border-color: #2d5a6a;
}

/* ==========================================================================
   ANIMATION
   ========================================================================== */

.order-details {
    transition: max-height 0.3s ease-out;
}

/* ==========================================================================
   COLOR REFERENCE
   ========================================================================== */

/*
LIGHT MODE COLORS:
------------------
Commission Box:     #fff3cd (yellow) with #ffeaa7 border
Fee Box:           #f8d7da (red) with #f5c6cb border
Discount Box:      #d1ecf1 (cyan) with #bee5eb border
Price Breakdown:   #f8f9fa (light gray)
Positive Profit:   #28a745 (green) / #0d6e0d (darker green)
Negative Profit:   #dc3545 (red)
Muted Text:        #6c757d (gray)

DARK MODE COLORS:
-----------------
Commission Box:     #3a3a1a (dark yellow) with #555 border
Fee Box:           #3a1a1a (dark red) with #555 border
Discount Box:      #1a3a3a (dark cyan) with #555 border
Price Breakdown:   #252525 (dark gray)
Positive Profit:   #5cb85c (green) / #90ee90 (lighter green)
Negative Profit:   #ff6b6b (red) / #ff9999 (lighter red)
Background:        #2d2d2d
Muted Text:        #b0b0b0 (light gray)

TYPOGRAPHY:
-----------
Section Headers:   12px bold
Field Labels:      11px bold
Field Values:      11px normal
Source Info:       9px gray
Formula Text:      10px italic gray
Highlighted Price: 12px bold colored

SPACING:
--------
Paragraph margin-bottom:  3px
Header margin-bottom:     6px
Box padding:              6-8px
Box margin-bottom:        6-8px
Row margin-top:           10px
HR margin:                8px 0
*/
