/* Monitor TablePress Cen - Style */
.mtpc-price-wrapper {
    position: relative;
    display: inline-block;
}

.mtpc-price-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #007cba;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
    z-index: 1;
}

.mtpc-price-icon:hover {
    background: #005a87;
}

.mtpc-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    z-index: 999999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: none;
    top: 100%;
    margin-top: 5px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    pointer-events: none;
}

.mtpc-tooltip.show {
    display: block;
    pointer-events: auto;
}

.mtpc-history-item {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #555;
}

.mtpc-history-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mtpc-price-change {
    font-weight: bold;
    margin-left: 5px;
}

.mtpc-price-increase {
    color: #ff4444;
}

.mtpc-price-decrease {
    color: #44ff44;
}

.mtpc-lowest-price {
    font-size: 11px;
    color: #28a745;
    margin-top: 3px;
    display: block;
    line-height: 1.2;
    font-weight: normal;
}

.mtpc-lowest-price small {
    font-size: 10px;
    color: #28a745;
    font-weight: normal;
}

.mtpc-status-wolny {
    color: #00625a !important;
}

.mtpc-status-rezerwacja {
    color: #3483aa !important;
}

.mtpc-status-sprzedany {
    color: #aa2525 !important;
}

/* Specjalne pozycjonowanie dla pierwszych wierszy */
.tablepress tbody tr:nth-child(1) .mtpc-tooltip,
.tablepress tbody tr:nth-child(2) .mtpc-tooltip,
.tablepress tbody tr:nth-child(3) .mtpc-tooltip,
table[id*='tablepress'] tbody tr:nth-child(1) .mtpc-tooltip,
table[id*='tablepress'] tbody tr:nth-child(2) .mtpc-tooltip,
table[id*='tablepress'] tbody tr:nth-child(3) .mtpc-tooltip {
    top: 100%;
    bottom: auto;
    margin-top: 5px;
}

/* Dla tooltipów które mogą być za blisko prawej krawędzi */
.mtpc-tooltip:before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

/* Dla pierwszych wierszy - strzałka na górze */
.tablepress tbody tr:nth-child(1) .mtpc-tooltip:before,
.tablepress tbody tr:nth-child(2) .mtpc-tooltip:before,
.tablepress tbody tr:nth-child(3) .mtpc-tooltip:before,
table[id*='tablepress'] tbody tr:nth-child(1) .mtpc-tooltip:before,
table[id*='tablepress'] tbody tr:nth-child(2) .mtpc-tooltip:before,
table[id*='tablepress'] tbody tr:nth-child(3) .mtpc-tooltip:before {
    bottom: 100%;
    border-color: transparent transparent #333 transparent;
}