body {
    overflow: hidden;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans KR', Arial, 'Apple SD Gothic Neo', sans-serif;
}

.container1 {
    height: calc(100vh - 160px);
    width: 100vw;
    max-width: 100%;
    overflow: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td,
th {
    text-align: center;
    padding: .35rem .4rem;
}

thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #c6e3bd;
}

.loadingDiv {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000000;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, .25);
    backdrop-filter: blur(1px);
}

.toolbar {
    display: flex;
    align-items: center;
    gap: .6rem;
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: .5rem .75rem;
    height: 50px;
}

.toolbar .group {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.tab-select,
#oneDate,
#ipgoList {
    display: block;
    max-width: 260px;
    width: 100%;
    height: calc(1.8125rem + 2px);
    padding: .25rem .5rem;
    font-size: .9rem;
    color: #333;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    outline: none;
}

.btn {
    border-radius: 5px;
    padding: 6px 10px;
    border: 0;
    cursor: pointer;
    font-size: .9rem;
}

.btn-success {
    background: #4CAF50;
    color: #fff;
}

.number {
    text-align: right;
}

.left {
    text-align: left;
}

.muted {
    color: #777;
    font-size: .9rem;
}

tfoot td {
    font-weight: 600;
    background: #f5f5f5;
}

.container1 table tfoot {
    position: sticky;
    bottom: 0;
    z-index: 2;          /* 헤더/본문 위에 오도록 */
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    background: #eef3ff;
    color: #345;
    font-size: .75rem;
}

#tabs {
    margin-top: .6rem;
}

#tabs .ui-tabs-nav {
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f8f8f8;
}

#tabs .ui-tabs-panel {
    padding: .6rem;
}

.subtotal {
    /* per-store subtotal (already used) */
    background: #f2f6ff;
    font-weight: 700;
}

.chain-subtotal {
    /* per-chain subtotal */
    background: #f6fbf2;
    font-weight: 700;
}

#marginBody2 tr.store-row-gray {
    background-color: #ffffff;
}

#marginBody2 tr.store-row-white {
    background-color: #ffffff;
}