/*@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap");*/

::-webkit-scrollbar {
    background-color: transparent;
    width: 0.5rem;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(156, 156, 156);
    border-radius: 1rem;
    width: 0.1rem;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: rgb(103, 112, 121);
    }

body {
    font-family: "Noto Sans TC", sans-serif;
}

a {
    text-decoration: none;
}



/*  */

/* Dashboard Section */
.main-section {
    position: relative;
    background: #feffff;
    height: 100%;
    left: 260px;
    width: calc(100% - 260px);
    padding: 1.5rem 0 0 0;
    transition: all 0.5s ease;
    overflow-x: hidden;
}

    /*.sidebar.close ~ .main-section {
    left: 78px;
    width: calc(100% - 78px);
}*/

    .main-section .main-content {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: start;
    }

    .main-section .breadcrumb-container {
        margin-left: 2rem;
        background-color: rgb(238, 238, 238);
        font-size: 14px;
        border-radius: 10px;
    }

.breadcrumb-item a {
    color: rgb(156, 156, 156);
    text-decoration: none;
}

    .breadcrumb-item a:hover {
        color: rgb(3, 169, 244);
    }

.dashboard-area {
    padding: 1rem 1rem 1rem 1rem;
    /*    width: 100%;*/
    gap: 1rem;
    display: flex;
    align-content: center;
    justify-content: center;
    /*    min-height: calc(100vh - 85px);*/
}

    .dashboard-area .center {
        width: 100%;
        margin-top: 20px;
    }

    .dashboard-area .left {
        flex: 1;
        width: 70%;
        margin-top: 20px;
    }

    .dashboard-area .right {
        width: 30%;
        margin-top: 20px;
        padding-top: 55px;
        padding-bottom: 8px;
    }

    .dashboard-area .bottom {
        width: 100%;
    }

.main-section .card-img {
    filter: brightness(14px);
    width: auto;
}

/* Selection Cards */
.selction-content {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, 350px);
    gap: 15px;
}

.selection-card-content {
    display: flex;
    flex-direction: column;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    height: 350px;
    text-decoration: none;
    color: black;
    cursor: pointer;
    transition: 0.2s;
    height: auto;
    margin-top: 20px;
}

    .selection-card-content:hover {
        background-color: rgb(252, 252, 252);
        -webkit-box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.25);
        -moz-box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.25);
        box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.25);
    }

.selection-card-img {
    width: 100%;
}

/* Title */
.page-title {
    font-weight: 500;
    font-size: 30px;
    color: rgb(0, 0, 0);
}

/* 日曆 */
#calendar table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 1rem;
    border-style: hidden;
    box-shadow: 0 0 0 1px rgb(221, 221, 221);
}

#calendar th,
#calendar td {
    text-align: center;
    padding: 10px;
}

.calendar-cell {
    transition: 0.2s ease;
}

    .calendar-cell:hover {
        background-color: rgb(238, 238, 238);
    }

    .calendar-cell.prev-month:hover,
    .calendar-cell.next-month:hover {
        background-color: transparent;
    }

#calendar th:first-child {
    border-top-left-radius: 1rem;
}

#calendar th:last-child {
    border-top-right-radius: 1rem;
}

#calendar th {
    background-color: rgb(242, 242, 242);
}

#calendar td {
    border: 1px solid #ddd;
    cursor: pointer;
}

#calendar .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#calendar .today {
    background-color: #46ccb8;
    color: white;
}

#calendar .current-month {
    font-size: 30px;
    font-weight: 500;
}

#calendar .nav-buttons {
    display: flex;
    gap: 5px;
}

#calendar .today-btn,
#calendar .prev-button,
#calendar .next-button,
#calendar .makeup-btn {
    text-decoration: none;
    position: relative;
    border-radius: 10px;
    border: 0;
    padding: 5px 10px;
    color: black;
    background-color: rgb(242, 242, 242);
    transition: 0.2s ease;
}

    #calendar .today-btn:hover,
    #calendar .prev-button:hover,
    #calendar .next-button:hover,
    #calendar .makeup-btn:hover {
        background-color: rgb(134, 134, 134);
    }

#calendar .prev-month,
#calendar .next-month {
    color: #ccc;
}

#calendar .day-number {
    position: relative;
    left: 0;
}

#calendar .more-button {
    margin-top: 40px;
}

#calendar .status {
    background-color: #8fc379;
    color: white;
    padding: 0 10px;
    margin-left: 8px;
    font-size: 14px;
}

#calendar .punch-time {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

/* Action Card */
.manager-action-card {
    display: grid;
    justify-content: center;
    row-gap: 1rem;
    column-gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(90px, 120px));
    transition: all 0.4s ease;
    align-items: center;
    justify-content: center;
}

.action-card-content-title {
    text-align: center;
    align-items: center;
    justify-content: center;
}

.action-card-content {
    width: 170px;
    height: 170px;
    display: flex;
    flex-direction: column;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgb(0, 0, 0, 0.1);
    transition: 0.2s;
    text-align: center;
}

.manager-action-card-content {
    width: 170px;
    height: 170px;
    display: flex;
    flex-direction: column;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgb(0, 0, 0, 0.1);
    transition: 0.2s;
    text-align: center;
}

    .manager-action-card-content .action-card-img {
        width: 60%;
        height: auto;
    }

    .action-card-content:hover,
    .manager-action-card-content:hover,
    .news-card-content:hover {
        background-color: rgb(252, 252, 252);
        -webkit-box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.25);
        -moz-box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.25);
        box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.25);
    }

.action-card-img {
    height: 100px;
    width: auto;
}

/* 出勤資料 */
.attendace-record {
    display: none;
}

.clock-in-card {
    margin-bottom: 1rem;
}

/* 資訊卡片 */
.more-btn {
    background-color: transparent;
    font-size: 20px;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    border: none;
    color: black;
    transition: 0.2s ease;
}

    .more-btn:hover {
        background-color: #dee2e6;
    }

.supervisor-block {
    display: flex;
    align-items: center;
    justify-content: start;
}

.supervisor-data-detail {
    align-items: center;
}

/* 假期餘額 */
.leave-remaining-content {
    display: grid;
    justify-content: center;
    row-gap: 10px;
    column-gap: 10px;
    grid-template-columns: repeat(auto-fit, 96px);
}

.leave-remain {
    display: flex;
    flex-direction: column;
    position: relative;
}

.progress-bar {
    width: 96px;
    height: 96px;
    transform: rotate(-90deg);
}

    .progress-bar circle {
        fill: none;
        stroke: rgb(240, 248, 255);
        stroke-width: 8px;
    }

        .progress-bar circle:last-child {
            transition: stroke-dashoffset 0.3s ease-in-out;
            stroke: rgb(135, 206, 235);
            stroke-linecap: round;
            stroke-dasharray: 1, 1;
            stroke-dashoffset: calc(1 - var(--percent) / 100);
        }

.remaining-days {
    position: absolute;
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%);
}

.division-status-number {
    color: #46ccb8;
    font-size: 30px;
    font-weight: 500;
}

/*========== 休假餘額單頁 ==========*/
.active > .page-link,
.page-link.active {
    background-color: rgb(135, 206, 235);
    border-color: rgb(135, 206, 235);
}

.page-link {
    color: #000000;
}

    .page-link:hover {
        color: #000000;
    }

.listjs-sorter {
    position: relative;
    cursor: pointer;
    padding-right: 1.25rem;
}

    .listjs-sorter:after {
        font-weight: normal;
        line-height: 1;
        content: "\21C5";
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .listjs-sorter.asc:after {
        content: "\2191";
    }

    .listjs-sorter.desc:after {
        content: "\2193";
    }

/*========== 表單 Style ==========*/
.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: left;
    width: 100%;
    background: white;
}

.form-item-group {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.form-item {
    display: flex;
    width: 100%;
    height: 46px;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
    padding-left: 1rem;
}

.form-label {
    align-items: center;
    font-weight: 500;
    margin-bottom: 0;
    font-size: 16px;
    color: #000000;
}

.form-label-minw {
    min-width: 100px;
    max-width: 100px;
}

.formbold-form-label-2 {
    font-weight: 400;
    font-size: 20px;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: white;
    font-weight: 400;
    font-size: 16px;
    color: #6b7280;
    outline: none;
    resize: none;
}

.disabled-form-input {
    background: rgb(238, 238, 238);
}

.form-input:focus {
    border-color: #6a64f1;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
}

.form-btn {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 6px;
    padding: 5px 10px;
    border: none;
    font-weight: 600;
    background-color: #585858;
    color: white;
    width: 100%;
    cursor: pointer;
}

    .form-btn:hover,
    .upload-btn:hover {
        box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
    }

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 5px 10px;
    background-color: #585858;
    color: white;
    border: none;
    gap: 5px;
}

.container-box {
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(221, 221, 221);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    gap: 1rem;
    box-shadow: 0 2px 5px rgb(0, 0, 0, 0.1);
}

/*=============== 卡片表單通用 ===============*/
.grid-container {
    display: grid;
    row-gap: 1rem;
    column-gap: 1.25rem;
    padding-top: 1rem;
}

.grid-card-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0 1.5rem;
}

.grid-card-box {
    display: flex;
    justify-content: center;
    column-gap: 2.5rem;
    max-height: 0;
    overflow: hidden;
    margin: 0.75rem;
    transition: max-height 0.2s ease;
}

.grid-card-group {
    display: grid;
    row-gap: 1rem;
    width: 10rem;
}

.skills__data {
    display: flex;
    column-gap: 0.5rem;
}

    .skills__data .skills__item-icon {
        font-size: 1.25rem;
        color: black;
        display: flex;
        align-items: center;
    }

.grid-card-list {
    font-size: 18px;
    font-weight: 400;
    color: rgb(0, 0, 0);
    transition: all 0.2s ease;
    cursor: pointer;
}

    .grid-card-list:hover {
        transform: translateY(-2px);
        color: #a7a7a7;
    }

.grid-card-arrow {
    font-size: 1.5rem;
    color: black;
}

.skills__title {
    font-size: 24px;
    font-weight: 500;
    color: black;
    margin-bottom: 0.5rem;
    text-align: center;
}

.grid-card-arrow {
    margin-left: auto;
    margin-top: -0.25rem;
    transition: 0.4s;
}

.grid-card-header:hover .grid-card-arrow {
    color: black;
}

.active .grid-card-arrow {
    transform: rotate(180deg);
}

@media screen and (max-width: 435px) {
    .grid-card-box {
        column-gap: 0.5rem;
    }
}

@media screen and (max-width: 350px) {
    .grid-card-group {
        width: 5rem;
    }

    .skills__title {
        font-size: 10px;
    }

    .grid-card-box {
        column-gap: 1.25rem;
    }

    .grid-card-list {
        font-size: 10px;
    }

    .skills__data .skills__item-icon {
        font-size: 0.25rem;
        color: black;
    }
}

@media screen and (min-width: 1085px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
    }

    .grid-card-header {
        display: flex;
        justify-content: center;
        cursor: context-menu;
    }

    .grid-card-box {
        display: flex;
        justify-content: center;
        column-gap: 2rem;
        max-height: max-content;
        margin: 1.75rem 0.75rem;
    }

    .grid-card-arrow {
        display: none;
    }
}

/* FOOTER */
footer {
    position: relative;
    background-color: rgb(246, 246, 246);
    width: 100%;
}

/*========== BREAKPOINT ==========*/
@media (max-width: 1300px) {
    .personal-data-detail {
        flex-direction: column;
    }

    .supervisor-block {
        flex-direction: column;
        justify-content: center;
    }

    .supervisor-data-detail {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .dashboard-area {
        flex-direction: column-reverse;
    }

        .dashboard-area .left,
        .dashboard-area .right {
            width: 100%;
        }

    #calendar {
        display: none;
    }

    .attendace-content {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .clock-in-card {
        width: 50%;
        margin-bottom: 0;
    }

    .attendace-record {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 50%;
    }

    .personal-data {
        display: flex;
        width: 100%;
    }

    .staff-block {
        width: 100%;
    }
}

@media (max-width: 825px) {
    .attendace-content {
        flex-direction: column;
    }

    .clock-in-card {
        width: 100%;
    }

    .attendace-record {
        width: 100%;
    }
}

/*@media (max-width: 400px) {
    .sidebar.close .nav-links li .sub-menu {
        display: none;
    }

    .sidebar {
        width: 78px;
    }

        .sidebar.close {
            width: 0;
        }

    .main-section {
        left: 78px;
        width: calc(100% - 78px);
        z-index: 100;
    }

    .sidebar.close ~ .main-section {
        width: 100%;
        left: 0;
    }
}
*/
@media (min-width: 1200px) {
    .logo {
        width: 190px;
    }
}

/*垂直置中*/

.con-center {
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.side-card-content {
    height: 50%;
    display: flex;
    flex-direction: row;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgb(0, 0, 0, 0.1);
    transition: 0.2s;
    text-align: center;
    font-size: 20px;
}

.side-card-img {
    /*height: 180px;*/
    margin-left: 15px;
}

.side-card-content:hover {
    background-color: rgb(252, 252, 252);
    -webkit-box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.25);
    box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.25);
}

.text-container {
    display: flex;
    flex-direction: column; /* 垂直排列 h3 和 p */
}

    .text-container p {
        color: #3b82f6;
    }

/*table*/

/* 基本表格樣式 */
.styled-table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 2px 5px rgb(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

    .styled-table thead tr {
        background-color: #e4e4e7;
        color: black;
        text-align: center;
    }

    .styled-table th,
    .styled-table td {
        padding: 12px 15px;
    }

    .styled-table tbody tr {
        border-bottom: 1px solid #dddddd;
    }

        .styled-table tbody tr:nth-of-type(even) {
            background-color: #f3f3f3;
        }

        .styled-table tbody tr:last-of-type {
            border-bottom: 2px solid #e4e4e7;
        }

        .styled-table tbody tr.active-row {
            font-weight: bold;
            color: #e4e4e7;
        }

        /* 整列 hover */
        .styled-table tbody tr:hover {
            background-color: #d4d4d8; /* 改變背景顏色 */
        }

            /* 可選：當 hover 時讓行中的文字顏色變化 */
            .styled-table tbody tr:hover td {
                color: white; /* 文字顏色變化 */
            }

.month-column {
    border: 1px solid #a1a1aa; /* 設置邊框 */
}

/* 去除 1-12 月列的上邊框 */
.styled-table .month-column {
    border-top: none; /* 取消上邊框 */
}

    /* 去除 1-12 月列的右邊框 */
    .styled-table .month-column:last-child {
        border-right: none; /* 取消最右邊框 */
    }


/*最新消息*/

.news-card-content {
    width: 340px;
    /* height: 300px; */
    display: flex;
    flex-direction: column;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    padding: 1rem;
/*    align-items: center;*/
/* justify-content: center;*/
    gap: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgb(0, 0, 0, 0.1);
    transition: 0.2s;
    text-align: center;
}

.news-card-head {
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    background-color: #f07167;
    color: #fff;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    margin-left: 4Rem;
    margin-right: 4Rem;
}

.news-card-content:hover .news-card-head {
    -webkit-box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.25);
    box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.25);
}

/* 內容列表 */
.news-card-content ul {
    text-align: left;
    margin-left: 2Rem;
    margin-top: 15px;
/*    align-items: start;*/

}

    /* li */
    .news-card-content ul li {
        font-size: 16px;
        color: #555;
        margin-bottom: 10px;
        align-items: start;
        position: relative;
    }

  /*  紅框閃*/
@keyframes blink-border {
    0% {
        border: 2px solid red;
    }

    50% {
        border: 2px solid transparent;
    }

    100% {
        border: 2px solid red;
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    }
}

.blink-border {
    animation: blink-border 1s infinite;
}