/* ===================this is form for insert data=====================> */
.web-form,
.web-form .form-b {
    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: 100000;
    top: -100%;
    left: 0;
    display: flex;
    align-items: center;
    transition: all ease-in-out 0.5s;
}
body:has(.web-form-active){
    overflow: hidden;
}
.web-form-active {
    top: 0%;
    transition: all ease-in-out 0.5s;
}
.web-form .form-b {
    opacity: 0.4;
    top: -100%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all ease-in-out 0.5s;
    background: rgba(0, 0, 0, 0.849);
    z-index: 10;
}
.web-form-active .form-b {
    opacity: 0.4;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: all ease-in-out 0.5s;
}
.web-form-body {
    position: relative;
    width: 100%;
    max-width: 500px;
    z-index: 100;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    background: var(--sg-bglight);
    box-shadow: var(--sg-iconboxShadow);
    transition: all ease-in-out 0.5s;
    z-index: 100000;
}
.web-form-body > .head {
    height: 50px;
    color: var(--sg-mainColor-yellow);
    border-bottom: 1px solid var(--sg-border-00);
}
.web-form-body > .head a {
    margin-left: 0.5rem;
}
.web-form-body > .head a .icon-ra {
    width: 2rem;
    height: 2rem;
    margin-left: 0.5rem;
}
.web-form-body > .head > .icon-ra {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    margin-right: 0.8rem;
    cursor: pointer;
    color: var(--sg-color-text);
    background: var(--sg-main-bg-btn-signin-hover);
}
.web-form-body > .head a span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--sg-color-text-hover);
    font-family: var(--sg-font-noto);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(147deg, #ffe53b 0%, #d3145b 74%);
}
/* this is content header  */
.web-form-body .form-head ul {
    margin: 0rem 0.8rem;
    padding: 0.8rem 0rem;
}
.web-form-body .form-head .profile-img {
    overflow: hidden;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50rem;
    box-sizing: border-box;
    outline: 2px solid var(--sg-border-00);
    outline-offset: 3px;
    margin-left: 0.4rem;
}
.web-form-body .form-head .profile-name h2 {
    font-size: 1rem;
    line-height: 2;
    font-weight: 500;
    color: var(--sg-color-text);
    font-family: var(--sg-font-noto);
}
.web-form-body .form-head .profile-name p {
    font-size: 0.7rem;
    margin-top: -5px;
    color: var(--sg-color-text);
    font-family: var(--sg-font-noto);
    opacity: 0.7;
}
.web-form-body .form-head .status {
    width: max-content;
    padding: 0rem 0.5rem;
    height: 30px;
    border-radius: 5px;
    background: var(--sgbgBlack-hover);
}
.web-form-body .form-head .status select {
    font-size: 0.8rem;
    background: none;
    width: 100%;
    outline: none;
    color: var(--sg-color-text);
}
/* this is content of form  */
.web-form-body .main {
    overflow-x: hidden;
    overflow-y: scroll;
    max-height: 50vh;
    height: max-content;
}
.web-form-body .main label {
    display: flex;
    align-items: center;
    height: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sg-color-text);
    font-family: var(--sg-font-noto);
}
.web-form-body .main .txt-title,
.web-form-body .main .text-caption {
    position: relative;
    padding: 0rem 0.8rem;
    overflow: hidden;
    min-height: max-content;
}
.web-form-body .main .txt-title input {
    width: 100%;
    height: 35px;
    outline: none;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--sg-fontBat), var(--sg-fontNotoKH);
    color: var(--sg-color-text);
    background: none;
    border-radius: 5px;
    box-sizing: border-box;
    border: 1px solid var(--sg-border-00);
    text-indent: 0.5rem;
    transition: all ease-in-out 0.5s;
}
.web-form-body .main .txt-title input::placeholder{
    font-family: "Battambang", system-ui, "Bricolage Grotesque";
}
.web-form-body .main .text-caption {
    max-width: 100%;
}
.web-form-body .main .text-caption .txt-caption-box {
    border-radius: 5px;
    box-sizing: border-box;
    border: 1px solid var(--sg-border-00);
    display: grid;
}
.web-form-body .main .text-caption textarea,
.web-form-body .main .text-caption .txt-caption-box::after {
    grid-area: 1 / 1 / 2 / 2;
    padding: 0.5rem;
}
.web-form-body .main .text-caption textarea {
    width: 100%;
    max-width: 100%;
    outline: none;
    font-size: 1rem;
    background: none;
    resize: none;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sg-color-text);
    font-family: var(--sg-font-noto);
}
.web-form-body .main .text-caption .txt-caption-box::after {
    content: attr(data-replicated-value) " ";
    white-space: pre-wrap;
    visibility: hidden;
}
.web-form-body .main .txt-photo {
    overflow: hidden;
    border-radius: 10px;
    margin: 0.8rem;
    border: 1px solid var(--sg-border-00);
}
.web-form-body .main .txt-photo:hover .txt-photo-box {
    background: var(--sg-main-bg-btn-signin-hover);
}
.web-form-body .main .txt-photo-box {
    width: 100%;
    margin: 10px;
    box-sizing: border-box;
    text-align: center;
    padding: 1rem;
    overflow: hidden;
    border-radius: 10px;
    background: var(--sg-bgblack);
    cursor: pointer;
    color: var(--sg-color-text);
}
.web-form-body .main .txt-photo-box img {
    display: none;
}
.web-form-body .main .txt-photo-box-active img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}
.web-form-body .main .txt-photo-box-active {
    padding: 0rem;
    position: relative;
}
.web-form-body .main .txt-photo-box-active ul {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: transparent;
    opacity: 0;
    transition: all ease-in-out 0.3s;
}
.web-form-body .main .txt-photo-box-active:hover ul {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.web-form-body .main .txt-photo-box-active:hover img {
    opacity: 0.4;
}
.web-form-body .main .txt-photo ul li:first-child {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto;
    margin-bottom: 0.1rem;
    background: none;
}
.web-form-body .main .txt-photo ul li:first-child i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
}
.web-form-body .main .txt-photo ul li h2 {
    font-family: var(--sg-font-noto);
    font-size: 1rem;
    line-height: 1.5;
}
.web-form-body .main .txt-photo ul li p {
    font-size: 0.8rem;
    font-family: var(--sg-font-noto);
}
.web-form-body .main .txt-select ul {
    display: block;
    margin: 0 auto;
    padding: 0rem 0.8rem;
}
.web-form-body .main .txt-select ul .txt-select-list-con {
    height: 35px;
    border-radius: 5px;
    box-sizing: border-box;
    border: 1px solid var(--sg-border-00);
}
.web-form-body .main .txt-select ul .txt-select-list-con select {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
    background: none;
    color: var(--sg-color-text);
    font-size: 0.9rem;
    text-indent: 0.5rem;
    font-family: var(--sg-font-noto);
}
.web-form-body .main .txt-select ul .txt-select-list-con select option,
.web-form-body .form-head .status select option {
    font-family: var(--sg-font-noto);
    font-size: 0.9rem;
    color: var(--sg-color-text);
    background: var(--sg-main-bg-btn-signin);
}
.web-form-body .main .txt-popular {
    height: 50px;
    padding: 0rem 0.8rem;
}
.web-form-body .main .txt-popular input {
    width: 1.2rem;
    height: 1.2rem;
    position: relative;
    cursor: pointer;
    outline: none;
    border: none;
    margin-left: 0.2rem;
}
.web-form-body .main .txt-popular input[type="checkbox"]:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--sg-main-bg-search);
    border: 1px solid var(--sg-border-00);
    border-radius: 5px;
}
.web-form-body .main .txt-popular input[type="checkbox"]:checked:before {
    background: var(--sg-main-bg-btn-signin-hover);
}
.web-form-body .main .txt-popular input[type="checkbox"]:checked:after {
    content: "";
    display: block;
    width: 5px;
    height: 10px;
    border: solid var(--sg-color-text-hover);
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    top: 2px;
    left: 6px;
}
.web-form-body .main .txt-range {
    overflow: hidden;
    border-radius: 10px;
    margin: 0.8rem;
    border: 1px solid var(--sg-border-00);
}
.web-form-body .main .txt-range .box {
    margin: 10px;
    padding-right: 0rem;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
    background: var(--sg-main-bg-btn-signin);
    cursor: pointer;
    color: var(--sg-color-text);
}
.web-form-body .main .txt-range .box ul {
    text-align: left;
    max-width: 100%;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(1.8rem, 1fr));
    gap: 0.1rem;
}
.web-form-body .main .txt-range ul li {
    font-size: 0.9rem;
    min-width: 1.8rem;
    min-height: 1.8rem;
    max-width: 1.8rem;
    max-height: 1.8rem;
}
.web-form-body .main .txt-range ul li a {
    width: 1rem;
    height: 1rem;
    background: var(--sg-bgblack);
    color: var(--sg-color-text);
    border-radius: 50rem;
    cursor: pointer;
}
.web-form-body .main .txt-range ul li a label {
    width: 100%;
    height: 100%;
}
.web-form-body .main .txt-range ul li a:active {
    background: var(--sg-main-bg-btn-signin-hover);
}
.web-form-body .main .txt-range ul li span {
    font-family: var(--sg-font-noto);
}
.web-form-body .main .txt-popular p {
    font-size: 0.9rem;
    font-family: var(--sg-font-noto);
    color: var(--sg-color-text);
    margin: 0 0.5rem;
}
.web-form-body .foot .foot-body {
    border-radius: 10px;
    /* overflow: hidden; */
    margin: 0.8rem;
    padding: 0.8rem 0rem;
    border: 1px solid var(--sg-border-00);
}
.web-form-body .foot h2 {
    font-size: 1rem;
    font-weight: 500;
    margin-left: 0.8rem;
    color: var(--sg-color-text);
    font-family: var(--sg-font-noto);
}
.web-form-body .foot ul {
    margin-right: 0.2rem;
}
.web-form-body .foot li {
    margin-right: 0.2rem;
    box-sizing: border-box;
    border: 1px solid var(--sg-border-00);
    border-radius: 8px;
    width: 1.8rem;
    height: 1.8rem;
    cursor: pointer;
}
.web-form-body .foot li i,
.web-form-body .foot li span {
    font-size: 0.9rem;
}
.web-form-body .foot li::before {
    color: var(--sg-color-text);
    background: var(--sg-bglight);
}
.web-form-body .submit-form .box {
    padding-bottom: 0.8rem;
}
.web-form-body .submit-form .btn {
    width: 100%;
    margin: 0rem 0.8rem;
    height: 40px;
    border-radius: 7px;
    font-size: 1rem;
    color: var(--sg-bglight);
    cursor: pointer;
    background: linear-gradient(147deg, #ffe53b 0%, #d3145b 74%);
}
.error {
    border-color: #d3145b !important;
}
.error input {
    border-color: #d3145b !important;
}

.web-form-body .main .txt-title input[type="file"] {
    font-family: var(--sg-fontNotoKH);
    height: auto;
    cursor: pointer;
    position: relative;
}
.web-form-body .main .txt-title input[type="file"]::file-selector-button {
    width: 125px;
    color: transparent;
}
.web-form-body .main .txt-title input[type="file"]::file-selector-button {
    padding: 0 16px;
    height: 35px;
    cursor: pointer;
    background-color: white;
    margin-right: 16px;
    margin-left: -0.7rem;
    outline: none;
    border: none;
    border-right: 1px solid var(--sg-border-00);
}
.web-form-body .main .txt-title input[type="file"]::before {
    position: absolute;
    pointer-events: none;
    width: 20px;
    height: 20px;
    top: 7px;
    left: 15px;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230964B0'%3E%3Cpath d='M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.web-form-body .main .txt-title input[type="file"]::after {
    position: absolute;
    pointer-events: none;
    height: 100%;
    top: 0;
    left: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0964b0;
    font-family: var(--sg-fontBat);
    content: "ជ្រើសរើសរូប";
}

.web-form-body .link-list-box .list .txt-title:nth-child(2){
    margin-top: 0rem;
}
.web-form-body .link-list-box .list .txt-title{
    overflow: hidden;
    width: 0px;
    opacity: 0;
    transition: all ease-in-out 0.3s;
}
.web-form-body .link-list-box .list .linklist-active,
.web-form-body .link-list-box .list .txt-title:first-child{
    width: 100%;
    opacity: 1;
}
.web-form-body .link-list-box .txt-title-box .icon{
    min-width: 35px;
    min-height: 35px;
    border-radius: 5px;
    box-sizing: border-box;
    border: 1px solid var(--sg-border-00);
    margin-left: 0.3rem;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.web-form-body .link-list-box .txt-title-box .icon::before{
    position: absolute;
    content: '';
    opacity: 1;
    border-radius: 50rem;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%,-50%) scale(0);
    background: var(--sg-bgblack);
    transition: all ease-in-out 0.1s;
}
.web-form-body .link-list-box .txt-title-box .icon:active::before{
    transform: translate(-50%,-50%) scale(1.2);
}
.web-form-body .link-list-box .txt-title-box .icon i{
    opacity: 0.9;
    position: relative;
    z-index: 1;
}
.web-form-body .link-list-box .txt-title-box .icon:active i{
    color: var(--sg-button-blueHover);
    opacity: 1;
}
.web-form-body .link-list-box .txt-title-box .icon:active .fa-trash-can{
    color: var(--sg-maincolor-orangdark);
}
.web-form-body .link-list-box .txt-title-box .ii-m{
    margin-left: 0rem;
    opacity: 0;
    width: 0px;
    min-width: 0px;
    transition: all ease-in 0.3s;
    border: none;
}
.web-form-body .link-list-box .txt-title-box .ii-m i,
.web-form-body .link-list-box .txt-title-box .ii-m img{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--sg-bglight);
    position: relative;
}
.web-form-body .link-list-box .txt-title-box .ii-m img{
    position: absolute;
    top: 0;
    left: 0;
}
.web-form-body .link-list-box .txt-title-box .ii-active img{
    z-index: 2;
    background: var(--sg-bgblack);
}
.web-form-body .link-list-box .txt-title-box .ii-active{
    opacity: 1;
    min-width: 35px;
    margin-right: 0.3rem;
    border: 1px solid var(--sg-border-00);
}
.web-form-body .link-list-box .txt-title-box .ii-active i{
    opacity: 0;
}