﻿@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.btn-group .btn-outline-success {
    box-shadow: none !important;
}

.btn-outline-success {
    box-shadow: none !important;
}

    .btn-outline-success,
    .btn-outline-success:focus,
    .btn-outline-success:active {
        box-shadow: none !important;
    }

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
.row-restore {
    background-color: #ffe6e6; /* đỏ nhạt */
    color: #c00000;
}

.row-backup {
    background-color: #e6f4ff; /* xanh nhạt */
    color: #004085;
}
    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}

.menu-drawer {
    max-width: max-content !important;
}

    .menu-drawer .dxbl-drawer-panel {
        background-color: #0d74bf;
    }

        .menu-drawer .dxbl-drawer-panel * {
            color: white;
        }

    .menu-drawer .dbxl-drawer-content {
        width: 0 !important;
        max-width: 0 !important;
    }

.menu-drawer-item .dxbl-treeview-item-content button {
    order: 99;
}

.menu-drawer-item .dxbl-treeview-item-container.dxbl-active {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

.menu-drawer-item .dxbl-treeview-item-container:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.menu-drawer-item .dxbl-treeview-item-container.dxbl-active::before {
    background-color: transparent !important;
}

.menu-drawer-mini .menu-drawer-mini-menu {
    background-color: transparent !important;
}

    .menu-drawer-mini .menu-drawer-mini-menu .dxbl-menu-item-text {
        visibility: hidden;
        transition: visibility linear var(--dxbl-drawer-animation-duration);
    }

.typo-button {
    text-transform: uppercase !important;
}

.base-cell-read-only {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.max-height-for-grid {
    max-height: 100%;
}

.buttonCRUD {
    background: none;
    border: none;
    text-decoration: underline;
    padding: 0 5px;
}

.input-validation-error {
    border-color: red !important;
    box-shadow: 0 0 5px red !important;
}

.my-combox {
    width: 150px;
}

.custom-confirm-dialog {
    max-width: 320px !important;
    width: 100% !important;
}
.custom-confirm-dialog_1 {
    max-width: 550px !important;
    width: 100% !important;
}

.modal {
    z-index: 1050 !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5vw;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal-dialog {
    margin: 0 !important;
    max-width: 80% !important;
    width: auto !important;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.custom-month-width {
    width: 90px;
}

.custom-date-width {
    width: 150px;
}

.row-warning {
    background-color: #F0E68C !important;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    margin: -14px -8px;
    padding: 14px 8px;
    box-sizing: border-box;
}

.tong-tien-box {
    margin-top: 10px;
    width: 250px;
    border: 1px solid #ccc;
    padding: 8px;
    float: right;
    font-weight: bold;
}

.highlight-row {
    background-color: #F0E68C !important;
    margin: -14px -8px;
    padding: 14px 8px;
    box-sizing: border-box;
}

.disabled-combo .dxbs-combobox {
    background-color: #e9ecef !important;
    color: lightgrey !important;
    pointer-events: none;
}

.disabled-row {
    background-color: #778899;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    margin: -14px -8px;
    padding: 14px 8px;
    box-sizing: border-box;
}

.fixed-footer {
    position: sticky;
    bottom: 0;
    background-color: white;
    z-index: 10;
    padding-top: 12px;
}

.form-control-height {
    height: 38px !important;
    min-height: 38px !important;
}

    .form-control-height .dx-texteditor-input-container {
        height: 38px !important;
        min-height: 38px !important;
    }

.readonly-input {
    background-color: #f8f9fa !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
}

    .readonly-input:focus {
        background-color: #f8f9fa !important;
        border-color: #ced4da !important;
        box-shadow: none !important;
    }

.selected-item-display {
    padding: 6px 12px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.selected-account {
    font-weight: 500;
    color: #333;
}

.item-template-container {
    display: flex;
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
}

    .item-template-container:hover {
        background-color: #f8f9fa;
    }

.item-field {
    padding-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 1rem;
}


.combobox-selected-item-display {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 8px !important;
}

    .combobox-selected-item-display span {
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

.combo-width-250 {
    width: 250px;
}

.pw-800 {
    width: 70% !important;
    max-width: 70% !important;
    min-width: 40% !important;
}

.pw-900 {
    width: 70% !important;
    max-width: 70% !important;
    min-width: 40% !important;
}

.pw-1000 {
    width: 85% !important;
    max-width: 90% !important;
    min-width: 75% !important;
}

.toolbar-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.fixed-header-grid .dxbs-grid-table {
    display: block;
    max-height: 400px;
    overflow-y: auto;
}

    .fixed-header-grid .dxbs-grid-table thead {
        position: sticky;
        top: 0;
        background-color: lightgray;
        z-index: 2;
    }

.dx-grid {
    height: 100%;
    overflow-y: auto;
}

.dx-grid_1 {
    height: 70%;
    overflow-y: auto;
}
.dx-grid_2 {
    max-height: 70vh;
    min-height: 40vh;
    overflow-y: auto;
}
    .dx-grid_2.report-content {
        max-height: 50vh;
        overflow-y: auto;
    }

@media (max-width: 768px) {
    .dx-grid_2.report-content {
        max-height: none;
        height: auto; 
        overflow-y: visible;
    }

    .page-container {
        overflow-y: auto; 
    }
}

.dx-grids {
    height: 45%;
    overflow-y: auto;
}

.dx-grids_1 {
    height: 30%;
    overflow-y: auto;
}
.dx-grids_2 {
    height: 55%;
    overflow-y: auto;
}

.search-left {
    display: flex !important;
    justify-content: flex-start !important;
    padding-left: 8px;
}

.dx-grid-90 {
    height: 90%;
    overflow-y: auto;
}

.dx-grid-details {
    height: 35%;
    overflow-y: auto;
}

.dx-grid-detail {
    height: 45%;
    overflow-y: auto;
}

.text-first {
    color: lightgrey
}

.grid-warning {
    border: 2px solid red;
}

.icon-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

    .icon-button:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

.dxbs-search-panel input::placeholder {
    color: #aaa;
    font-style: italic;
    content: "Tìm kiếm...";
}

input.text-end {
    text-align: right;
}


/*FONT GOOGLE START*/
.roboto-mono-regular-parent {
    font-family: "Roboto", monospace;
    font-weight: 650;
    font-style: normal;
    font-size: 13px;
}
.roboto-mono-regular-parent-child {
    font-family: "Roboto", monospace;
    font-weight: 600;
    font-style: normal;
    font-size: 12px;
    padding-left: 6px;
}

.roboto-mono-regular-child {
    font-family: "Roboto", monospace;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    padding-left: 8px;
}

.roboto-mono-bold-parent {
    font-family: "Roboto", monospace;
    font-weight: 650;
    font-style: normal;
    font-size: 13px;
}

.roboto-mono-bold-parent-child {
    font-family: "Roboto", monospace;
    font-weight: 600;
    font-style: normal;
    font-size: 12px;
    padding-left: 6px;
}

.roboto-mono-bold-child {
    font-family: "Roboto", monospace;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    padding-left: 8px;
}

.roboto-mono-regular-italic {
    font-family: "Roboto", monospace;
    font-weight: 500;
    font-style: italic;
    font-size: 12px;
}

.roboto-mono-bold-italic {
    font-family: "Roboto", monospace;
    font-weight: 700;
    font-style: italic;
    font-size: 12px;
}


/*FONT GOOGLE END*/

.mt-20 {
    margin-top: 20px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.t-r {
    text-align: right !important;
}

.text-t {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    text-align: right;
}

.text-italic {
    font-style: italic;
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.popup-resizable {
    resize: both;
    overflow: auto;
    min-width: 400px;
    min-height: 300px;
    max-width: 100vw;
    max-height: 100vh;
}


    .popup-resizable .dxbl-form-layout,
    .popup-resizable .dxbl-popup-content {
        height: 100%;
    }

.no-scroll-grid .dxbl-grid-data-area {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.report-viewer {
    min-height: 250px; 
    max-height: 60vh;
    overflow: auto; 
}

.dxbl-grid-group-row {
    position: sticky;
    top: 25px;
    z-index: 30;
    background: white;
}

.CommonBar,
.CommonBar .d-flex {
    overflow: visible !important;
}

.dxbl-listbox,
.dx-overlay-content {
    z-index: 9999 !important;
}

.footer-thuyetminh {
    position: sticky;
    bottom: 0;
    background: #fff;
    flex-shrink: 0;
    z-index: 50;
    border-top: 1px solid #ccc;
    padding: 0.5rem;
}

.footer-fixed {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 15px 0 0 0;
    text-align: center;
    height: 20px;
}

.dxbs-grid-summary-row td {
    border: 1px solid #dee2e6 !important;
    padding: 8px;
}
.ms-2 {
    min-width: 100px !important;
}


.grid-disabled {
    opacity: 0.3;
    position: relative;
}

    .grid-disabled::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: transparent;
        z-index: 10;
        pointer-events: none; 
    }

.a-dashboard{
    text-decoration-line: none
}
.tt-dashboard{
    color: black;
}

.chart-container {
    width: 100%;
    height: 350px;
}

.axis-title-custom {
    font-size: 16px;
    font-weight: bold;
    fill: darkblue;
}

.dxbs-chart .dxc-arg-axis .dxc-label text {
    font-size: 20px;
    font-weight: bold;
    fill: blue 
}
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 90vh; 
}
.footer-thuyetminh {
    background: #fff;
    width: 100%; 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

.dynamic-popup .dxbl-popup-content {
    height: auto !important;
    max-height: 90vh; 
    overflow-y: auto;
}
.dx-fileinput-buttons .dx-fileinput-clear {
    display: none !important;
}



/*connect*/
@font-face {
    font-family: 'Noto Serif';
    src: url('../../wwwroot/font-gg/Noto_Serif/NotoSerif-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-stretch: 75% 125%;
    font-style: normal;
}

:root {
    --hex-size: 12vh;
    --radius: 16vh;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

div[style*="background-color: #fff9f2;"] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layout {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid: "top-left top-center top-right" 10vh "left center right" 80vh "bottom-left bottom-center bottom-right" 10vh / 20vw 60vw 20vw;
    gap: 8px;
}

.top-left {
    grid-area: top-left;
}

.top-center {
    grid-area: top-center;
}

.top-right {
    grid-area: top-right;
}

.left {
    grid-area: left;
    left: 5vw;
}

.center {
    grid-area: center;
}

.right {
    grid-area: right;
    right: 5vw;
}

.bottom-left {
    grid-area: bottom-left;
}

.bottom-center {
    grid-area: bottom-center;
}

.bottom-right {
    grid-area: bottom-right;
}

.left, .right {
    position: relative;
}

:root {
    --hex-size: min(10vw, 15vh);
    --radius: min(10vh, 15vw);
}

.page {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100vh;
}

.logo {
    position: absolute;
    height: auto;
    width: clamp(60px, 10vw, 180px);
}

.logo-left {
    top: 30px;
    left: 5%;
}

.logo-right {
    top: 30px;
    right: 5%;
}

.side-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #111;
    border-radius: 12px;
    padding: 20px 30px;
    width: 20vw;
    max-width: 100%+100vw;
    font-weight: 500;
    background: #fff;
    font-size: x-large;
    box-sizing: border-box;
}

.hex-link {
    text-decoration: none;
}

.hex-text {
    display: inline-block;
    font-weight: 1000;
    white-space: none;
    padding: 10px;
    color: black;
    margin: auto;
    text-align: center;
    font-family: 'Noto Serif', serif;
}

.hex-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 90%;
    font-size: calc(10px + 0.7vw); /* chữ tăng giảm hoàn toàn theo chiều rộng màn hình */
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)  scale(1);
    width: 612px;
    display: flex;
    flex-direction: column;
}

.roww {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
/*
.test-shape {
    --space: -10px;
    --base: 100px;
    min-height: calc(2 * var(--base));
    min-width: calc(1.732 * var(--base));
    max-height: calc(2 * var(--base));
    max-width: calc(1.732 * var(--base));
    margin-left: calc(0.6 * var(--base) / 2 + var(--space));
    margin-right: calc(0.6 * var(--base) / 2 + var(--space));
    margin-top: var(--space);
    overflow: hidden;
    border: 2px solid #111;
    display: flex;
    margin-bottom: var(--space);
    background: grey;
    -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}*/

/*.test-shape {*/
    /*    top: -30px;*/
    /*--space: -10px;
    --base: calc(3.5vw + 45px);
    min-height: calc(2 * var(--base));
    min-width: calc(1.732 * var(--base));
    max-height: calc(2 * var(--base));
    max-width: calc(1.732 * var(--base));
    margin-left: calc(0.6 * var(--base) / 2 + var(--space));
    margin-right: calc(0.6 * var(--base) / 2 + var(--space));
    margin-top: var(--space);
    margin-bottom: var(--space);
    background: grey;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 10px;
    -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
}*/
.test-shape {
    --space: -10px;
    --base: calc(3.5vw + 45px);
    min-height: calc(2 * var(--base));
    min-width: calc(1.732 * var(--base));
    max-height: calc(2 * var(--base));
    max-width: calc(1.732 * var(--base));
    margin-left: calc(0.6 * var(--base) / 2 + var(--space));
    margin-right: calc(0.6 * var(--base) / 2 + var(--space));
    margin-top: var(--space);
    margin-bottom: var(--space);
    background: grey;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 10px;
    cursor: pointer !important;
    -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
    /* 🔥 THÊM CÁI NÀY */
    transition: transform 0.35s cubic-bezier(.25,.8,.25,1), box-shadow 0.35s cubic-bezier(.25,.8,.25,1);
    transform: translateZ(0); /* kích hoạt GPU */
    backface-visibility: hidden;
}

.hex-link {
    display: inline-block;
    cursor: pointer !important;
    text-decoration: none;
}

    .hex-link:hover .test-shape {
        transform: translateY(-10px);
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
    }


.test-shape-boder {
    top: -30px;
    --space: -10px;
    --base: calc(3.6vw + 45px);
    min-height: calc(2 * var(--base));
    min-width: calc(1.732 * var(--base));
    max-height: calc(2 * var(--base));
    max-width: calc(1.732 * var(--base));
    margin-left: calc(0.6 * var(--base) / 2 + var(--space));
    margin-right: calc(0.6 * var(--base) / 2 + var(--space));
    margin-top: var(--space);
    margin-bottom: var(--space);
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 10px;
    -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
}

.main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.bottom-center {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 10px 20px;
    text-decoration: none;
    color: black;
    font-size: large;
}

    .bottom-center p {
        font-size: calc(12px + 0.5vw);
    }

.bottom-center-left {
    position: absolute;
    left: 5%;
    bottom: 3%;
    /*    transform: translate(-50%);*/
    font-weight: 500;
    font-size: x-large;
}

.bottom-center-right {
    position: absolute;
    right: 5%;
    bottom: 3%;
    /*    transform: translate(-50%);*/
    font-weight: 500;
    font-size: clam(x-large, large);
}

.bottom-left p {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.bottom-left img {
    margin-right: 8px;
    width: 20px;
}

.bottom-left a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    justify-content: space-between;
    font-size: calc(10px + 0.5vw);
    font-family: 'Noto Serif', serif;
}

.bottom-right p {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.bottom-right img {
    margin-right: 8px;
    width: 20px;
}

.bottom-right a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    justify-content: space-between;
    font-size: calc(10px + 0.5vw);
    font-family: 'Noto Serif', serif;
}

.hex-pink {
    background: linear-gradient(to bottom, #800080 0%, #d8a7d8 50%, #ffffff 100% );
}

.hex-blue {
    background: linear-gradient(to bottom, #87abff 0%, #bbd0ff 50%, #ebf1ff 100% );
}

.hex-orange {
    background: linear-gradient(to bottom, #ffa074 0%, #ffb391 50%, #ffcbb3 100% );
}

.hex-yellow {
    background: linear-gradient(to bottom, #f8b500 0%, #ffe9a5 50%, #fff3cf 100% );
}

.hex-green {
    background: linear-gradient(to bottom, #228B22 0%, #96e6a1 50%, #ffffff 100% );
}

.hex-gray {
    background: linear-gradient(to bottom, #555555 0%, #e0e0e0 50%, #ffffff 100% );
}

.hex-lightblue {
    background: linear-gradient(to bottom, #84f6ef 0%, #affaf5 50%, #e2fefc 100% );
}
.hexagon-accounting {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.hexagon-finance {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.hexagon-member {
    background: linear-gradient(135deg, #a8e6cf 0%, #88d8a3 100%);
}
.cell-input {
    width: 100%; /* chiếm trọn cell */
    box-sizing: border-box; /* tính padding + border trong width */
    border: 1px solid #ccc; /* viền giống cell */
    text-align: right; /* căn phải nếu là số */
    height: 100%; /* cao bằng cell */
}

.message table {
    border-collapse: collapse;
    width: 100%;
}

.message th,
.message td {
    border: 1px solid #ccc;
    padding: 8px;
}

.message th {
    text-align: center !important;
    background-color: #f5f5f5;
    font-weight: bold;
}
.dxbl-grid td {
    position: relative;
}

    .dxbl-grid td:hover {
        content: attr(data-text);
        position: absolute;
        left: 0;
        top: 100%;
        background: #000;
        color: #fff;
        padding: 4px 8px;
        white-space: nowrap;
        border-radius: 4px;
        z-index: 999;
        font-size: 12px;
    }