/* ============================
     side-box 側欄選單
   ============================*/
.side-box {
    padding: 2rem 1rem 2rem 3.5rem;
    width: 25%;
    position: sticky;
    top: 4rem;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
}


.side-btn {
    position: relative;
    display: block;
    color: #54433a;
    font-weight: 600;
    padding: 6px 5px;
    border-bottom: 1px solid #dfdfdf;
}

.side-btn::after {
    font-family: "bootstrap-icons";
    content: "\F282";
    float: right;
}

.collapse-content {
    font-size: 14px;
    color: #212121;
}

.ctag {
    margin: 3px 0;
}

.ctag label {
    display: block;
    cursor: pointer;
    margin: 0;
}

.ctag:hover label {
    background-color: #efefef;
}

.ctag input[type=checkbox] {
    position: relative;
    margin: 5px;
}

.ctag input[type=checkbox]:before {
    content: " ";
    background: white;
    border: 1px solid #001432;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 0.9rem;
    height: 0.9rem;
    transition: background 0.2s ease-in-out;
}

.ctag input[type=checkbox]:checked:before {
    background: #001432;
}

.ctag input[type=checkbox]:checked:after {
    content: " ";
    background: transparent;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    position: absolute;
    top: 25%;
    left: 22%;
    width: 70%;
    height: 35%;
    z-index: 2;
    transform: rotate(-45deg);
}


/* ============================
    right-area
   ============================*/

.right-area {
    width: 70%;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (max-width: 992px) {
    .right-area {
        width: 90%;
    }
}

@media (max-width: 576px) {
    .right-area {
        width: 100%;
    }
}

.right-area .input-group>.form-control {
    border-radius: 10px;
}

.right-area .input-group>.input-group-append>.btn-primary {
    border-radius: 0 10px 10px 0;
    background-color: #fb6b30;
    border-color: #fb6b30;
}

.right-area .input-group>.input-group-append>.btn-primary:hover {
    background-color: #ffdc00;
    border-color: #ffdc00;
}

.tag-badge {
    display: inline-block;
    color: #001432;
    font-size: 14px;
    font-weight: 500;
    border-radius: 15px;
    background-color: #eeeeee;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    padding: 0 15px;
    margin-right: 3px;
}

.clear {
    border: 1px solid #999999;
    color: #999999;
    background-color: #ffffff;
}

.tag-badge:hover {
    background-color: #dfdfdf;
}

.clear:hover {
    color: #001432;
}

.tag-badge i {
    color: #999999;
    padding-left: 6px;
}

.tag-badge:hover i {
    color: #0072c5;
}


/* ============================
   agenda
   ============================*/

.tabAgenda {
    padding: 5px 20px;
    margin-right: 20px;
    border: 1px solid #999999;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
    margin-bottom: 20px;
    border-radius: 10px;
}

.tabAgenda a {
    color: var(--dark-colorC);
}

.tabAgenda:hover {
    transform: translateY(3px);
    cursor: pointer;
}

.tabA-active {
    font-weight: 700;
    background-color: #E1F0FA;
}


.tabA-active .tabAgenda-tag {
    font-weight: 400;
}

.tabAgenda-tag {
    background-color: var(--sub-colorC);
    font-size: 14px;
    border-radius: 20px;
    color: #ffffff;
    padding: 0 12px;
    margin-left: 8px;
}

/* tip */
.tip {
    position: relative;
    display: inline-block;
  }
  
  .tip .tiptext {
    display: none;
    font-size: 14px;
    text-align: left;
    line-height: 18px;
    width: 280px;
    background-color: #333;
    color: #fff;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    top: 30px;
    right: -20px;
    padding: 6px;
    margin-left: -40px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  @media (max-width: 576px) { 
    .tip .tiptext {
        right: -60px;
    }
}

  .tip .tiptext::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 90%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
  }
  
  @media (max-width: 576px) { 
    .tip .tiptext::after {
        left: 76%;
    }
}

  .tip:hover .tiptext {
    display: block;
    opacity: 1;
  }