/* Passport page shell overrides and API-rendered content helpers */

.navbar {
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    flex-wrap: wrap;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.navbar .logo img {
    filter: brightness(0) invert(1);
    width: 150px;
}

.navbar .powered-by {
    font-size: 1rem;
    color: #ccc;
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .navbar .powered-by {
        margin-top: 0.5rem;
    }
}

.supply-chain-graph {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    overflow-x: auto;
    padding: 10px;
}

.tier-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.branch-row {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.tier-box {
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 15px;
    min-width: 220px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.tier-connection {
    width: 4px;
    height: 20px;
    background-color: #4CAF50;
    margin: 0 auto 20px;
}

.supply-tabs {
    margin-top: 20px;
}

.tab-menu {
    list-style: none;
    display: flex;
    border-bottom: 1px solid #ccc;
    padding: 0;
    margin: 0;
}

.tab-menu li {
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-bottom: none;
    background: #f7f7f7;
    margin-right: 5px;
}

@media (max-width: 600px) {
    .tab-menu li {
        padding: 15px 5px;
    }
}

.tab-menu li.active {
    background: #fff;
    font-weight: bold;
}

.tab-content .tab-pane {
    display: none;
    padding: 10px;
    border: 1px solid #ccc;
}

.tab-content .tab-pane.active {
    display: block;
}

.supply-node {
    position: relative;
    padding-left: 20px;
    margin: 10px 0;
}

.supply-node:before {
    content: "";
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #000;
}

.supply-node:last-child:before {
    bottom: 50%;
}

.supply-node > .supply-node:before {
    top: -10px;
    height: calc(100% + 10px);
}

.supply-node > .supply-node:after {
    content: "";
    position: absolute;
    top: 10px;
    left: 7px;
    width: 13px;
    height: 2px;
    background: #000;
}

.tier2 {
    margin-left: 0;
}

.tier3 {
    margin-left: 20px;
}

.tier4 {
    margin-left: 40px;
}

.material-item {
    margin-bottom: 1rem;
}

.material-bar {
    height: 10px;
    background: #e4e4e4;
    border-radius: 5px;
    overflow: hidden;
    margin: 5px 0;
}

.material-bar-fill {
    height: 10px;
}

.read-more-btn {
    background: none;
    border: none;
    color: #686a6f;
    cursor: pointer;
    padding: 0;
    margin-top: 5px;
    font-weight: 500;
}

.read-more-btn:hover {
    text-decoration: underline;
}

.material-description {
    background: #f9f9f9;
    border-left: 3px solid #686a6f;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
}

#audit-info,
#certificate-info {
    display: none;
    margin-top: 10px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.learn-more {
    color: #686a6f;
    cursor: pointer;
    text-decoration: underline;
}

.auto-load-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auto-load-box {
    text-align: center;
    color: #666;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.auto-load-box i {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 14px;
    display: block;
}

.auto-load-error {
    color: #c0392b;
    font-size: 0.95rem;
    margin-top: 14px;
    display: none;
}

.missing-id-box {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #c0392b;
    padding: 40px 20px;
}

#passport-screen,
#static-sections {
    display: none;
}

.about-section .inner.sustainability-inner {
    margin-bottom: 10px;
}

.sustainability-title {
    font-size: 22px;
    color: #000;
}

.sustainability-text {
    font-weight: 400;
}

.sustainability-link {
    color: orange;
}
