/**
 * Price Sheet Styling - V12 Trading Floor Design
 * Clean modular architecture - V12 spec compliant
 * Design tokens inherited from styles.css
 */

/* ============================================
   V12 TRADING FLOOR - BAND COLORS (Exact spec)
   ============================================ */

/* Trade Band (Amber/Yellow) - Lower/Upper columns */
.trade-band-bg {
    background-color: #FEF3C7;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #B45309;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Trade Band - Quoted (middle column, highlighted) */
.trade-band-quoted {
    background-color: #FDE68A;
    border-left: 3px solid #F59E0B;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #78350F;
    font-weight: 900;
    letter-spacing: 0.5px;
}

/* Stock Band (Blue) - Lower/Upper columns */
.stock-band-bg {
    background-color: #DBEAFE;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #1E40AF;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Stock Band - Quoted (middle column, highlighted) */
.stock-band-quoted {
    background-color: #BFDBFE;
    border-left: 3px solid #3B82F6;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #1E3A8A;
    font-weight: 900;
    letter-spacing: 0.5px;
}

/* V12 Table Structure */
.v12-price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 1200px;
}

.v12-price-table thead {
    background: #F9FAFB;
    position: sticky;
    top: 0;
    z-index: 10;
}

.v12-price-table tbody tr {
    border-bottom: 1px solid #E5E7EB;
    transition: background 0.15s ease;
}

.v12-price-table tbody tr:hover {
    background: #F9FAFB;
}

.v12-sticky-col {
    position: sticky;
    left: 0;
    z-index: 20;
    background: white;
    border-right: 1px solid #E5E7EB;
}

.v12-sticky-header {
    position: sticky;
    left: 0;
    z-index: 30;
    background: #F9FAFB;
    border-right: 1px solid #E5E7EB;
}

/* Utility classes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.p-2 { padding: 0.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.border-t { border-top-width: 1px; }
.border-gray-200 { border-color: #E5E7EB; }
.border-gray-100 { border-color: #F3F4F6; }
.text-gray-500 { color: #6B7280; }
.text-gray-600 { color: #4B5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.bg-gray-50 { background-color: #F9FAFB; }
.bg-red-100 { background-color: #FEE2E2; }
.bg-red-800 { color: #991B1B; }
.bg-yellow-100 { background-color: #FEF3C7; }
.bg-yellow-800 { color: #854D0E; }
.bg-amber-100 { background-color: #FEF3C7; }
.bg-amber-800 { color: #92400E; }
.bg-blue-100 { background-color: #DBEAFE; }
.bg-blue-800 { color: #1E40AF; }
.bg-green-100 { background-color: #D1FAE5; }
.bg-green-800 { color: #065F46; }
.bg-gray-100 { background-color: #F3F4F6; }
.bg-gray-800 { color: #1F2937; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.border { border-width: 1px; }
.overflow-x-auto { overflow-x: auto; }
.whitespace-nowrap { white-space: nowrap; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.transition-colors { transition-property: color, background-color, border-color; }
.hover\:bg-gray-50:hover { background-color: #F9FAFB; }

/* ========== PRICE SHEET CONTAINER ========== */
.price-sheet-container {
    padding: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.price-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.price-sheet-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-8);
}

.price-sheet-actions {
    display: flex;
    gap: var(--space-md);
}

/* ========== TABLE STYLING ========== */
.price-sheet-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 70vh;
    border: 1px solid var(--table-border);
    border-radius: 8px;
}

.price-sheet-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 1200px;
}

.price-sheet-table thead {
    background: var(--table-header-bg);
    color: var(--table-header-text);
    position: sticky;
    top: 0;
    z-index: 10;
}

.price-sheet-table th {
    padding: var(--table-cell-padding);
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    border-bottom: 2px solid var(--gray-8);
}

.price-sheet-table th.text-center {
    text-align: center;
}

.price-sheet-table tbody tr {
    border-bottom: 1px solid var(--table-border);
    transition: background 0.15s ease;
}

.price-sheet-table tbody tr:hover {
    background: var(--table-row-hover);
    cursor: pointer;
}

.price-sheet-table td {
    padding: var(--table-cell-padding);
    font-size: 14px;
    color: var(--gray-8);
}

/* ========== WATCH COLUMN ========== */
.watch-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-8);
    margin-bottom: 4px;
}

.watch-details {
    font-size: 14px;
    color: var(--gray-4);
}

/* ========== TIER COLUMN ========== */
.tier-badge {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-7);
    text-align: center;
    display: block;
}

/* ========== PRICE COLUMNS ========== */
.price-band {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--gray-8);
}

.price-band-header {
    font-size: 12px;
    color: var(--gray-3);
    font-weight: 500;
    margin-bottom: 4px;
}

.price-value {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--gray-8);
}

/* ========== STATUS BADGES ========== */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.status-up-to-date {
    background: #E6F9F5;
    color: #0D8B6B;
}

.status-new-data {
    background: #FFF4E6;
    color: #C47F17;
}

.status-needs-review {
    background: #FFE6E6;
    color: #C41E3A;
}

.status-draft {
    background: #E6F0FF;
    color: #0056B3;
}

.status-limited {
    background: #FFF9E6;
    color: #D68910;
}

.status-published {
    background: #E6F9F5;
    color: #0D8B6B;
}

.status-rejected {
    background: #FFE6E6;
    color: #C41E3A;
}

/* ========== BUTTONS ========== */
/* V12 button styles inherited from styles.css */
/* Additional price-sheet specific button styles can go here if needed */

/* ========== EMPTY STATE ========== */
.price-sheet-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-4);
}

.price-sheet-empty-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
}

.price-sheet-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-6);
    margin-bottom: var(--space-sm);
}

.price-sheet-empty-subtitle {
    font-size: 14px;
    color: var(--gray-4);
}
