﻿
.navbar-custom {
    background-color: #00a2c9;
    color: #ffffff;
    border-radius: 0;
}

    .navbar-custom .navbar-nav > li > a {
        color: #fff;
    }

    .navbar-custom .navbar-nav > .active > a, .navbar-nav > .active > a:hover, .navbar-nav > .active > a:focus {
        color: #ffffff;
        background-color: #adadad;
    }

    .navbar-custom .navbar-brand {
        color: #eeeeee;
    }


.input_necessary {
    background-color: #FFCC00;
}

.input_improtant {
    background-color: #99ccff;
}

.input_error {
    background-color: #ffcccc;
}

.ns {
    color: red;
    font-size:18px;
}

.form-control-c {
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

    .form-control-c:focus {
        border-color: #66afe9;
        outline: 0;
        -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
        box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
    }

/* Mask for background, by default is not display */
#mask {
    display: none;
    background: #383737;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: 999;
    text-align: center;
}

/* You can customize to your needs  background: #ddd;*/
.popup {
    display: none;
    background: #fff;
    float: left;
    font-size: 1.2em;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 99999;
    box-shadow: 0px 0px 20px #999;
    /* CSS3 */
    -moz-box-shadow: 0px 0px 20px #999;
    /* Firefox */
    -webkit-box-shadow: 0px 0px 20px #999;
    /* Safari, Chrome */
    border-radius: 3px 3px 3px 3px;
    -moz-border-radius: 3px;
    /* Firefox */
    -webkit-border-radius: 3px;
    /* Safari, Chrome */
}

/*Position the close button*/
.img_close {
    float: right;
    margin: -18px -18px 0 0;
}



.navbar-top-links {
    margin-right: 0;
}

    .navbar-top-links li {
        display: inline-block;
    }

        .navbar-top-links li:last-child {
            margin-right: 15px;
        }

        .navbar-top-links li a {
            padding: 15px;
            min-height: 50px;
        }


    .navbar-top-links .dropdown-menu li {
        display: block;
    }

        .navbar-top-links .dropdown-menu li:last-child {
            margin-right: 0;
        }

        .navbar-top-links .dropdown-menu li a {
            padding: 3px 20px;
            min-height: 0;
        }

            .navbar-top-links .dropdown-menu li a div {
                white-space: normal;
            }

    .navbar-top-links .dropdown-messages,
    .navbar-top-links .dropdown-tasks,
    .navbar-top-links .dropdown-alerts {
        width: 310px;
        min-width: 0;
    }

    .navbar-top-links .dropdown-messages {
        margin-left: 5px;
    }

    .navbar-top-links .dropdown-tasks {
        margin-left: -59px;
    }

    .navbar-top-links .dropdown-alerts {
        margin-left: -123px;
    }

    .navbar-top-links .dropdown-user {
        right: 0;
        left: auto;
    }

/* ========================================================================
   Component: form-elements.less
 ========================================================================== */
/**
 * Custom form elements
 *    - Checkbox 
 *    - Radios
 *    - Switch
 *    - Rounded inputs
 */
.c-checkbox,
.c-radio {
    margin-right: 4px;
}

    .c-checkbox *,
    .c-radio * {
        cursor: pointer;
    }

    .c-checkbox input,
    .c-radio input {
        opacity: 0;
        position: absolute;
        margin-left: 0 !important;
    }

    .c-checkbox span,
    .c-radio span {
        position: relative;
        display: inline-block;
        vertical-align: top;
        margin-left: -20px;
        width: 20px;
        height: 20px;
        border-radius: 2px;
        border: 1px solid #ccc;
        margin-right: 5px;
        text-align: center;
    }

        .c-checkbox span:before,
        .c-radio span:before {
            margin-left: 1px;
        }

    .c-checkbox:hover span,
    .c-radio:hover span {
        border-color: #5d9cec;
    }

.form-inline .c-checkbox span,
.form-inline .c-radio span {
    margin-left: 0;
}

.c-checkbox.c-checkbox-rounded span,
.c-radio.c-checkbox-rounded span,
.c-checkbox.c-radio-rounded span,
.c-radio.c-radio-rounded span {
    border-radius: 500px;
}
/* override for radio */
.c-radio span {
    border-radius: 500px;
}
    /* the icon */
    .c-checkbox span:before,
    .c-radio span:before {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0;
        text-align: center !important;
        font-size: 12px;
        line-height: 18px;
        vertical-align: middle;
    }
/* Checked state */
.c-checkbox,
.c-radio {
    /* override for radio */
    /* Disable state */
    /* override for radio */
}

    .c-checkbox input[type=checkbox]:checked + span:before,
    .c-radio input[type=checkbox]:checked + span:before,
    .c-checkbox input[type=radio]:checked + span:before,
    .c-radio input[type=radio]:checked + span:before {
        color: #fff;
        opacity: 1;
        transition: color 0.3s ease-out;
    }

    .c-checkbox input[type=checkbox]:checked + span,
    .c-radio input[type=checkbox]:checked + span,
    .c-checkbox input[type=radio]:checked + span,
    .c-radio input[type=radio]:checked + span {
        border-color: #5d9cec;
        background-color: #5d9cec;
    }

    .c-checkbox input[type=radio]:checked + span,
    .c-radio input[type=radio]:checked + span {
        background-color: #fff;
    }

        .c-checkbox input[type=radio]:checked + span:before,
        .c-radio input[type=radio]:checked + span:before {
            color: #5d9cec;
        }

    .c-checkbox input[type=checkbox]:disabled + span,
    .c-radio input[type=checkbox]:disabled + span,
    .c-checkbox input[type=radio]:disabled + span,
    .c-radio input[type=radio]:disabled + span {
        border-color: #ddd !important;
        background-color: #ddd !important;
    }

    .c-checkbox input[type=radio]:disabled + span,
    .c-radio input[type=radio]:disabled + span {
        background-color: #fff !important;
    }

        .c-checkbox input[type=radio]:disabled + span:before,
        .c-radio input[type=radio]:disabled + span:before {
            color: #ddd;
        }

.red .active a,
.red .active a:hover {
    background-color: red;
}

#cardNumber {
    font-family: 'Courier New', Courier, monospace; /* 等寬字體 */
    letter-spacing: 2px; /* 稍微拉開一點字距，閱讀更清楚 */
    font-weight: bold;
    font-size: 1.1rem;
}


/* 外層滑動容器 */
.date-scroll-wrapper {
    display: flex; /* 讓內容橫向排列 */
    flex-wrap: nowrap; /* 強制不換行 */
    overflow-x: auto; /* 超出範圍時允許橫向滑動 */
    -webkit-overflow-scrolling: touch; /* 讓 iOS 滑動更順暢 */
    padding: 15px 10px;
    background-color: #fff;
    border-bottom: 1px solid #eee; /* 底部分隔線 */
    /* 隱藏預設的醜醜捲軸 */
    scrollbar-width: none; /* 針對 Firefox */
    -ms-overflow-style: none; /* 針對 IE/Edge */
}

    /* 針對 Chrome/Safari/Opera 隱藏捲軸 */
    .date-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

/* 單個日期區塊 */
.date-item {
    flex: 0 0 auto; /* 確保區塊不會被擠壓變形 */
    width: 60px; /* 每個日期的固定寬度 */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

    /* 星期幾的文字 */
    .date-item .day {
        font-size: 14px;
        color: #a6a6a6;
        margin-bottom: 5px;
    }

    /* 日期數字 */
    .date-item .date {
        font-size: 18px;
        width: 36px;
        height: 36px;
        line-height: 36px;
        border-radius: 50%; /* 變成圓形 */
        color: #6c757d;
        transition: all 0.3s ease;
    }

    /* 當前選中 (active) 的狀態 */
    .date-item.active .day {
        color: #71774b; /* 使用您網站的主題色 */
        font-weight: bold;
    }

    .date-item.active .date {
        background-color: #71774b; /* 綠底 */
        color: #fff; /* 白字 */
        font-weight: bold;
    }

