/* ==========================================================
   JARVIS STEP 10-L
   PROFESSIONAL JOURNAL WORKSPACE
   REV F2
   ========================================================== */

.step10-journal-workspace{
  width:100%;
  min-width:0;
}

.step10-journal-workspace.hidden{
  display:none !important;
}

.step10-l-shell{
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0;
  padding:22px;
}

.step10-l-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}

.step10-l-header h1{
  margin:6px 0 7px;
  font-size:25px;
  line-height:1.15;
}

.step10-l-header p{
  margin:0;
  max-width:760px;
  opacity:.72;
  line-height:1.5;
}

.step10-l-eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.8;
}

.step10-l-eyebrow span{
  padding:4px 7px;
  border:1px solid currentColor;
  border-radius:999px;
  font-size:9px;
  letter-spacing:.1em;
  opacity:.68;
}

.step10-l-header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}

.step10-l-header-actions button,
.step10-l-tabs button{
  appearance:none;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:rgba(255,255,255,.04);
  color:inherit;
  font:inherit;
  cursor:pointer;
}

.step10-l-header-actions button{
  min-height:35px;
  padding:0 12px;
}

.step10-l-header-actions button:hover,
.step10-l-tabs button:hover{
  background:rgba(255,255,255,.075);
}

.step10-l-header-actions button:disabled{
  cursor:wait;
  opacity:.55;
}

.step10-l-status{
  min-height:35px;
  display:flex;
  align-items:center;
  padding:0 11px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:8px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
}

.step10-l-status.good{
  border-color:rgba(70,210,140,.35);
}

.step10-l-metrics{
  display:grid;
  grid-template-columns:
    repeat(
      5,
      minmax(135px,1fr)
    );
  gap:10px;
}

.step10-l-metrics article{
  min-width:0;
  padding:14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(255,255,255,.025);
}

.step10-l-metrics span,
.step10-l-context-bar span{
  display:block;
  margin-bottom:5px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
  opacity:.58;
}

.step10-l-metrics b{
  display:block;
  min-width:0;
  font-size:18px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.step10-l-metrics small{
  display:block;
  margin-top:5px;
  font-size:10px;
  opacity:.5;
}

.step10-l-context-bar{
  display:grid;
  grid-template-columns:
    minmax(180px,.8fr)
    minmax(140px,.6fr)
    minmax(220px,1fr);
  gap:10px;
}

.step10-l-context-bar>div{
  min-width:0;
  padding:11px 13px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:8px;
}

.step10-l-context-bar b{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
}

.step10-l-tabs{
  display:flex;
  align-items:center;
  gap:6px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.step10-l-tabs button{
  min-height:34px;
  padding:0 13px;
  font-size:12px;
  font-weight:700;
}

.step10-l-tabs button.active{
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.22);
}

.step10-l-content{
  min-width:0;
  min-height:310px;
}

.step10-l-table-wrap{
  width:100%;
  min-width:0;
  overflow:auto;
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;
}

.step10-l-table{
  width:100%;
  min-width:850px;
  border-collapse:collapse;
  font-size:12px;
}

.step10-l-table th{
  position:sticky;
  top:0;
  z-index:1;
  padding:10px 12px;
  text-align:left;
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
  background:rgba(20,20,20,.97);
  border-bottom:1px solid rgba(255,255,255,.1);
  opacity:.72;
}

.step10-l-table td{
  padding:11px 12px;
  border-bottom:1px solid rgba(255,255,255,.055);
  vertical-align:top;
}

.step10-l-table tbody tr:last-child td{
  border-bottom:0;
}

.step10-l-table tbody tr:hover{
  background:rgba(255,255,255,.025);
}

.step10-l-side,
.step10-l-order-status,
.step10-l-decision{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:0 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.05em;
}

.step10-l-side.buy,
.step10-l-decision.buy,
.step10-l-order-status.filled{
  background:rgba(70,210,140,.12);
}

.step10-l-side.sell,
.step10-l-decision.sell,
.step10-l-order-status.rejected,
.step10-l-order-status.canceled{
  background:rgba(235,90,90,.12);
}

.step10-l-decision.wait,
.step10-l-order-status.pending,
.step10-l-order-status.accepted{
  background:rgba(230,190,75,.12);
}

.step10-l-mono{
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size:11px;
}

.step10-l-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:260px;
  padding:24px;
  border:1px dashed rgba(255,255,255,.1);
  border-radius:10px;
  text-align:center;
  opacity:.58;
}

.step10-l-session-note{
  margin-bottom:10px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:8px;
  font-size:11px;
  line-height:1.45;
  opacity:.68;
}

.step10-l-authority{
  display:grid;
  grid-template-columns:
    repeat(
      5,
      minmax(125px,1fr)
    );
  gap:8px;
  padding-top:4px;
}

.step10-l-authority>div{
  min-width:0;
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:8px;
}

.step10-l-authority span{
  display:block;
  font-size:9px;
  letter-spacing:.06em;
  text-transform:uppercase;
  opacity:.48;
}

.step10-l-authority b{
  display:block;
  margin-top:4px;
  font-size:10px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media (max-width:1150px){
  .step10-l-metrics{
    grid-template-columns:
      repeat(
        3,
        minmax(140px,1fr)
      );
  }

  .step10-l-authority{
    grid-template-columns:
      repeat(
        3,
        minmax(130px,1fr)
      );
  }
}

@media (max-width:820px){
  .step10-l-header{
    flex-direction:column;
  }

  .step10-l-header-actions{
    justify-content:flex-start;
  }

  .step10-l-metrics,
  .step10-l-context-bar,
  .step10-l-authority{
    grid-template-columns:1fr;
  }

  .step10-l-tabs{
    overflow:auto;
  }
}

/* ==========================================================
   JARVIS STEP 10O-B REV A ? VISIBLE DRAWING INTELLIGENCE
   ========================================================== */

.reference-drawing-intelligence{
  margin:9px 0 10px;
  padding:9px 10px;
  border:1px solid #29465d;
  border-left:3px solid #3c86b8;
  background:linear-gradient(
    135deg,
    rgba(10,28,41,.98),
    rgba(7,17,25,.98)
  );
  box-shadow:inset 0 0 18px rgba(49,132,181,.06);
}

.reference-drawing-intelligence-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:6px;
}

.reference-drawing-intelligence-head span{
  color:#76bce5;
  font-size:7px;
  font-weight:800;
  letter-spacing:.12em;
}

.reference-drawing-intelligence-head b{
  padding:2px 5px;
  border:1px solid #45586a;
  color:#91a0ae;
  background:#091018;
  font-size:6px;
  letter-spacing:.08em;
}

.reference-drawing-intelligence.has-analysis{
  border-color:#31709a;
  border-left-color:#45a6db;
}

.reference-drawing-intelligence.has-analysis
.reference-drawing-intelligence-head b{
  border-color:#286341;
  color:var(--green);
  background:rgba(8,31,19,.9);
}

#refDrawingIntelligence{
  margin:0;
  color:#d2e0ea;
  font-size:9px;
  font-weight:600;
  line-height:1.55;
  letter-spacing:.01em;
}

@media(max-height:900px){
  .reference-drawing-intelligence{
    margin:6px 0 7px;
    padding:7px 8px;
  }

  #refDrawingIntelligence{
    font-size:8px;
    line-height:1.45;
  }
}
