@charset "UTF-8";

/*
Nugget Name: Organizational chart with D3.js, expandable, zoomable, and fully initialized (Holding Company Tree Chart)
Nugget URI: https://onyxdev.net/snippets-item/organizational-chart-with-d3-js-expandable-zoomable-and-fully-initialized/
Author: Obada Qawwas
Author URI: https://www.onyxdev.net/
Version: 1.0
Licensed under the MIT license - http://opensource.org/licenses/MIT
Copyright (c) 2020 Onyx Web Development
*/

/************************************************************

    Main Styles

*************************************************************/
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: rgba(0, 0, 0, 0.01) 0 0 1px;
    text-rendering: optimizeLegibility;
    background-color: #fff;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    color: #000;
    font-size: 0.875rem;
    letter-spacing: 0.01rem;
    background-color: transparent;
    margin: 0;
}

/************************************************************

    Main wrapper

*************************************************************/
.main {
    position: relative;
    width: 100vw;
}

/************************************************************

    Prevent browsing with no JS

*************************************************************/
html.no-js {
    overflow: hidden;
}
.no-js-note {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fff;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    z-index: 99;
}

/************************************************************

    Organizational chart

*************************************************************/
.chart-container {
    width: 100vw;
    height: 100vh;
}

.tree-chart__card {
    padding: 14px;
}

.tree-chart__card__title {
    /*margin-left: 68px;*/
    font-size: 1.000rem;
    font-weight: 600;
    text-align: center;
    padding: 2px 0px;
}

.tree-chart__card__title_dod_lunar {
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    padding: 2px 0px;
}

.tree-chart__card__title_level {
    color: red;
}

.tree-chart__card__after-title {
    /*margin-left: 68px;*/
    margin-top: 3px;
    font-size: 0.750rem;
    opacity: 0.5;
    /*font-style: italic;*/
    text-align: center;
}

.tree-chart__card__share {
    position: absolute;
    width: 100%;
    text-align: center;
    /*right: 14px;*/
    left: 0;
    bottom: 60px;
    font-size: 0.75rem;
    opacity: 0.5;
    font-weight: 600;
}

.tree-chart__card__location {
    position: absolute;
    width: 100%;
    text-align: center;
    /*right: 14px;*/
    left: 0;
    bottom: 45px;
    font-size: 0.75rem;
    opacity: 0.5;
    font-weight: 600;
}

.tree-chart .node-icon-text-total,
.tree-chart .node-icon-text-direct {
    opacity: 0.5;
}

.node--no-subsidiaries .node-icon-text-total,
.node--no-subsidiaries .node-icon-text-direct,
.node--no-subsidiaries .node-icon-image {
    display: none;
}

#view-mode {
    padding: 5px 0px;
    text-align: center;
    text-transform: uppercase;
}

#view-mode h2 {
    margin: 5px;
    font-size: 24px;
}

#search-container {
    padding: 5px 0px;
    text-align: center;
}

/* Start: CSS for support tool */
#support-tool {
    position: relative;
}

#support-tool .zalo-chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
}

#support-tool .zalo-chat-widget:hover {
    cursor: pointer;
}
/* End: CSS for support tool */

/* Start: Responsive */
body {
    padding-left: 5px;
    padding-right: 5px;
}

#view-mode h2 {
    font-size: 18px;
    color: red;
}

#view-mode p {
    margin: 0;
}

#view-mode a {
    font-size: 12px;
    text-decoration: none;
}

#view-mode-mobile {
    max-width: 860px;
    margin: auto;
    padding: 10px 10px;
    overflow:auto;
    border:1px solid silver;
    max-height: 78vh;
}

/* Smartphones: Thường áp dụng cho màn hình nhỏ hơn 576px */
@media (orientation: portrait) and (max-width: 360px) {
    #view-mode h2 {
        font-size: 14px;
    }

    #view-mode p, #view-mode a {
        font-size: 10px;
    }

    #support-tool .zalo-chat-widget img {
        width: 70%;
    }

}

@media (orientation: portrait) and (min-width: 361px) and (max-width: 576px) {
    #view-mode h2 {
        font-size: 16px;
    }

    #view-mode p, #view-mode a {
        font-size: 10px;
    }

    #support-tool .zalo-chat-widget img {
        width: 80%;
    }

}

/* Tablets: Áp dụng cho màn hình từ 577px đến 768px */
@media (orientation: portrait) and (min-width: 577px) and (max-width: 768px) {
    #view-mode h2 {
        font-size: 18px;
    }

    #view-mode p, #view-mode a {
        font-size: 12px;
    }

    #support-tool .zalo-chat-widget img {
        width: 90%;
    }

}

/* Laptop: Áp dụng cho màn hình từ 769px đến 1200px */
@media (orientation: portrait) and (min-width: 769px) and (max-width: 1200px) {


}

/* Desktop hoặc TV: Áp dụng cho màn hình lớn hơn 1200px */
@media (orientation: portrait) and (min-width: 1201px) {


}
/* End: Responsive */
