/* mysite/css/broker.css */

.peeper-tool-container.broker-page {
    max-width: 1200px;
    margin-top: 40px;
    margin-bottom: 50px;
    background-color: #222;
    padding: 30px 40px;
    border-radius: 12px;
    border: 3px solid black;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 90%;
}

.script-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #00a8ff;
    -webkit-text-stroke: 1px black;
    text-shadow: 0px 0px 5px #00a8ff, 0px 0px 4px #0077cc;
    margin-bottom: 30px;
}

.filters-panel {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filters-panel .filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.filters-panel label {
    font-size: 1rem;
    color: #eee;
    font-weight: bold;
}

.filters-panel select, .filters-panel input {
    height: 38px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1rem;
    border: 1.5px solid #007acc;
    background-color: #121212;
    color: #eee;
    box-sizing: border-box;
    width: 100%;
}

.filters-panel button {
    padding: 8px 20px;
    height: 38px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    background-color: #007acc;
    border: 1px solid #00a8ff;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.filters-panel button:hover {
    background-color: #00a8ff;
    transform: translateY(-2px);
}

.search-results-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1c1c1c;
    border: 1.5px solid #007acc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    padding: 10px 15px;
    color: #eee;
    cursor: pointer;
    text-align: left;
}

.search-result-item:hover {
    background-color: #007acc;
    color: #fff;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-height: 410px; 
    overflow-y: auto;
}

.table-wrapper::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background-color: #007acc;
    border-radius: 10px;
    border: 3px solid #2a2a2a;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #00a8ff;
}

.item-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1c1c1c;
    min-width: 950px; 
}

.item-table thead th {
    background-color: #007acc;
    color: black;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #005f99;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.95rem;
}

.item-table tbody tr:nth-child(even) { background-color: #2a2a2a; }
.item-table tbody tr:nth-child(odd) { background-color: #333; }

.item-table tbody td {
    padding: 10px 15px;
    border: 1px solid #444;
    color: #eee;
    font-size: 0.9rem;
    text-align: left;
    vertical-align: middle;
    font-weight: 600;
}

.item-table td:last-child {
    text-align: center;
}

.item-table tbody tr:hover { background-color: #404040; }

.item-table .action-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    background-color: #cc0000;
    border: 1px solid #ff4d4d;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.1s;
    cursor: pointer;
}

.item-table .action-btn:hover {
    background-color: #ff4d4d;
    transform: scale(1.05);
}

.item-table .item-link {
    color: #00a8ff;
    text-decoration: none;
}

.item-table .item-link:hover {
    text-decoration: underline;
}

/* --- STYLES FOR PORTFOLIO TRACKER (CORRECTED) --- */
.item-table input[type="text"] {
    width: 100%;
    max-width: 130px;
    height: 36px;
    padding: 6px 10px;
    background-color: #121212;
    border: 1.5px solid #007acc;
    color: #eee;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: left;
    box-sizing: border-box;
}

/* Hide the number input arrows */
.item-table input[type=number] {
  -moz-appearance: textfield;
}
.item-table input::-webkit-outer-spin-button,
.item-table input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Colors for Profit/Loss column */
.profit {
    color: #4CAF50 !important;
}

.loss {
    color: #F44336 !important;
}

.neutral {
    color: #9E9E9E !important;
}
/* --- END PORTFOLIO STYLES --- */


@media (max-width: 768px) {
    .peeper-tool-container.broker-page {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 20px;
    }
	
	  header #headerEditProfileBtn {
    display: none !important;
  }

    .filters-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
}