.triptree {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.triptree .header {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 8px;
}

.triptree .link {
    color: rgb(1, 144, 206);
    text-decoration: underline;
    font-size: 80%;
    cursor: pointer;
}

.triptree .link i::before{
    padding-right: 3px;
    font-size: 100%;
}

.triptree .trip {
    flex-direction: column;
    padding: 0;
    background-color: #fff;
    border: 1px solid #9c9c9c;
    border-radius: 5px;
    box-shadow: 2px 2px 8px #cd9575;
}

.triptree .trip .trpribbon {
    padding: 8px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: start;
    align-items: center;
}

.triptree .trip .trpribbon img {
    width: 38px;
    border: 0.5px solid #777;
    border-radius: 19px;
}

.triptree .trip .trpribbon .header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: start;
}

.triptree .trip .trpribbon .header .club,
.triptree .trip .trpribbon .header .start {
    font-size: 80%;
}

.triptree .trip .trpribbon .links {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-left: auto;
}

.triptree .segribbon {
    border-top: 1px solid #9c9c9c; 
}

.triptree .trip .segribbon .name {
    padding-left: 0;
    font-size: 90%;
    font-weight: bold;
}

.triptree .trip .segments {
    position: relative;
    margin: 8px 0 36px 20px;
    padding: 0 8px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: start;
    justify-content: space-between;
    border-left: 1px dashed #FAA74D;
}

.triptree .trip .segribbon {
    padding: 8px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: start;
    align-items: center;
}

.triptree .trip .segment {
    width: 100%;
}

.triptree .trip .segment .header {
    display: flex;
    flex-direction: row;
    gap: 4px;
    justify-content: start;
    align-items: center;
}

.triptree .trip .segment .header .name {
    color: #BA6A2E;
    font-size: 100%;
    font-weight: 500;
}

.triptree .trip .segment .subject {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: start;
    justify-content: space-between;
}

.triptree .trip .inline {
    display: flex;
    flex-direction: row;
    gap: 1ch;
    justify-content: start;
    align-items: center;
}

.triptree .trip .segment .inline {
    font-size: 80%;
}

.triptree .trip .segment .inline .sitname {
    font-weight: 500;
}

.triptree .trip .segment .inline .twnname,
.triptree .trip .segment .inline .date {
    color: green;
    font-weight: 400;
}

.triptree .trip .segment input.guest {
    width: 60px;
    text-align: center;
}

.triptree .trip .segment .label {
    color:#777;
}

.triptree .trip .number-circle {
    position: absolute;
    left: -1px;
    transform: translateX(-50%);
    z-index: 2; /* In front of the line */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #BA6A2E;
    color: white;
    border-radius: 50%;
    font-size: 70%;
    font-weight: 500;
}

.triptree .trip .number-circle.last {
    bottom: -18px;
}

.triptree .trip .number-circle.last:after {
    font-weight: normal;
    font-size: 60%;
    font-family: 'Font Awesome 6 Free';
    content: "\f015";
}

@media (max-width: 1000px) {
    
    .triptree .trip .segment .subject {
        gap: 3px;
    }

    .triptree .trip .segment .inline.place,
    .triptree .trip .segment .inline.dates {
        flex-direction: column;
        align-items: start;
        gap: 3px;
    }
}
/* ------------------------------- review --------------------------------- */
.triptree .trip .chrribbon {
    display: grid;
    grid-template-columns: 1fr 20px;
    grid-template-rows: auto;
    grid-template-areas: 
        "header expander";
    align-items: center;
    margin: 0;
}

.triptree .trip .chrribbon .expander {
    grid-area: expander;
    text-align: end;
}

.triptree .trip .chrribbon .header {
    grid-area: header;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.triptree .trip .chrribbon .name {
    font-weight: 500;
}

.triptree .trip .evtribbon .name {
    font-weight: 400;
}

.triptree .trip .chrribbon .linkmember {
    font-size: 80%;
    margin: 0 8px;
}

.triptree .trip .evtblock {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.triptree .trip .event {
    padding: 8px;
    border-top: 1px solid #9c9c9c;
    display: flex;
    flex-direction: column;
}

.triptree .evtribbon {
    display: grid;
    grid-template-columns: 1fr 20px;
    grid-template-rows: auto;
    grid-template-areas: 
        "header expander";
    align-items: center;
    margin: 0;
    padding: 8px 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.triptree .evtribbon .expander {
    grid-area: expander;
    text-align: end;
}

.triptree .evtribbon .header {
    grid-area: header;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.triptree .evtribbon .starts,
.triptree .evtribbon .attending {
    font-size: 80%;
    margin-left: 8px;
}

.triptree .evtribbon .attending {
    font-weight: 500;
    color: green;
}

.triptree .trip .evtribbon .linkattend {
    font-size: 80%;
    margin: 0 8px;
}

.triptree .evtblock {
    display: flex;
    flex-direction: column;
}

.triptree .trip .event .fncblock,
.triptree .trip .event .swgblock {
    padding-left: 24px;
}

.triptree .fncribbon,
.triptree .swgribbon {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
    align-items: center;
}

.triptree .fncribbon .name,
.triptree .swgribbon .name {
    font-size: 90%;
    font-weight: 400;
    white-space: nowrap;
}

.triptree .fncribbon .bellnotice,
.triptree .swgribbon .bellnotice {
    display: flex;
    flex-direction: row;
    margin-left: auto;
    padding-left: 12px;
}

.triptree .bell {
    color: red;
    padding-right: 8px;
}

.triptree .fncribbon .notice,
.triptree .swgribbon .notice {
    font-size: 80%;
    font-weight: 200;
}

.triptree .function {  
    display: grid;
    grid-template-columns: 50px repeat(2, minmax(0, 1fr)) repeat(2, minmax(0, 2fr));
    grid-template-rows: auto;
    grid-template-areas: 
        "fncaction fncname fncplace fnctime attend"
        ".         fncdesc fncdesc  fncdesc fncdesc";
    align-items: center;
    margin: 2px 0;
    padding: 0;
}

.triptree .function .fncaction {
    grid-area: fncaction;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.triptree .function .fncname {
    grid-area: fncname;
}

.triptree .function .fncdesc {
    grid-area: fncdesc;
    border-radius: 3px;
    background-color: rgb(252, 249, 245);
    padding: 4px;
    margin: 2px 0;
}

.triptree .function .fncplace {
    grid-area: fncplace;
}

.triptree .function .fnctime {
    grid-area: fnctime;
}

.triptree .function .attend {
    grid-area: attend;
    display: flex;
    gap: 8px;
}

.triptree .function input.guest {
    width: 40px;
    text-align: center;
    font-family: inherit;
    font-size: 80%;
}

.triptree .functionlist,
.triptree .swaglist {
    font-size: 80%;
    margin: 8px 0 0;
}

.triptree .swaglist .swag {  
    display: grid;
    grid-template-columns: 30px repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-template-areas: 
        "swgaction swgname swgmeasure swglock";
    align-items: center;
    margin: 2px 0;
    padding: 0;
}

.triptree .swaglist .swgaction {
    grid-area: swgaction;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.triptree .swaglist .swgname {
    grid-area: swgname;
}

.triptree .swaglist .swgmeasure {
    grid-area: swgmeasure;
}

.triptree .swaglist .swglock {
    grid-area: swglock;
    font-weight: 500;
    color: red;
}

.triptree .swaglist .swglock.locked {
    font-weight: 300;
    color: #aaa;
}

.triptree .swaglist .msrname {
    margin-right: 4px;
}

.triptree select {
    &, &::picker(select) {
        appearance: base-select;    
        border-radius: 3;
        border-color: #ddd;
        align-items: center;
        padding: 0 8px;
        margin-right: 8px;
    }
}

@media (max-width: 1000px) {

    .triptree .insribbon .header,
    .triptree .chrribbon,
    .triptree .evtribbon .header,
    .triptree .fncribbon,
    .triptree .swgribbon {
        flex-direction: column;
        align-items: start;
    }

    .triptree .links,
    .triptree .evtribbon .starts,
    .triptree .evtribbon .attending  {
        margin-left: 0;
    }

    .triptree .bell {
        font-size: 80%;
    }

    .triptree .fncribbon .bellnotice,
    .triptree .swgribbon .bellnotice {
        margin-left: 0;
        padding-left: 0;
    }

    .triptree .functionlist .function {  
        grid-template-columns: 30px 1fr;
        grid-template-areas: 
            "fncaction fncname"
            "fncaction fncdesc"
            "fncaction fncplace" 
            "fncaction fnctime" 
            "fncaction attend";
        margin: 12px 0;
        align-items: start;
    }
    
    .triptree .swaglist .swag {  
        grid-template-columns: 30px 1fr;
        grid-template-areas: 
            "swgaction swgname" 
            "swgaction swgmeasure" 
            "swgaction swglock";
        margin: 12px 0;
        align-items: start;
    }

    .triptree .function .fncaction,
    .triptree .swag .swgaction {
        margin-right: 8px;
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }

    .triptree .function .fncaction .link i::before,
    .triptree .swag .swgaction .link i::before {
        font-size: 120%;
        padding: 0;
        margin: 0;
    }

    .triptree .function .fncname,
    .triptree .swag .swgname {
        font-size: 1em;
        font-weight: bold;
        color: green;
    }
    
    .triptree .function label.hilite {
        font-weight: bold;
    }
}
