body {
    font-family: "Ubuntu", "Noto Sans TC", sans-serif;
    font-size: 14px;
    color: #333333;
    font-weight: 300;
}

/*header {*/
/*    width: 100%;*/
/*    min-width: 240px;*/
/*    max-width: 240px;*/
/*}*/

[readonly] {
    background: #ededed !important;
}


.selected:before {
    content: "✔";
    position: absolute;
    top: 50%;
    left: auto;
    right: auto;
    width: 100%;
    animation-range: 100%;
    text-align: center;
    background: #bce5ff;
    color: #1474f1;
}

.btn-upload {
    border: none;
    background: #22c1c3; /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #22c1c3, #fdbb2d); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #22c1c3, #fdbb2d); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

span.select2-dropdown {
    z-index: 9999;
}

ul.dropdown-menu .dropdown-item {
    font-size: 12px;
}

/*--------- Sorting --------------*/
.sorting-container {
    position: relative;
}

div#sorting-dropdown {
    position: absolute;
    z-index: 999;
    margin-top: 6px;
    padding: 10px;
    width: 250px;
    left: 0;
    background: #FFF;
    border: 1px solid #333;
    border-radius: 6px;
}



/*---------- Main Menu -----------*/
.nav-title {
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
}
.nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
    font-weight: 100;
}

.nav-link ion-icon {
    margin: 0 6px 0 0;
}

.sidebar li .submenu{
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 1rem;
    padding-right: 1rem;
}
.sidebar .nav-link {
    color: var(--bs-dark);
}
.sidebar .nav-link:hover {
    color: var(--bs-primary);
}

.sidebar .nav-link.active {
    color: #376992;
}

/*---------- Topbar -----------*/
.avatar-icon {
    width: 30px;
    height: 30px;
}

.breadcrumb {
    font-size: 12px;
}

/*---------- Title -----------*/

#header ion-icon {
    --ionicon-stroke-width: 16px;
}



/*---------- Registrations Status ----------*/
.status-tag {
    min-width: 66px;
    max-width: 99px;
    width: 100%;
    border-radius: 6px;
    text-align: center;
    border: 1px solid;
}
.status-invite {
    color: #ef8d0a;
}
.status-pending {
    color: #bfce37;
}
.status-confirmed,
.status-valid {
    color: #41ba09;
}
.status-attended {
    color: #3dcaef;
}
.status-absent {
    color: #d55f5f;
}
.status-cancelled,
.status-invalid {
    color: #333333;
}

/*---------- Button ----------*/
.btn-switch-company {
    background: linear-gradient(180deg, #27386b, #56cfe8);
    border: none;
    color: #FFF;
    min-width: 120px;
}

.btn-create {
    border: none;
    background: hsl(224.35deg 46.94% 28.82%);
    background: linear-gradient(33deg, hsl(207.95deg 45.36% 38.04%) 0%, hsl(190.2deg 78.61% 63.33%) 100%);
    background: -moz-linear-gradient(33deg, hsl(207.95deg 45.36% 38.04%) 0%, hsl(190.2deg 78.61% 63.33%) 100%);
    background: -webkit-linear-gradient(33deg, hsl(207.95deg 45.36% 38.04%) 0%, hsl(190.2deg 78.61% 63.33%) 100%);
}
.btn-show,
.btn-show:active,
.btn-show:hover {
    background: #cddff9;
    color: #517ab4;
}
.btn-edit,
.btn-edit:active,
.btn-edit:hover {
    background: #b6face;
    color: #238331;
}
.btn-delete,
.btn-delete:active,
.btn-delete:hover {
    background: #fbcaca;
    color: #d23535;
}
.btn-save,
.btn-save:active,
.btn-save:hover {
    background: #b6face;
    color: #238331;
}
.btn-back,
.btn-back:active,
.btn-back:hover {
    border: 1px solid #333333;
    color: #333333;
}
.btn-details,
.btn-details:active,
.btn-details:hover {
    background: #d3d3d3;
}

.btn-customer-select-all,
.btn-customer-select-all:active,
.btn-customer-select-all:hover {
    background: #9be2e2;
    color: #3f6969;
}

.btn-customer-unselect-all,
.btn-customer-unselect-all:active,
.btn-customer-unselect-all:hover {
    background: #c1c1c1;
    color: #3c3c3c;
}
/*--------- Transform Field --------*/
.transform-field{ position: relative; }

.transform-field .input-field{
    border: 1px solid rgba(0,0,0,.1);
    /*outline: none;*/
    /*width: 100%;*/
    height: 38px;
    /*padding: 5px 10px;*/
    /*border-radius: 4px;*/
}
.transform-field input:focus{
    border-color: dodgerblue;
}
.transform-field label{
    position: absolute;
    display: inline-block;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    padding: 0 5px;
    color: rgba(0,0,0,.7);
    transition: all .3s ease-in-out;
}
.transform-field .isEmpty + label{
    top: 0;
    background-color: white;
    padding: 0 5px;
    color: dodgerblue;
    font-size: 12px;
}

/*--------- Image Upload (Files) Preview -------*/
/*.media-preview-container {*/
/*    padding: 10px;*/
/*    border: 2px dashed #999999;*/
/*    min-height: 120px;*/
/*    border-radius: 15px;*/
/*}*/

.image-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.image-container .btn-delete,
.image-container .btn-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: darkred;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
    line-height: 20px;
}


/*--------- Media -------*/
.upload-drag-area,
.drag-area {
    height: 300px;
    border: 3px dashed #e0eafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 10px auto;
}
.upload-drag-area .icon,
.drag-area .icon {
    font-size: 50px;
    color: #1683ff;
}
.upload-drag-area .upload-label,
.drag-area .upload-label {
    font-size: 20px;
    font-weight: 500;
    color: #34495e;
}
.upload-drag-area .support,
.drag-area .support {
    font-size: 12px;
    color: gray;
    margin: 10px 0 15px 0;
}
.upload-drag-area .btn-browse,
.drag-area .btn-browse {
    font-size: 20px;
    font-weight: 500;
    color: #1683ff;
    cursor: pointer;
}
.upload-drag-area.active,
.drag-area.active {
    border: 2px solid #1683ff;
}
.upload-drag-area img,
.drag-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.upload-drag-area .download,
.drag-area .download {
    background-color:#4CAF50;
    border: none;
    color: white;
    padding: 6px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 3px 1px;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
}

/*----------- Responsive Vertical Table ----------*/
@media (max-width: 768px) {
    .responsive-vertical-table thead {
        display: none;
    }
    .responsive-vertical-table tbody tr {
        position: relative;
        display: block;
        margin-bottom: 0;
        padding-bottom: 15px;
    }

    .responsive-vertical-table tbody td:before {
        content: attr(data-title);
        float: left;
        flex: 1 1 auto;
        padding-top: 0;
        text-align: left;
        color: var(--color-gray-900);
        /*text-transform: uppercase;*/
        font-weight: 600;
    }

    .responsive-vertical-table tbody td {
        font-size: 13px;
        display: flex;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 6px 9px;
        border-bottom: 1px solid #ececec;
    }

    .responsive-vertical-table tbody td.hide-title:before {
        display: none;
    }

    .responsive-vertical-table tbody td.hide-title {
        justify-content: center;
    }

    .responsive-vertical-table tbody td.action-button-group {
        gap: 3px;
    }

    .responsive-vertical-table tbody td.action-button-group button,
    .responsive-vertical-table tbody td.action-button-group .btn {
        font-size: 12px;
        line-height: 12px;
    }

    .responsive-vertical-table tbody td.full-row {
        justify-content: center;
    }

    .responsive-vertical-table tbody td.full-row:before {
        display: none;
    }

}
