html, body {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin: 0px;
}


#app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}


/* ヘッダー */
header {
    background-color: #678;
    color: #fff;
    box-shadow: 0 2px 4px #00000014;
    padding: 0.5em;
    font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
}

.header-container {
    display: flex;
    justify-content: space-between; /* 左右に分ける */
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 24px; /* ロゴの大きさ調整 */
    margin-right: 0.5em;
}

.header-title {
    font-size: 1.5em;
    font-weight: bold;
}

.help-icon {
    font-size: 1.2em;
    cursor: pointer;
}


/* メイン */
main {
    flex: 1; /* ここが「余ったスペースを使う」 */
    background-color: #ecf0f1;
    padding: 0px;
    overflow-y: auto;
}


.main-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: visible;
}

.dx-resize-handle .dx-icon {
    display: none;
}

/*
.slow-splitter .dx-splitter-item {
    transition: all 0.5s ease;
}
    */


.pane-content {
    padding: 12px;
}

.pane-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.pane-state {
    font-size: var(--dx-font-size-xs);
    margin-bottom: 4px;
}

.pane-option {
    color: var(--dx-texteditor-color-label);
    font-size: 10px;
}


.fab-button-left-top {
    position: absolute;
    left: 20px;
    top: 20px;
}

.fab-button-left-top2 {
    position: absolute;
    left: 20px;
    top: 80px;
}

.fab-button-right-bottom {
    position: absolute;
    right: 20px;
    bottom: 20px;
}

.fab-button-right-bottom2 {
    position: absolute;
    right: 20px;
    bottom: 80px;
}

.fab-button-right-bottom3 {
    position: absolute;
    right: 20px;
    bottom: 140px;
}

.fab-button-right-bottom4 {
    position: absolute;
    right: 20px;
    bottom: 200px;
}

.fab-button-right-bottom5 {
    position: absolute;
    right: 20px;
    bottom: 260px;
}

.fab-button-right-top {
    position: absolute;
    right: 20px;
    top: 20px;
}

.dx-button.fab-button {
    z-index: 1000;
    background-color: #337ab7;
    min-width: 48px;
    max-height: 48px;
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .2);
}

    .dx-button.fab-button.dx-state-hover {
        background-color: #285f8f;
    }




.fab-button .dx-button-content {
    padding: 15px;
}

    .fab-button .dx-button-content .dx-icon {
        color: #fff;
    }



.dx-fa-button-icon i {
    vertical-align: -1px;
}

.dx-fa-button .dx-overlay-content {
    min-width: 36px;
    max-height: 36px;
}

.dx-fa-button .dx-fa-button-icon, .dx-fa-button .dx-fa-button-icon-close {
    padding: 9px;
}

/* タブパネル */

#grid-header, #info-header {
    width: 100%;
    background: #f5f6f7;
    border: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    color: #333;
    padding: 6px 20px;
    gap: 8px;
    font-size: 14px;
    position: relative;
    border-bottom: 1px solid #c5c5c5;
    height: 37px;
}

    #grid-header::after,
    #info-header::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px; /* 下線の高さ */
        background: linear-gradient(to right, transparent, #dadbdc 25%, #dadbdc 75%, transparent); /* グラデーションの設定 */
    }

.dx-header-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* レイヤツリー */
#layer-tree {
    height: 100%;
}

#address-manager {
    height: 100%;
}

.dx-header-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dx-treeview-toggle-item-visibility {
    flex: 0 0 auto;
}

.treepanel-item .dx-treelist-header-panel {
    background: #f5f6f7;
}

    .treepanel-item .dx-treelist-header-panel .dx-toolbar {
        margin-bottom: 0px;
        padding: 4px 8px;
    }

.dx-treeview {
    border: 1px solid lightgray;
    background-color: #FFFFFF;
}


.dx-dropdownlist-popup-wrapper .dx-list:not(.dx-list-select-decorator-enabled) .dx-list-item-content {
    padding-left: 7px;
    padding-right: 7px;
}

.custom-item {
    display: flex;
    width: 100%;
    height: 30px;
}

.dx-dropdowneditor-input-wrapper .custom-item > img {
    margin-top: 8px;
    margin-left: 8px;
}

.custom-item .item-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8px;
    height: 30px;
    width: 100%;
}

.item-name > p {
    padding-left: 8px;
}



.custom-item > img {
    margin-top: 8px;
    left: 1px;
    top: 50%;
    width: 16px;
    height: 16px;
}

.custom-item.dashstyle-item > img {
    margin-top: 4px;
    width: 96px;
    height: 24px;
}

.custom-item.hatchstyle-item > img {
    margin-top: 4px;
    width: 96px;
    height: 22px;
}

.custom-item.fontfamilies-item > img {
    margin-top: 4px;
    width: 24px;
    height: 24px;
}



.dx-gridbase-a11y-status-container {
    display: none;
}

.dx-dropdowneditor-overlay .dx-popup-content {
    padding: 0px;
}

.dx-checkbox-checked .dx-checkbox-icon {
    background-image: url(../images/layers/CheckButtons_16x16.png);
}

.dx-checkbox-icon {
    width: 16px;
    height: 16px;
    background-image: url(../images/layers/unCheckButtons_16x16.png);
    background-color: transparent;
}

.dx-item-content .dx-treeview-item-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dx-treeview-item {
    padding: 2px 10px;
    height: 32px;
}

    .dx-treeview-item .dx-treeview-item-content .dx-icon {
        margin-right: 0px;
    }

    .dx-treeview-item .dx-treeview-item-content .dx-icon-layer {
        width: 24px;
        height: 24px;
    }

    .dx-treeview-item .dx-treeview-item-content .dx-icon-style {
        width: 32px;
        height: 24px;
    }

    .dx-treeview-item .dx-treeview-item-content .dx-symbol-style {
        width: 20px;
        height: 20px;
    }

.dx-item-content .dx-treeview-item-content > span {
    white-space: nowrap;
    text-overflow: ellipsis;
}

#address-grid .dx-datagrid .dx-column-lines > td {
    border-left: 0px solid #ddd;
    border-right: 0px solid #ddd;
}

#address-grid .dx-datagrid-rowsview .dx-row {
    border-top: 0px solid transparent;
    border-bottom: 0px solid #e6e6e6;
}

#address-grid .dx-datagrid-content .dx-datagrid-table .dx-row .dx-command-expand {
    padding: 0;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

#address-grid .dx-gridbase-a11y-status-container {
    display: none;
}

#address-grid .dx-datagrid-group-opened {
    padding: 6px;
}

#address-grid .dx-datagrid-group-closed {
    padding: 6px;
}







/* マップ */
#mainmap {
    float: left;
    margin-right: 1em;
    -webkit-tap-highlight-color: transparent;
    position: absolute;
    background: #fff;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    pointer-events: none;
    z-index: 1000;
}

    .crosshair::before, .crosshair::after {
        content: '';
        position: absolute;
        background: #C44444;
    }

    .crosshair::before {
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        transform: translateY(-50%);
    }

    .crosshair::after {
        left: 50%;
        top: 0;
        height: 100%;
        width: 2px;
        transform: translateX(-50%);
    }



#tree-panel,
#grid-panel {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}

/* grid */
#grid-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
#grid-view {
    flex: 1;
    overflow-y: auto;
}


/* フォーム */
#feature-form {
    padding: 20px;
    flex: 1; 
    overflow-y: auto;
}

.dx-datagrid-header-panel {
    padding: 10px 10px 0px 10px;
}


/* フッター */
footer {
    background-color: #678;
    bottom: 0;
    font-size: 12px;
    color: #fff;
    padding: 1.5em 1em;
    font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between; /* 左右に分ける */
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
}
