/* main.css - main.htm inline styles */

/* Side menu (context menu) */
.sidemenu
{
    width: 112px;
    display: none;
    height: 100px;
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    overflow-x: hidden;
    padding: 2px;
    font-size: 11px;
    border: 2px solid #828282;
    border-radius: 5px;
    background-color: #e8e9d9;
    text-align: left;
    vertical-align: top;
}

/* Utility classes */
.align-center { text-align: center; }
.inmin { background: orange; }

/* Number button hover */
.numbtn:hover,
.numbtn:active { color: red; }

/* Info window */
#infoWin { overflow: hidden; }

/* Location item */
.loca
{
    width: 100%;
    cursor: pointer;
    color: black;
    padding: 2px 0;
}

.loca:hover { color: red; }

/* Main page body */
.main-body
{
    text-align: center;
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;
}

/* Main header bar */
.main-header-bar
{
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 0 0;
}

/* Menu bar */
.main-menu-bar
{
    width: 100%;
    height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    background: #2355b4;
}

/* Tab button styles (ton/toff) - 원본 common.css와 동일 */
.ton
{
    float: left;
    width: 80px;
    height: 30px;
    padding-top: 8px;
    margin-right: 3px;
    font-size: 13px;
    font-weight: normal;
    text-align: center;
    cursor: pointer;
    background-color: #2355b4;
    border-bottom: 1px solid #2355b4;
    color: #ffffff;
}

.toff
{
    float: left;
    width: 80px;
    height: 30px;
    padding-top: 8px;
    margin-right: 3px;
    font-size: 13px;
    font-weight: normal;
    text-align: center;
    cursor: pointer;
    background-color: #e9e9e9;
    border: 1px solid #828282;
    border-bottom: 0px solid #2355b4;
}

/* Info panel tab styles */
.iton
{
    background: #667eea;
    color: white;
    font-weight: bold;
}

.itoff
{
    background: #ddd;
    color: #333;
}

/* Rect button */
.rectBtn
{
    background: #e8e8e8;
    border: 1px solid #999;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.rectBtn:hover { background: #d0d0d0; }

/* Unselectable text */
.unselectable
{
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Info window styles */
#infoWin
{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Call frame container */
#callFrameDiv
{
    width: 510px;
    height: 100%;
    border: 1px solid #999;
}

/* Tab panel area */
.tabPanelArea
{
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Map container */
#mapDiv
{
    width: 100%;
    flex: 1;
}

/* Iframe container */
.iframe-container
{
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

#mainFrameStage
{
    margin-bottom: 8px;
}

.iframe-container iframe
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.main-frame
{
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition: none;
}

.main-frame.frame-active
{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    transition: none;
}

.main-frame.frame-hidden
{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.app-view-preparing
{
    position: fixed !important;
    inset: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* infoWin Resizer (상단/하단 영역 크기 조절) */
#infoWin
{
    border-bottom: none !important;
}

#infoWinResizer
{
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 9px;
    cursor: ns-resize;
    background: transparent;
    z-index: 9999;
}

#infoWinResizer::before
{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 4px;
    height: 1px;
    background: var(--theme-divider-strong, #9aa8b6);
}

#infoWinResizeOverlay
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    cursor: ns-resize;
    background: transparent;
    display: none;
}

#infoWinResizer:hover
{
    background: transparent;
}

#infoWinResizer:hover::before
{
    background: #2355b4;
}

#infoWinResizer:active
{
    background: transparent;
}

#infoWinResizer:active::before
{
    background: #2355b4;
}
