/* ═══════════════════════════════════════════════════════════
   Blitz Tracker & + Blitz Column — Custom Styles
   Place this file in the assets/ folder so Dash auto-loads it.
   ═══════════════════════════════════════════════════════════ */

/* ── Right-click context menu (Google Sheets-style) ── */
#blitz-context-menu {
    position: fixed;
    z-index: 99999;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    box-shadow: 0 2px 6px 2px rgba(60,64,67,0.15), 0 1px 2px rgba(60,64,67,0.30);
    padding: 6px 0;
    min-width: 210px;
    font-family: 'Google Sans', Roboto, Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #202124;
    user-select: none;
}
#blitz-context-menu .bcm-item {
    padding: 7px 24px 7px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
#blitz-context-menu .bcm-item:hover {
    background-color: #f1f3f4;
}
#blitz-context-menu .bcm-icon {
    width: 18px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #5f6368;
    flex-shrink: 0;
}
#blitz-context-menu .bcm-sep {
    height: 1px;
    background: #dadce0;
    margin: 4px 0;
}

/* ── Fix delete (×) column in Blitz Tracker ── */
.dash-spreadsheet td.dash-delete-cell {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding: 4px 8px !important;
    text-align: center !important;
}
.dash-spreadsheet td.dash-delete-cell div {
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: center !important;
    max-height: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.dash-spreadsheet th.dash-delete-header {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
}

/* ── Force borders on ALL blitz table cells ── */
#blitz-datatable td {
    border: 1px solid #ccc !important;
}

/* ── Widen the Agent dropdown so names don't wrap ── */
#blitz-agent-dropdown {
    min-width: 340px !important;
}

/* ── Hide sort arrows on the + Blitz column ──
   The blitz_add column is the first <th> in Tab 1 location table,
   and the last <th> in Tab 2/Tab 3 tables.
   We target any header cell with blank text (the blitz column).
   Also keep the original first-child rule for Tab 1. ── */
.dash-spreadsheet th:first-child .column-header--sort,
.dash-spreadsheet-inner th:first-child .column-header--sort {
    display: none !important;
}
.dash-spreadsheet th:last-child .column-header--sort,
.dash-spreadsheet-inner th:last-child .column-header--sort {
    display: none !important;
}
