﻿/* Org chart styles - shared by ship/org-chart.aspx and org-chart-view.aspx (boxes built by App_Code/OrgChartRenderer.vb) */
/* ---------- toolbar ---------- */
.oc-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.oc-toolbar label { margin: 0; }
.oc-crumbs { font-size: 13px; color: #666; margin-bottom: 10px; }
.oc-crumbs a { color: #2a6ebb; }
.oc-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; margin: 6px 0 14px; }
.oc-legend span { display: inline-flex; align-items: center; gap: 4px; }
.oc-legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }

/* ---------- chart ---------- */
.oc-scroll { overflow-x: auto; padding-bottom: 10px; }
.oc-chart { display: inline-block; min-width: 100%; text-align: center; margin-bottom: 30px; }
.oc-card {
    display: inline-block; text-align: left; min-width: 170px; max-width: 220px;
    border: 1px solid #d6d6d6; border-top-width: 5px; border-radius: 6px;
    background: #fff; padding: 6px 9px; box-shadow: 0 1px 2px rgba(0,0,0,.06);
    position: relative; vertical-align: top;
}
.oc-card .oc-title { padding-right: 34px; font-size: 11px; text-transform: uppercase; letter-spacing: .02em; color: #555; line-height: 1.25; }
.oc-card .oc-name  { font-size: 14px; font-weight: 600; color: #222; line-height: 1.3; margin-top: 2px; }
.oc-card .oc-open  { color: #c0392b; font-style: italic; font-weight: 600; }
.oc-card .oc-acts  { position: absolute; top: 4px; right: 6px; font-size: 12px; }
.oc-card .oc-acts a { color: #888; margin-left: 6px; text-decoration: none; cursor: pointer; }
.oc-card .oc-acts a:hover { color: #2a6ebb; }
.oc-card .oc-count { font-size: 11px; color: #888; }
.oc-card.oc-group { min-width: 150px; text-align: center; padding: 8px 12px; border-width: 1px; }
.oc-card.oc-group .oc-name { font-size: 15px; font-weight: 700; color: #1f2d3d; text-transform: uppercase; letter-spacing: .03em; }
.oc-card.oc-group .oc-count { color: #333; }
.oc-card.oc-isopen { background: #fff8f7; border-style: dashed; border-top-style: solid; }

/* root -> first row (horizontal) */
.oc-stem { width: 2px; height: 18px; background: #bbb; margin: 0 auto; }
.oc-row  { display: flex; justify-content: center; align-items: flex-start; }
.oc-col  { position: relative; padding: 18px 8px 0; text-align: left; }
.oc-col::before { content: ''; position: absolute; top: 0; left: 0; right: 0; border-top: 2px solid #bbb; }
.oc-col:first-child::before { left: 50%; }
.oc-col:last-child::before  { right: 50%; }
.oc-col:only-child::before  { border-top: none; }
.oc-col::after  { content: ''; position: absolute; top: 0; left: 50%; height: 18px; border-left: 2px solid #bbb; }
.oc-col > .oc-card { display: block; margin: 0 auto; }

/* everything deeper (vertical, indented) */
ul.oc-v { list-style: none; margin: 0 0 0 14px; padding: 0 0 0 16px; border-left: 2px solid #d5d5d5; }
ul.oc-v > li { position: relative; margin: 8px 0; }
ul.oc-v > li::before { content: ''; position: absolute; left: -16px; top: 20px; width: 14px; border-top: 2px solid #d5d5d5; }
ul.oc-v > li:last-child::after { content: ''; position: absolute; left: -18px; top: 21px; bottom: 0; width: 4px; background: #fff; }

body.oc-hide-open .oc-li-open { display: none; }

/* responsibilities popup */
.oc-rr h5 { font-size: 14px; margin: 12px 0 3px; color: #1f3b63; }
.oc-rr p  { margin: 0 0 6px; font-size: 13px; line-height: 1.45; }
.oc-rr .oc-rr-empty { color: #888; font-style: italic; }

@media print {
    #myNavbar, .oc-toolbar, .dxtcLite_Office365 .dxtc-strip, .dxtc-strip, .oc-acts { display: none !important; }
    .oc-scroll { overflow: visible; }
}
