html {
    box-sizing: border-box;
    min-width: 320px;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body.index-page {
    margin: 0 !important;
    color: #1f2933;
    background: #eef2f5 !important;
    font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
}

.index-form,
.index-shell,
.index-shell-table {
    width: 100%;
    min-height: 100vh;
}

.index-shell-table {
    border-collapse: collapse;
    background: #eef2f5;
}

.index-header {
    height: 80px !important;
    padding: 0 24px;
    border-top: 3px solid #b18a36;
    background-color: #0b3d66 !important;
    background-position: left center;
    background-size: auto 80px;
}

.index-navigation {
    height: 48px;
    padding: 0 24px;
    background: #ffffff;
    border-bottom: 1px solid #d8e0e6;
}

.index-navigation > hr {
    display: none;
}

.index-navigation-table {
    width: 100%;
    max-width: 1040px;
    height: 48px;
    min-height: 48px;
    margin: 0 auto;
    border-collapse: collapse;
}

.index-navigation-icon-cell {
    width: 30px;
    vertical-align: middle;
    text-align: center;
}

.index-navigation-icon {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain;
}

.index-navigation-main {
    vertical-align: middle;
    text-align: left;
}

.index-main-menu {
    display: inline-block;
    margin-right: 12px;
    color: #174f78 !important;
    background: transparent !important;
    border: 0 !important;
    font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif !important;
    font-size: 15px !important;
}

.index-clock,
.index-account,
.index-logout {
    font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
    font-size: 14px;
}

.index-clock {
    color: #52606d;
    white-space: nowrap;
}

.index-account-area {
    vertical-align: middle;
    text-align: right;
}

.index-account {
    color: #174f78;
    font-weight: 700;
}

.index-logout {
    color: #b42318 !important;
    font-weight: 700;
}

.home-layout-cell {
    width: 100%;
    vertical-align: top;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
    gap: 28px;
    width: min(100%, 1156px);
    margin: 0 auto;
    padding: 18px 24px 36px;
    align-items: start;
}

.home-main-column {
    min-width: 0;
}

.quick-links-panel {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8e0e6;
    border-top: 4px solid #b18a36;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(31, 41, 51, 0.07);
}

.quick-links-heading {
    position: relative;
    padding: 25px 24px 21px;
    border-bottom: 1px solid #e4e9ed;
}

.quick-links-heading::after {
    position: absolute;
    bottom: -1px;
    left: 24px;
    width: 64px;
    height: 2px;
    background: #b18a36;
    content: "";
}

.quick-links-kicker {
    display: block;
    margin-bottom: 7px;
    color: #8a6a25;
    font-size: 12px;
    font-weight: 700;
}

.quick-links-title {
    margin: 0;
    color: #12344d;
    font-size: 21px;
    line-height: 1.4;
}

.quick-links-list {
    padding: 8px 24px;
}

.quick-link-item {
    position: relative;
    display: flex;
    min-height: 52px;
    align-items: center;
    padding: 12px 0 12px 30px;
    border-bottom: 1px solid #e9edf0;
}

.quick-link-item:last-child {
    border-bottom: 0;
}

.quick-link-item::before {
    position: absolute;
    top: 25px;
    left: 0;
    width: 18px;
    height: 2px;
    background: #b18a36;
    content: "";
}

.quick-link-image {
    display: none;
}

.quick-link {
    color: #174f78 !important;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
}

.quick-link-alert {
    color: #9b2c2c !important;
}

.quick-links-status {
    margin: 0 24px;
    padding: 15px 0 18px;
    color: #7b8794;
    border-top: 1px solid #c6aa6a;
    font-size: 12px;
    text-align: right;
}

.quick-links-time {
    color: inherit;
    font: inherit;
}

.auth-panel {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8e0e6;
    border-top: 4px solid #b18a36;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(31, 41, 51, 0.08);
}

.view-title {
    color: #12344d;
    font-size: 22px;
}

.field-label {
    color: #243b53;
    font-weight: 700;
}

.text-input {
    min-height: 42px;
    padding: 8px 11px;
    color: #102a43;
    background: #ffffff;
    border: 1px solid #9fb3c8;
    border-radius: 4px;
}

.primary-action,
.secondary-action {
    min-height: 42px;
    padding: 9px 20px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.primary-action {
    color: #ffffff !important;
    background: #176b52;
    border: 1px solid #176b52;
}

.secondary-action {
    color: #174f78 !important;
    background: #f7f9fb;
    border: 1px solid #9fb3c8;
}

.support-line {
    color: #52606d;
    background: #f6f8fa;
    border-left: 3px solid #b18a36;
}

.support-copy {
    color: inherit;
}

@media (max-width: 1080px) {
    .home-layout {
        grid-template-columns: minmax(0, 760px);
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .menu-system-name {
        display: none;
    }

    .index-header {
        height: 72px !important;
        padding: 0 16px;
        background-size: 640px auto;
    }

    .index-navigation {
        padding-right: 16px;
        padding-left: 16px;
    }

    .home-layout {
        padding: 18px 16px 24px;
    }
}

@media (max-width: 440px) {
    .index-header {
        background-size: 540px auto;
    }

    .home-layout {
        padding: 16px 10px 24px;
    }
}
