/* Nav:
 * core-ui's javascript doesn't work well with nav items and unpoly,
 * disable their classes so we have accurate "up-current" indicators.
 */
a {
    text-decoration: none;
    background-color: transparent;
    color: rgb(40, 153, 161);
    font-weight: 500;
}

a.c-active {
    color: inherit !important;
    background: inherit !important;
    .c-sidebar-nav-icon {
        color: inherit !important;
        background: inherit !important;
    }
}

nav {
    a.up-current {
        background: rgba(255,255,255,.05) !important;
        color: #fff !important;
    }
    a[href].up-current,
    a[href].page-link:hover {
        color: #fff !important;
        background: #2f9ca3 !important;
    }
    margin-top: 30px;
}

label {
  margin: 0;
}

.c-sidebar .c-sidebar-nav-link:hover {
    color: #fff;
    background: #2f9ca3;
}

.nav-tabs .nav-link {
    color: #3c4b64;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 13px;
}

.nav-tabs .nav-link.active {
    color: #303c55;
    font-weight: 650;
    border:  none;
    border-bottom: 0.3rem solid #2f9ca3;
}
/* /Nav */

/* Misc */
thead {
    .searchable {
        border-left: 2px solid;
    }
    .searchable:not(.btn-group) {
        padding-left: .25rem;
    }
    .btn-group.searchable {
        border-radius: .25rem;
    }
}

.tab-content {
    margin-top: 25px;
}

p.empty-label {
    font-style: italic;
    color: #768192;
}

h4 {
    font-size: 1.3rem;
    color: #3c4b64;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.9rem;
}

button.button-reset {
  background: none;
  border: none;
  padding: 0;
}
/* /Misc */

/* Card */
.card {
    box-shadow: 2px 2px 5px 0px #c5cbd44a;
    margin-bottom: 1rem;
    border-color: #9fa7b24a;
}

.card-title {
    font-weight: 600;
}
/* /Card */

/* Lists */
.list-group {
    line-height: 1.7rem;
}

.list-unstyled {
    line-height: 1.7rem;
}

span.li-label,
label.li-label {
    font-weight: 600;
}
/* /Lists */

/* Spinner */
/* show standalone spinner when `up-loading` is dynamically added */
.up-loading .spinner-grow {
    display: block !important;
}

/* show button spinner when `up-active` is dynamically added */
.up-active .spinner-border {
    display: inline-block !important;
}

/* change button style when `up-active` is dynamically added */
.up-active.btn-success {
    color: #2eb85c !important;
    border-color: #2eb85c !important;
    background-color: transparent !important;
    pointer-events: none;
}
/* /Spinner */

/* Root page style */
.stt-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    position: relative;
    width: 100%;
}

.stt-container .links {
    position: absolute;
    top: 20px;
    right: 20px;
}

.stt-container img {
    max-width: calc(100% - 100px);
    max-height: calc(100% - 100px);
    padding: 50px;
    box-sizing: border-box;
}
/* End root page style */

/* --- Ownership timeline --- */
.ownership-timeline .timeline {
  position: relative;
  margin-left: 1.25rem;           /* space for line+dot */
  padding-left: 0;
}

.ownership-timeline .timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;                   /* aligns with dot center */
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cui-border-color, #dee2e6);
}

.ownership-timeline .timeline-item {
  position: relative;
  padding-left: 1.25rem;
}

.ownership-timeline .timeline-dot {
  position: absolute;
  left: -0.05rem;                 /* visually center over line */
  top: 0.85rem;                   /* roughly aligns with first line of text */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cui-primary, #321fdb);
  box-shadow: 0 0 0 2px #fff;     /* crisp against card bg */
}

.ownership-timeline .timeline-meta time {
  display: inline-block;
}

.ownership-timeline .timeline-meta .badge {
  vertical-align: middle;
}

.ownership-timeline .timeline-body .badge.bg-success {
  margin-left: .5rem;
}

.ownership-timeline .timeline-body .cil-file {
  font-size: .9rem;
}

/* Long COOW ids won’t break layout */
.ownership-timeline .timeline-meta .badge { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Slightly more room for the line + consistent left gutter */
.ownership-timeline .timeline {
  position: relative;
  margin-left: 1.25rem;
  padding-left: 0;
}

.ownership-timeline .timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cui-border-color, #dee2e6);
}

/* Base item padding stays; vertical rhythm comes from py-2/py-3 in HTML */
.ownership-timeline .timeline-item {
  position: relative;
  padding-left: 1.25rem;
}

/* Dots only on transition rows */
.ownership-timeline .owner-item .timeline-dot { display: none; }
.ownership-timeline .transition-item .timeline-dot {
  position: absolute;
  left: -0.05rem;
  top: 0.9rem; /* aligns with meta date baseline */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cui-primary, #321fdb);
  box-shadow: 0 0 0 2px #fff;
}

/* Demote metadata visuals, keep badges aligned */
.ownership-timeline .timeline-meta time {
  display: inline-block;
}
.ownership-timeline .timeline-meta .badge {
  vertical-align: middle;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* File icon sizing */
.ownership-timeline .timeline-body .cil-file { font-size: .9rem; }

.underline-danger {
  text-decoration: underline;
  text-decoration-color: var(--cui-danger, #e55353);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
