.visitor-profile {
    position:relative;
    width:1150px;
    border:1px solid #a19e96;
    border-radius:5px;
    background:url(../images/visitor_profile_background.jpg) repeat;
    box-shadow:5px 5px 5px rgba(0,0,0,0.22);
    text-align:left;

    h1 {
        font-size:18px;
        color:#7e7363;
        text-shadow:0 1px 0 rgba(255,255,255,1);
        margin:9px 0 0 0;
        padding:0;

        a {
            font-size:12px;
            margin-left:3px;
        }
    }

    p {
        font-size:14px;
        color:#5e5e5c;
        line-height:20px;
    }

    h2 {
        display:inline-block;
        font-size:14px;
        margin:0 0 0 5px;
        padding:0;
        font-weight:bold;
        color:black;
    }

    span.truncated-text-line {
        display:inline-block;
        &.event {
          max-width: 89%;
        }
    }
}

.visitor-profile-summary,.visitor-profile-important-visits,.visitor-profile-avatar,.visitor-profile-visits-container {
    span, strong {
        display:inline;
        font-size:14px;
        color:#5e5e5c;
        line-height:19px;
        padding-left:4px;
    }
}

.visitor-profile-widget-link {
    color:#5e5e5c;
}

.visitor-profile-widget-link:hover {
    text-decoration:underline;
}

.visitor-profile-export {
    float:right;
    margin-top:3px;
}

.visitor-profile-close {
    z-index: 10;
    position:absolute;
    right:-17px;
    top:-16px;
    height:35px;
    width:35px;
    background:url(../images/visitor_profile_close.png) no-repeat;
}

.visitor-profile a {
    text-decoration:none;
    color:#255792;
}

.visitor-profile > div {
    width:100%;
}

.visitor-profile-info {
    height:auto;
    border-top:2px solid #f6f6f6;
    border-bottom:1px solid #d1cec8;
    border-radius:5px 5px 0 0;
    box-shadow:inset 0 25px 15px -10px #e0e0e0, inset 0 -25px 15px -10px #e0e0e0;

    > div { // row
        border-bottom:1px solid #d1cec8;

        > div { // columns
            vertical-align:top;
            height:auto;
            display:inline-block;
        }
    }

    .visitor-profile-overview { // first column
      width:574px;
      border-left:none;
      margin:0 -3px 0 0;
      border-right:1px solid #d1cec8;
    }
    .visitor-profile-visits-info { // last column
      width:573.5px;
      border-bottom:none;
      margin:0 0 0 -3px;
      border-left:1px solid #d1cec8;
    }
}

.visitor-profile-summary,.visitor-profile-important-visits,.visitor-profile-avatar,.visitor-profile-location {
    border-bottom:1px solid #d1cec8;
}

.visitor-profile-avatar > div {
    position:relative;
    float:left;
    min-height:145px;
    margin:12px 15px 0 0;
    padding-bottom:4px;
}

.visitor-profile-avatar > div:first-child {
    width:166px;
    margin-right:0;
    padding-left:16px;

    > .visitor-profile-image-frame {
        width:149px;
        height:154px;
        background:url(../images/avatar_frame.png) no-repeat;

        > img { // avatar image
            max-width:122px;
            height:120px;
            margin:11px 0 0 12px;
        }
    }

    > img { // paperclip image
        position:absolute;
        top:-20px;
        left:3px;
        z-index:2;
    }
}

.visitor-profile-avatar > div:last-child {
    margin-right:0;
}

.visitor-profile-avatar h1 {
    display:inline-block;
}

.visitor-profile-extra-cvars {
    border-top: 1px solid #d1cec8;
}

.visitor-profile-more-info {
    height:18px;
    border-radius:0 0 5px 5px;
    text-align:center;
    padding:0 0 13px;

    > a {
        font-size:14px;
        text-decoration:none;
        color:#255792;
        text-shadow:0 1px 0 rgba(255,255,255,1);
    }

    > .loadingPiwik {
        padding:0 0 0 4px;
    }
}

.visitor-profile-latest-visit {
    position:relative;
}

.visitor-profile-latest-visit-column {
    padding-top:6px;
    display:inline-block;
    vertical-align:top;
}

.visitor-profile-browser {
    margin-left: 5px;
    display:inline-block;
}

.visitor-profile-os {
    display:inline-block;
}

.visitor-profile-latest-visit-column:last-child {
    margin-left:9px;
}

.visitor-profile-avatar ul {
    width:178px;
}

.visitor-profile-avatar ul li {
    display:inline-block;
    min-height:24px;
    border-bottom:1px solid #d1cec8;
    width:100%;
}

.visitor-profile-id {
    height:24px;
}

.visitor-profile-avatar ul li:last-child {
    border-bottom:none;
}

.visitor-profile-avatar ul li:first-child {
    border-bottom:1px solid #d1cec8; // make sure there is a border if only one item is shown in the list
}

.visitor-profile-map {
    padding:0 21px 13px 21px;

    .dataTableFeatures,.no_data {
        display:none !important;
    }
}

.visitor-profile-map > div {
    border-radius:2px;
    background-color:#fff;
}

.visitor-profile-show-map {
    font-size:13px;
    font-style:italic;
}

.visitor-profile-summary,.visitor-profile-important-visits {
    overflow:hidden;
    padding:5px 0 0 22px;
}

.visitor-profile-summary {
    padding-bottom:18px;
}

.visitor-profile-important-visits {
    padding-bottom:16px;

    > div > div > p:first-child > strong {
        padding-left:0;
    }
}

.visitor-profile-summary > div {
    margin-top:6px;
    margin-right:1em;
}

.visitor-profile-summary strong {
    padding-left:0;
}

.visitor-profile-important-visits {
    > div {
        float:left;
        width:265px;
        height:100%;

        > div {
            margin-top:13px;
        }
    }

    span {
        padding-left:0;
    }
}

.visitor-profile-location {
    padding:10px 0 4px 19px;

    p {
        margin:13px 0;
        font-size:14px;
    }
}

.visitor-profile-location>p>.loadingPiwik {
    padding:0 0 0 4px;
}

.visitor-profile-pages-visited {
    height:42px;
    overflow-y:auto;
    position:relative;
    margin-right:10px;
    border-bottom:none!important;
    padding: 8px 18px 10px 13px;

    h1 {
        margin-left:6px;
    }
}

.visitor-profile-visits-container {
    overflow-y:auto;
    position:relative;
    margin-right:10px;
    border-bottom:none!important;
    padding:0 18px 0 13px;

    .action-list-action-icon {
        margin-right:4px;
    }

    ol {
        > li {
            display:block;
            font-size:12px;
            font-weight:700;
            line-height:25px;
            padding:0 0 10px 13px;

            span {
                font-size:13px;
                font-weight:700;
                line-height:25px;
                padding-left:0;
            }
        }
    }

    ol.visitor-profile-visits > li {
        margin:0 0 10px 13px;
        padding:0;

        > div {
            margin:0 6px 0 6px;
        }
    }

    ol.visitor-profile-actions {
        counter-reset:item;
        list-style-type:none;

        > li:before {
            content:counter(item) "  ";
            counter-increment:item;
        }
    }

    ol li ol {
        border-top:1px solid #d1cec8;
    }

    ol > li > ol > li {
        margin-left:-12px;
    }

    ol li ol li {
        display:block;
        color:#5e5e5c;
        font-size:13px;
        line-height:22px;
        padding-top:1px;
        padding-bottom:1px;
    }

    ol li ol li {
        padding-bottom:4px;
    }

    ol > li ol li span {
        padding-left:4px;
    }

    ol > li ol li {
      .action-list-url {
        margin-left:4px;
        line-height:14px;
        font-size:13px;
      }

      > div > .action-list-url {
        line-height:23px;
      }
    }

    ol > li ol li img {
        margin-left:7px;
    }

    // overrides for _actionsDetails styles
    strong {
        font-size:13px;
        line-height:25px;
    }
}

.visitor-profile-current-visit {
    background-color:#FAFACF;
}

.visitor-profile-date {
    float:right;
    font-size:13px;
    line-height:26px;
}

.visitor-profile-fog {
    height:25px;
    width:546px;
    position:absolute;
    bottom:51px;
    right:28px;
    background:url(../images/visitor_profile_gradient.png) repeat-x;
}

// popup css
.visitor-profile-popup {
    width: 1151px;
    height: auto;
    padding: 0;

    > .ui-dialog-titlebar {
        display: none;
    }

    > #Piwik_Popover {
        padding: 0;
        margin: 0;
        overflow: visible;
    }
}

span.visitor-profile-goal-name {
    font-style:italic;
    font-size:14px;
}

.visitor-profile-see-more-cvars {
    text-align:center;

    > a {
        font-size:11px;
        display:inline-block;
        color:#5e5e5c;
    }
}

.visitor-profile-visit-title-row {
    cursor:pointer;
}

.visitor-profile-visit-title-row:hover {
    background-color:#FAFACF;
}

.visitor-profile-avatar .loadingPiwik {
    padding:0;
    margin:0;
}

.visitor-profile-visits-info {
    position: relative;
}

div.visitor-profile-navigation {
    height:auto;
    min-height:inherit;
    font-size:12px;
    float:none;
    display:block;
    padding:0 0 0 22px;
}

.visitor-profile-header {
    position:relative;

    > .reportDocumentationIcon {
        display:none;
        margin:0;
        width:14px;
        background-size:14px;
    }
}

.visitor-profile-prev-visitor {
    display:none;
    position:absolute;
    right:100%;
    bottom:0;
    margin-right:2px;
}

a.visitor-profile-next-visitor,a.visitor-profile-prev-visitor {
    display:none;
    color:#7e7363;
}

.visitor-profile-avatar:hover {
    .visitor-profile-next-visitor,.visitor-profile-prev-visitor,.reportDocumentationIcon {
        display:inline-block;
    }
}

.visitor-profile-no-visits {
    color:#999;
    font-size:13px;
}

.visitor-profile-latest-visit-loc {
    display:inline-block;
    position:absolute;
    right:4px;
    top:-24px;
}

// overrides for the widgetized visitor profile
.widget .visitor-profile {
    min-width: 100% !important;

    p {
        padding-bottom: 0;
    }

    .visitor-profile-close {
        display:none;
    }

    .visitor-profile-info {
        > div { // row
            > div { // columns
                min-width:50% !important;
            }
        }
    }
}
