a[data-static-disabled] {
    cursor: default;
}

/* file:// 會套用瀏覽器的已瀏覽連結色，強制維持原站導覽列配色。 */
.menu_list li.active > a,
.menu_list li.active > a:link,
.menu_list li.active > a:visited,
.menu_list li:hover > a,
.menu_list li:hover > a:visited {
    color: #fff;
    text-decoration: none;
}

.menu_list li.active {
    background-color: #285ee4;
    border-radius: 4px;
}

.user_content,
.user_content:link,
.user_content:visited,
.user_content:hover,
.user_content:focus {
    color: #285ee4;
    text-decoration: none;
}

body[data-static-snapshot="true"] iframe {
    display: none !important;
}

body[data-static-snapshot="true"] #Drop-Down .dropdown-menu.show {
    display: block !important;
}

body[data-static-snapshot="true"] #toCreateIncome {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 160px;
    min-height: 30px;
    margin: 0;
    padding: 2px 10px;
    border: 1px solid #285ee4;
    border-radius: 8px;
    background: #285ee4;
    box-shadow: 0 3px 6px rgba(40, 94, 228, 0.25);
    color: #fff;
    font-size: 18px;
    font-weight: 400;
}

body[data-static-snapshot="true"] #toCreateIncome:hover,
body[data-static-snapshot="true"] #toCreateIncome:focus {
    background: #2e4a8f;
    color: #fff;
}

@media (max-width: 1600px) {
    body[data-static-snapshot="true"] #toCreateIncome {
        width: 140px;
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    body[data-static-snapshot="true"] #toCreateIncome {
        width: 120px;
        font-size: 15px;
    }
}

.modal.static-open {
    display: block !important;
    position: fixed;
    z-index: 10001;
    top: 50%;
    left: 50%;
    max-height: 90vh;
    overflow: auto;
    transform: translate(-50%, -50%);
}

.jquery-modal.blocker:not(.current) {
    display: none !important;
}

.jquery-modal.blocker.current {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.jquery-modal.blocker.current > #ex7_modal_tb.static-open {
    position: relative;
    top: auto;
    left: auto;
    width: 343px;
    max-width: calc(100vw - 40px);
    margin: 0;
    transform: none;
}

.static-chart {
    display: block;
    width: 100%;
    height: auto;
}

.static-chart-svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 300px;
    background: #fff;
}

.static-chart-svg .chart-title { fill: #285ee4; font-size: 30px; font-weight: 700; }
.static-chart-svg .chart-axis { stroke: #9ca3af; stroke-width: 2; }
.static-chart-svg .chart-grid line { stroke: #e5e7eb; stroke-width: 1; }
.static-chart-svg .chart-bars rect,
.static-chart-svg .horizontal-bars rect { fill: rgba(40, 94, 228, .35); stroke: #285ee4; stroke-width: 2; }
.static-chart-svg .chart-bars .invoice { fill: rgba(255, 99, 132, .35); stroke: #ff6384; }
.static-chart-svg .chart-bars .paid { fill: rgba(54, 162, 235, .35); stroke: #36a2eb; }
.static-chart-svg text { fill: #4b5563; font-size: 16px; }
.static-chart-svg .chart-labels text { text-anchor: middle; }
.static-chart-svg .pie-main { font-size: 21px; font-weight: 700; }
.static-chart-svg .pie-percent { fill: #285ee4; font-size: 24px; font-weight: 700; }

#collection_chart .chart-diagram1.static-chart-svg {
    width: 100%;
    height: 190px;
    min-height: 0;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
}
/* 本機靜態展示狀態 */
.offline-success-notice,
.offline-expense-card {
    margin: 16px auto;
    padding: 16px 20px;
    max-width: 960px;
    border: 1px solid #2b63e8;
    border-radius: 8px;
    background: #fff;
    color: #244aa5;
}

.offline-status {
    color: #2f9e44;
    font-weight: 600;
}

.offline-date-picker {
    position: absolute;
    z-index: 9999;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 304px;
    padding: 8px 0 0;
    border: 2px solid #285ee4;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(28, 48, 86, 0.18);
    color: #3d3d3d;
    font-size: 15px;
    line-height: 15px;
    text-align: initial;
    text-align-last: auto;
}

.offline-date-header,
.offline-date-week,
.offline-date-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.offline-date-header {
    grid-template-columns: 25px 1fr 25px;
    align-items: center;
    height: 25px;
    padding: 0 8px;
}

.offline-date-header > div {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.offline-date-header select {
    height: 20px;
    padding: 1px;
    border: 0;
    border-radius: 3px;
    background: #bacbf6;
    color: #2e4a8f;
    font-size: 14px;
}

.offline-date-header select:first-child {
    width: 107px;
}

.offline-date-header select:last-child {
    width: 76px;
}

.offline-date-header button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #c6c6c6;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.offline-date-week {
    align-items: center;
    height: 25px;
    color: #3d3d3d;
    font-size: 14px;
}

.offline-date-days button {
    height: 41px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #285ee4;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
}

.offline-date-days button:hover,
.offline-date-days button:focus,
.offline-date-days button.selected {
    background: #2b63e8;
    color: #fff;
}

.offline-date-days button.outside {
    color: #999;
}

.offline-date-days button.outside.selected {
    color: #fff;
}

.offline-date-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    height: 62px;
    margin: 0;
    padding: 8px;
    border-top: 1px solid #ddd;
}

.offline-date-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 44px;
    margin-left: 8px;
    padding: 8px 16px;
    border: 2px solid #2e4a8f;
    border-radius: 25px;
    background: #fff;
    color: #2e4a8f;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
}

.offline-date-actions button[data-date-apply] {
    border-color: #285ee4;
    background: #285ee4;
    color: #fff;
}
body.static-modal-active::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(20, 29, 48, 0.5);
}

.static-legacy-modal-open {
    max-height: calc(100vh - 48px);
    overflow: auto;
}
.sp-modal { display: none; position: fixed; inset: 0; z-index: 20000; align-items: center; justify-content: center; padding: 24px; background: #0008; }
.sp-modal.open { display: flex; }
.sp-dialog { width: min(620px, 96vw); padding: 26px; border-radius: 14px; background: #fff; box-shadow: 0 12px 35px #0005; }
.sp-dialog h2 { margin-top: 0; color: #285ee4; }
.sp-dialog .sp-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sp-field { display: grid; gap: 7px; }
.sp-field input, .sp-field select { min-height: 40px; padding: 8px 12px; border: 1px solid #c8ceda; border-radius: 7px; }
.sp-btn { min-width: 120px; min-height: 40px; padding: 8px 18px; border: 1px solid #285ee4; border-radius: 22px; background: #fff; color: #285ee4; }
.sp-btn.primary { background: #285ee4; color: #fff; }
.logo-page #purchaseBtn,
.invoice-static #purchaseBtn,
.my-components #purchaseBtn {
    background: #ffdf00 !important;
    color: #0759d9 !important;
    opacity: 1 !important;
}
