/* Chart of Accounts (#/chartOfAccounts) — scoped ui-grid layout */

.coa-root {
    box-sizing: border-box;
    max-width: 100%;
}

.coa-root .coa-toolbar,
.coa-root .coa-search {
    margin-left: 55px;
}

.coa-root .coa-grid-wrap {
    width: 100%;
    max-width: 825px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.coa-root .coa-grid-wrap .div_Grid,
.coa-root #grid1.ui-grid {
    width: 820px !important;
    max-width: 820px !important;
    min-width: 820px !important;
}

.coa-root #grid1.ui-grid {
    height: 420px !important;
    min-height: 320px;
}

.coa-root .ui-grid-row > div,
.coa-root .ui-grid-row > div > div {
    width: 100%;
}

.coa-root .grey .ui-grid-cell-contents {
    color: red;
}

.coa-root .txtPre .ui-grid-cell-contents {
    white-space: pre !important;
}

.coa-root .txtLevelNo {
    width: 18px;
}

.coa-root .txtAlign {
    text-align: right;
    width: 80px;
}

.coa-root .auto-style1 {
    height: 36px;
}

.coa-root .btn-set {
    background: #31b0d5;
    border: 1px solid #31b0d5;
    color: #fff;
    padding: 2px !important;
    margin: 6px 0;
}

.coa-root .coa-detail-panel {
    float: left;
    padding-left: 0;
    border: solid;
    border-color: #ddd;
    width: 100%;
    height: auto;
    margin-top: 82px;
}

@media (max-width: 991px) {
    .coa-root .coa-layout-grid {
        padding-right: 0;
    }

    .coa-root .coa-detail-panel {
        margin-top: 16px;
    }
}

@media (min-width: 992px) {
    .coa-root .coa-detail-panel {
        margin-top: 82px;
    }
}

/* Keep fixed grid width for column sync — override responsive-global on this screen only */
@media (max-width: 991px) {
    .coa-root .ui-grid,
    .coa-root .div_Grid {
        width: 820px !important;
        max-width: 820px !important;
        min-width: 820px !important;
        min-height: 320px;
    }
}
