﻿.show {
    display: block;
}

.dropup,
.dropright,
.dropdown,
.dropleft {
    position: relative;
}

.dropdown-item {
    padding: 0.5em 1em;
    border-bottom: 1px solid #eee;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}



.otp-gr {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-input {
    border: none;
    border-bottom: 1px solid var(--flash);
    background-color: transparent;
    border-radius: 0;
    line-height: 1.42857;
    padding: 12px 0 8px;
    color: #111;
    outline: none;
}

.otp-gr input,
.otp-gr input:hover,
.otp-gr input:active,
.otp-gr input:focus {
    margin: 0 10px;
    text-align: center;
    border: none;
    border-bottom: 1px solid var(--dark);
    font-weight: bold;
}

@media (max-width: 760px) {
    .popup-wrapper {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        flex-direction: column;
    }
}


button[disabled=disabled],
button:disabled {
    pointer-events: none;
    opacity: 0.5;
}

button {
    position: relative;
}

button:after {
    /* content: ''; */
    display: block;
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-right-color: #fff;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    left: calc(50% - 10px);
    top: 15px;
    transform: translateX(-50%);
    -webkit-transition-property: -webkit-transform !important;
    -webkit-transition-duration: .5s !important;
    -moz-transition-property: -moz-transform !important;
    -moz-transition-duration: .5s !important;
    -webkit-animation-name: rotate !important;
    -webkit-animation-duration: .5s !important;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -moz-animation-name: rotate;
    -moz-animation-duration: .5s;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    transition: all 0.2s linear;
}

button::before {
    /* content: ""; */
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border-radius: 3px;
    background-color: var(--primary);
    border: 1px solid var(--primary);
    position: absolute;
    top: -1px;
    left: -1px;
    opacity: 0;
}


.button1:after {
    /* content: ''; */
    display: block;
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-right-color: var(--primary);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    left: calc(50% - 10px);
    top: 15px;
    transform: translateX(-50%);
    -webkit-transition-property: -webkit-transform !important;
    -webkit-transition-duration: .5s !important;
    -moz-transition-property: -moz-transform !important;
    -moz-transition-duration: .5s !important;
    -webkit-animation-name: rotate !important;
    -webkit-animation-duration: .5s !important;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -moz-animation-name: rotate;
    -moz-animation-duration: .5s;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    transition: all 0.2s linear;
}

.button1::before {
    /* content: ""; */
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border-radius: 3px;
    background-color: #fff;
    border: 1px solid #fff;
    position: absolute;
    top: -1px;
    left: -1px;
    opacity: 0;
}

@-webkit-keyframes rotate {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@-moz-keyframes rotate {
    from {
        -moz-transform: rotate(0deg);
    }

    to {
        -moz-transform: rotate(360deg);
    }
}

button.loading::before,
button.loading:after {
    content: "";
    opacity: 1;
}



label.error {
    background: #FBF7AA;
    color: red;
    display: inline-block;
    padding: 2px;
    border: 1px solid #222;
    z-index: 99999;
}

.closeError {
    background-image: url(gtk_close.png);
}

.report-list {
    counter-reset: item;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 45px;
    margin-top: 3%;
    padding-left: 15%;
    padding-right: 15%;
}

.report-icon {
    width: 86px;
    min-width: 86px;
    height: 100%;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 10px 24px 10px 12px;
    background-color: #86ccff;
    border: 1px solid #6cb8ee;
    border-radius: 5px 0 0 5px;
}

.report-item {
    position: relative;
    cursor: pointer;
}

.report-item::before {
    content: counters(item, ".");
    counter-increment: item;
    color: #fff;
    font-weight: 500;
    position: absolute;
    top: 6px;
    left: 60px;
    z-index: 3;
}

.report-icon img {
    margin: 0;
    display: block;
}

.report-content {
    width: 100%;
    background-color: #e5f4ff;
    position: relative;
    padding: 10px 12px 10px 32px;
    border: 1px solid #6cb8ee;
    display: flex;
    justify-content: center;
    flex-direction: column;
    border-radius: 0 5px 5px 0;
    min-height: 80px;
}

.report-item:hover .report-content {
    border-color: #1878bd;
}

.report-content::before {
    content: "";
    width: 13px;
    height: calc(100% + 3px);
    background-color: #f1f4f6;
    position: absolute;
    left: -7px;
    top: -1px;
    border-left: 1px solid #6cb8ee;
    border-right: 1px solid #6cb8ee;
    border-top: 1px solid #f1f4f6;
    border-bottom: 1px solid #f1f4f6;
    transform: skew(-6deg);
}

.report-title {
    font-weight: 500;
}

.report-description {}

#listViewReport .popup-wrapper {
    display: block;
}

#listViewReport .auth-header {
    margin: 0;
}

.auth-content {
    counter-reset: item;
    max-height: 390px;
    overflow-y: auto;
}

.auth-content>div {
    margin-bottom: 6px;
}

.auth-content>div:hover {
    color: var(--primary);
}

.auth-content>div::before {
    content: counters(item, "") "";
    counter-increment: item;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
}

.btn-sm-email {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    cursor: pointer;
    margin-bottom: 5px;
    padding: 2px 4px;
    color: white !important;
}


.angucomplete-dropdown {
    width: 100%;
    overflow-y: auto;
    max-height: 260px;
}

.onegroup,
.twogroup,
.threegroup {
    display: grid;
    width: 100%;
    grid-gap: 10px;
    position: relative;
    background-color: #fff;
    padding: 5px;
    margin-bottom: 10px;
}

.onegroup {
    grid-template-columns: repeat(1, 1fr);
}

.twogroup {
    grid-template-columns: repeat(2, 1fr);
}

.threegroup {
    grid-template-columns: repeat(3, 1fr);
}

.fourgroup {
    grid-template-columns: repeat(3, 1fr);
}

.button-icon {
    margin: 8px 0 0 18px;
}

@media (max-width: 760px) {
    :root {
        --fontSize: 13px !important;
    }
    .twogroup,
    .threegroup {
        grid-template-columns: repeat(1, 1fr);
    }

    .app-directory-field,
    .directory-filter {
        flex-wrap: wrap;
    }

    body .fieldset-block {
        padding: 8px 12px;
    }

    body .app-directory-field {
        padding: 8px 0;
    }

    body .app-directory-field>label {
        width: 100%;
        margin: 0 0 2px;
        display: block;
    }
    body .app-directory-field>label ~ input[type="checkbox"] {
        margin-left: auto;
    }

    .app-directory-field>label+div {
        order: 3;
    }

    .button-icon {
        margin: 0 0 0 auto;
    }

    body .search-fr-gr {
        margin: 0 0 10px;
    }

    .directory-top:not(.active) {
        position: fixed;
        top: 40px;
        left: 40px;
        z-index: 9999;
        width: calc(100vw - 40px);
        height:  calc(100vh - 40px);
        overflow-x: hidden;
        overflow-y: auto;
    }

    .directory-top .search-fr-gr {
        width: 100%;
        margin: 0;
        margin-bottom: 10px;
        margin-top: 10px;
        order: 4;
    }

    .directory-filter .search-fr-gr + .btn {
        /*border: none;*/
        padding-top: 0;
        padding-bottom: 0;
    }

    .directory-tap-menu {
        padding: 6px 12px;
    }

    .directory-top .zoom-box {
        height: 30px;
        align-items: center;
    }

    .activity-body {
        white-space: normal !important;
    }

    .directory-top .directory-filter {
        align-items: center;
    }

    .directory-filter-header {
        position: relative;
    }
    .directory-top.active .directory-filter-header .toggleDirectoryTop {
        position: static;
        transform: none;
    }
    .directory-filter-header .toggleDirectoryTop svg {
        transform: rotate(180deg);
    }
    .directory-filter-header .toggleDirectoryTop::before {
        content: "";
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        background-color: rgba(11 11 11 / 0%);
        border-radius: 3px;
    }

    .directory-top:not(.active) .directory-row-12 {
        grid-template-columns: repeat(4, 1fr);
    }

    .directory-table thead {
        top: 0 !important
    }
}


.angucomplete-row {
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    padding: 8px;
    cursor: pointer;
}

.angucomplete-row input[type="checkbox"] {
    margin-right: 10px; /* Khoảng cách giữa checkbox và tiêu đề */
    width: 16px;
    height: 16px;
}

.angucomplete-title {
    flex-grow: 1; /* Giúp tiêu đề chiếm phần còn lại của hàng */
}

.select-btn-close {
    float: right; /* Đẩy nút về phía phải */
    margin: 5px; /* Tạo khoảng cách xung quanh */
    padding: 5px 10px;
    background-color: #dc3545; /* Màu đỏ cho nút đóng */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.select-btn-close:hover {
    background-color: #c82333;
}

/* ============================================================= */
/*          IMAGE VIEWER CONTROLS - DÀNH CHO IONIC 1 + WEB        */
/* ============================================================= */

.image-viewer-modal .modal {
    background-color: #000 !important;
}

.image-viewer-modal .modal-backdrop.active {
    background-color: #000;
}

/* Container chính của ảnh */
.image-viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Ảnh chính */
.image-viewer-img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    user-select: none;
    -webkit-user-drag: none;
}

/* Thanh điều khiển dưới cùng (mượt, trong suốt, bo tròn) */
.image-viewer-toolbar {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);              /* hiệu ứng mờ nền iOS/Android */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 2px;width:95%;
}

/* Nút nhỏ gọn đẹp */
.image-viewer-toolbar .button {
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    margin: 0;
    line-height: 38px;
    font-size: 22px;background: none;
}

/* Text % zoom */
.image-viewer-zoom-text {
    color: #fff;
   
    min-width: 56px;
    text-align: center;
    font-size: 14px;
}

/* Đường phân cách */
.image-viewer-toolbar .divider {
    color: #666;
    font-size: 20px;
    margin: 0 6px;
}

/* Nút reset nổi bật một chút */
.image-viewer-toolbar .button-reset {
    background: rgba(255, 255, 255, 0.15);
}

/* Hiệu ứng khi nhấn nút (mobile friendly) */
.image-viewer-toolbar .button:active {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(0.92);
}


#sdmt_diagram-v2 {
    transition: transform 0.15s ease-out !important;
}
#sdmt_diagram-v2.dragging {
    transition: none !important;
}

.sdmt_diagram-v3 {
    transition: transform 0.15s ease-out !important;
}
.sdmt_diagram-v3.dragging {
    transition: none !important;
}

.modal-footer-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap; justify-content: flex-end;   /* ⭐ CĂN MÉP PHẢI */
}

/* Select nhóm chat */
.modal-footer-inline .chat-group-select {
    min-width: 200px;
    flex-shrink: 0;
}

/* Input nhập nội dung */
.modal-footer-inline .chat-message-input {
    flex: 1;
    min-width: 120px;
    height: 32px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Button */
.modal-footer-inline .btn {
    white-space: nowrap;
}