/* ===================================
EDGEBREAK WORKSPACE
Portfolio
Orders
Broker Centre
Trade History
=================================== */

/* ===================================
WORKSPACE NAVIGATION
=================================== */

.workspace-nav{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:18px;

    margin:35px auto;

}

.workspace-link{

    display:flex;

    align-items:center;

    justify-content:center;

    min-width:180px;

    height:54px;

    padding:0 28px;

    background:#131d31;

    border:1px solid rgba(255,255,255,.08);

    border-radius:14px;

    color:#ffffff;

    text-decoration:none;

    font-size:16px;

    font-weight:600;

    transition:.25s ease;

}

.workspace-link:hover{

    border-color:#22c55e;

    transform:translateY(-2px);

}

.workspace-link.active{

    background:#22c55e;

    border-color:#22c55e;

    color:#071225;

}

/* ===================================
WORKSPACE SECTION HEADER
=================================== */

.workspace-card-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:30px;

    margin-bottom:35px;

}

.workspace-card-header h2{

    margin:0 0 10px;

    color:#ffffff;

    font-size:34px;

    font-weight:700;

    line-height:1.2;

}

.workspace-card-header p{

    margin:0;

    max-width:700px;

    color:#94a3b8;

    font-size:16px;

    line-height:1.7;

}

/* ===================================
SECTION STATUS BADGE
=================================== */

.workspace-live{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:110px;

    height:40px;

    padding:0 18px;

    border-radius:999px;

    background:#22c55e;

    color:#071225;

    font-size:12px;

    font-weight:700;

    letter-spacing:.08em;

    text-transform:uppercase;

    white-space:nowrap;

}

/* ===================================
WORKSPACE CARD TYPOGRAPHY
=================================== */

.portfolio-card{

    display:flex;

    flex-direction:column;

    justify-content:center;

    min-height:155px;

    padding:28px;

}

.portfolio-card span{

    display:block;

    margin-bottom:16px;

    color:#9fb0c8;

    font-size:13px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.08em;

    line-height:1.4;

}

.portfolio-card strong{

    display:block;

    color:#ffffff;

    font-size:28px;

    font-weight:700;

    line-height:1.2;

    letter-spacing:-0.02em;

    word-break:break-word;

}

.portfolio-card small{

    display:block;

    margin-top:8px;

    color:#64748b;

    font-size:13px;

}

/* ===================================
POSITIVE / NEGATIVE VALUES
=================================== */

.positive{

    color:#22c55e !important;

}

.negative{

    color:#ef4444 !important;

}

.neutral{

    color:#ffffff !important;

}

/* ===================================
WORKSPACE SUMMARY CARDS
=================================== */

.portfolio-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:24px;

}

.portfolio-card{

    position:relative;

    background:#111827;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:28px;

    overflow:hidden;

    transition:all .25s ease;

}

.portfolio-card:hover{

    transform:translateY(-4px);

    border-color:#22c55e;

    box-shadow:0 15px 40px rgba(0,0,0,.25);

}

.portfolio-card span{

    display:block;

    color:#94a3b8;

    font-size:14px;

    font-weight:500;

    margin-bottom:14px;

}

.portfolio-card strong{

    display:block;

    color:#ffffff;

    font-size:40px;

    font-weight:700;

    line-height:1.1;

    margin-bottom:8px;

}

.portfolio-card small{

    display:block;

    color:#64748b;

    font-size:13px;

    margin-top:8px;

}

/* ===================================
POSITIVE / NEGATIVE VALUES
=================================== */

.positive{

    color:#22c55e !important;

}

.negative{

    color:#ef4444 !important;

}

.neutral{

    color:#ffffff !important;

}

/* ===================================
POSITION DETAILS
=================================== */

.position-symbol{

    display:block;

    font-size:16px;

    font-weight:700;

    color:#ffffff;

}

.position-company{

    display:block;

    margin-top:5px;

    color:#94a3b8;

    font-size:13px;

}

/* ===================================
ORDER TYPES
=================================== */

.order-buy{

    color:#22c55e;

    font-weight:700;

}

.order-sell{

    color:#ef4444;

    font-weight:700;

}

/* ===================================
STATUS PILLS
=================================== */

.order-status{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:6px 14px;

    border-radius:999px;

    background:#1f2937;

    font-size:12px;

    font-weight:700;

}

.status-filled{

    background:rgba(34,197,94,.15);

    color:#22c55e;

}

.status-pending{

    background:rgba(234,179,8,.15);

    color:#facc15;

}

.status-cancelled{

    background:rgba(239,68,68,.15);

    color:#ef4444;

}

.status-submitted{

    background:rgba(59,130,246,.15);

    color:#3b82f6;

}

/* ===================================
TABLE BUTTONS
=================================== */

.position-actions,
.order-actions{

    display:flex;

    gap:10px;

}

.position-actions button,
.order-actions button{

    height:40px;

    padding:0 18px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    font-size:13px;

    font-weight:600;

    transition:.2s;

}

.position-actions button:hover,
.order-actions button:hover{

    transform:translateY(-2px);

}

/* ===================================
TABLE BUTTONS
=================================== */

.position-actions,
.order-actions{

    display:flex;

    gap:10px;

}

.position-actions button,
.order-actions button{

    height:40px;

    padding:0 18px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    font-size:13px;

    font-weight:600;

    transition:.2s;

}

.position-actions button:hover,
.order-actions button:hover{

    transform:translateY(-2px);

}

/* ===================================
BROKER LOGO
=================================== */

.broker-logo{

    display:flex;

    align-items:center;

    justify-content:flex-start;

    min-height:52px;

    margin-bottom:10px;

}

.broker-logo img{

    height:42px;

    width:auto;

    object-fit:contain;

}

/* ===================================
BROKER STATUS
=================================== */

.broker-status{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:8px 16px;

    border-radius:999px;

    font-size:13px;

    font-weight:700;

    margin:18px 0 24px;

}

.broker-status.connected{

    background:rgba(34,197,94,.15);

    color:#22c55e;

}

.broker-status.disconnected{

    background:rgba(239,68,68,.15);

    color:#ef4444;

}

.dot{

    width:10px;

    height:10px;

    border-radius:50%;

    background:currentColor;

}

/* ===================================
BROKER INFORMATION
=================================== */

.broker-info{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

    margin:28px 0;

}

.metric{

    display:flex;

    flex-direction:column;

}

.metric span{

    color:#94a3b8;

    font-size:13px;

    margin-bottom:6px;

}

.metric strong{

    color:#ffffff;

    font-size:18px;

    font-weight:700;

}

/* ===================================
BROKER ACTIONS
=================================== */

.watchlist-actions{

    display:flex;

    gap:12px;

    margin-top:20px;

    margin-bottom:18px;

}

.watchlist-actions .btn{

    flex:1;

}

/* ===================================
BROKER ACTIONS
=================================== */

.watchlist-actions{

    display:flex;

    gap:12px;

    margin-top:20px;

    margin-bottom:18px;

}

.watchlist-actions .btn{

    flex:1;

}

/* ===================================
ACTIVITY TIMELINE
=================================== */

.activity-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    padding:24px 0;

    border-bottom:1px solid rgba(255,255,255,.06);

}

.activity-item:last-child{

    border-bottom:none;

}

.activity-left{

    flex:1;

}

.activity-left strong{

    display:block;

    margin-bottom:6px;

    color:#ffffff;

    font-size:17px;

    font-weight:700;

}

.activity-left span{

    display:block;

    color:#94a3b8;

    font-size:14px;

    line-height:1.6;

}

.activity-right{

    color:#64748b;

    font-size:13px;

    white-space:nowrap;

}

/* ===================================
HELPER CLASSES
=================================== */

.positive{

    color:#22c55e !important;

}

.negative{

    color:#ef4444 !important;

}

.warning{

    color:#f59e0b !important;

}

.info{

    color:#38bdf8 !important;

}

.text-muted{

    color:#94a3b8;

}

.text-center{

    text-align:center;

}

.hidden{

    display:none;

}

/* ===================================
RESPONSIVE LAYOUT
=================================== */

@media (max-width:1200px){

    .portfolio-grid,
    .performance-grid,
    .allocation-grid,
    .broker-grid,
    .security-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

/* ----------------------------------- */

@media (max-width:900px){

    /* Navigation */

    .workspace-nav{

        justify-content:stretch;

        gap:12px;

    }

    .workspace-link{

        flex:1;

        min-width:200px;

    }

    /* Section Headers */

    .workspace-card-header{

        flex-direction:column;

        align-items:flex-start;

        gap:18px;

    }

    .workspace-live{

        align-self:flex-start;

    }

    /* Cards */

    .portfolio-grid,
    .performance-grid,
    .allocation-grid,
    .broker-grid,
    .security-grid{

        grid-template-columns:1fr;

    }

    .portfolio-card{

        padding:24px;

    }

    .portfolio-card strong{

        font-size:34px;

    }

    /* Broker */

    .broker-info{

        grid-template-columns:1fr;

    }

    .watchlist-actions{

        flex-direction:column;

    }

    /* Activity */

    .activity-item{

        flex-direction:column;

        align-items:flex-start;

    }

    .activity-right{

        margin-top:8px;

    }

}

/* ----------------------------------- */

@media (max-width:768px){

    .portfolio-table,
    .orders-table{

        min-width:760px;

    }

    .workspace-link{

        min-width:100%;

    }

}

/* ----------------------------------- */

@media (max-width:600px){

    .portfolio-card{

        border-radius:14px;

    }

    .broker-tile{

        padding:24px;

    }

    .security-card{

        padding:24px;

    }

    .workspace-card-header h2{

        font-size:28px;

    }

}

/* ===================================
WORKSPACE TYPOGRAPHY POLISH
=================================== */

/* Main Page Title */

.elite-banner h1{

    font-size:58px;

    font-weight:800;

    line-height:1.1;

    letter-spacing:-1px;

    margin:0 0 20px;

    color:#ffffff;

}

/* Hero Description */

.elite-banner p{

    max-width:1000px;

    font-size:20px;

    line-height:1.8;

    color:#b8c2d1;

    margin:0;

}

/* Featured Tag */

.featured-tag{

    display:inline-block;

    margin-bottom:14px;

    font-size:13px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.12em;

    color:#22c55e;

}

/* Featured Heading */

.elite-featured h2{

    font-size:46px;

    line-height:1.15;

    font-weight:800;

    margin:0 0 18px;

    color:#ffffff;

}

/* Featured Paragraph */

.elite-featured p{

    max-width:900px;

    font-size:18px;

    line-height:1.8;

    color:#b8c2d1;

}

/* Workspace Section Titles */

.workspace-card-header h2{

    font-size:42px;

    font-weight:800;

    letter-spacing:-0.5px;

    margin:0 0 10px;

    color:#ffffff;

}

/* Section Description */

.workspace-card-header p{

    max-width:850px;

    font-size:17px;

    line-height:1.8;

    color:#9caec7;

}

/* Card Labels */

.portfolio-card span{

    font-size:15px;

    font-weight:600;

    color:#9fb0c8;

}

/* Card Values */

.portfolio-card strong{

    font-size:48px;

    font-weight:800;

    letter-spacing:-1px;

    color:#ffffff;

}

/* Broker Card Headings */

.broker-tile h3{

    font-size:28px;

    font-weight:800;

    margin:16px 0;

    color:#ffffff;

}

/* Security Card Titles */

.security-card h3{

    font-size:24px;

    font-weight:700;

    margin-bottom:14px;

}

.security-card p{

    font-size:16px;

    line-height:1.8;

    color:#9caec7;

}

/* Activity */

.activity-left strong{

    font-size:18px;

    font-weight:700;

}

.activity-left span{

    font-size:15px;

    line-height:1.7;

    color:#9caec7;

}

/* Tables */

.orders-table th,
.portfolio-table th{

    font-size:13px;

    font-weight:700;

    letter-spacing:.08em;

    text-transform:uppercase;

}

.orders-table td,
.portfolio-table td{

    font-size:15px;

    line-height:1.6;

}

.workspace-card-header{

    margin-bottom:40px;

    align-items:center;

}

.workspace-live{

    min-width:120px;

    height:42px;

    font-size:11px;

    letter-spacing:.12em;
}

.highlight-icon{

    width:64px;

    height:64px;

    border-radius:16px;

    background:rgba(34,197,94,.10);

    display:flex;

    align-items:center;

    justify-content:center;

    color:#22c55e;

    flex-shrink:0;

}

.highlight-icon svg{

    width:34px;

    height:34px;

    stroke-width:2;

}

.feature-icon{

    width:56px;

    height:56px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:rgba(34,197,94,.12);

    color:#22c55e;

}

.feature-icon svg{

    width:28px;

    height:28px;

    stroke-width:2.2;

}

.workspace-section{

    margin-top:35px;

}

/* ===================================
PORTFOLIO OVERVIEW CARDS
=================================== */

.portfolio-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:24px;

    margin-top:10px;

}

.portfolio-card{

    display:flex;

    flex-direction:column;

    justify-content:center;

    min-height:170px;

    padding:28px;

    background:#131d31;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    transition:.25s ease;

}

.portfolio-card:hover{

    transform:translateY(-4px);

    border-color:#22c55e;

    box-shadow:0 15px 35px rgba(0,0,0,.22);

}

.portfolio-card span{

    display:block;

    margin-bottom:18px;

    color:#9fb0c8;

    font-size:14px;

    font-weight:600;

    text-transform:uppercase;

    letter-spacing:.05em;

}

.portfolio-card strong{

    display:block;

    font-size:46px;

    font-weight:700;

    line-height:1;

    color:#ffffff;

    letter-spacing:-1px;

}

.workspace-card-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:35px;

}

.workspace-card-header h2{

    margin:0 0 8px;

    font-size:34px;

    font-weight:700;

    color:#ffffff;

}

.workspace-card-header p{

    margin:0;

    color:#9caec7;

    font-size:16px;

    line-height:1.7;

}

.workspace-live{

    display:flex;

    align-items:center;

    justify-content:center;

    width:88px;

    height:36px;

    border-radius:999px;

    background:#22c55e;

    color:#071225;

    font-size:11px;

    font-weight:700;

    letter-spacing:.12em;

}

.portfolio-card strong{

    font-variant-numeric:tabular-nums;

}

/* ===================================
WORKSPACE HERO
=================================== */

.portfolio-hero{

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:70px 50px;

}

.portfolio-hero-content{

    width:100%;

    max-width:900px;

    margin:0 auto;

}

.portfolio-hero-content h1{

    margin:18px 0 20px;

}

.portfolio-hero-content p{

    margin:0 auto;

    max-width:820px;

}

.portfolio-highlights{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:24px;

    max-width:1400px;

    margin:45px auto 60px;

}

.workspace-card-header h2{

    font-size:30px;

    font-weight:700;

    margin-bottom:8px;

}

.workspace-card-header p{

    font-size:16px;

    color:#9caec7;

}

.workspace-live{

    height:34px;

    min-width:82px;

    font-size:10px;

}

.portfolio-card strong{

    font-size:24px !important;

    line-height:1.2 !important;

    font-weight:700 !important;

}

.portfolio-card span{

    font-size:13px !important;

}

/* ===================================
CENTRE FEATURED HERO
=================================== */

.elite-featured{

    display:flex;

    flex-direction:column;

    align-items:center;

    text-align:center;

    padding:70px 50px;

}

.elite-featured > div:first-child{

    width:100%;

    max-width:900px;

    margin:0 auto 45px;

}

.elite-featured .featured-tag{

    display:inline-block;

    margin:0 auto 20px;

}

.elite-featured h2{

    margin:0 0 22px;

    font-size:48px;

    font-weight:700;

    text-align:center;

}

.elite-featured p{

    max-width:820px;

    margin:0 auto;

    font-size:20px;

    line-height:1.8;

    color:#aeb8ca;

    text-align:center;

}

/* ===================================
FEATURE ITEMS
=================================== */

/* ===================================
FEATURE GRID
=================================== */

.elite-feature-icons{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:24px;

    margin-top:50px;

    align-items:stretch;

}

.feature-item{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:flex-start;

    text-align:center;

    padding:30px 24px;

    background:#111827;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    min-height:260px;

}

.feature-item:hover{

    border-color:#22c55e;

    transform:translateY(-4px);

}

.feature-item span{

    margin-top:18px;

    color:#ffffff;

    font-size:22px;

    font-weight:700;

    letter-spacing:-0.02em;

    text-transform:none;

}

.feature-item strong{

    display:none;

}

.feature-item p{

    max-width:260px;

    margin:18px auto 0;

    font-size:15px;

    line-height:1.7;

    color:#9caec7;

}

.elite-featured{

    max-width:1600px;

    margin:0 auto;

}
