/* Portal shell visual refinements */
.metrouicss blockquote.portal-context-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 64px;
    margin: 0px 0px 10px 0px;
    padding: 11px 14px 11px 18px;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-left: 4px solid #CB4335;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0px 14px 34px rgba(31, 41, 51, 0.08);
    backdrop-filter: blur(10px);
}

.metrouicss blockquote.portal-context-bar br {
    display: none;
}

.metrouicss .portal-context-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin: 0px;
    padding: 0px 12px;
    border: 1px solid rgba(229, 231, 235, 0.94);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #1F2933;
    font-size: 13px;
    line-height: 1;
}

.metrouicss .portal-context-item:before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #CB4335;
    box-shadow: 0px 0px 0px 4px rgba(203, 67, 53, 0.12);
    flex: 0 0 auto;
}

.metrouicss .portal-context-user:before {
    background: #374151;
    box-shadow: 0px 0px 0px 4px rgba(55, 65, 81, 0.10);
}

.metrouicss .portal-context-version {
    color: #4B5563;
    background: rgba(248, 249, 250, 0.78);
}

.metrouicss .portal-context-version:before {
    background: #9CA3AF;
    box-shadow: 0px 0px 0px 4px rgba(156, 163, 175, 0.12);
}

.metrouicss .portal-context-separator {
    display: none;
}

.metrouicss a.portal-context-action,
.metrouicss .portal-context-action {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0px 9px;
    border: 1px solid rgba(203, 67, 53, 0.24);
    border-radius: 999px;
    background: #FFF8F7;
    color: #CB4335 !important;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.metrouicss a.portal-context-action:hover,
.metrouicss .portal-context-action:hover {
    border-color: #CB4335;
    background: #FFF0EE;
}

.metrouicss a.portal-context-action-danger,
.metrouicss .portal-context-action-danger {
    color: #A92F28 !important;
}

@media (max-width: 900px) {
    .metrouicss blockquote.portal-context-bar {
        gap: 6px;
        padding: 10px 12px 10px 15px;
    }

    .metrouicss .portal-context-item {
        min-height: 32px;
        padding: 0px 10px;
        font-size: 12px;
    }
}

.portal-header-carousel {
    padding-top: 5px;
}

.portal-header-slides {
    height: 70px !important;
}

.portal-header-logo {
    width: auto !important;
    height: 70px !important;
}

.portal-exception-panel {
    background-color: #FFFF99 !important;
    height: auto;
    border-radius: 8px;
}

.portal-exception-panel .notice-header {
    font-size: 16px !important;
    font-weight: bold !important;
}

.portal-exception-panel .notice-text {
    font-size: 14px !important;
}

/* Portal master shell (extracted from PortalMst.Master embedded <style>) */
input[type="submit"] {
    border-radius: 8px !important;
}

.metrouicss .pagination > ul li.export a:before {
    content: url(../images/icon-export.png);
    margin-left: -9px;
    margin-top: 3px;
}

.metrouicss .pagination > ul li.newrow a:before {
    content: url(../images/icon-newrow.png);
    margin-left: 0px;
    margin-top: 3px;
}

.ui-autocomplete {
    max-height: 100px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
}

/* IE 6 doesn't support max-height
* we use height instead, but this forces the menu to always be this tall
*/
* html .ui-autocomplete {
    height: 100px;
}

.version-pc {
    display: normal;
}

.show-mobile {
    display: none;
}

.show-pc {
    display: normal;
}

.hide-header.page-header,
.hide-header.page-header-mobile,
.hide-header.portal-context-bar {
    display: none !important;
}

.page-header-mobile {
    display: none;
}

.page-core-content {
    width: 100%;
}

.chart-control-core {
    border-radius: 8px !important;
}

.top-33-pc {
    margin-top: 33px;
}

.top-27-pc {
    margin-top: 27px;
}

.padding-top-pc {
    padding-top: 26px;
}

.padding-top-33-pc {
    padding-top: 33px;
}

.page-incorrect {
    display: none;
    padding-top: 100px;
}

.page-incorrect-message {
    margin: 0px auto;
    padding: 0px 16px;
    text-align: center;
}

.metrouicss a:focus-visible,
.metrouicss button:focus-visible,
.metrouicss input:focus-visible,
.metrouicss select:focus-visible,
.metrouicss textarea:focus-visible,
.metrouicss [tabindex]:focus-visible {
    outline: 3px solid #A92F28;
    outline-offset: 2px;
}

.page {
    background-color: transparent !important;
}

.content-place {
    margin-left: 10px;
}

.unvisible {
    display: none !important;
}

.notices-mobile {
    margin-top: 10px !important;
    border-radius: 8px !important;
}

.page-region-padding {
    padding-bottom: 10px;
    padding-top: 10px;
    margin-left: 10px;
}

@media (max-width: 600px) {

    .version-pc {
        display: none;
    }

    .show-mobile {
        display: block !important;
    }

    .show-pc {
        display: none !important;
    }

    .page-header-mobile {
        position: fixed;
        top: 10px;
        left: 12px;
        right: 12px;
        overflow: hidden;
        margin-right: 0px;
        z-index: 999;
        width: auto;
        height: 94px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 16px;
        background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 251, 0.94));
        background-size: cover;
        background-position: center;
        box-shadow: 0px 14px 30px rgba(15, 23, 42, 0.16);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .page-header-mobile:before {
        content: "";
        position: absolute;
        left: 0px;
        top: 0px;
        bottom: 0px;
        width: 4px;
        background: linear-gradient(180deg, #CB4335, #7f1d1d);
        pointer-events: none;
    }

    .portal-mobile-header-content {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        height: 100%;
        padding: 0px 16px 0px 18px;
        box-sizing: border-box;
    }

    .portal-mobile-copy {
        min-width: 0px;
        padding-top: 0px;
        color: #111827;
        text-shadow: none;
    }

    .portal-mobile-kicker,
    .portal-mobile-title {
        display: block;
        line-height: 1;
    }

    .portal-mobile-kicker {
        margin-bottom: 6px;
        color: #7f1d1d;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.01em;
    }

    .portal-mobile-title {
        max-width: 220px;
        overflow: hidden;
        color: #111827;
        font-size: 28px;
        font-weight: 500;
        letter-spacing: 0px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .portal-mobile-logo {
        width: 58px;
        height: 58px;
        object-fit: contain;
        flex: 0 0 auto;
        padding: 3px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.72);
        box-shadow: 0px 8px 16px rgba(15, 23, 42, 0.16);
        filter: none;
    }

    .chart-control {
        width: 100% !important;
    }

    .chart-control-core {
        width: 100% !important;
        height: 350px !important;
    }

    .chart-control-empty {
        height: 350px !important;
    }

    .top-33-pc {
        margin-top: 0px;
    }

    .page {
        overflow-x: hidden !important;
        width: 100% !important;
        padding-left: 10px !important;
    }

    .page-region {
        margin-top: 65px !important;
    }

    .content-place {
        margin-top: 25px !important;
        margin-right: 0px !important;
    }

    .tile-mobile-margin {
        margin-left: 5px;
    }

    ::-webkit-scrollbar {
        width: 0px;
    }

    ::-webkit-scrollbar-thumb {
        background-color: transparent;
    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: transparent;
    }

    .metrouicss .scroll-horizontal::-webkit-scrollbar {
        height: 4px;
    }

    .metrouicss .scroll-horizontal::-webkit-scrollbar-thumb {
        background-color: #CB4335;
    }

    .metrouicss .scroll-horizontal::-webkit-scrollbar-thumb:hover {
        background-color: #CB4335;
    }

    .notices-mobile {
        margin-top: 30px !important;
    }

    .page-region-padding {
        padding-bottom: 10px;
        padding-top: 10px;
        margin-left: 0px;
    }

}
