:root {
    --bg: #0f1422;
    --panel: #171d2e;
    --panel-soft: #20283b;
    --text: #e8edf8;
    --muted: #8d98b3;
    --line: #2e3852;
    --accent: #5dd6ff;
    --cherry: #e71d48;
    --cherry-dark: #9f1239;
    --leaf: #4ade80;
    --danger: #ff5d7a;
    --success: #57d68d;
}

html.admin-theme-light {
    --bg: #eef1f6;
    --panel: #ffffff;
    --panel-soft: #f4f6fa;
    --text: #1f2937;
    --muted: #64748b;
    --line: #dbe2ee;
}

/* 라이트 모드: 저장/안내 배너 가독성 */
html.admin-theme-light .notice {
    color: #0c4a6e;
    border-color: #0284c7;
    background: #e0f2fe;
    font-weight: 600;
}

html.admin-theme-light .notice-danger {
    color: #991b1b;
    border-color: #dc2626;
    background: #fee2e2;
    font-weight: 600;
}

html.admin-theme-light .page-status-notice {
    color: #1e3a8a;
    border-color: #2563eb;
    background: #dbeafe;
    font-weight: 600;
}

html.admin-theme-light .page-status-notice-error {
    color: #991b1b;
    border-color: #dc2626;
    background: #fee2e2;
    font-weight: 600;
}

.send-message-page {
    display: block;
    width: 100%;
    padding: 6px 32px 40px;
    color: var(--text);
}

.send-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.send-message-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(93, 214, 255, 0.28);
    border-radius: 999px;
    background: rgba(93, 214, 255, 0.08);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.send-message-header h1 {
    margin: 3px 0 0;
    font-size: 26px;
    font-weight: 800;
}

.send-message-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 14px;
    align-items: start;
}

.send-message-main-column {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.send-message-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(32, 40, 59, 0.96), rgba(20, 26, 42, 0.96));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.send-message-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.send-message-card-title strong {
    font-size: 15px;
    font-weight: 800;
}

.send-message-card-title span {
    color: var(--accent);
    font-size: 13px;
}

.send-message-card-title em {
    color: #ffbb35;
    font-style: normal;
    font-weight: 800;
}

.memo-tree-panel {
    width: 220px;
    height: calc(100vh - 132px) !important;
    min-height: 640px;
    max-height: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(32, 40, 59, 0.98), rgba(17, 23, 37, 0.98));
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.memo-tree-title {
    min-height: 42px;
    padding: 0 10px;
    gap: 6px;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.memo-tree-title strong,
.memo-tree-title em {
    font-size: 13px;
}

.send-message-recipient-list {
    max-height: none;
    height: calc(100% - 42px);
    padding: 8px 6px 12px;
    overflow: auto;
}

.memo-tree-list {
    display: block;
    font-size: 12px;
}

#memo-tree-section .tree {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

#memo-tree-section .node-content {
    min-height: 30px;
    padding-top: 3px;
    padding-bottom: 3px;
    border-bottom: 0;
}

#memo-tree-section .node-checkbox {
    width: 13px;
    height: 13px;
    margin: 0 5px 0 0;
    flex: 0 0 auto;
    accent-color: #5dd6ff;
}

#memo-tree-section .node-icon {
    margin-left: 0;
}

#memo-tree-section .node-label {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memo-tree-node {
    display: block;
}

.memo-tree-node > summary {
    list-style: none;
}

.memo-tree-node > summary::-webkit-details-marker {
    display: none;
}

.memo-tree-children {
    display: grid;
    gap: 1px;
}

.memo-tree-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 2px 4px 2px calc(4px + (var(--tree-depth, 0) * 12px));
    border-radius: 6px;
    color: #d9e2f2;
    cursor: pointer;
    user-select: none;
}

.memo-tree-row:hover,
.memo-tree-row.is-selected {
    background: rgba(93, 214, 255, 0.11);
}

.memo-tree-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    color: #9aa6bd;
    font-size: 9px;
    line-height: 1;
}

.memo-tree-node[open] > .memo-tree-row .memo-tree-arrow,
.memo-tree-node[open] > summary.memo-tree-row .memo-tree-arrow {
    transform: rotate(90deg);
}

.memo-tree-check {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: #5dd6ff;
    flex: 0 0 auto;
}

.memo-tree-folder-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: #ffbb35;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.memo-tree-label {
    min-width: 0;
    overflow: hidden;
    color: #edf3ff;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memo-tree-type {
    margin-left: auto;
    color: #8d98b3;
    font-size: 10px;
    white-space: nowrap;
}

.send-message-recipient-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.send-message-recipient-item:hover,
.send-message-recipient-item.is-selected {
    border-color: rgba(93, 214, 255, 0.46);
    background: rgba(93, 214, 255, 0.1);
}

.send-message-recipient-item input {
    accent-color: var(--accent);
}

.send-message-recipient-item span {
    display: grid;
    gap: 3px;
}

.send-message-recipient-item strong {
    color: #fff;
    font-size: 13px;
}

.send-message-recipient-item small {
    color: var(--muted);
    font-size: 12px;
}

.send-message-form {
    display: grid;
    gap: 14px;
    padding: 16px 18px 18px;
}

.send-message-field {
    display: grid;
    gap: 8px;
}

.send-message-title-field {
    position: relative;
    display: block;
}

.send-message-field span {
    color: #c8d0df;
    font-size: 13px;
    font-weight: 700;
}

.send-message-title-field span {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    padding: 0 4px;
    background: #20283b;
    color: #9aa6bd;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
    transition: top 0.16s ease, color 0.16s ease, font-size 0.16s ease, transform 0.16s ease;
}

.send-message-field input,
.send-message-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(10, 14, 26, 0.72);
    color: #fff;
    outline: 0;
}

.send-message-field input {
    height: 48px;
    padding: 0 13px;
}

.send-message-title-field input {
    border-color: #3a4457;
    border-radius: 8px;
    background: #20283b;
    padding: 0 14px;
    font-size: 14px;
}

.send-message-title-field input:focus + span,
.send-message-title-field input:not(:placeholder-shown) + span {
    top: 0;
    color: #5dd6ff;
    font-size: 12px;
    transform: translateY(-50%);
}

.send-message-field textarea {
    min-height: 176px;
    padding: 12px 13px;
    resize: vertical;
}

.send-message-editor-container {
    gap: 8px;
}

.send-message-editor-container .editor-toolbar {
    width: 100%;
    min-height: 65px;
}

.send-message-editor-content {
    min-height: 176px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(10, 14, 26, 0.72);
    color: #fff;
    outline: 0;
}

.send-message-editor-content:focus {
    border-color: rgba(93, 214, 255, 0.52);
    box-shadow: 0 0 0 3px rgba(93, 214, 255, 0.1);
}

.send-message-field input:focus,
.send-message-field textarea:focus {
    border-color: rgba(93, 214, 255, 0.52);
    box-shadow: 0 0 0 3px rgba(93, 214, 255, 0.1);
}

.send-message-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
}

.send-message-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c8d0df;
    font-size: 13px;
    font-weight: 700;
}

.send-message-check input {
    accent-color: var(--accent);
}

.send-message-submit,
.send-message-danger,
.send-message-ghost,
.send-message-row-delete {
    border: 0;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

.send-message-submit {
    min-width: 97px;
    height: 44px;
    border: 1px solid #1976d2;
    border-radius: 8px;
    background: transparent;
    color: #1565c0;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
}

.send-message-submit:hover {
    background: rgba(25, 118, 210, 0.08);
    border-color: #42a5f5;
    color: #42a5f5;
}

.send-message-danger {
    height: 36px;
    padding: 0 14px;
    background: rgba(255, 93, 122, 0.16);
    color: #ffb7c5;
}

.send-message-help-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
}

.send-message-help {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.send-message-lower {
    margin-left: 0;
    display: grid;
    gap: 4px;
}

.send-message-table-card {
    overflow: hidden;
}

.send-message-table-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 12px 14px 0;
}

.send-message-ghost {
    width: 96px;
    height: 30px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: #315dff;
    color: #fff;
    box-shadow: 0 3px 8px rgba(49, 93, 255, 0.28);
    font-size: 13px;
    font-weight: 700;
}

.send-message-ghost:hover {
    filter: brightness(1.08);
}

.send-message-table-scroll {
    width: 100%;
    overflow-x: auto;
    padding: 6px 10px 10px;
}

.send-message-table {
    width: 100%;
    min-width: 920px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text);
    font-size: 13px;
}

.send-message-table th,
.send-message-table td {
    padding: 8px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    vertical-align: top;
}

.send-message-table th {
    color: #c8d0df;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.send-message-th-title {
    vertical-align: bottom;
}

.send-message-th-title-actions {
    display: flex;
    align-items: center;
    margin: 0 0 4px;
}

.send-message-th-title-label {
    display: block;
    line-height: 1.2;
}

.send-message-table tbody tr {
    cursor: pointer;
}

.send-message-table tbody tr:hover {
    background: rgba(93, 214, 255, 0.07);
}

.send-message-title-cell {
    min-width: 180px;
    color: #fff;
    font-weight: 800;
}

.send-message-content-cell {
    min-width: 260px;
    max-width: 340px;
    color: #c8d0df;
    line-height: 1.5;
    word-break: break-word;
}

.send-message-content-cell p {
    margin: 0 0 4px;
}

.send-message-row-delete {
    height: 28px;
    padding: 0 10px;
    background: rgba(255, 93, 122, 0.15);
    color: #ffb7c5;
}

.send-message-table.is-compact th:nth-child(3),
.send-message-table.is-compact td:nth-child(3),
.send-message-table.is-compact th:nth-child(5),
.send-message-table.is-compact td:nth-child(5) {
    display: none;
}

.message-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.58);
}

.message-dialog-overlay[hidden] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.message-dialog-overlay.is-above-partner-modal {
    z-index: 20050;
}

.notice-overlay.is-under-admin-dialog,
.partner-edit-overlay.is-under-admin-dialog {
    z-index: 9990;
    pointer-events: none;
}

.message-dialog {
    width: min(360px, 100%);
    border: 1px solid rgba(93, 214, 255, 0.24);
    border-radius: 14px;
    background: #171d27;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.46);
    color: #e8edf8;
    overflow: hidden;
}

.message-dialog-title {
    padding: 14px 18px;
    border-bottom: 1px solid #293241;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.message-dialog-body {
    min-height: 74px;
    padding: 22px 18px;
    color: #dce3f1;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    white-space: pre-wrap;
}

.message-dialog-body .message-dialog-text {
    margin: 0 0 12px;
}

.message-dialog-body .message-dialog-password-input {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    text-align: left;
}

.message-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 14px 14px;
}

.message-dialog-btn {
    min-width: 72px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.message-dialog-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #c8d0df;
}

.message-dialog-btn-ok {
    background: #315dff;
    color: #fff;
}

.message-dialog-btn:hover {
    filter: brightness(1.08);
}

.head-direct-message-dialog {
    width: min(520px, calc(100vw - 32px));
}

.head-direct-message-dialog .message-dialog-body.head-direct-message-dialog-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    text-align: left;
}

.head-direct-message-recipient {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.head-direct-message-label {
    font-size: 13px;
    font-weight: 700;
    color: #dce3f1;
}

body.admin-body .head-direct-message-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #3b4554;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    background: #111418;
    color: #e8edf8;
}

body.admin-body .head-direct-message-input::placeholder {
    color: #64748b;
}

body.admin-body .head-direct-message-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

.head-direct-message-error {
    margin: 0;
    color: #f87171;
    font-size: 13px;
}

.pop-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.34);
}

.pop-alert-overlay[hidden] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.pop-alert-table {
    width: 300px;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.pop-alert-inner {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.pop-alert-inner .title {
    height: 50px;
    padding: 20px;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
}

.pop-alert-inner .content {
    padding: 10px 20px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
}

.pop-alert-actions {
    padding: 20px 20px 10px;
    text-align: center;
}

.pop-alert-btn {
    min-width: 82px;
    height: 34px;
    border: 0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pop-alert-btn + .pop-alert-btn {
    margin-left: 6px;
}

.pop-alert-btn-secondary {
    background: #e5e7eb;
    color: #333;
}

.pop-alert-btn-primary {
    background: #315dff;
    color: #fff;
}

@media (max-width: 1080px) {
    .send-message-page {
        padding: 20px 16px 32px;
    }

    .send-message-grid {
        grid-template-columns: 1fr;
    }

    .memo-tree-panel {
        width: 100%;
        height: 360px !important;
        min-height: 360px;
    }

    .send-message-lower {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .send-message-header,
    .send-message-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .send-message-danger,
    .send-message-submit {
        width: 100%;
    }
}

.game-site-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 45, 105, 0.28), transparent 28%),
        radial-gradient(circle at 82% 6%, rgba(255, 199, 83, 0.22), transparent 24%),
        linear-gradient(135deg, #080713 0%, #11162a 48%, #060712 100%);
    color: #f8fafc;
}

.game-site-body .shell,
.game-site-body .main {
    display: block;
    min-height: 100vh;
    width: 100%;
}

.casino-site {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 56px;
}

.casino-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 70px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(8, 10, 22, 0.78);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.casino-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.casino-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff2d69, #ffc453);
    color: #170510;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 0 32px rgba(255, 45, 105, 0.44);
}

.casino-brand strong {
    font-size: 16px;
    letter-spacing: 0.12em;
}

.casino-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
}

.casino-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #aeb8cc;
    font-size: 14px;
    font-weight: 700;
}

.casino-nav a:hover,
.casino-nav a.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.casino-userbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.casino-wallet {
    display: grid;
    gap: 2px;
    min-width: 132px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 196, 83, 0.2);
    border-radius: 14px;
    background: rgba(255, 196, 83, 0.08);
}

.casino-wallet span {
    color: #aeb8cc;
    font-size: 12px;
}

.casino-wallet strong {
    color: #ffd26a;
    font-size: 14px;
}

.casino-outline-btn,
.casino-primary-btn,
.casino-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.casino-outline-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.casino-primary-btn {
    background: linear-gradient(135deg, #ff2d69, #ff9d3d);
    color: #fff;
    box-shadow: 0 12px 26px rgba(255, 45, 105, 0.28);
}

.casino-secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #e8edf8;
}

.casino-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    margin-top: 24px;
    min-height: 520px;
    padding: 54px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    background:
        radial-gradient(circle at 72% 22%, rgba(255, 196, 83, 0.32), transparent 24%),
        linear-gradient(135deg, rgba(24, 28, 52, 0.95), rgba(9, 9, 18, 0.96));
    overflow: hidden;
    position: relative;
}

.casino-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 45, 105, 0.5), rgba(255, 196, 83, 0.2));
    filter: blur(4px);
    opacity: 0.7;
}

.casino-hero-copy,
.casino-hero-panel {
    position: relative;
    z-index: 1;
}

.casino-kicker,
.casino-section-heading span,
.casino-page-heading span {
    color: #ffd26a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.casino-hero h1 {
    max-width: 680px;
    margin: 18px 0 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.casino-hero p,
.casino-page-heading p,
.casino-launch-stage p {
    max-width: 620px;
    color: #aeb8cc;
    font-size: 17px;
    line-height: 1.7;
}

.casino-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.casino-hero-panel {
    align-self: end;
    min-height: 240px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.casino-jackpot-label {
    color: #ff7ca0;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.casino-hero-panel strong {
    display: block;
    margin: 22px 0 8px;
    color: #ffd26a;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.03em;
}

.casino-hero-panel span {
    color: #e8edf8;
}

.casino-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 34px;
}

.casino-stat-strip article {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
}

.casino-stat-strip span {
    display: block;
    color: #8d98b3;
    font-size: 13px;
}

.casino-stat-strip strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 24px;
}

.casino-section-heading,
.casino-page-heading {
    margin: 34px 0 18px;
}

.casino-section-heading h2,
.casino-page-heading h1 {
    margin: 6px 0 0;
    font-size: 34px;
}

.casino-game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.casino-game-grid-wide {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.casino-game-card,
.casino-lobby-card,
.casino-launch-stage,
.casino-launch-info {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.casino-game-card {
    min-height: 230px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.casino-game-card::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -48px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.casino-game-card.is-pink {
    background: linear-gradient(135deg, rgba(255, 45, 105, 0.26), rgba(255, 255, 255, 0.06));
}

.casino-game-card.is-blue {
    background: linear-gradient(135deg, rgba(93, 214, 255, 0.22), rgba(255, 255, 255, 0.06));
}

.casino-game-card.is-gold {
    background: linear-gradient(135deg, rgba(255, 196, 83, 0.24), rgba(255, 255, 255, 0.06));
}

.casino-game-type,
.casino-hot-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffd26a;
    font-size: 12px;
    font-weight: 900;
}

.casino-game-card h3 {
    margin: 42px 0 8px;
    font-size: 28px;
}

.casino-game-card p,
.casino-game-card a,
.casino-lobby-body p {
    color: #aeb8cc;
}

.casino-game-card a {
    display: inline-flex;
    margin-top: 18px;
    font-weight: 800;
}

.casino-provider-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.casino-provider-rail span,
.casino-filter-tabs button {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #e8edf8;
}

.casino-login-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    align-items: center;
    gap: 28px;
    min-height: 100vh;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0;
}

.casino-login-art {
    min-height: 560px;
    padding: 52px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 34px;
    background:
        radial-gradient(circle at 72% 18%, rgba(255, 196, 83, 0.26), transparent 28%),
        linear-gradient(135deg, rgba(255, 45, 105, 0.22), rgba(255, 255, 255, 0.06));
}

.casino-login-art h1 {
    margin: 18px 0 14px;
    font-size: clamp(44px, 6vw, 74px);
    line-height: 0.98;
}

.casino-login-art p {
    max-width: 520px;
    color: #aeb8cc;
    font-size: 17px;
    line-height: 1.7;
}

.casino-login-badges {
    display: flex;
    gap: 10px;
    margin-top: 36px;
}

.casino-login-badges span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 900;
}

.casino-login-card {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 28px;
    background: rgba(8, 10, 22, 0.86);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
}

.casino-login-title span {
    color: #ffd26a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.casino-login-title h2 {
    margin: 8px 0 24px;
    font-size: 28px;
}

.casino-login-field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.casino-login-field span {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
}

.casino-login-field input {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 0 14px;
    outline: 0;
}

.casino-login-field input:focus {
    border-color: #ff9d3d;
    box-shadow: 0 0 0 3px rgba(255, 157, 61, 0.15);
}

.casino-login-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 93, 122, 0.32);
    border-radius: 14px;
    background: rgba(255, 93, 122, 0.1);
    color: #ffb7c5;
    font-size: 13px;
}

.casino-login-submit {
    width: 100%;
    margin-top: 8px;
}

.casino-login-help {
    margin: 16px 0 0;
    color: #8d98b3;
    font-size: 13px;
    text-align: center;
}

.casino-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.casino-filter-tabs button {
    cursor: pointer;
}

.casino-filter-tabs button.is-active {
    border-color: rgba(255, 196, 83, 0.5);
    background: rgba(255, 196, 83, 0.15);
    color: #ffd26a;
}

.casino-lobby-card {
    position: relative;
    overflow: hidden;
}

.casino-hot-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ff2d69;
    color: #fff;
    z-index: 1;
}

.casino-lobby-visual {
    display: grid;
    place-items: center;
    min-height: 150px;
    background:
        radial-gradient(circle at center, rgba(255, 196, 83, 0.28), transparent 42%),
        linear-gradient(135deg, rgba(255, 45, 105, 0.2), rgba(93, 214, 255, 0.14));
}

.casino-lobby-visual span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.32);
    color: #ffd26a;
    font-size: 30px;
    font-weight: 900;
}

.casino-lobby-body {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.casino-lobby-body span {
    color: #ffd26a;
    font-size: 12px;
    font-weight: 900;
}

.casino-lobby-body h2 {
    margin: 0;
    font-size: 24px;
}

.casino-launch-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    margin-top: 24px;
}

.casino-launch-stage,
.casino-launch-info {
    padding: 28px;
}

.casino-launch-stage h1 {
    margin: 12px 0;
    font-size: 48px;
}

.casino-launch-screen {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 420px;
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: #050712;
    color: #ffd26a;
}

.casino-launch-screen i {
    font-size: 74px;
}

.casino-launch-info h2 {
    margin: 0 0 20px;
}

.casino-launch-info dl {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
}

.casino-launch-info dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.casino-launch-info dt {
    color: #8d98b3;
}

.casino-launch-info dd {
    margin: 0;
    font-weight: 800;
}

@media (max-width: 920px) {
    .casino-topbar,
    .casino-userbar,
    .casino-nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .casino-hero,
    .casino-login-page,
    .casino-launch-shell {
        grid-template-columns: 1fr;
    }

    .casino-hero {
        padding: 32px;
    }

    .casino-stat-strip,
    .casino-game-grid,
    .casino-game-grid-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .casino-site,
    .casino-login-page {
        width: min(100% - 24px, 1280px);
    }

    .casino-stat-strip,
    .casino-game-grid,
    .casino-game-grid-wide {
        grid-template-columns: 1fr;
    }

    .casino-login-art,
    .casino-login-card,
    .casino-hero {
        padding: 24px;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Malgun Gothic", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    display: flex;
    min-height: 100vh;
}

body.admin-body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

body.admin-body .shell {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 270px;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: #121722;
    border-right: 1px solid var(--line);
    padding: 10px 0 0;
    transition: width 0.2s ease;
}

body.admin-body .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    flex-shrink: 0;
    height: 100%;
    max-height: 100%;
    overflow: visible;
}

.sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: #2b3446;
    border-radius: 999px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0 0 10px;
    padding: 12px 8px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

body.admin-body .brand {
    position: sticky;
    top: 0;
    z-index: 4;
    flex-shrink: 0;
    background: #121722;
}

.brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.brand-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.brand-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.app-sidebar-refresh-btn,
.app-sidebar-minify-btn,
.app-sidebar-watcher-status {
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
}

@keyframes app-sidebar-watcher-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.app-sidebar-watcher-status {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 2px 4px;
    border-radius: 8px;
    flex: 0 0 auto;
    cursor: default;
    user-select: none;
}

.app-sidebar-watcher-status.is-active {
    border: 2px solid rgba(34, 197, 94, 0.9);
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.app-sidebar-watcher-status.is-inactive {
    border: 2px solid #3b4554;
    background: rgba(19, 127, 236, 0.2);
    color: #6b7280;
}

.app-sidebar-watcher-status.is-active #watcherStatusIcon {
    animation: app-sidebar-watcher-spin 2s linear infinite;
    color: #22c55e;
}

.app-sidebar-watcher-status.is-inactive #watcherStatusIcon {
    color: #6b7280;
}

.app-sidebar-watcher-status #watcherStatusIcon {
    font-size: 22px;
    line-height: 1;
}

.app-sidebar-watcher-status-label {
    font-size: 8px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.app-sidebar-watcher-status.is-active .app-sidebar-watcher-status-label {
    color: #22c55e;
}

.app-sidebar-watcher-status.is-inactive .app-sidebar-watcher-status-label {
    color: #6b7280;
}

.app-sidebar-watcher-status--top-metrics {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 26px;
    flex-direction: row;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 2px 8px;
    margin-right: 6px;
}

.app-sidebar-watcher-status--top-metrics #watcherStatusIcon {
    font-size: 16px;
}

.app-sidebar-watcher-status--top-metrics .app-sidebar-watcher-status-label {
    font-size: 10px;
    font-weight: 600;
}

.app-sidebar-refresh-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    border: 2px solid rgba(34, 197, 94, 0.9);
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
}

.app-sidebar-refresh-btn i {
    font-size: 16px;
    line-height: 1;
}

.app-sidebar-refresh-btn:hover {
    background: rgba(34, 197, 94, 0.3);
}

html.admin-theme-light .app-sidebar-refresh-btn {
    color: #14532d;
    border-color: #22c55e;
    background: #bbf7d0;
    font-weight: 700;
}

html.admin-theme-light .app-sidebar-refresh-btn i {
    color: #15803d;
}

html.admin-theme-light .app-sidebar-refresh-btn:hover {
    background: #86efac;
    border-color: #16a34a;
    color: #052e16;
}

html.admin-theme-light .app-sidebar-refresh-btn:hover i {
    color: #14532d;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.16em;
}

.app-sidebar-minify-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f472b6;
    text-decoration: none !important;
    line-height: 1;
    cursor: pointer;
    font: inherit;
}

.app-sidebar-minify-btn i {
    font-size: 26px;
    line-height: 1;
}

.app-sidebar-minify-btn:hover {
    color: #f9a8d4;
}

.menu-group {
    position: relative;
}

.menu-group-flyout-title {
    display: none;
}

.admin-menu-preview {
    position: fixed;
    z-index: 1400;
    min-width: 240px;
    max-width: 320px;
    max-height: min(420px, 70vh);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px 12px 12px;
    border: 1px solid #3b4554;
    border-radius: 10px;
    background: #1a2230;
    box-shadow: 12px 16px 40px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.admin-menu-preview-title {
    margin: 0 0 8px;
    color: #fdba74;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.admin-menu-preview-list {
    margin: 0;
    padding: 0 0 0 1.15em;
    color: #c8d0df;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    list-style: disc;
}

.admin-menu-preview-list li + li {
    margin-top: 4px;
}

.subordinate-partner-preview {
    position: fixed;
    z-index: 1400;
    width: max-content;
    max-width: calc(100vw - 8px);
    padding: 6px 10px;
    border: 1px solid #3b4554;
    border-radius: 6px;
    background: #1a2230;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    color: #c8d0df;
    white-space: nowrap;
}

.subordinate-partner-preview-line + .subordinate-partner-preview-line {
    margin-top: 3px;
}

html.admin-theme-light body.admin-body .subordinate-partner-preview {
    border-color: #dbe2ee;
    background: #fff;
    color: #475569;
    box-shadow: 2px 4px 10px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light body.admin-body .admin-menu-preview {
    border-color: #dbe2ee;
    background: #fff;
    box-shadow: 12px 16px 32px rgba(15, 23, 42, 0.14);
}

html.admin-theme-light body.admin-body .admin-menu-preview-title {
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .admin-menu-preview-list {
    color: #475569;
}

.brand-mark {
    display: block;
}

.sidebar .brand-copy .brand-mark {
    font-size: 16px;
    letter-spacing: 0.05em;
    line-height: 1.25;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cherry-icon {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 22px;
    flex: 0 0 auto;
}

.cherry-icon::before,
.cherry-icon::after {
    content: "";
    position: absolute;
    top: 0;
    width: 12px;
    height: 16px;
    border-top: 2px solid var(--leaf);
    border-radius: 50% 50% 0 0;
}

.cherry-icon::before {
    left: 10px;
    transform: rotate(-28deg);
}

.cherry-icon::after {
    right: 8px;
    transform: rotate(28deg);
}

.cherry-icon span {
    position: absolute;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #ff8aa5 0 12%, var(--cherry) 32%, var(--cherry-dark) 100%);
    box-shadow: 0 8px 18px rgba(231, 29, 72, 0.28);
}

.cherry-icon span:first-child {
    left: 1px;
}

.cherry-icon span:last-child {
    right: 1px;
}

.cherry-icon-large {
    width: 56px;
    height: 48px;
}

.cherry-icon-large span {
    width: 28px;
    height: 28px;
}

.cherry-icon-large::before,
.cherry-icon-large::after {
    width: 20px;
    height: 26px;
    border-top-width: 3px;
}

.mega-solution-mark {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.mega-solution-mark-large {
    width: 56px;
    height: 56px;
}

.nav-section {
    margin-bottom: 0;
}

.nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 18px 8px 42px;
    margin-bottom: 0;
    border-radius: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.3;
}

.submenu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #9aa6bd;
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
}

.submenu-image-icon {
    object-fit: contain;
}

.nav a .submenu-icon.partner-type-badge,
.login-history-topbar-title .submenu-icon.partner-type-badge {
    flex-shrink: 0;
}

.nav a.active .submenu-icon.partner-type-badge {
    color: inherit;
    filter: none;
}

.nav a:hover,
.menu-group summary:hover,
.sidebar-bottom button.sidebar-logout:hover {
    background: #20283b !important;
    color: #fff !important;
}

.nav a.active {
    margin-left: 8px;
    margin-right: 8px;
    padding-left: 34px;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.25) !important;
    color: #fdba74 !important;
    font-weight: 600;
    box-shadow: inset 0 0 0 2px rgba(251, 146, 60, 0.85);
}

.nav a.active:hover {
    background: rgba(249, 115, 22, 0.32) !important;
    color: #fed7aa !important;
}

.nav a.active::before {
    display: none;
}

.nav a.active .submenu-icon {
    color: #fb923c !important;
}

.nav a.active .submenu-image-icon {
    filter: drop-shadow(0 0 5px rgba(251, 146, 60, 0.55));
}

.menu-group summary:hover .menu-icon {
    color: #fff;
}

.nav a:hover .submenu-icon {
    color: #fff;
}

.nav a.active:hover .submenu-icon {
    color: #fb923c !important;
}

.standalone-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    margin: 4px 0;
    padding: 8px 12px;
    border-radius: 8px;
    color: #d6ddeb;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.standalone-nav-link:hover {
    background: #20283b !important;
    color: #fff !important;
}

.standalone-nav-link.active {
    background: rgba(249, 115, 22, 0.25) !important;
    color: #fdba74 !important;
    box-shadow: inset 0 0 0 2px rgba(251, 146, 60, 0.85);
}

.standalone-nav-link.active:hover {
    background: rgba(249, 115, 22, 0.32) !important;
    color: #fed7aa !important;
}

.standalone-nav-link.active .menu-icon {
    color: #fb923c !important;
}

.sidebar-logout {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.menu-page-text {
    padding: 20px;
}

.menu-page-group {
    margin: 0 0 8px;
    color: #8d98b3;
    font-size: 12px;
}

.menu-group {
    display: block;
    position: relative;
}

.menu-group summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    color: #d6ddeb;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.menu-group summary::-webkit-details-marker {
    display: none;
}

.menu-group summary::after {
    content: "›";
    margin-left: auto;
    color: #77849c;
    font-size: 16px;
    transition: transform 0.15s ease;
}

.menu-group[open] summary::after {
    transform: rotate(90deg);
}

.hq-only-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.hq-only-mark {
    display: inline-flex;
    height: 14px;
    width: 14px;
    flex: 0 0 14px;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    border: 1px solid currentColor;
    background: transparent;
    color: #ede9fe;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.metric-button .hq-only-mark,
.subordinate-root-create-btn .hq-only-mark {
    margin-right: 2px;
}

.top-metrics .metric-button .hq-only-mark {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
}

.user-detail-login-log-btn .hq-only-mark {
    margin-right: 6px;
}

.user-detail-expansion-title .hq-only-mark {
    margin-right: 6px;
}

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #9aa6bd;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
}

.menu-icon::before {
    font-size: inherit;
    line-height: 1;
}

.main {
    flex: 1;
    min-width: 0;
    padding: 10px;
}

body.admin-body .main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

body.admin-body .admin-page-shell {
    flex: 0 0 auto;
    margin-bottom: 0;
    padding: 0 10px;
}

body.admin-body .mobile-topbar {
    flex: 0 0 auto;
}

.admin-page-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20050;
    width: 0;
    height: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(90deg, #059669 0%, #34d399 55%, #6ee7b7 100%);
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.75);
    opacity: 0;
    pointer-events: none;
    transition: width 0.28s ease, opacity 0.18s ease;
}

.admin-page-loading-bar.is-active {
    opacity: 1;
}

.admin-page-loading-bar.is-complete {
    transition: width 0.22s ease, opacity 0.22s ease;
}

.admin-page-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 20040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(12, 17, 24, 0.48);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.admin-page-loading-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.admin-page-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-width: 168px;
    padding: 22px 26px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 14px;
    background:
        linear-gradient(165deg, rgba(52, 211, 153, 0.12) 0%, transparent 45%),
        linear-gradient(180deg, #2a323d 0%, #222933 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.25),
        0 18px 40px rgba(0, 0, 0, 0.45);
}

.admin-page-loading-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(52, 211, 153, 0.22);
    border-top-color: #34d399;
    border-radius: 50%;
    animation: admin-page-loading-spin 0.75s linear infinite;
}

@keyframes admin-page-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.admin-page-loading-text {
    margin: 0;
    color: #d1fae5;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

html.admin-page-is-loading body.admin-body .admin-main-scroll {
    pointer-events: none;
}

body.admin-body .admin-main-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
}

/* 회원·접속자 목록: 필터 고정 · 테이블(#members-table-scroll)만 세로 스크롤 */
body.admin-body .admin-main-scroll:has(> .members-page-container) {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}

body.admin-body .admin-main-scroll > .members-page-container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.members-page-container > .page-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.members-page-container .members-list-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.members-page-container #members-list-filter-form {
    flex: 0 0 auto;
}

.members-page-container .members-list-layout {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
}

.members-page-container .members-tree-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}

.members-page-container .members-tree-section .partners-tree-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.members-page-container .partners-list-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* admin-page-shell(0 10px) · dash-sticky-head 과 본문 좌우 시작선 맞춤 */
body.admin-body .admin-main-scroll > .page-container {
    padding-left: 0;
    padding-right: 0;
}

body.admin-body .admin-main-scroll > .notice {
    margin: 0 0 12px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-actions {
    display: grid;
    gap: 0;
    margin-bottom: 8px;
    padding: 0 12px;
}

.sidebar-pill {
    display: block;
    min-height: 40px;
    padding: 11px 12px;
    border-radius: 4px;
    background: #1b2230;
    color: #c8d0df;
    font-size: 12px;
    font-weight: 700;
}

.sidebar-pill.active,
.primary-nav a.active {
    background: #20283b;
    color: #fff;
}

.user-info-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    width: 268px;
    min-height: 88px;
    margin: 0 16px 10px;
    padding: 16px;
    border-radius: 4px;
    background: #1b2230;
    color: #dce3f1;
}

.brand .user-info-container {
    position: relative;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 4px 0 8px;
}

.user-info-ace-balance-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    min-width: 0;
}

.user-info-monster-chip {
    position: static;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    padding: 3px 11px;
    border: 2px solid #a855f7;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(88, 28, 135, 0.55) 0%, rgba(26, 22, 40, 0.98) 100%);
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.35),
        0 4px 14px rgba(88, 28, 135, 0.35);
}

.user-info-monster-chip strong {
    color: #e9d5ff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.user-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
}

.user-info-container strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
}

.user-info-container span {
    display: block;
    color: #aeb8cc;
    font-size: 14px;
    font-weight: 700;
}

.user-info-ace-credit {
    align-items: flex-start;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(174, 184, 204, 0.18);
}

.user-info-ace-credit.is-balance-only {
    padding-bottom: 6px;
}

.user-info-ace-credit.is-balance-only .user-info-ace-credit-text {
    width: 100%;
    min-width: 0;
}

.user-info-ace-credit.is-al-sale-minibon-held {
    margin: 2px 8px 8px;
    padding: 10px 14px;
    border: 1px solid rgba(251, 146, 60, 0.34);
    border-radius: 10px;
    border-bottom: 1px solid rgba(251, 146, 60, 0.34);
    background: linear-gradient(
        135deg,
        rgba(251, 146, 60, 0.16) 0%,
        rgba(26, 34, 48, 0.96) 52%,
        rgba(129, 140, 248, 0.12) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 4px 14px rgba(0, 0, 0, 0.22);
}

.user-info-ace-credit.is-al-sale-minibon-held .user-info-ace-credit-text {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}

.user-info-ace-credit.is-al-sale-minibon-held .user-info-ace-label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.user-info-ace-credit.is-al-sale-minibon-held .user-info-ace-label,
.user-info-ace-credit.is-al-sale-minibon-held .user-info-ace-label > span {
    display: inline !important;
    color: #fdba74 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

.user-info-ace-credit.is-al-sale-minibon-held .user-info-ace-balance-row {
    flex: 0 0 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
}

.user-info-ace-credit.is-al-sale-minibon-held .user-info-al-held-tooltip-host {
    display: inline-flex;
    align-items: baseline;
}

.user-info-ace-credit.is-al-sale-minibon-held .user-info-al-held-tooltip-host .user-info-ace-balance {
    display: inline !important;
    color: #fde68a !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    text-shadow: 0 0 16px rgba(251, 191, 36, 0.22);
}

.user-info-ace-credit.is-al-sale-minibon-held .user-info-al-held-tooltip-host:hover .user-info-ace-balance {
    text-decoration: underline dotted rgba(253, 224, 71, 0.55);
    text-underline-offset: 3px;
}

html.admin-theme-light .user-info-ace-credit.is-al-sale-minibon-held {
    border-color: rgba(234, 88, 12, 0.35);
    background: linear-gradient(
        135deg,
        rgba(255, 237, 213, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 55%,
        rgba(224, 231, 255, 0.85) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 12px rgba(15, 23, 42, 0.08);
}

html.admin-theme-light .user-info-ace-credit.is-al-sale-minibon-held .user-info-ace-label > span {
    color: #c2410c !important;
}

html.admin-theme-light .user-info-ace-credit.is-al-sale-minibon-held .user-info-al-held-tooltip-host .user-info-ace-balance {
    color: #a16207 !important;
    text-shadow: none;
}

.user-info-ace-credit.is-balance-only .user-info-ace-label .hq-only-label > span:not(.hq-only-mark):not(.is-visually-hidden) {
    font-size: 12px;
}

.user-info-al-held-tooltip-host {
    position: relative;
    display: inline-block;
    cursor: help;
}

.user-info-al-held-tooltip-host .user-info-ace-balance {
    text-decoration: underline dotted rgba(253, 224, 71, 0.45);
    text-underline-offset: 3px;
}

.user-info-al-held-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 1200;
    width: max-content;
    max-width: min(280px, calc(100vw - 24px));
    padding: 10px 12px;
    border-radius: 8px;
    background: #111827;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    border: 1px solid #475569;
    pointer-events: none;
    transition: opacity 0.12s ease, visibility 0.12s ease;
}

.user-info-al-held-tooltip-line {
    display: block;
    margin-bottom: 6px;
}

.user-info-al-held-tooltip-line strong {
    display: block;
    margin-top: 2px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
}

.user-info-al-held-tooltip-formula {
    display: block;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    color: #fde047;
    font-weight: 700;
}

.user-info-al-held-tooltip-formula strong {
    color: #fde047;
}

.user-info-al-held-tooltip-host:hover .user-info-al-held-tooltip {
    visibility: visible;
    opacity: 1;
}

html.admin-theme-light .user-info-al-held-tooltip {
    background: #fff;
    color: #0f172a;
    border-color: #cbd5e1;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.15);
}

html.admin-theme-light .user-info-al-held-tooltip-line strong {
    color: #334155;
}

html.admin-theme-light .user-info-al-held-tooltip-formula {
    color: #a16207;
    border-top-color: #e2e8f0;
}

html.admin-theme-light .user-info-al-held-tooltip-formula strong {
    color: #a16207;
}

.user-info-ace-credit + .user-info-stat-card {
    margin-top: 10px;
}

.user-info-stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 4px 10px 8px;
    border: 2px solid rgba(103, 232, 249, 0.72);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(26, 36, 51, 0.92) 46%, rgba(99, 102, 241, 0.3));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.user-info-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    min-width: 0;
    position: relative;
}

.user-info-stat-card--head-master.is-collapsed .user-info-stat-body {
    display: none;
}

.user-info-stat-card--head-master.is-collapsed .user-info-stat-toggle--expanded {
    display: none;
}

.user-info-stat-card--head-master:not(.is-collapsed) .user-info-stat-toggle--collapsed {
    display: none;
}

.user-info-stat-al-main {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.user-info-stat-card--head-master .user-info-stat-al {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.user-info-stat-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.user-info-stat-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
}

.user-info-stat-toggle .mdi {
    font-size: 18px;
    line-height: 1;
}

html.admin-theme-light .user-info-stat-toggle {
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.85);
    color: #475569;
}

html.admin-theme-light .user-info-stat-toggle:hover {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.22);
}

/* 마스터(본사): 브랜드·내정보 ↔ 첫 메뉴(대시보드) 사이 여백 */
body.admin-body.has-partner-tree-shop-command .brand {
    gap: 4px;
    margin-bottom: 6px;
    padding-bottom: 5px;
}

body.admin-body.has-partner-tree-shop-command .brand .user-info-container {
    gap: 4px;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

body.admin-body.has-partner-tree-shop-command .user-info-ace-credit + .user-info-stat-card {
    margin-top: 2px;
}

.user-info-stat-card--head-master.is-collapsed {
    margin-top: 0;
    padding: 3px 4px 3px 8px;
    gap: 0;
}

body.admin-body.has-partner-tree-shop-command .sidebar-scroll {
    padding-top: 3px;
    margin-top: 0;
}

body.admin-body .sidebar-scroll > a.standalone-nav-link:first-child {
    margin-top: 3px;
}

/* 관리자 사이드바 메뉴 상·하 여백 축소 */
body.admin-body .sidebar-scroll .nav a {
    min-height: 34px;
    padding-top: 3px;
    padding-bottom: 3px;
}

body.admin-body .sidebar-scroll .standalone-nav-link {
    min-height: 34px;
    margin: 0;
    padding-top: 3px;
    padding-bottom: 3px;
}

body.admin-body .sidebar-scroll .menu-group summary {
    min-height: 40px;
}

body.admin-body .sidebar-scroll .menu-divider {
    margin-top: 2px;
    margin-bottom: 2px;
}

body.admin-body .sidebar-scroll .sidebar-bottom a,
body.admin-body .sidebar-scroll .sidebar-bottom button.sidebar-logout {
    min-height: 40px;
}

.user-info-stat-head-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.user-info-stat-head-meta .user-info-stat-login {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.user-info-my-info-btn {
    flex-shrink: 0;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.user-info-my-info-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff !important;
}

.user-info-stat-role {
    display: block;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.user-info-stat-login {
    display: block;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.user-info-stat-al,
.user-info-stat-rolling,
.user-info-stat-rolling-money,
.user-info-stat-losing {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.user-info-stat-card .user-info-stat-label {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    border: 1px solid transparent;
}

.user-info-stat-al .user-info-stat-label {
    color: #fde68a;
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.42);
}

.user-info-stat-rolling .user-info-stat-label {
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.42);
}

.user-info-stat-rolling-money .user-info-stat-label {
    color: #bfdbfe;
    background: rgba(147, 197, 253, 0.18);
    border-color: rgba(147, 197, 253, 0.4);
}

.user-info-stat-losing .user-info-stat-label {
    color: #86efac;
    background: rgba(74, 222, 128, 0.18);
    border-color: rgba(74, 222, 128, 0.42);
}

.user-info-stat-al {
    margin-top: 4px;
    color: #fbbf24;
}

.user-info-stat-al strong,
.user-info-stat-rolling-money strong {
    display: inline !important;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.user-info-stat-divider {
    width: 100%;
    height: 1px;
    margin: 6px 0;
    background: #3b4554;
}

.user-info-stat-rates {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.user-info-stat-rolling,
.user-info-stat-losing {
    flex-wrap: nowrap;
}

.user-info-rate-pairs {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
}

.user-info-rate-item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 5px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.user-info-stat-card .user-info-rate-pairs,
.user-info-stat-card .user-info-rate-item {
    display: inline-flex;
}

.user-info-stat-card .user-info-rate-item > span:not(.top-line-realtime-tag) {
    display: inline;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.user-info-stat-card .user-info-rate-item .top-line-realtime-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    box-sizing: border-box;
}

.user-info-stat-card .user-info-rate-item .top-line-realtime-tag-slot {
    color: #0f172a;
    background: rgba(0, 217, 255, 0.92);
}

.user-info-stat-card .user-info-rate-item .top-line-realtime-tag-casino {
    color: #fff;
    background: rgba(168, 85, 247, 0.88);
}

.user-info-stat-rolling {
    color: #38bdf8;
}

.user-info-stat-rolling-money {
    color: #93c5fd;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.user-info-rolling-convert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(125, 211, 252, 0.45);
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.user-info-rolling-convert-btn:hover {
    background: rgba(56, 189, 248, 0.28);
}

.rolling-convert-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 0 0 16px;
}

.rolling-convert-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    background: rgba(14, 116, 144, 0.18);
    color: #9ec8d8;
    font-size: 13px;
    font-weight: 700;
}

.rolling-convert-summary-card strong {
    color: #7dd3fc;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.rolling-convert-amount-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 280px;
    min-width: 240px;
    max-width: 520px;
}

.rolling-convert-amount-label {
    font-size: 12px;
    font-weight: 700;
    color: #9ec8d8;
}

.rolling-convert-amount-input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #111418;
    color: #e8edf8;
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.rolling-convert-amount-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

.rolling-convert-amount-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rolling-convert-page-btn {
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #0284c7;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.rolling-convert-page-btn:hover {
    background: #0369a1;
}

.rolling-convert-datetime {
    white-space: nowrap;
    min-width: 118px;
}

.rolling-convert-table .rolling-convert-ip {
    white-space: nowrap;
}

.rolling-convert-table.partners-data-table thead th,
.rolling-convert-table.notice-admin-table thead th {
    font-size: 12px;
}

.rolling-convert-amount {
    color: #38bdf8;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.rolling-convert-total-row td {
    background: #151b25;
    color: #e8edf8;
    font-size: 15px;
    font-weight: 800;
    border-top: 1px solid #293241;
}

.rolling-convert-table-layout {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
}

.rolling-convert-tree-section {
    flex: 0 0 200px;
    width: 200px;
    max-width: 200px;
}

.rolling-convert-table-main {
    min-width: 0;
    flex: 1 1 auto;
}

.rolling-convert-total-row td:first-child {
    white-space: nowrap;
}

.user-info-stat-losing {
    color: #4ade80;
}

.user-info-ace-logo {
    display: block;
    width: 40px;
    height: 24px;
    margin-top: 2px;
    object-fit: contain;
    object-position: left center;
    flex: 0 0 auto;
}

.user-info-ace-logo.is-mega {
    width: 120px;
    height: 36px;
}

.user-info-ace-credit-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.user-info-ace-label {
    color: #8fa0bd !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2;
}

.user-info-ace-label .hq-only-label {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    max-width: 100%;
}

.user-info-ace-label .hq-only-label > span:not(.hq-only-mark) {
    display: inline !important;
    min-width: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: 1.25;
}

.user-info-ace-label .hq-only-mark {
    display: inline-flex !important;
    flex: 0 0 14px;
    margin: 0;
}

.user-info-ace-agent {
    display: inline !important;
    color: #7ea6ff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.user-info-ace-balance {
    flex: 0 1 auto;
    color: #ffd27a !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.user-info-ace-balance-row .user-info-ace-balance {
    display: inline-block;
}

.menu-divider {
    margin: 8px 16px;
    border: 0;
    border-top: 1px solid rgba(132, 144, 170, 0.35);
}

.sidebar-bottom {
    display: grid;
    gap: 0;
    padding: 0;
    color: #c8d0df;
    font-size: 12px;
}

.sidebar-bottom a,
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    color: #dce3f1;
    font-weight: 800;
}

.sound-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 12px;
    color: #c8d0df;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.sound-toggle input {
    width: 16px;
    height: 16px;
    accent-color: #5dd6ff;
    cursor: pointer;
}

.sound-toggle:hover {
    background: #20283b !important;
    color: #fff !important;
}

.top-shell,
.admin-page-shell {
    margin-bottom: 2px;
}

.top-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 6px;
}

.top-line-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.top-line-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
    min-height: 44px;
}

.top-line-realtime {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.1), rgba(49, 93, 255, 0.1));
    color: #00d9ff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.top-line-realtime-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.top-line-realtime-link:hover {
    color: #5eeaff;
}

.top-line-realtime .mdi {
    font-size: 18px;
}

.top-line-realtime:hover {
    border-color: rgba(0, 217, 255, 0.35);
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.18), rgba(49, 93, 255, 0.18));
    color: #5eeaff;
}

.top-line-realtime strong {
    color: inherit;
    font-weight: 700;
}

.top-line-realtime-counts {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.top-line-realtime-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-line-realtime-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.top-line-realtime-tag-partner {
    color: #fff;
    background: rgba(245, 158, 11, 0.92);
}

.top-line-realtime-tag-slot {
    color: #0f172a;
    background: rgba(0, 217, 255, 0.92);
}

.top-line-realtime-tag-casino {
    color: #fff;
    background: rgba(168, 85, 247, 0.88);
}

.top-line-realtime-tag-reel {
    color: #0f172a;
    background: rgba(34, 197, 94, 0.92);
}

.top-line-action-group,
.top-line-sound-group {
    position: relative;
}

.top-line-icon-btn,
.top-line-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #878792;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.top-line-icon-btn:not(.top-line-logout-btn):hover,
.top-line-theme-btn:hover {
    background: #20283b;
    color: #e8edf8;
}

#top-line-sound-btn:hover,
#top-line-sound-btn.is-open {
    background: #20283b;
    color: #00d9ff;
}

.top-line-logout-form {
    margin: 0;
}

#top-line-sound-btn {
    color: #00d9ff;
}

#top-line-sound-btn[aria-pressed="true"],
#top-line-sound-btn[aria-pressed="true"]:hover,
#top-line-sound-btn[aria-pressed="true"].is-open {
    color: #878792;
}

.top-line-theme-btn {
    color: #878792;
}

.top-line-logout-btn {
    color: #ef4444;
}

.top-line-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.sidebar-bottom button.sidebar-logout {
    color: #ef4444;
}

.sidebar-bottom button.sidebar-logout .menu-icon {
    color: #ef4444;
}

.sidebar-bottom button.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

.sidebar-bottom button.sidebar-logout:hover .menu-icon {
    color: #ef4444 !important;
}

html.admin-theme-light .top-line-theme-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

html.admin-theme-light #top-line-sound-btn:hover,
html.admin-theme-light #top-line-sound-btn.is-open {
    background: #f1f5f9;
    color: #00d9ff;
}

html.admin-theme-light .top-line-logout-btn {
    color: #dc2626;
}

html.admin-theme-light .top-line-logout-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.top-line-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

@keyframes top-line-alert-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-line-alert-panel[hidden],
.top-line-sound-panel[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.top-line-alert-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 9999;
    width: min(384px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid #252d3c;
    border-radius: 12px;
    background: #0d1320;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
    animation: top-line-alert-fade-in 0.15s ease;
}

html.admin-theme-light .top-line-alert-panel {
    background: #ffffff;
    border-color: #dbe2ee;
}

.top-line-alert-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #252d3c;
}

html.admin-theme-light .top-line-alert-panel-head {
    border-bottom-color: #dbe2ee;
}

.top-line-alert-panel-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.top-line-alert-panel-head strong {
    color: #e8edf8;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

html.admin-theme-light .top-line-alert-panel-head strong {
    color: #1f2937;
}

.top-line-alert-panel-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-line-alert-panel-select-all,
.top-line-alert-panel-ack-all,
.top-line-alert-panel-clear-selected,
.top-line-alert-panel-tool {
    flex-shrink: 0;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.top-line-alert-panel-tool {
    border: 1px solid rgba(19, 127, 236, 0.45);
    background: rgba(19, 127, 236, 0.18);
    color: #93c5fd;
}

.top-line-alert-panel-tool:hover {
    background: rgba(19, 127, 236, 0.28);
    border-color: rgba(19, 127, 236, 0.65);
    color: #bfdbfe;
}

.top-line-alert-panel-tool.is-active {
    background: rgba(19, 127, 236, 0.38);
    border-color: rgba(19, 127, 236, 0.75);
    color: #e0f2fe;
}

.top-line-alert-panel-select-all {
    border: 1px solid rgba(0, 217, 255, 0.35);
    background: rgba(0, 217, 255, 0.08);
    color: #7dd3fc;
}

.top-line-alert-panel-select-all:hover {
    background: rgba(0, 217, 255, 0.16);
    border-color: rgba(0, 217, 255, 0.55);
    color: #bae6fd;
}

.top-line-alert-panel-ack-all {
    border: 1px solid rgba(249, 115, 22, 0.45);
    background: rgba(249, 115, 22, 0.12);
    color: #fdba74;
}

.top-line-alert-panel-ack-all:hover {
    background: rgba(249, 115, 22, 0.22);
    border-color: rgba(249, 115, 22, 0.65);
    color: #fed7aa;
}

.top-line-alert-panel-clear-selected {
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.top-line-alert-panel-clear-selected:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.55);
    color: #fecaca;
}

.top-line-alert-panel-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.top-line-alert-panel-body[hidden] {
    display: none !important;
}

.top-line-alert-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 336px;
    overflow-y: auto;
}

.top-line-alert-empty {
    margin: 0;
    padding: 24px 8px;
    color: #878792;
    font-size: 13px;
    text-align: center;
}

.top-line-alert-item-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 6px 8px;
    border-radius: 10px;
    border-left: 3px solid transparent;
}

.top-line-alert-item-row.is-badge-count {
    border-left-color: #f97316;
    background: rgba(249, 115, 22, 0.08);
}

.top-line-alert-item-row.is-badge-metric {
    border-left-color: #00d9ff;
    background: rgba(0, 217, 255, 0.06);
}

.top-line-alert-item-row.is-acknowledged {
    opacity: 0.72;
}

.top-line-alert-item-row.is-acknowledged.is-badge-count,
.top-line-alert-item-row.is-acknowledged.is-badge-metric {
    border-left-color: rgba(255, 255, 255, 0.15);
    background: rgba(32, 40, 59, 0.35);
}

.top-line-alert-item-row:hover {
    filter: brightness(1.06);
}

.top-line-alert-item-check {
    display: inline-flex;
    align-items: flex-start;
    padding-top: 2px;
    cursor: pointer;
}

.top-line-alert-item-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #00d9ff;
    cursor: pointer;
}

.top-line-alert-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.top-line-alert-item-icons {
    display: inline-flex;
    gap: 2px;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
}

.top-line-alert-item-content {
    min-width: 0;
}

.top-line-alert-item-content strong {
    display: block;
    color: #e8edf8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.top-line-alert-item-content em {
    display: block;
    margin-top: 2px;
    color: #878792;
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
    word-break: keep-all;
}

html.admin-theme-light .top-line-alert-item-content strong {
    color: #1f2937;
}

html.admin-theme-light .top-line-alert-item-content em {
    color: #64748b;
}

.top-line-alert-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.top-line-alert-read-status {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.top-line-alert-read-status.is-unread {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

.top-line-alert-read-status.is-read {
    background: rgba(100, 116, 139, 0.22);
    color: #94a3b8;
}

.top-line-alert-item-at {
    flex-shrink: 0;
    color: #878792;
    font-size: 11px;
    white-space: nowrap;
}

.top-line-alert-retention {
    margin-bottom: 16px;
}

.top-line-alert-retention-select {
    width: 100%;
    height: 36px;
    padding: 0 34px 0 12px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background-color: #121722;
    color: #e8edf8;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.top-line-alert-retention-select:focus {
    outline: 0;
    border-color: #315dff;
}

.top-line-alert-volume {
    margin-bottom: 16px;
}

.top-line-alert-volume-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #d7deee;
    font-size: 13px;
    font-weight: 600;
}

html.admin-theme-light .top-line-alert-volume-head {
    color: #1f2937;
}

.top-line-alert-volume-head strong {
    color: #00d9ff;
    font-size: 13px;
    font-weight: 700;
}

.top-line-alert-volume-range {
    width: 100%;
    height: 4px;
    margin: 0;
    accent-color: #00d9ff;
    cursor: pointer;
}

.top-line-alert-types-title {
    margin: 0 0 10px;
    color: #878792;
    font-size: 12px;
    font-weight: 600;
}

.top-line-alert-type-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-line-alert-type-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 36px;
    padding: 0 2px;
    cursor: pointer;
}

.top-line-alert-type-label {
    color: #d7deee;
    font-size: 13px;
    line-height: 1.35;
}

html.admin-theme-light .top-line-alert-type-label {
    color: #334155;
}

.top-line-alert-type-toggle {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 20px;
    margin: 0;
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #2e3852;
    cursor: pointer;
    transition: background 0.15s ease;
}

.top-line-alert-type-toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.15s ease;
}

.top-line-alert-type-toggle:checked {
    background: #00d9ff;
}

.top-line-alert-type-toggle:checked::after {
    transform: translateX(16px);
}

.top-line-icon-btn.is-open {
    background: #20283b;
    color: #e8edf8;
}

#top-line-alert-btn.is-open {
    color: #00d9ff;
}

.top-line-alert-detail-dialog[hidden] {
    display: none !important;
}

.top-line-alert-detail-dialog {
    position: fixed;
    inset: 0;
    z-index: 10050;
}

.top-line-alert-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.top-line-alert-detail-card {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100% - 32px));
    max-height: min(88vh, 640px);
    margin: 8vh auto 0;
    padding: 0 20px 16px;
    overflow: auto;
    border: 1px solid #252d3c;
    border-radius: 14px;
    background: #0d1320;
    color: #e8edf8;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.top-line-alert-detail-card.is-dragging {
    user-select: none;
    cursor: grabbing;
}

.top-line-alert-detail-drag-handle {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 -20px;
    padding: 20px 20px 12px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    background: linear-gradient(to bottom, #0d1320 70%, rgba(13, 19, 32, 0));
}

.top-line-alert-detail-drag-handle:active {
    cursor: grabbing;
}

.top-line-alert-detail-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.top-line-alert-detail-summary {
    margin: 0 0 14px;
    color: #878792;
    font-size: 13px;
    line-height: 1.45;
}

.top-line-alert-detail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 16px;
}

.top-line-alert-detail-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(32, 40, 59, 0.55);
}

.top-line-alert-detail-row dt {
    margin: 0;
    color: #878792;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.top-line-alert-detail-row dd {
    margin: 0;
    color: #e8edf8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-all;
}

.top-line-alert-detail-row.is-emphasis {
    border: 1px solid rgba(249, 115, 22, 0.5);
    background: rgba(249, 115, 22, 0.14);
}

.top-line-alert-detail-row.is-emphasis dt {
    color: #ffb347;
    font-weight: 700;
}

.top-line-alert-detail-row.is-emphasis dd {
    color: #fdba74;
    font-size: 14px;
    font-weight: 800;
}

.top-line-alert-detail-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
}

.top-line-alert-detail-action-group {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

.top-line-alert-detail-action-group .top-line-alert-detail-link {
    flex: 0 0 auto;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.top-line-alert-detail-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: rgba(0, 217, 255, 0.12);
    color: #00d9ff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.top-line-alert-detail-link:hover {
    background: rgba(0, 217, 255, 0.2);
}

.top-line-alert-detail-confirm-btn {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 148px;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(to right, #f97316, #ea580c);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

.top-line-alert-detail-confirm-btn:hover {
    filter: brightness(1.06);
}

.top-line-alert-detail-delete-btn {
    flex: 0 0 auto;
    min-width: 56px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.top-line-alert-detail-delete-btn:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.6);
    color: #fecaca;
}

.top-line-alert-detail-close-btn {
    flex: 0 0 auto;
    min-width: 72px;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #20283b;
    color: #e8edf8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.top-line-alert-detail-close-btn:hover {
    background: #2a344c;
}

.top-line-sound-panel[hidden] {
    display: none !important;
}

.top-line-sound-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 9999;
    width: min(320px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid #252d3c;
    border-radius: 12px;
    background: #0d1320;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
    animation: top-line-alert-fade-in 0.15s ease;
}

html.admin-theme-light .top-line-sound-panel {
    background: #ffffff;
    border-color: #dbe2ee;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.top-line-sound-panel-head {
    min-height: 42px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(46, 56, 82, 0.55);
    background: #111827;
}

.top-line-sound-panel-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.top-line-sound-panel-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

html.admin-theme-light .top-line-sound-panel-head {
    border-bottom-color: #e5e7eb;
    background: #f9fafb;
}

.top-line-sound-panel-head strong {
    color: #e8edf8;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

html.admin-theme-light .top-line-sound-panel-head strong {
    color: #111827;
}

.top-line-sound-panel-badge {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

html.admin-theme-light .top-line-sound-panel-badge {
    color: #6b7280;
}

.top-line-sound-master-toggle {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #06b6d4, #a855f7);
    cursor: pointer;
    transition: background 0.15s ease;
}

.top-line-sound-master-toggle.is-off {
    background: #374151;
}

.top-line-sound-master-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
    transition: transform 0.15s ease;
}

.top-line-sound-master-toggle:not(.is-off) .top-line-sound-master-thumb {
    transform: translateX(20px);
}

.top-line-sound-panel-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 469px;
    padding: 16px;
    overflow-y: auto;
}

.top-line-sound-panel-body[hidden] {
    display: none !important;
}

.top-line-sound-section-title {
    margin: 0 0 4px;
    color: #e8edf8;
    font-size: 13px;
    font-weight: 700;
}

.top-line-sound-section-desc {
    margin: 0;
    color: #878792;
    font-size: 12px;
    line-height: 1.45;
}

html.admin-theme-light .top-line-sound-section-title {
    color: #1f2937;
}

html.admin-theme-light .top-line-sound-section-desc {
    color: #64748b;
}

.top-line-sound-volume-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #d7deee;
    font-size: 13px;
    font-weight: 600;
}

.top-line-sound-volume-head strong {
    color: #00d9ff;
    font-size: 13px;
}

html.admin-theme-light .top-line-sound-volume-head {
    color: #1f2937;
}

html.admin-theme-light .top-line-sound-volume-head strong {
    color: #0284c7;
}

.top-line-sound-repeat-box {
    margin-bottom: 4px;
    padding: 10px 12px;
    border: 1px solid #252d3c;
    border-radius: 8px;
    background: rgba(32, 40, 59, 0.3);
}

html.admin-theme-light .top-line-sound-repeat-box {
    border-color: #dbe2ee;
    background: rgba(244, 246, 250, 0.85);
}

.top-line-sound-repeat-box .top-line-sound-section-title {
    margin-bottom: 0;
}

.top-line-sound-repeat-box .top-line-sound-section-desc {
    margin-top: 2px;
    line-height: 1.3;
}

.top-line-sound-repeat-divider {
    height: 1px;
    margin: 4px 0;
    background: rgba(46, 56, 82, 0.55);
}

html.admin-theme-light .top-line-sound-repeat-divider {
    background: #e5e7eb;
}

.top-line-sound-repeat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 28px;
    margin-top: 0;
    color: #d7deee;
    font-size: 13px;
    cursor: pointer;
}

html.admin-theme-light .top-line-sound-repeat-row {
    color: #334155;
}

.top-line-sound-repeat-box .top-line-sound-repeat-select,
.top-line-sound-repeat-box .top-line-sound-repeat-count {
    height: 28px;
    min-width: 64px;
    padding: 0 8px;
    font-size: 12px;
}

.top-line-sound-type-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.top-line-sound-type-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.top-line-sound-type-row:hover {
    background: rgba(32, 40, 59, 0.5);
}

html.admin-theme-light .top-line-sound-type-row:hover {
    background: rgba(244, 246, 250, 0.9);
}

.top-line-sound-type-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 34px;
}

.top-line-sound-type-label {
    color: #d7deee;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

html.admin-theme-light .top-line-sound-type-label {
    color: #334155;
}

.top-line-sound-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #20283b;
    font-size: 18px;
    line-height: 1;
}

html.admin-theme-light .top-line-sound-type-icon {
    background: #f1f5f9;
}

.top-line-sound-type-icon.is-green { color: #22c55e; }
.top-line-sound-type-icon.is-orange { color: #f97316; }
.top-line-sound-type-icon.is-amber { color: #f59e0b; }
.top-line-sound-type-icon.is-blue { color: #3b82f6; }
.top-line-sound-type-icon.is-purple { color: #a855f7; }
.top-line-sound-type-icon.is-cyan { color: #06b6d4; }
.top-line-sound-type-icon.is-pink { color: #ec4899; }
.top-line-sound-type-icon.is-slate { color: #94a3b8; }

.top-line-sound-type-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top-line-sound-preview-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #878792;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.top-line-sound-preview-btn:hover {
    background: #20283b;
    color: #d7deee;
}

html.admin-theme-light .top-line-sound-preview-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.top-line-sound-preview-btn .mdi {
    font-size: 22px;
    line-height: 1;
}

.top-line-sound-repeat-select,
.top-line-sound-repeat-count {
    min-width: 72px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #252d3c;
    border-radius: 8px;
    background: #151b27;
    color: #e8edf8;
    font-size: 13px;
}

.top-line-sound-repeat-count {
    width: 72px;
    text-align: right;
}

.top-line-sound-repeat-count:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

html.admin-theme-light .top-line-sound-repeat-select,
html.admin-theme-light .top-line-sound-repeat-count {
    border-color: #dbe2ee;
    background: #ffffff;
    color: #1f2937;
}

.top-line-sound-status {
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid rgba(46, 56, 82, 0.5);
    color: #878792;
    font-size: 12px;
}

html.admin-theme-light .top-line-sound-status {
    border-top-color: #e5e7eb;
    color: #64748b;
}

html.admin-theme-light .top-line-sound-preview-btn {
    color: #64748b;
}

html.admin-theme-light .top-line-sound-panel .top-line-alert-type-toggle {
    background: #cbd5e1;
}

html.admin-theme-light .top-line-sound-panel .top-line-alert-type-toggle:checked {
    background: #0284c7;
}

html.admin-theme-light .top-line-sound-master-toggle.is-off {
    background: #cbd5e1;
}

.search-box {
    display: flex;
    align-items: center;
    width: 200px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #273145;
    border-radius: 8px;
    background: #151b26;
    color: #7d89a3;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #dce3f1;
    font-size: 11px;
}

.quick-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 144px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #315dff;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.quick-button:hover {
    color: #fff;
    background: #274de6;
}

.quick-button[disabled] {
    cursor: default;
    opacity: 0.6;
}

.top-metrics-quick-action {
    box-sizing: border-box;
    width: auto;
    min-width: 88px;
    height: 46px;
    padding: 0 4px;
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #282f39;
    color: #e8edf8;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.top-metrics-quick-action:hover {
    background: #343f4d;
    color: #fff;
}

.top-metrics-action-btn {
    border: 0;
    background: #4caf50;
    color: #fff;
    font-weight: 500;
    box-shadow: none;
}

.top-metrics-action-btn:hover {
    background: #43a047;
    color: #fff;
    filter: none;
}

html.admin-theme-light .top-metrics-action-btn {
    background: #4caf50;
    color: #fff;
}

html.admin-theme-light .top-metrics-action-btn:hover {
    background: #43a047;
    color: #fff;
}

html.admin-theme-light .top-metrics-quick-action:not(.top-metrics-action-btn) {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #0f172a;
}

html.admin-theme-light .top-metrics-quick-action:not(.top-metrics-action-btn):hover {
    background: #e2e8f0;
}

.partner-self-cash-card,
.partner-inquiry-compose-card {
    box-sizing: border-box;
    width: min(600px, calc(100vw - 32px));
    margin: 24px auto 0;
    border: 1px solid #3b4554;
    border-radius: 12px;
    background: #111418;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

#partner-self-cash-overlay .auto-card-head,
#partner-inquiry-compose-overlay .auto-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #3b4554;
    background: #1b2129;
}

#partner-self-cash-overlay .auto-card-body,
#partner-inquiry-compose-overlay .auto-card-body {
    padding: 16px 20px 20px;
}

#partner-inquiry-compose-overlay .auto-card-foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 0 20px 20px;
}

#partner-self-cash-overlay .partner-deposit-dialog-foot {
    padding: 0 20px 20px;
}

#partner-inquiry-compose-overlay .partner-self-cash-textarea {
    min-height: 180px;
}

#partner-inquiry-compose-overlay .auto-card-foot .auto-card-btn-primary {
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    background: #137fec;
    color: #fff;
    font-weight: 700;
}

#partner-inquiry-compose-overlay .auto-card-foot .auto-card-btn-primary:hover {
    background: #1068c9;
    color: #fff;
}

#partner-inquiry-compose-overlay .auto-card-head .partner-modal-close,
#partner-self-cash-overlay .auto-card-head .partner-modal-close {
    background: #137fec;
    color: #fff;
}

#partner-inquiry-compose-overlay .auto-card-head .partner-modal-close:hover,
#partner-self-cash-overlay .auto-card-head .partner-modal-close:hover {
    background: #1068c9;
    color: #fff;
}

.partner-self-cash-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.partner-self-cash-hint {
    margin: 0;
    color: #9da8b9;
    font-size: 12px;
    line-height: 1.45;
}

.partner-self-cash-balance-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 4px;
    padding: 12px 14px;
    border: 1px solid #3b4554;
    border-radius: 10px;
    background: #1b2129;
    line-height: 1.2;
}

.partner-self-cash-balance-label {
    color: #e8edf8;
    font-size: 16px;
    font-weight: 700;
}

.partner-self-cash-balance-amount {
    color: #ffb74d;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-shadow: 0 0 18px rgba(255, 183, 77, 0.35);
}

.partner-self-cash-balance-unit {
    color: #ffb74d;
    font-size: 18px;
    font-weight: 800;
}

.partner-self-cash-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.partner-self-cash-label {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
}

.partner-self-cash-input,
.partner-self-cash-textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #1b2129;
    color: #fff;
    font-size: 13px;
}

.partner-self-cash-textarea {
    min-height: 120px;
    resize: vertical;
}

.partner-self-cash-input:focus,
.partner-self-cash-textarea:focus {
    border-color: #6b7280;
    outline: none;
}

.partner-self-cash-input.is-readonly,
.partner-self-cash-input[readonly] {
    cursor: default;
    opacity: 0.92;
}

.partner-deposit-dialog {
    box-sizing: border-box;
    width: min(1080px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: auto;
    padding: 16px 20px 20px;
    border: 1px solid #3b4554;
    border-radius: 12px;
    background: #111418;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    color: #e8edf8;
    --partner-deposit-history-bg: rgba(17, 20, 24, 0.75);
    --partner-deposit-history-border: rgba(59, 69, 84, 0.85);
    --partner-deposit-history-title: rgba(255, 255, 255, 0.92);
    --partner-deposit-history-empty: rgba(255, 255, 255, 0.45);
    --partner-deposit-history-table-border: rgba(59, 69, 84, 0.65);
    --partner-deposit-history-table-bg: rgba(0, 0, 0, 0.18);
    --partner-deposit-history-row-border: rgba(59, 69, 84, 0.4);
    --partner-deposit-history-row-bg: rgba(0, 0, 0, 0.12);
    --partner-deposit-history-row-bg-alt: rgba(0, 0, 0, 0.22);
    --partner-deposit-history-cell-border: rgba(59, 69, 84, 0.55);
    --partner-deposit-history-amount: #fff;
    --partner-deposit-history-date: rgba(255, 255, 255, 0.82);
    --partner-deposit-history-status-bg: rgba(255, 255, 255, 0.08);
    --partner-deposit-history-status-text: rgba(255, 255, 255, 0.75);
}

.partner-deposit-dialog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

@media (min-width: 900px) {
    .partner-deposit-dialog {
        display: flex;
        flex-direction: column;
        min-height: min(680px, calc(100vh - 96px));
    }

    .partner-deposit-dialog-layout {
        grid-template-columns: minmax(0, 440px) minmax(320px, 560px);
        flex: 1;
        align-items: stretch;
        min-height: 0;
    }

    .partner-deposit-dialog-main {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .partner-deposit-dialog-side {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .partner-deposit-history-card {
        flex: 1;
        min-height: 0;
    }

    .partner-deposit-history-body {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 300px;
    }

    .partner-deposit-dialog .partner-deposit-history-table {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .partner-deposit-dialog .partner-deposit-history-list {
        flex: 1;
        max-height: none;
        min-height: 260px;
    }
}

.partner-deposit-dialog-main {
    min-width: 0;
}

.partner-deposit-dialog-side {
    min-width: 0;
}

.partner-deposit-history-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 16px 18px;
    border: 1px solid var(--partner-deposit-history-border);
    border-radius: 12px;
    background: var(--partner-deposit-history-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.partner-deposit-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    min-width: 0;
}

.partner-deposit-history-title {
    margin: 0;
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700;
    color: var(--partner-deposit-history-title);
    white-space: nowrap;
}

.partner-deposit-history-summary {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    margin: 0;
}

.partner-deposit-history-summary-item {
    display: inline-flex;
    flex: 0 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    max-width: 11.5rem;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(59, 69, 84, 0.55);
    background: rgba(0, 0, 0, 0.2);
    min-width: 0;
}

.partner-deposit-history-summary-label {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.partner-deposit-history-summary-value {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    min-width: 0;
}

.partner-deposit-history-summary-value::after {
    content: '원';
    margin-left: 1px;
    font-size: 13px;
    font-weight: 700;
}

.partner-deposit-history-summary-item.is-deposit .partner-deposit-history-summary-value {
    color: #4ade80;
}

.partner-deposit-history-summary-item.is-withdraw .partner-deposit-history-summary-value {
    color: #fb923c;
}

.partner-deposit-history-body {
    flex: 1;
    min-height: 120px;
}

.partner-deposit-history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(59, 69, 84, 0.45);
}

.partner-deposit-history-page-label {
    min-width: 4.5rem;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.partner-deposit-history-page-btn {
    min-width: 52px;
    padding: 6px 10px;
    border: 1px solid rgba(59, 69, 84, 0.75);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.partner-deposit-history-page-btn:hover:not(:disabled) {
    border-color: rgba(249, 115, 22, 0.65);
    background: rgba(249, 115, 22, 0.12);
    color: #fdba74;
}

.partner-deposit-history-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.partner-deposit-history-empty {
    margin: 0;
    padding: 32px 8px;
    text-align: center;
    font-size: 15px;
    color: var(--partner-deposit-history-empty);
}

.partner-deposit-history-table {
    border: 1px solid var(--partner-deposit-history-table-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--partner-deposit-history-table-bg);
}

.partner-deposit-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: min(70vh, 720px);
    overflow-y: auto;
}

.partner-deposit-history-item {
    display: grid;
    grid-template-columns: minmax(2.25rem, 0.56fr) minmax(3.75rem, 0.92fr) minmax(0, 1.02fr) minmax(0, 1.02fr);
    align-items: center;
    line-height: 1.25;
    border-bottom: 1px solid var(--partner-deposit-history-row-border);
    background: var(--partner-deposit-history-row-bg);
}

.partner-deposit-history-item:last-child {
    border-bottom: none;
}

.partner-deposit-history-item:nth-child(even) {
    background: var(--partner-deposit-history-row-bg-alt);
}

.partner-deposit-history-item > * {
    padding: 6px 9px;
    border-right: 1px solid var(--partner-deposit-history-cell-border);
    min-width: 0;
}

.partner-deposit-history-item > *:last-child {
    border-right: none;
}

.partner-deposit-history-type {
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.partner-deposit-history-item[data-type="deposit"] .partner-deposit-history-type,
.partner-deposit-history-item[data-type="deposit"] .partner-deposit-history-amount {
    color: #4ade80;
}

.partner-deposit-history-item[data-type="withdraw"] .partner-deposit-history-type,
.partner-deposit-history-item[data-type="withdraw"] .partner-deposit-history-amount {
    color: #fb923c;
}

.partner-deposit-history-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--partner-deposit-history-amount);
    white-space: nowrap;
    text-align: right;
}

.partner-deposit-history-amount::after {
    content: '원';
}

.partner-deposit-history-date {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--partner-deposit-history-date);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.partner-deposit-history-status {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    padding: 1px 6px;
    line-height: 1.3;
    border-radius: 999px;
    background: var(--partner-deposit-history-status-bg);
    color: var(--partner-deposit-history-status-text);
    white-space: nowrap;
}

.partner-deposit-history-item[data-status="pending"] .partner-deposit-history-status {
    background: rgba(234, 179, 8, 0.15);
    color: #fde047;
}

.partner-deposit-history-item[data-status="approved"] .partner-deposit-history-status {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.partner-deposit-history-processed-at {
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
}

.partner-deposit-history-item[data-status="rejected"] .partner-deposit-history-status,
.partner-deposit-history-item[data-status="cancelled"] .partner-deposit-history-status {
    background: rgba(148, 163, 184, 0.22);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.partner-deposit-history-item > .partner-deposit-history-cancel-btn,
.partner-deposit-history-item > .partner-deposit-history-status,
.partner-deposit-history-item > .partner-deposit-history-processed-at {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.partner-deposit-history-cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 26px;
    margin: 0;
    padding: 2px 4px;
    border: 1px solid rgba(248, 113, 113, 0.55);
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partner-deposit-history-cancel-btn:hover:not(:disabled) {
    border-color: rgba(248, 113, 113, 0.85);
    background: rgba(239, 68, 68, 0.28);
    color: #fecaca;
}

.partner-deposit-history-cancel-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.partner-deposit-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.partner-deposit-dialog-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.partner-deposit-dialog-head-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.partner-deposit-dialog .partner-modal-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #16a34a;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.partner-deposit-dialog .partner-modal-refresh-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.partner-deposit-dialog .partner-modal-refresh:hover:not(:disabled) {
    background: #15803d;
    color: #fff;
}

.partner-deposit-dialog .partner-modal-refresh:disabled {
    opacity: 0.55;
    cursor: wait;
}

.partner-deposit-dialog .partner-modal-refresh.is-loading .mdi {
    animation: partner-deposit-modal-refresh-spin 0.75s linear infinite;
}

@keyframes partner-deposit-modal-refresh-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.partner-deposit-dialog .partner-modal-close {
    background: #137fec;
    color: #fff;
}

.partner-deposit-dialog .partner-modal-close:hover {
    background: #1068c9;
    color: #fff;
}

.partner-deposit-account-card {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #3b4554;
    border-radius: 10px;
    background: #1b2129;
}

.partner-deposit-account-card:has(#partner-deposit-head-account-display[hidden]) {
    padding-top: 10px;
    padding-bottom: 10px;
}

.partner-deposit-account-card:has(#partner-deposit-head-account-display[hidden]) .partner-deposit-account-request-btn {
    margin-top: 0;
}

.partner-deposit-section-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
}

.partner-deposit-account-dl {
    margin: 0 0 12px;
}

.partner-deposit-account-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.45;
}

.partner-deposit-account-row dt {
    flex: 0 0 72px;
    margin: 0;
    color: #9da8b9;
    font-weight: 600;
}

.partner-deposit-account-row dd {
    margin: 0;
    color: #f1f5f9;
    font-weight: 600;
    word-break: break-all;
}

.partner-deposit-account-request-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #137fec;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.partner-deposit-account-request-btn:hover:not(:disabled) {
    background: #1068c9;
    color: #fff;
}

.partner-deposit-account-request-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.partner-deposit-min-label {
    margin: 0 0 12px;
    color: #9da8b9;
    font-size: 12px;
}

.partner-deposit-min-label strong {
    color: #fbbf24;
}

.partner-deposit-field {
    margin-bottom: 14px;
}

.partner-deposit-member-account-head,
.partner-deposit-member-account-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.partner-deposit-member-account-head {
    margin-bottom: 6px;
}

.partner-deposit-member-account-head .partner-self-cash-label {
    margin: 0;
}

.partner-deposit-bank-input {
    text-align: center;
    font-weight: 600;
}

.partner-deposit-amount-input {
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

#partner-deposit-amount,
#partner-self-cash-amount {
    text-align: left;
}

@keyframes partner-deposit-depositor-missing-blink {
    0%,
    100% {
        opacity: 1;
        color: #f87171;
    }

    50% {
        opacity: 0.4;
        color: #fca5a5;
    }
}

#partner-deposit-depositor.is-deposit-depositor-missing-blink,
#partner-withdraw-display-account.is-partner-account-missing-blink {
    font-size: 12px;
    font-weight: 700;
    color: #f87171;
    animation: partner-deposit-depositor-missing-blink 1.1s ease-in-out infinite;
}

.partner-deposit-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.partner-deposit-quick-btn,
.partner-deposit-reset-btn {
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #137fec;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.partner-deposit-quick-btn:hover,
.partner-deposit-reset-btn:hover {
    background: #1068c9;
    color: #fff;
}

.partner-deposit-reset-btn {
    margin-left: auto;
}

.partner-deposit-dialog-foot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}

.partner-deposit-dialog-foot .auto-card-btn-cancel {
    min-width: 120px;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.partner-deposit-submit-btn {
    min-width: 160px;
    min-height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: #137fec;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.partner-deposit-submit-btn:hover:not(:disabled) {
    background: #1068c9;
}

.partner-deposit-submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#partner-self-deposit-overlay.notice-overlay,
#partner-self-cash-overlay.notice-overlay {
    align-items: flex-start;
    padding-top: 48px;
    background: rgba(2, 6, 14, 0.68);
    backdrop-filter: blur(1px);
}

.partner-inquiry-detail-label {
    margin: 16px 0 8px;
    color: #9da8b9;
    font-size: 13px;
    font-weight: 700;
}

#partner-inquiry-detail-overlay .inquiry-answer-view-content {
    color: #e8edf8;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
}

#partner-inquiry-detail-overlay .inquiry-answer-view-content p {
    margin: 0 0 8px;
}

#partner-inquiry-detail-overlay .inquiry-answer-view-content p:last-child {
    margin-bottom: 0;
}

#partner-inquiry-detail-overlay .inquiry-answer-footer .auto-card-btn-primary {
    min-width: 88px;
    min-height: 38px;
    border: 0;
    background: #137fec;
    color: #fff;
    font-weight: 700;
}

#partner-inquiry-detail-overlay .inquiry-answer-footer .auto-card-btn-primary:hover {
    background: #1068c9;
    color: #fff;
}

#partner-inquiry-detail-overlay .inquiry-answer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
}

#partner-inquiry-detail-overlay .inquiry-answer-header .auto-card-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

#partner-inquiry-detail-overlay .inquiry-answer-header .auto-card-close {
    flex: 0 0 auto;
    margin-left: auto;
}

#user-detail-inquiry-detail-overlay .user-detail-inquiry-detail-body,
#user-detail-memo-detail-overlay .user-detail-inquiry-detail-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#user-detail-inquiry-detail-overlay .user-detail-inquiry-detail-block,
#user-detail-memo-detail-overlay .user-detail-inquiry-detail-block {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #323b49;
}

#user-detail-inquiry-detail-overlay .user-detail-inquiry-detail-block--question,
#user-detail-memo-detail-overlay .user-detail-inquiry-detail-block--question {
    background: #171d27;
}

#user-detail-inquiry-detail-overlay .user-detail-inquiry-detail-block--answer,
#user-detail-memo-detail-overlay .user-detail-inquiry-detail-block--answer {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.35);
}

#user-detail-inquiry-detail-overlay .user-detail-inquiry-detail-first-label,
#user-detail-memo-detail-overlay .user-detail-inquiry-detail-first-label {
    margin-top: 0;
}

#user-detail-inquiry-detail-overlay .user-detail-inquiry-detail-title-text,
#user-detail-memo-detail-overlay .user-detail-inquiry-detail-title-text {
    margin: 0 0 4px;
    padding: 10px 12px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #1b222d;
    color: #f3f6fc;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}

#user-detail-inquiry-detail-overlay .user-detail-inquiry-detail-question-content,
#user-detail-memo-detail-overlay .user-detail-inquiry-detail-question-content {
    min-height: 96px;
    background: #1b222d;
}

#user-detail-inquiry-detail-overlay .user-detail-inquiry-detail-answer-content,
#user-detail-memo-detail-overlay .user-detail-inquiry-detail-answer-content {
    min-height: 96px;
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(15, 32, 24, 0.55);
    color: #bbf7d0;
}

#user-detail-inquiry-detail-overlay .user-detail-inquiry-detail-block--answer .partner-inquiry-detail-label,
#user-detail-memo-detail-overlay .user-detail-inquiry-detail-block--answer .partner-inquiry-detail-label {
    color: #86efac;
}

#user-detail-inquiry-detail-overlay .inquiry-answer-view-content p,
#user-detail-memo-detail-overlay .inquiry-answer-view-content p {
    margin: 0 0 8px;
}

#user-detail-inquiry-detail-overlay .inquiry-answer-view-content p:last-child,
#user-detail-memo-detail-overlay .inquiry-answer-view-content p:last-child {
    margin-bottom: 0;
}

.top-metrics {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    width: calc(100% + 20px);
    min-height: 0;
    margin-left: -10px;
    padding: 0;
    color: #dce3f1;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.top-metrics-menu-title {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    margin-right: auto;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.25);
    box-shadow: inset 0 0 0 2px rgba(251, 146, 60, 0.85);
    color: #fdba74;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    white-space: nowrap;
}

.top-metrics-menu-title .menu-icon {
    color: #fb923c;
}

.top-metrics-head-leading {
    display: inline-flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.top-metrics-head-leading .top-metrics-menu-title {
    margin-right: 0;
}

.top-metrics-actions-cluster {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    margin-left: auto;
}

body.admin-body .dash-sticky-metrics .top-line-realtime {
    gap: 6px;
    padding: 0 9px;
    border-color: rgba(56, 189, 248, 0.5);
    background: linear-gradient(90deg, rgba(8, 47, 73, 0.55), rgba(30, 58, 138, 0.42));
    color: #bae6fd;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.22);
}

body.admin-body .dash-sticky-metrics .top-line-realtime-counts {
    gap: 7px;
}

body.admin-body .dash-sticky-metrics .top-line-realtime-tag {
    min-width: 26px;
    padding: 2px 5px;
}

body.admin-body .dash-sticky-metrics .top-line-realtime:hover {
    border-color: rgba(125, 211, 252, 0.72);
    background: linear-gradient(90deg, rgba(12, 74, 110, 0.62), rgba(37, 99, 235, 0.48));
    color: #e0f2fe;
}

body.admin-body .dash-sticky-metrics .top-line-realtime-item > span:not(.top-line-realtime-tag) {
    color: #f0f9ff;
    font-variant-numeric: tabular-nums;
}

body.admin-body .dash-sticky-metrics .top-line-realtime-tag-partner {
    color: #fff;
    background: rgba(245, 158, 11, 0.92);
}

body.admin-body .dash-sticky-metrics .top-line-realtime-tag-slot {
    color: #0c4a6e;
    background: #22d3ee;
}

body.admin-body .dash-sticky-metrics .top-line-realtime-tag-casino {
    color: #fff;
    background: #a855f7;
}

body.admin-body .dash-sticky-metrics .top-line-realtime-tag-reel {
    color: #14532d;
    background: #4ade80;
}

.top-metrics-actions {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.top-metrics-actions-toggle {
    flex-shrink: 0;
    align-self: center;
}

.top-metrics-actions-toggle.is-collapsed .dash-today-grid-toggle-icon {
    transform: rotate(180deg);
}

.top-metrics-actions-panel {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
}

.top-metrics-actions.is-collapsed .top-metrics-actions-panel,
.top-metrics-actions-panel[hidden] {
    display: none;
}

/* 코인 시스템 상단 지표 — cash metric-button 과 구분 (트론 헤더 칩 스타일) */
.top-metrics-coin-cluster {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    margin-right: 6px;
    padding-right: 8px;
    border-right: 1px solid rgba(59, 69, 84, 0.85);
}

html.admin-theme-light .top-metrics-coin-cluster {
    border-right-color: #cbd5e1;
}

.top-metrics-head-leading .top-metrics-coin-cluster {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.top-metrics-coin-bar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.top-metrics-coin-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #111418;
    color: #e8edf8;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    transition: opacity 0.15s ease, background 0.15s ease;
}

a.top-metrics-coin-chip:hover {
    opacity: 0.92;
    color: #fff;
}

.top-metrics-coin-chip.is-alert {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.14);
    color: #fde68a;
}

.top-metrics-coin-chip-alert {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
    font-size: 10px;
    min-height: 26px;
    padding: 0 8px;
}

.top-metrics-coin-chip-alert.is-hidden {
    display: none !important;
}

.top-metrics-coin-chip-alert .mdi {
    font-size: 14px;
    color: #fca5a5;
}

@keyframes top-metrics-coin-trx-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
    50% { opacity: 0.55; box-shadow: 0 0 6px 1px rgba(239, 68, 68, 0.35); }
}

.top-metrics-coin-chip-alert:not(.is-hidden) {
    animation: top-metrics-coin-trx-blink 1.2s ease-in-out infinite;
}

.top-metrics-coin-chip-static {
    cursor: default;
    background: linear-gradient(180deg, #137fec 0%, #0f6bd0 100%);
    border-color: #3b4554;
    color: #fff;
}

.top-metrics-coin-em {
    font-weight: 800;
}

.top-metrics-coin-wallet-summary .is-usdt {
    color: #e0f2fe;
    font-weight: 700;
}

.top-metrics-coin-wallet-summary .is-usdt-unit {
    color: rgba(224, 242, 254, 0.75);
    font-weight: 500;
}

.top-metrics-coin-wallet-summary .is-sep {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

.top-metrics-coin-wallet-summary .is-trx {
    color: #ddd6fe;
    font-weight: 700;
}

.top-metrics-coin-wallet-summary .is-trx-unit {
    color: rgba(221, 214, 254, 0.75);
    font-weight: 500;
}

html.admin-theme-light .top-metrics-coin-chip {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

html.admin-theme-light .top-metrics-coin-chip-static {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}

.top-metrics span:not(.top-metrics-menu-title) {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
}

.top-metrics strong {
    color: #ffb74d;
    font-weight: 900;
}

.metric-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.metric-button strong {
    margin: 0 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.metric-button [data-topbar-count="pending"] {
    margin: 0 1px 0 6px;
}

.metric-button .metric-count-sep {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.metric-button [data-topbar-count="hold"] {
    margin: 0 6px 0 1px;
}

.metric-button [data-topbar-hold-wrap] strong {
    margin: 0 1px;
}

.metric-button [data-topbar-hold-wrap][hidden] {
    display: none !important;
}

.metric-button-primary {
    background: #1976d2;
}

.inquiry-alarm-button.is-active {
    background: #1976d2;
    color: #fff;
    animation: inquiryAlarmPulse 1.05s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.inquiry-alarm-button.is-active strong {
    color: #fff;
    font-weight: 900;
}

@keyframes inquiryAlarmPulse {
    0%,
    100% {
        filter: brightness(1);
        transform: translateY(0);
    }

    50% {
        background: #ff8a00;
        filter: brightness(1.12);
        transform: translateY(-1px);
        box-shadow: 0 0 0 1px rgba(255, 180, 70, 0.7), 0 0 16px rgba(255, 138, 0, 0.78);
    }
}

.deposit-alarm-button.is-active {
    background: #1976d2;
    color: #fff;
    animation: depositAlarmPulse 1.05s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.deposit-alarm-button.is-active strong {
    color: #fff;
    font-weight: 900;
}

@keyframes depositAlarmPulse {
    0%,
    100% {
        filter: brightness(1);
        transform: translateY(0);
    }

    50% {
        background: #00c853;
        filter: brightness(1.12);
        transform: translateY(-1px);
        box-shadow: 0 0 0 1px rgba(105, 240, 174, 0.75), 0 0 16px rgba(0, 200, 83, 0.8);
    }
}

.withdraw-alarm-button.is-active {
    background: #1976d2;
    color: #fff;
    animation: withdrawAlarmPulse 1.05s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.withdraw-alarm-button.is-active strong {
    color: #fff;
    font-weight: 900;
}

@keyframes withdrawAlarmPulse {
    0%,
    100% {
        filter: brightness(1);
        transform: translateY(0);
    }

    50% {
        background: #e53935;
        filter: brightness(1.12);
        transform: translateY(-1px);
        box-shadow: 0 0 0 1px rgba(255, 138, 128, 0.75), 0 0 16px rgba(229, 57, 53, 0.8);
    }
}

.metric-button-accent {
    background: #315dff;
}

.metric-button:hover {
    filter: brightness(1.08);
}

.top-metrics-actions .metric-button-stacked {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 46px;
    min-width: 0;
    padding: 5px 6px 6px;
    line-height: 1.2;
}

.top-metrics-actions .metric-button-stacked .metric-button-line {
    display: block;
    width: 100%;
    text-align: center;
}

.top-metrics-actions .metric-button-stacked .metric-button-line-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
    opacity: 1;
}

.top-metrics-actions .metric-button-stacked .metric-button-line-value {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: nowrap;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
}

.top-metrics-actions .metric-button-stacked .metric-button-line-value strong {
    margin: 0 2px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
}

.top-metrics-actions .metric-button-stacked .metric-button-line-value .metric-count-sep {
    margin: 0 1px;
}

.top-metrics-actions .metric-button-stacked [data-topbar-count="pending"] {
    margin: 0 2px 0 0;
}

.top-metrics-actions .metric-button-stacked [data-topbar-count="hold"] {
    margin: 0 0 0 2px;
}

.summary-cards {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    margin-top: 0;
}

.summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 163px;
    height: 60px;
    padding: 6px 10px;
    border-radius: 8px;
    color: #172033;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

a.summary-card.summary-card-link {
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

a.summary-card.summary-card-link:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

a.summary-card.summary-card-link:focus-visible {
    outline: 2px solid #137fec;
    outline-offset: 2px;
}

.summary-card-money {
    width: 210px;
    height: auto;
    min-height: 0;
    padding: 4px 10px;
    align-items: stretch;
}

.summary-money-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.summary-money-row {
    display: grid;
    grid-template-columns: 68px 1fr;
    align-items: baseline;
    gap: 4px;
    line-height: 0.95;
}

.summary-money-label {
    color: #5b677a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: left;
    white-space: nowrap;
}

.summary-money-value {
    margin: 0 !important;
    min-height: 0 !important;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    text-align: right;
    white-space: nowrap;
}

.summary-money-row.is-total .summary-money-label {
    color: #1f2a3d;
}

.summary-money-row.is-total .summary-money-value {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.summary-money-row.is-main .summary-money-label {
    color: #3b6fd8;
}

.summary-money-row.is-main .summary-money-value {
    color: #2456c0;
    font-size: 13px;
    font-weight: 700;
}

.summary-money-row.is-mato .summary-money-label {
    color: #2f9d6a;
}

.summary-money-row.is-mato .summary-money-value {
    color: #1f7a52;
    font-size: 13px;
    font-weight: 700;
}

.summary-card span,
.summary-card strong {
    display: block;
    width: 100%;
    min-height: 20px;
}

.summary-card strong {
    margin-top: 2px;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.summary-card-blue {
    background: #e1f5fe;
}

.summary-card-pink {
    background: #fce4ec;
}

.summary-card-orange {
    background: #fff3e0;
}

.summary-card-purple {
    background: #f3e5f5;
}

.summary-card-partner-rolling .summary-card-value-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 2px;
}

.summary-card-partner-rolling .summary-card-value-label {
    display: inline;
    width: auto;
    min-height: 0;
    font-size: 16px;
    font-weight: 600;
    color: #172033;
}

.summary-card-partner-rolling .summary-card-value-line strong {
    display: inline;
    width: auto;
    min-height: 0;
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.dash-top-bar-summary .summary-card-partner-rolling .summary-card-value-line strong {
    font-size: 14px;
}

.admin-chat-launcher {
    flex-shrink: 0;
    border: 1px solid rgba(52, 211, 153, 0.45);
    background: linear-gradient(180deg, #059669 0%, #047857 100%);
    color: #ecfdf5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.top-metrics-actions .admin-chat-launcher {
    min-width: 72px;
    padding-left: 4px;
    padding-right: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.top-metrics-actions .admin-chat-launcher .metric-button-line-label {
    color: #ecfdf5;
    font-weight: 700;
    line-height: 1.1;
}

.top-metrics-actions .admin-chat-launcher .admin-chat-launcher-value {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
    opacity: 0.95;
}

.top-metrics-actions .admin-chat-launcher .admin-chat-launcher-value strong {
    font-weight: 900;
}

.admin-chat-launcher.is-active {
    animation: adminChatLauncherPulse 1.05s ease-in-out infinite;
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.85), 0 0 16px rgba(16, 185, 129, 0.55);
}

.admin-chat-launcher.is-active .admin-chat-launcher-value strong {
    color: #fff;
}

@keyframes adminChatLauncherPulse {
    0%,
    100% {
        filter: brightness(1);
        transform: translateY(0);
    }

    50% {
        filter: brightness(1.14);
        transform: translateY(-1px);
    }
}

.top-metrics-actions .admin-chat-launcher:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.admin-chat-launcher:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
}

.admin-chat-launcher.is-user-disabled {
    border-color: rgba(100, 116, 139, 0.55);
    background: linear-gradient(180deg, #475569 0%, #334155 100%);
    color: #cbd5e1;
    box-shadow: none;
    animation: none;
    cursor: pointer;
    opacity: 0.82;
}

.admin-chat-launcher.is-user-disabled .metric-button-line-label,
.admin-chat-launcher.is-user-disabled .admin-chat-launcher-value,
.admin-chat-launcher.is-user-disabled .admin-chat-launcher-value strong {
    color: #cbd5e1;
}

.top-metrics-actions .admin-chat-launcher.is-user-disabled:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

html.admin-theme-light .admin-chat-launcher.is-user-disabled {
    border-color: rgba(100, 116, 139, 0.45);
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    color: #f1f5f9;
}

html.admin-theme-light .admin-chat-launcher {
    border-color: rgba(5, 150, 105, 0.35);
}

html.admin-theme-light .top-metrics-actions .admin-chat-launcher {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.admin-chat-overlay {
    align-items: center;
    padding: 20px;
}

.admin-chat-panel {
    display: flex;
    flex-direction: column;
    width: min(720px, calc(90vw - 40px));
    max-width: calc(90vw - 40px);
    height: 90vh;
    max-height: 90vh;
    border: 1px solid #293241;
    border-radius: 12px;
    background: #111722;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.admin-chat-panel-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-shrink: 0;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(4, 120, 87, 0.65);
    background: linear-gradient(180deg, #059669 0%, #047857 100%);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    touch-action: none;
    user-select: none;
}

.admin-chat-panel-head[data-admin-chat-panel-drag] {
    cursor: grab;
}

.admin-chat-panel.is-dragging .admin-chat-panel-head[data-admin-chat-panel-drag] {
    cursor: grabbing;
}

.admin-chat-panel-head[data-admin-chat-panel-drag] button,
.admin-chat-panel-head[data-admin-chat-panel-drag] a {
    cursor: pointer;
}

.admin-chat-panel-head-start {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    text-align: left;
}

.admin-chat-panel-title {
    margin: 0;
    color: #ecfdf5;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.admin-chat-panel-head-actions {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.admin-chat-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.16);
    color: #ecfdf5;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-chat-toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.26);
    border-color: rgba(255, 255, 255, 0.4);
}

.admin-chat-usage-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    height: 34px;
    padding: 0 4px;
}

.admin-chat-usage-switch-caption {
    color: rgba(236, 253, 245, 0.95);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.admin-chat-panel-head button.admin-chat-usage-switch {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    color: inherit;
}

.admin-chat-panel-head .admin-chat-usage-switch.payout-control-table-switch {
    width: 38px;
    height: 22px;
}

.admin-chat-panel-head .admin-chat-usage-switch .table-switch-track {
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.admin-chat-panel-head .admin-chat-usage-switch .table-switch-track::after {
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
}

.admin-chat-panel-head .admin-chat-usage-switch.is-on .table-switch-track {
    background: #3b82f6;
    box-shadow: none;
}

.admin-chat-panel-head .admin-chat-usage-switch.is-on .table-switch-track::after {
    transform: translateX(16px);
}

html.admin-theme-light .admin-chat-usage-switch-caption {
    color: #fff;
}

.admin-chat-admin-name {
    color: rgba(236, 253, 245, 0.92);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.admin-chat-panel-head .admin-chat-panel-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.16);
    color: #ecfdf5;
    font-size: 20px;
    line-height: 1;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-chat-panel-head .admin-chat-panel-close:hover {
    background: rgba(127, 29, 29, 0.38);
    border-color: rgba(254, 202, 202, 0.55);
    color: #fff;
}

.admin-chat-panel-head .admin-chat-panel-close:focus-visible {
    outline: 2px solid #a7f3d0;
    outline-offset: 2px;
}

html.admin-theme-light .admin-chat-panel-head .admin-chat-panel-close {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    box-shadow: none;
}

html.admin-theme-light .admin-chat-panel-head .admin-chat-panel-close:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(254, 226, 226, 0.85);
    color: #fff;
    box-shadow: none;
}

.admin-chat-messenger {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    background: #fff;
}

.admin-chat-sessions {
    flex: 0 0 30%;
    width: 30%;
    max-width: 30%;
    min-width: 0;
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
    background: #fafafa;
}

.admin-chat-sessions-empty {
    padding: 24px 16px;
    color: #6b7280;
    text-align: center;
    font-size: 14px;
}

.admin-chat-session-item {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.admin-chat-session-item:hover {
    background: #f3f4f6;
}

.admin-chat-session-item.is-active {
    background: #e3f2fd;
    box-shadow: inset 4px 0 0 #2196f3;
}

.admin-chat-session-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.admin-chat-session-who {
    flex: 1 1 auto;
    min-width: 0;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.admin-chat-session-who--member {
    display: flex;
    align-items: center;
    min-width: 0;
}

.admin-chat-session-member-node {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.admin-chat-session-who--member .admin-chat-session-node-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    cursor: inherit;
}

.admin-chat-session-identity-chip {
    display: inline-flex;
    max-width: 100%;
    pointer-events: none;
}

.admin-chat-session-identity-chip .admin-chat-session-identity-static {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-height: 32px;
    padding: 2px 6px 2px 2px;
    border: 0;
    background: transparent;
    cursor: inherit;
    pointer-events: none;
}

.admin-chat-session-identity-chip .subordinate-id-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.15;
}

.admin-chat-session-identity-chip .subordinate-id-type {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}

.admin-chat-session-identity-chip .members-affiliation-label {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.admin-chat-session-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.admin-chat-session-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #fee2e2;
    color: #b91c1c;
    cursor: pointer;
}

.admin-chat-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.admin-chat-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.admin-chat-status-badge.is-active {
    background: #dcfce7;
    color: #166534;
}

.admin-chat-status-badge.is-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.admin-chat-session-meta,
.admin-chat-session-time {
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.admin-chat-session-preview {
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 8px;
    background: #f3e8ff;
    color: #7c3aed;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-chat-main {
    display: flex;
    flex-direction: column;
    flex: 0 0 70%;
    width: 70%;
    max-width: 70%;
    min-width: 0;
    min-height: 0;
    background: #f8fafc;
}

.admin-chat-messages {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    box-sizing: border-box;
}

.admin-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 220px;
    color: #6b7280;
    text-align: center;
}

.admin-chat-empty .mdi {
    font-size: 48px;
    line-height: 1;
}

.admin-chat-empty.is-compact {
    min-height: 120px;
}

.admin-chat-message-row {
    display: flex;
    margin-bottom: 12px;
}

.admin-chat-message-row.is-user {
    justify-content: flex-end;
}

.admin-chat-message-row.is-admin {
    justify-content: flex-start;
}

.admin-chat-message-bubble {
    position: relative;
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.admin-chat-message-row.is-user .admin-chat-message-bubble {
    background: #dbeafe;
}

.admin-chat-message-row.is-admin .admin-chat-message-bubble {
    background: #fff;
}

.admin-chat-message-text {
    color: #111827;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-chat-message-time {
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
}

.admin-chat-message-delete {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.admin-chat-compose {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.admin-chat-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
}

.admin-chat-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.admin-chat-send-btn:disabled,
.admin-chat-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

html.admin-theme-light .admin-chat-panel {
    background: #fff;
    border-color: #dbe2ee;
}

html.admin-theme-light .admin-chat-panel-head {
    border-bottom-color: #047857;
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

html.admin-theme-light .admin-chat-panel-title {
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

html.admin-theme-light .admin-chat-admin-name {
    color: rgba(255, 255, 255, 0.92);
}

html.admin-theme-light .admin-chat-toolbar-btn {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

html.admin-theme-light .admin-chat-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.intra-chat-launcher {
    border-color: rgba(74, 85, 104, 0.55);
    background: linear-gradient(180deg, #4a5568 0%, #2d3748 100%);
    color: #f7fafc;
}

.top-metrics-actions .intra-chat-launcher {
    min-width: 72px;
    padding-left: 4px;
    padding-right: 4px;
}

.top-metrics-actions .intra-chat-launcher .metric-button-line-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.top-metrics-actions .intra-chat-launcher .intra-chat-launcher-value {
    font-size: 11px;
    line-height: 1.1;
    opacity: 0.95;
}

.top-metrics-actions .intra-chat-launcher .intra-chat-launcher-value strong {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
}

.intra-chat-launcher.is-active {
    border-color: rgba(220, 53, 69, 0.65);
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.35);
}

.intra-chat-launcher.is-active .intra-chat-launcher-value strong {
    color: #ffe08a;
}

.top-metrics-actions .intra-chat-launcher:hover {
    filter: brightness(1.06);
}

.head-board-launcher {
    border-color: rgba(56, 132, 255, 0.45);
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    color: #f8fafc;
}

.top-metrics-actions .head-board-launcher {
    min-width: 80px;
}

.top-metrics-actions .head-board-launcher .metric-button-line-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.top-metrics-actions .head-board-launcher .head-board-launcher-value {
    font-size: 11px;
    line-height: 1.1;
    opacity: 0.95;
}

.top-metrics-actions .head-board-launcher .head-board-launcher-value strong {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
}

.head-board-overlay {
    align-items: center;
    padding: 20px;
}

.head-board-overlay.is-subdialog-open .head-board-panel {
    pointer-events: none;
}

.head-board-panel {
    display: flex;
    flex-direction: column;
    width: min(1040px, calc(96vw - 40px));
    max-width: calc(96vw - 40px);
    height: min(88vh, 860px);
    max-height: 88vh;
    border-radius: 15px;
    background: #171d27;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.46);
    overflow: hidden;
    color: #e8edf8;
}

.head-board-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #293241;
    background: #1f2633;
    cursor: grab;
    user-select: none;
}

.head-board-panel.is-dragging .head-board-panel-head {
    cursor: grabbing;
}

.head-board-panel-head button,
.head-board-panel-head .head-board-actor-label {
    cursor: pointer;
    user-select: none;
}

.head-board-panel-head-start {
    min-width: 0;
    flex: 1 1 auto;
}

.head-board-panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.head-board-panel-subtitle {
    margin: 4px 0 0;
    color: #9da8b9;
    font-size: 12px;
}

.head-board-panel-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.head-board-head-write-btn {
    height: 36px;
    flex-shrink: 0;
}

.head-board-actor-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 0;
    color: #c8d0df;
    font-size: 12px;
    font-weight: 600;
}

.head-board-panel-head .auto-card-close.head-board-panel-close {
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.head-board-panel-head .auto-card-close.head-board-panel-close .mdi {
    color: #fff;
}

.head-board-panel-head .auto-card-close.head-board-panel-close:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: #dc3545;
    color: #fff;
}

.head-board-panel-head .auto-card-close.head-board-panel-close:hover .mdi {
    color: #fff;
}

html.admin-theme-light .head-board-panel-head .auto-card-close.head-board-panel-close {
    border: 2px solid #fff;
    background: #fff;
    color: #1a202c;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light .head-board-panel-head .auto-card-close.head-board-panel-close .mdi {
    color: #1a202c;
}

html.admin-theme-light .head-board-panel-head .auto-card-close.head-board-panel-close:hover {
    border-color: #fff;
    background: #dc3545;
    color: #fff;
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.5);
}

html.admin-theme-light .head-board-panel-head .auto-card-close.head-board-panel-close:hover .mdi {
    color: #fff;
}

.head-board-app {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 12px 14px 14px;
}

.head-board-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.head-board-toolbar[hidden],
.head-board-btn[hidden] {
    display: none !important;
}

.head-board-view {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.head-board-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.head-board-btn-primary {
    background: #315dff;
    color: #fff;
}

.head-board-back-btn {
    min-width: 76px;
    background: linear-gradient(135deg, #2563eb 0%, #5dd6ff 100%);
    box-shadow: 0 2px 10px rgba(49, 93, 255, 0.45);
    font-weight: 800;
}

.head-board-back-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 3px 14px rgba(93, 214, 255, 0.4);
}

.head-board-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #dce3f1;
}

.head-board-btn-danger {
    background: rgba(220, 53, 69, 0.18);
    color: #ffb4bd;
}

.head-board-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.head-board-card {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(93, 214, 255, 0.14);
    border-radius: 10px;
    background: #1f2633;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.head-board-card:hover {
    border-color: rgba(93, 214, 255, 0.35);
    transform: translateY(-1px);
}

.head-board-card-avatar,
.head-board-detail-avatar,
.head-board-reply-avatar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #315dff, #5dd6ff);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.head-board-card .head-board-card-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.head-board-card-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.head-board-card-content {
    flex: 1 1 auto;
    min-width: 0;
}

.head-board-card-aside {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    width: min(300px, 42%);
    max-width: 100%;
}

.head-board-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.head-board-card-top-end {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.head-board-card-actions {
    display: flex;
    align-items: center;
}

.head-board-card-delete {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
}

.head-board-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.head-board-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.head-board-card-badge {
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(49, 93, 255, 0.18);
    color: #b9cbff;
    font-size: 11px;
    font-weight: 700;
}

.head-board-card-badge.is-file {
    background: rgba(93, 214, 255, 0.14);
    color: #9de9ff;
}

.head-board-card-excerpt {
    margin: 2px 0 0;
    color: #b8c2d3;
    font-size: 12px;
    line-height: 1.35;
}

.head-board-card-attachments {
    margin-top: 0;
}

.head-board-card-attachments .head-board-attachment-list {
    margin-top: 0;
}

.head-board-card-attachments .intra-chat-file-message {
    padding: 3px 6px;
}

.head-board-card-attachments .head-board-attachment-list {
    gap: 2px;
}

.head-board-card-aside .head-board-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    margin-top: 0;
    color: #8b97a8;
    font-size: 11px;
    line-height: 1.25;
    text-align: right;
}

.head-board-card-meta {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    color: #8b97a8;
    font-size: 12px;
}

.head-board-empty {
    padding: 40px 16px;
    color: #8b97a8;
    font-size: 14px;
    text-align: center;
}

.head-board-empty.is-compact {
    padding: 16px 8px;
}

.head-board-detail-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.head-board-detail-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.head-board-detail-meta {
    margin: 4px 0 0;
    color: #9da8b9;
    font-size: 12px;
}

.head-board-detail-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.head-board-detail-body {
    padding: 12px 0;
    font-size: 14px;
    line-height: 1.7;
    white-space: normal;
}

.head-board-replies-wrap {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #293241;
}

.head-board-replies-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
}

.head-board-replies {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.head-board-reply {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.head-board-reply-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
}

.head-board-reply-head strong {
    font-size: 13px;
}

.head-board-reply-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.head-board-link-btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: #5dd6ff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.head-board-link-btn.is-danger {
    color: #ff8f9a;
}

.head-board-reply-body,
.head-board-detail-body {
    word-break: break-word;
}

.head-board-reply-form,
.head-board-compose-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.head-board-field-label {
    font-size: 13px;
    font-weight: 700;
}

.head-board-input,
.head-board-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #111418;
    color: #e8edf8;
    font: inherit;
    font-size: 14px;
}

.head-board-textarea {
    min-height: 120px;
    resize: vertical;
}

.head-board-compose-files {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.head-board-file-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9de9ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.head-board-file-input {
    display: none;
}

.head-board-pending-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.head-board-app .intra-chat-file-message,
.head-board-compose-files .intra-chat-file-message {
    background: #293241;
    margin-top: 0;
}

.head-board-app .intra-chat-file-name,
.head-board-compose-files .intra-chat-file-name {
    color: #e8edf8;
}

.head-board-app .intra-chat-file-size,
.head-board-compose-files .intra-chat-file-size {
    color: #8b97a8;
}

.head-board-app .intra-chat-file-action,
.head-board-compose-files .intra-chat-file-action {
    color: #5dd6ff;
}

.head-board-app button.intra-chat-file-action {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.head-board-compose-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.head-board-attachment-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0 0;
    padding: 0;
}

.head-board-card .head-board-attachment-list {
    margin: 0;
    gap: 2px;
}

/* 운영자게시판 — 라이트 모드 (다크는 위 기본값 유지) */
html.admin-theme-light .head-board-panel {
    background: #fff;
    color: var(--text);
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.16);
}

html.admin-theme-light .head-board-panel-head {
    border-bottom-color: rgba(255, 255, 255, 0.25);
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

html.admin-theme-light .head-board-panel-title {
    color: #fff;
}

html.admin-theme-light .head-board-panel-subtitle {
    color: rgba(255, 255, 255, 0.88);
}

html.admin-theme-light .head-board-actor-label {
    color: rgba(255, 255, 255, 0.92);
}

html.admin-theme-light .head-board-app {
    background: #f1f5f9;
}

html.admin-theme-light .head-board-card {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
}

html.admin-theme-light .head-board-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
    transform: none;
}

html.admin-theme-light .head-board-card-excerpt {
    color: var(--muted);
}

html.admin-theme-light .head-board-card-badge {
    background: #eff6ff;
    color: #1d4ed8;
}

html.admin-theme-light .head-board-card-badge.is-file {
    background: #ecfeff;
    color: #0369a1;
}

html.admin-theme-light .head-board-card-aside .head-board-card-meta,
html.admin-theme-light .head-board-card-meta {
    color: var(--muted);
}

html.admin-theme-light .head-board-empty {
    color: var(--muted);
}

html.admin-theme-light .head-board-btn-ghost {
    background: #e2e8f0;
    color: #334155;
}

html.admin-theme-light .head-board-btn-danger {
    background: #fee2e2;
    color: #b91c1c;
}

html.admin-theme-light .head-board-detail-meta {
    color: var(--muted);
}

html.admin-theme-light .head-board-replies-wrap {
    border-top-color: var(--line);
}

html.admin-theme-light .head-board-reply {
    background: #fff;
    border: 1px solid var(--line);
}

html.admin-theme-light .head-board-reply-head {
    color: var(--muted);
}

html.admin-theme-light .head-board-link-btn {
    color: #2563eb;
}

html.admin-theme-light .head-board-link-btn.is-danger {
    color: #dc2626;
}

html.admin-theme-light .head-board-field-label {
    color: var(--text);
}

html.admin-theme-light .head-board-input,
html.admin-theme-light .head-board-textarea {
    border-color: #cbd5e1;
    background: #fff;
    color: var(--text);
}

html.admin-theme-light .head-board-file-label {
    color: #0369a1;
}

html.admin-theme-light .head-board-app .intra-chat-file-message,
html.admin-theme-light .head-board-compose-files .intra-chat-file-message {
    background: #f8fafc;
    border: 1px solid var(--line);
}

html.admin-theme-light .head-board-app .intra-chat-file-name,
html.admin-theme-light .head-board-compose-files .intra-chat-file-name {
    color: var(--text);
}

html.admin-theme-light .head-board-app .intra-chat-file-size,
html.admin-theme-light .head-board-compose-files .intra-chat-file-size {
    color: var(--muted);
}

html.admin-theme-light .head-board-app .intra-chat-file-action,
html.admin-theme-light .head-board-compose-files .intra-chat-file-action {
    color: #2563eb;
}

.head-board-reply-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

body.intra-chat-panel-dragging {
    cursor: grabbing !important;
    user-select: none;
}

.intra-chat-dialog-overlay {
    z-index: 21000;
    pointer-events: auto;
}

.intra-chat-dialog-overlay .message-dialog {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.intra-chat-dialog-overlay .message-dialog-actions {
    position: relative;
    z-index: 2;
}

.intra-chat-dialog-overlay .message-dialog-btn {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.intra-chat-overlay.is-subdialog-open {
    pointer-events: none;
}

.intra-chat-overlay.is-subdialog-open .intra-chat-panel {
    pointer-events: none;
}

.intra-chat-overlay {
    align-items: center;
    padding: 20px;
}

.intra-chat-panel {
    display: flex;
    flex-direction: column;
    width: min(960px, calc(94vw - 40px));
    max-width: calc(94vw - 40px);
    height: min(88vh, 820px);
    max-height: 88vh;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.intra-chat-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    flex-shrink: 0;
    padding: 14px 16px;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: #fff;
    touch-action: none;
    user-select: none;
    cursor: grab;
}

.intra-chat-panel.is-dragging .intra-chat-panel-head {
    cursor: grabbing;
}

.intra-chat-panel-head button,
.intra-chat-panel-head label,
.intra-chat-panel-head .intra-chat-menu-dropdown {
    cursor: pointer;
}

.intra-chat-panel-head-start {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 0 1 auto;
    min-width: 0;
}

.intra-chat-panel-title {
    margin: 0;
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.intra-chat-panel-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.intra-chat-panel-head-actions {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.intra-chat-auto-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
}

.intra-chat-auto-refresh input {
    width: 16px;
    height: 16px;
    accent-color: #63b3ed;
}

.intra-chat-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.intra-chat-toolbar-btn:hover {
    background: #fff;
    color: #007bff;
}

.intra-chat-toolbar-btn-text {
    line-height: 1;
}

.intra-chat-menu-dropdown {
    position: relative;
}

.intra-chat-menu-list {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 20;
    min-width: 180px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.intra-chat-menu-list button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 14px;
    border: 0;
    background: transparent;
    color: #212529;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.intra-chat-menu-list button:hover {
    background: #f1f3f5;
}

.intra-chat-menu-list button.is-danger {
    color: #dc3545;
}

.intra-chat-menu-divider {
    height: 1px;
    margin: 4px 0;
    background: #dee2e6;
}

.intra-chat-actor-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 220px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.intra-chat-panel-head .intra-chat-panel-close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    margin-left: 2px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.intra-chat-panel-head .intra-chat-panel-close .mdi {
    font-size: 22px;
    line-height: 1;
}

.intra-chat-panel-head .intra-chat-panel-close:hover {
    background: #dc3545;
    border-color: #fff;
    color: #fff;
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.55);
    transform: scale(1.05);
}

.intra-chat-panel-head .intra-chat-panel-close:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

.intra-chat-panel-head .auto-card-close.intra-chat-panel-close {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.intra-chat-panel-head .auto-card-close.intra-chat-panel-close:hover {
    background: #dc3545;
    color: #fff;
}

html.admin-theme-light .intra-chat-panel-head .auto-card-close.intra-chat-panel-close {
    border: 2px solid #fff;
    background: #fff;
    color: #1a202c;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light .intra-chat-panel-head .auto-card-close.intra-chat-panel-close .mdi {
    color: #1a202c;
}

html.admin-theme-light .intra-chat-panel-head .auto-card-close.intra-chat-panel-close:hover {
    background: #dc3545;
    border-color: #fff;
    color: #fff;
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.5);
}

html.admin-theme-light .intra-chat-panel-head .auto-card-close.intra-chat-panel-close:hover .mdi {
    color: #fff;
}

html.admin-theme-light .intra-chat-panel-subtitle {
    color: rgba(255, 255, 255, 0.88);
}

.intra-chat-messenger {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.intra-chat-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #f8f9fa;
}

.intra-chat-messages-wrap {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    border-right: 1px solid #dee2e6;
    background: #f8f9fa;
}

.intra-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
}

.intra-chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
    padding: 24px 16px;
    color: #6c757d;
    text-align: center;
}

.intra-chat-welcome .mdi {
    font-size: 48px;
    opacity: 0.45;
}

.intra-chat-message {
    display: flex;
    margin-bottom: 14px;
}

.intra-chat-message.is-own {
    justify-content: flex-end;
}

.intra-chat-message.is-other {
    justify-content: flex-start;
}

.intra-chat-message-system {
    justify-content: center;
}

.intra-chat-message-bubble {
    position: relative;
    max-width: 72%;
    padding: 10px 14px;
    border-radius: 18px;
    word-wrap: break-word;
}

.intra-chat-message.is-own .intra-chat-message-bubble {
    background: #007bff;
    color: #fff;
}

.intra-chat-message.is-other .intra-chat-message-bubble {
    background: #e9ecef;
    color: #333;
}

.intra-chat-message-system .intra-chat-message-bubble {
    max-width: 55%;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    font-size: 14px;
    text-align: center;
}

.intra-chat-message-nick {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
}

.intra-chat-message.is-own .intra-chat-message-nick {
    color: rgba(255, 255, 255, 0.92);
}

.intra-chat-message.is-other .intra-chat-message-nick {
    color: #495057;
}

.intra-chat-message-text {
    font-size: 14px;
    line-height: 1.45;
}

.intra-chat-message-time {
    margin-top: 6px;
    font-size: 11px;
    opacity: 0.85;
}

.intra-chat-message.is-own .intra-chat-message-time {
    text-align: right;
}

.intra-chat-deleted {
    font-style: italic;
    text-decoration: line-through;
    opacity: 0.85;
}

.intra-chat-delete-msg {
    position: absolute;
    top: -8px;
    right: -8px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.intra-chat-message.is-own .intra-chat-message-bubble:hover .intra-chat-delete-msg {
    display: inline-flex;
}

.intra-chat-compose {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid #dee2e6;
    background: #fff;
}

.intra-chat-file-input {
    display: none;
}

.intra-chat-attach-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 62px;
    padding: 0;
    border: 1px solid #6c757d;
    border-radius: 6px;
    background: #fff;
    color: #495057;
    font-size: 20px;
    cursor: pointer;
}

.intra-chat-attach-btn:hover {
    background: #f8f9fa;
    color: #007bff;
    border-color: #adb5bd;
}

.intra-chat-file-message {
    padding: 8px 10px;
    border-radius: 10px;
    margin-top: 2px;
}

.intra-chat-message.is-own .intra-chat-file-message {
    background: rgba(255, 255, 255, 0.16);
}

.intra-chat-message.is-other .intra-chat-file-message {
    background: #f1f3f5;
}

.intra-chat-file-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.intra-chat-file-name {
    word-break: break-all;
    font-size: 13px;
}

.intra-chat-file-size {
    font-size: 12px;
    opacity: 0.85;
}

.intra-chat-file-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.intra-chat-file-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.intra-chat-file-action:hover {
    text-decoration: underline;
}

.intra-chat-message.is-own .intra-chat-file-action {
    color: #fff;
}

.intra-chat-message.is-other .intra-chat-file-action {
    color: #007bff;
}

.intra-chat-file-preview-overlay {
    z-index: 22000;
}

.intra-chat-file-preview-panel {
    display: flex;
    flex-direction: column;
    width: min(440px, calc(100vw - 32px));
    max-height: min(520px, calc(100vh - 48px));
    border: 1px solid rgba(93, 214, 255, 0.24);
    border-radius: 12px;
    background: #171d27;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.46);
    overflow: hidden;
    color: #e8edf8;
}

.intra-chat-file-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 10px 14px;
    border-bottom: 1px solid #293241;
}

.intra-chat-file-preview-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
}

.intra-chat-file-preview-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #dce3f1;
    cursor: pointer;
}

.intra-chat-file-preview-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.intra-chat-file-preview-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    max-height: 380px;
    padding: 10px;
    overflow: auto;
    background: #0f1318;
}

.intra-chat-file-preview-image {
    display: block;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 6px;
}

.intra-chat-file-preview-frame {
    width: 100%;
    height: 340px;
    border: 0;
    border-radius: 6px;
    background: #fff;
}

.intra-chat-file-preview-unsupported {
    margin: 0;
    padding: 8px 4px;
    color: #9da8b9;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.intra-chat-file-preview-foot {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 10px 14px 12px;
    border-top: 1px solid #293241;
}

.intra-chat-file-preview-foot-link {
    font-size: 13px;
    font-weight: 700;
    color: #5dd6ff;
    text-decoration: none;
}

.intra-chat-file-preview-foot-link:hover {
    text-decoration: underline;
}

button.intra-chat-file-action {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.intra-chat-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 62px;
    max-height: 120px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    resize: vertical;
}

.intra-chat-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #007bff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.intra-chat-send-btn:hover {
    background: #0069d9;
}

.intra-chat-users {
    flex: 0 0 28%;
    min-width: 200px;
    max-width: 280px;
    min-height: 0;
    align-self: stretch;
    padding: 14px;
    overflow-y: auto;
    background: #f8f9fa;
}

.intra-chat-users-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #343a40;
}

.intra-chat-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    padding: 8px 10px;
    border-left: 3px solid #28a745;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
}

.intra-chat-user-item.is-offline {
    border-left-color: #6c757d;
    opacity: 0.65;
}

.intra-chat-user-item.is-inactive-user {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.intra-chat-user-item.is-auto-logout-warning {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.intra-chat-user-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.intra-chat-user-status {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
}

.intra-chat-user-status.is-active {
    color: #28a745;
}

.intra-chat-user-status.is-inactive {
    color: #ffc107;
}

.intra-chat-user-status.is-auto-logout {
    color: #dc3545;
}

.intra-chat-users-empty {
    font-size: 13px;
    color: #6c757d;
}

.intra-chat-form-dialog-body {
    text-align: left;
}

.intra-chat-identity-hint {
    margin: 0 0 12px;
    color: #9da8b9;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.intra-chat-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.intra-chat-form-input {
    width: 100%;
    height: 38px;
    margin-bottom: 12px;
    padding: 0 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font: inherit;
}

.intra-chat-password-fields .intra-chat-form-input:last-child {
    margin-bottom: 0;
}

.top-context {
    margin-top: 6px;
    font-size: 11px;
}

.top-context strong,
.top-context span {
    display: block;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.header h1 {
    margin: 0;
    font-size: 28px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}

.card strong {
    display: block;
    margin-top: 8px;
    font-size: 26px;
}

.panel {
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-title h2 {
    margin: 0;
    font-size: 18px;
}

.hierarchy-strip,
.flow {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.hierarchy-strip div,
.flow span {
    padding: 14px;
    background: #11182a;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
}

.hierarchy-strip span {
    display: block;
    color: var(--muted);
}

.hierarchy-strip strong {
    display: block;
    margin-top: 4px;
    font-size: 22px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.badge-success {
    color: var(--success);
    background: rgba(87, 214, 141, 0.12);
}

.muted {
    color: var(--muted);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border-radius: 14px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.table th {
    color: var(--muted);
    font-weight: 600;
}

.login-wrap {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    width: min(420px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.field {
    margin-top: 16px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

.field input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #11182a;
    color: var(--text);
    font-size: 18px;
    line-height: 1.35;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 22px;
    padding: 13px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #06101f;
    font-weight: 800;
    cursor: pointer;
}

.btn-compact {
    width: auto;
    margin-top: 0;
}

.notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(93, 214, 255, 0.35);
    border-radius: 10px;
    color: var(--accent);
    background: rgba(93, 214, 255, 0.08);
}

.notice-danger {
    color: var(--danger);
    border-color: rgba(255, 93, 122, 0.35);
    background: rgba(255, 93, 122, 0.08);
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.captcha-box {
    flex-shrink: 0;
}

.captcha_canvas {
    display: block;
    width: 150px;
    height: 56px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #1c2434;
    cursor: pointer;
    image-rendering: auto;
    filter: contrast(0.92) saturate(0.85);
}

.captcha-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.captcha-input {
    width: 100%;
    height: 56px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #11182a;
    color: var(--text);
    font-size: 18px;
    line-height: 1.35;
}

.login-card .btn {
    margin-top: 16px;
}

.game-hero {
    min-height: 360px;
    padding: 64px;
    border-radius: 24px;
    background: radial-gradient(circle at top right, rgba(93, 214, 255, 0.3), transparent 36%), var(--panel);
}

.game-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.login-panel {
    display: grid;
    grid-template-columns: 1.1fr 420px;
    gap: 22px;
    width: min(980px, 100%);
}

.login-copy {
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: radial-gradient(circle at top right, rgba(93, 214, 255, 0.26), transparent 34%), #0b1020;
}

.login-copy h1 {
    margin: 0;
    font-size: 36px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 12px;
}

.head-login .login-brand-title h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.head-login .login-brand-en {
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: transparent;
    background: linear-gradient(90deg, #94a3b8 0%, #5dd6ff 45%, #137fec 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.head-login .login-logo-image {
    display: block;
    width: 100%;
    max-width: 448px;
    height: auto;
    object-fit: contain;
    margin-top: 8px;
}

.login-copy p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.7;
}

.login-summary {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.login-summary div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(17, 24, 42, 0.72);
}

.login-summary dt {
    color: var(--muted);
    font-size: 12px;
}

.login-summary dd {
    margin: 6px 0 0;
    font-weight: 800;
}

.dashboard-board {
    display: grid;
    gap: 12px;
}

.summary-box {
    background: #171d27;
    border: 1px solid #252d3a;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.summary-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #293241;
    background: #151b25;
}

.summary-title h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

.summary-title button {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 3px;
    background: #202739;
    color: #6f7da1;
    cursor: pointer;
}

.summary-scroll {
    overflow-x: auto;
}

.summary-table,
.notice-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #1b222d;
    color: #dce3f1;
    font-size: 11px;
}

.summary-table th,
.summary-table td,
.notice-table th,
.notice-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #323b49;
    text-align: center;
    white-space: nowrap;
}

.summary-table th,
.notice-table th {
    color: #c8d0df;
    font-weight: 700;
    background: #1a202a;
}

.summary-table td {
    color: #f0f4fb;
}

.summary-table.compact th,
.summary-table.compact td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.notice-table th:first-child,
.notice-table td:first-child {
    width: 70px;
}

.notice-table th:last-child,
.notice-table td:last-child {
    width: 190px;
    text-align: right;
    padding-right: 22px;
}

.notice-table .notice-title {
    text-align: center;
    font-weight: 700;
}

.notice-link {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.notice-link:hover {
    color: #fff;
    text-decoration: underline;
}

body.notice-open {
    overflow: hidden;
}

.notice-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 12, 20, 0.72);
}

.notice-overlay.is-open {
    display: flex;
}

.notice-overlay[hidden]:not(.is-open) {
    display: none;
}

.notice-dialog {
    display: flex;
    flex-direction: column;
    width: min(600px, 100%);
    max-height: calc(100vh - 48px);
    border-radius: 8px;
    background: #171d27;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.notice-dialog-title {
    min-height: 48px;
    padding: 14px 20px;
    border-bottom: 1px solid #293241;
    background: #151b25;
    color: #e8edf8;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.notice-dialog-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    color: #dce3f1;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-line;
}

#notice-overlay .notice-dialog-title.notice-dialog-rich {
    white-space: normal;
    font-weight: inherit;
    text-align: center;
    padding: 18px 20px;
}

#notice-overlay .notice-dialog-title.notice-dialog-rich :where(p, h1, h2, h3) {
    margin: 0;
    line-height: 1.45;
}

#notice-overlay .notice-dialog-body.notice-dialog-rich {
    white-space: normal;
    padding: 24px 28px 28px;
    font-size: 14px;
    line-height: 1.75;
    word-break: keep-all;
}

#notice-overlay .notice-dialog-body.notice-dialog-rich :where(p, div, li) {
    margin: 0 0 0.85em;
}

#notice-overlay .notice-dialog-body.notice-dialog-rich :where(p, div, li):last-child {
    margin-bottom: 0;
}

#notice-overlay .notice-dialog-body.notice-dialog-rich :where(ul, ol) {
    margin: 0 0 0.85em;
    padding-left: 1.35em;
    text-align: left;
}

#notice-overlay .notice-dialog-body.notice-dialog-rich a {
    color: #5dd6ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.notice-dialog-actions {
    display: flex;
    justify-content: flex-end;
    min-height: 52px;
    padding: 10px 16px;
    border-top: 1px solid #293241;
    background: #151b25;
}

.notice-dialog-actions button {
    min-width: 72px;
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    background: #315dff;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.notice-dialog-actions button:hover {
    filter: brightness(1.08);
}

.notice-edit-overlay {
    align-items: flex-start;
    padding: 70px 24px 24px;
}

.notice-edit-dialog {
    display: flex;
    flex-direction: column;
    width: min(975px, calc(100vw - 48px));
    max-height: calc(100vh - 94px);
    border: 1px solid #293241;
    border-radius: 8px;
    background: #171d27;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.notice-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 0 20px;
    border-bottom: 1px solid #293241;
    background: #151b25;
}

.notice-edit-title {
    margin: 0;
    color: #e8edf8;
    font-size: 16px;
    font-weight: 700;
}

.notice-edit-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #aeb8cc;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.notice-edit-close:hover {
    background: #20283b;
    color: #fff;
}

.notice-edit-form {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    padding: 20px;
    overflow-y: auto;
}

.notice-edit-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notice-edit-field-grow {
    flex: 1;
    min-height: 0;
}

.editor-container {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 65px;
    padding: 10px 12px;
    border: 1px solid #323b49;
    border-radius: 4px;
    background: #151b25;
}

.editor-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #c8d0df;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.editor-toolbar-btn:hover,
.editor-toolbar-btn.is-active {
    background: #20283b;
    color: #fff;
}

.editor-toolbar-divider {
    width: 1px;
    height: 24px;
    margin: 0 4px;
    background: #323b49;
}

.editor-toolbar-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 8px;
    background: #1b222d;
}

.editor-color-picker {
    position: relative;
}

.editor-color-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 10001;
    width: 72px;
    padding: 8px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #171d27;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.editor-color-menu.is-open {
    display: block;
}

.editor-color-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editor-color-swatch {
    width: 100%;
    height: 24px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    background: var(--swatch-color);
    cursor: pointer;
}

.editor-color-swatch:hover,
.editor-color-swatch:focus {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(49, 93, 255, 0.55);
}

.editor-content {
    overflow-x: hidden;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 공지 수정 에디터 — 선명한 본문 (흐릿·저대비 방지) */
#notice-edit-overlay .notice-edit-dialog .editor-content.notice-edit-textarea {
    font-size: 15px;
    line-height: 1.65;
    color: #f3f6fc;
    opacity: 1;
    caret-color: #5dd6ff;
    outline: 0;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
    text-rendering: auto;
}

#notice-edit-overlay .notice-edit-dialog .editor-content :where(p, div, li, h1, h2, h3, blockquote) {
    margin: 0 0 0.65em;
    color: inherit;
    opacity: 1;
}

#notice-edit-overlay .notice-edit-dialog .editor-content :where(p, div, li, h1, h2, h3, blockquote):last-child {
    margin-bottom: 0;
}

#notice-edit-overlay .notice-edit-dialog .editor-content :where(strong, b) {
    color: inherit;
    font-weight: 700;
}

#notice-edit-overlay .notice-edit-dialog .editor-content :where(span:not([style*="color"])) {
    color: inherit;
}

.editor-content:empty::before {
    content: "내용을 입력하세요";
    color: #6f7a90;
}

.editor-content h1 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
}

.editor-content h2 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
}

.editor-content h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.editor-content img,
#notice-overlay .notice-dialog-body img,
.notice-popup-body img,
.notice-edit-popup-preview-pop img,
#partner-notice-view-overlay .partner-notice-view-body img {
    display: block;
    box-sizing: border-box;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    max-height: none;
    object-fit: contain;
    object-position: center;
    margin: 10px auto;
    border-radius: 4px;
    vertical-align: middle;
}

.notice-edit-label {
    color: #c8d0df;
    font-size: 13px;
    font-weight: 700;
}

.notice-edit-input,
.notice-edit-textarea {
    width: 100%;
    border: 1px solid #323b49;
    border-radius: 4px;
    background: #121722;
    color: #f3f6fc;
    font: inherit;
    font-size: 15px;
}

.notice-edit-input {
    height: 40px;
    padding: 0 12px;
}

.notice-edit-textarea {
    flex: 1;
    min-height: 420px;
    padding: 12px;
    line-height: 1.7;
    resize: vertical;
}

.notice-edit-input:focus,
.notice-edit-textarea:focus {
    outline: 0;
    border-color: #315dff;
}

.notice-edit-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.notice-edit-popup-size {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.notice-edit-popup-size-label {
    color: #dce3f1;
    font-size: 13px;
    font-weight: 600;
}

.notice-edit-popup-size-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c8d0df;
    font-size: 13px;
}

.notice-edit-popup-size-input {
    width: 88px;
    min-height: 34px;
    padding: 6px 10px;
}

.notice-edit-popup-size-hint {
    color: #8b98ad;
    font-size: 12px;
}

html.admin-theme-light .notice-edit-popup-size-label {
    color: #334155;
}

html.admin-theme-light .notice-edit-popup-size-field {
    color: #475569;
}

html.admin-theme-light .notice-edit-popup-size-hint {
    color: #64748b;
}

.notice-edit-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dce3f1;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.notice-edit-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #315dff;
    cursor: pointer;
}

.notice-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    min-height: 60px;
    padding: 12px 20px;
    border-top: 1px solid #293241;
    background: #151b25;
}

.notice-edit-btn {
    min-width: 80px;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.notice-edit-btn-preview {
    background: #243044;
    color: #dce3f1;
    border: 1px solid #3b4554;
}

.notice-edit-btn-cancel {
    background: #202739;
    color: #c8d0df;
}

.notice-edit-btn-save {
    background: #315dff;
    color: #fff;
}

.notice-edit-btn:hover {
    filter: brightness(1.08);
}

.editor-link-overlay {
    z-index: 10100;
}

.editor-link-dialog {
    display: flex;
    flex-direction: column;
    width: min(480px, calc(100vw - 48px));
    border: 1px solid #293241;
    border-radius: 8px;
    background: #171d27;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.editor-link-title {
    min-height: 64px;
    padding: 16px;
    color: #e8edf8;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.editor-link-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px 16px;
}

.editor-link-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    min-height: 52px;
    padding: 0 16px 16px;
}

.editor-link-btn {
    min-width: 64px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid #3a4356;
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.editor-link-btn-confirm {
    color: #5dd6ff;
    border-color: rgba(93, 214, 255, 0.45);
}

.editor-link-btn-cancel {
    color: #aeb8cc;
}

.editor-link-btn:hover {
    background: #20283b;
}

.dashboard-footer {
    display: flex;
    justify-content: center;
    padding: 8px 0 2px;
}

.dashboard-footer button {
    padding: 6px 14px;
    border: 1px solid #303b56;
    border-radius: 4px;
    background: #121826;
    color: #8590ff;
    font-size: 11px;
    cursor: pointer;
}

.chart-box {
    min-height: 220px;
}

.today-module {
    border-radius: 8px;
}

.monthly-module {
    border-radius: 8px;
}

.dashboard-module {
    border-radius: 8px;
}

.module-table-text {
    padding: 0;
}

.dashboard-module .module-content {
    background: #171d27;
}

.dashboard-module .summary-table {
    table-layout: fixed;
    width: 100%;
}

.dashboard-module .summary-table th {
    width: 54px;
    padding: 8px 4px;
    white-space: normal;
    word-break: keep-all;
    line-height: 1.35;
    vertical-align: middle;
}

.dashboard-module .summary-table td {
    white-space: nowrap;
    padding: 10px 4px;
}

.monthly-card-text {
    min-height: 393px;
    padding: 16px 20px 24px;
}

.month-nav {
    min-height: 31px;
    padding: 6px 10px;
    border: 0;
    border-radius: 3px;
    background: #202739;
    color: #a9b3c8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.month-nav.active {
    background: #315dff;
    color: #fff;
}

.monthly-chart {
    min-height: 280px;
}

.bar.charge {
    background: #ff4d79;
}

.bar.exchange {
    background: #ffbb35;
}

.module-header {
    display: flex;
    align-items: center;
    width: 100%;
    height: 65px;
    padding: 0 16px;
    border-bottom: 1px solid #293241;
    background: #151b25;
    color: #e8edf8;
}

.module-header strong {
    font-size: 14px;
    font-weight: 700;
}

.module-content {
    min-height: 393px;
    background: #171d27;
}

.today-card-text {
    min-height: 393px;
    padding: 16px 20px 24px;
}

.module-tools {
    justify-content: flex-end;
    min-height: 48px;
    margin-bottom: 16px;
}

.chart-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c8d0df;
    font-size: 12px;
}

.chart-tools label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    color: #c8d0df;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.chart-tools button {
    width: auto;
    height: auto;
    min-height: 31px;
    padding: 6px 9px;
    border: 0;
    border-radius: 3px;
    background: #202739;
    color: #a9b3c8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.chart-tools button.active {
    background: #2c3446;
    color: #fff;
}

.today-chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 210px;
    padding: 28px 24px 16px;
}

.today-module .today-chart-grid {
    min-height: 350px;
    padding: 0;
}

.today-chart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 350px;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
}

.today-chart + .today-chart {
    border-left: 1px solid #293241;
}

.today-donut-chart,
.vue-apexchart,
.apexcharts-canvas {
    position: relative;
    width: 326px;
    height: 350px;
    max-width: 100%;
}

.vue-apexchart {
    min-height: 350px;
}

.apexcharts-canvas {
    margin: 0 auto;
    user-select: none;
}

.today-donut-svg {
    display: block;
    width: 326px;
    height: 350px;
    max-width: 100%;
    overflow: visible;
}

.today-donut-track,
.today-donut-segment {
    fill: none;
    stroke-width: 48;
    transform: rotate(-90deg);
    transform-origin: 163px 175px;
}

.today-donut-track {
    stroke: rgba(255, 255, 255, 0.08);
}

.today-donut-segment {
    stroke-linecap: butt;
    stroke-linejoin: round;
    paint-order: stroke;
    stroke-width: 48;
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.today-donut-segment-front {
    stroke-width: 48;
}

.today-donut-hole {
    fill: #171d27;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 2;
}

.apexcharts-title-text {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    color: #e8edf8;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.today-donut-center {
    position: absolute;
    top: 142px;
    left: 50%;
    width: 116px;
    height: 70px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.today-donut-center span {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.today-donut-center small {
    margin-top: 7px;
    color: #8590a6;
    font-size: 12px;
    font-weight: 700;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 0;
    color: #c8d0df;
    font-size: 12px;
    font-weight: 700;
}

.apexcharts-legend {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    min-height: 22px;
}

.apexcharts-legend-series {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.apexcharts-legend-marker {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.apexcharts-legend-text {
    color: #c8d0df;
    font-size: 12px;
    line-height: 1;
}

.chart-legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 3px;
    border-radius: 50%;
}

.daily-chart {
    position: relative;
    min-height: 250px;
    padding: 34px 22px 24px 42px;
}

.chart-scale {
    position: absolute;
    top: 30px;
    bottom: 48px;
    left: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #dce3f1;
    font-size: 11px;
}

.bar-stage {
    display: grid;
    grid-template-columns: repeat(19, minmax(20px, 1fr));
    align-items: end;
    height: 180px;
    border-bottom: 1px solid #758095;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 43px,
        rgba(180, 190, 210, 0.45) 44px
    );
}

.bar-day {
    display: grid;
    align-items: end;
    height: 100%;
    text-align: center;
}

.bar-pair {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 2px;
    height: 100%;
}

.bar {
    width: 11px;
    min-height: 2px;
    border-radius: 2px 2px 0 0;
}

.bar.deposit {
    background: #19c8ff;
}

.bar.withdrawal {
    background: #24e089;
}

.bar-day em {
    margin-top: 8px;
    color: #a9b3c8;
    font-size: 9px;
    font-style: normal;
}

.chart-legend.daily {
    justify-content: flex-start;
    margin-top: 12px;
}

.page-container {
    width: 100%;
    padding: 16px 32px 32px;
}

.members-page-container,
.partners-page-container {
    padding: 4px 0 12px;
}

.members-page-container:not(.online-members-page) {
    padding-bottom: 12px;
}

.page-status-notice {
    margin-bottom: 12px;
    padding: 12px 16px;
    border: 1px solid #315dff;
    border-radius: 8px;
    background: rgba(49, 93, 255, 0.12);
    color: #c8d0df;
    font-size: 13px;
}

.page-status-notice-error {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.page-title {
    margin: 0;
    color: #e8edf8;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

.page-btn-primary {
    min-width: 120px;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 4px;
    background: #315dff;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.page-btn-primary:hover {
    filter: brightness(1.08);
}

.page-card {
    border: 1px solid #293241;
    border-radius: 4px;
    background: #171d27;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.page-card-body {
    padding: 0;
}

.page-container.date-filter-page {
    padding-top: 16px;
    padding-bottom: 32px;
}

.page-container.date-filter-page .date-filter-body,
.page-container.date-filter-page .login-history-body.date-filter-body {
    padding: 12px 10px 24px;
}

.page-container.date-filter-page:has(.betting-list-tracking) {
    padding-top: 4px;
    padding-right: 12px;
    padding-bottom: 12px;
    padding-left: 12px;
}

.page-container.date-filter-page:has(.betting-list-tracking) .login-history-body.date-filter-body {
    padding: 0 6px 8px;
}

.page-container.date-filter-page:has(.betting-list-tracking) .betting-list-tree-section.members-tree-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}

.page-container.date-filter-page:has(.betting-list-tracking) .betting-list-tree-section.members-tree-section .partners-tree-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.page-container.date-filter-page:has(.betting-list-tracking) .date-filter-form.login-history-topbar {
    margin-bottom: 8px;
    padding: 8px 10px;
    gap: 6px 8px;
}

.page-container.date-filter-page:has(.betting-list-tracking) .betting-list-query-totals {
    gap: 6px 10px;
}

.page-container.date-filter-page:has(.betting-list-tracking) .betting-list-query-totals-grid {
    gap: 4px 14px;
}

.page-container.date-filter-page:has(.betting-list-tracking) .betting-list-main {
    gap: 8px;
    min-height: 0;
}

/* 베팅목록: 보유머니 변동내역(standalone)·충환전 list-tracking과 동일 — 본문 높이 고정, 표만 스크롤 */
body.admin-body.is-betting-list-page .admin-main-scroll {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-top: 4px;
    padding-bottom: 0;
}

body.admin-body.is-betting-list-page .page-container.date-filter-page.list-tracking-page.is-betting-list-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

body.admin-body.is-betting-list-page .page-container.is-betting-list-page > .page-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.admin-body.is-betting-list-page .page-container.is-betting-list-page > .page-card > .page-card-body.login-history-body.date-filter-body,
body.admin-body.is-betting-list-page .page-container.is-betting-list-page > .page-card > .page-card-body.partners-list-body.login-history-body.date-filter-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 4px;
    padding-right: 6px;
    padding-bottom: 0;
    padding-left: 6px;
    overflow: hidden;
}

body.admin-body.is-betting-list-page #date-filter-form.login-history-topbar,
body.admin-body.is-betting-list-page .betting-list-query-totals {
    flex: 0 0 auto;
}

body.admin-body.is-betting-list-page .betting-list-tracking {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.admin-body.is-betting-list-page #betting-list-main,
body.admin-body.is-betting-list-page .betting-list-main {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
}

body.admin-body.is-betting-list-page .betting-list-table-main.partners-list-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.admin-body.is-betting-list-page .betting-list-table-shell.partners-table-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
}

body.admin-body.is-betting-list-page .betting-list-table-shell > .betting-list-table-scroll,
body.admin-body.is-betting-list-page .betting-list-table-shell > .page-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.page-container.date-filter-page.list-tracking-page:has(.betting-list-tracking) .betting-list-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #151b25;
}

html.admin-theme-light .page-container.date-filter-page:has(.betting-list-tracking) .betting-list-table thead th {
    background: #eef2f8 !important;
    color: #1f2937;
    box-shadow: 0 1px 0 var(--line);
}

body.admin-body.is-betting-list-page #betting-list-table-footer {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 4px 10px;
    gap: 6px 10px;
    z-index: 4;
    border-top: 1px solid #293241;
    background: #171d27;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.35);
}

html.admin-theme-light body.admin-body.is-betting-list-page #betting-list-table-footer {
    border-top-color: var(--line);
    background: var(--panel);
    box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.08);
}

body.admin-body.is-betting-list-page #betting-list-table-footer .members-data-table-footer-controls {
    gap: 6px 10px;
}

body.admin-body.is-betting-list-page #betting-list-table-footer .members-data-table-pages .pagination-page,
body.admin-body.is-betting-list-page #betting-list-table-footer .members-data-table-page-ellipsis {
    width: 26px;
    height: 26px;
    min-width: 26px;
}

.date-filter-page .partners-table-shell.date-filter-table-shell {
    margin-right: 0;
    margin-left: 0;
}

.betting-list-main {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    min-height: 520px;
}

.betting-list-tree-section {
    flex: 0 0 200px;
    width: 200px;
    max-width: 200px;
}

.betting-list-table-main {
    min-width: 0;
    flex: 1 1 auto;
}


.date-filter-page .betting-list-table-shell {
    margin-left: 0;
}

.date-filter-form,
.date-filter-table-shell {
    margin-right: 0;
    margin-left: 0;
}

.date-filter-form > .login-history-topbar-title-active {
    margin-right: auto;
    margin-left: 0;
}

.date-filter-table-wrap {
    padding-right: 0;
    padding-left: 0;
}

.betting-list-table-shell .custom-data-table {
    padding: 0;
}

.cash-deposit-page .cash-deposit-table-shell {
    margin-left: 0;
}

.cash-deposit-table-shell .custom-data-table {
    padding: 0;
}

.betting-gongbet-col {
    min-width: 64px;
    padding-top: 4px;
    padding-bottom: 4px;
    vertical-align: bottom;
}

.betting-gongbet-head-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 4px;
    padding: 0 4px;
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.25);
    color: #fde68a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.betting-gongbet-head-label {
    display: block;
    line-height: 1.35;
}

.betting-gongbet-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    border: 1px solid transparent;
}

.betting-gongbet-tag.is-rolling-only {
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.4);
}

.betting-gongbet-tag.is-round-all {
    color: #fdba74;
    background: rgba(251, 146, 60, 0.18);
    border-color: rgba(251, 146, 60, 0.42);
}

.gongbet-stats-page .gongbet-stats-aff-form {
    flex-wrap: wrap;
    align-items: center;
}

.gongbet-stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0 0 14px;
    padding: 10px 14px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    background: rgba(14, 116, 144, 0.12);
    color: #9ec8d8;
    font-size: 13px;
    font-weight: 700;
}

.gongbet-stats-summary strong {
    color: #7dd3fc;
    font-weight: 800;
}

.daily-betting-stats-page .daily-betting-aff-form {
    flex-wrap: wrap;
    align-items: center;
}

.daily-betting-stats-page .daily-betting-vendor-action-group {
    flex: 1 1 100%;
    min-width: min(100%, 520px);
    align-items: center;
}

.daily-betting-stats-page .daily-betting-vendor-action-group .date-filter-vendor-kind {
    margin-left: auto;
}

.daily-gongbet-cell {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #9ec8d8;
}

.betting-list-vendor-kind-col {
    width: 52px;
    text-align: center;
    white-space: nowrap;
}

.betting-list-vendor-kind-col .top-line-realtime-tag {
    vertical-align: middle;
}

.betting-list-table [data-col][hidden] {
    display: none;
}

.partners-data-table.betting-list-table thead th {
    min-width: 72px;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.partners-data-table.betting-list-table thead th.betting-list-store-head {
    min-width: 108px;
}

.partners-data-table.betting-list-table tbody td {
    padding: 2px 6px;
    line-height: 1.25;
    font-size: 12px;
}

.betting-list-table th.betting-list-store-head {
    min-width: 108px;
    padding-top: 4px;
    padding-bottom: 4px;
    vertical-align: bottom;
}

.betting-list-table .betting-list-column-hide-btn {
    display: inline-flex;
    min-height: 22px;
    margin: 0 auto 3px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.betting-list-store-head-label {
    display: block;
    line-height: 1.35;
}

.adjust-list-table th.partners-table-login-id-head {
    min-width: 100px;
    padding-top: 4px;
    padding-bottom: 4px;
    vertical-align: bottom;
}

.adjust-list-table thead th.partners-table-login-id-head .partners-table-login-id-head-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

.adjust-list-table thead th.partners-table-login-id-head .partners-table-th-label {
    display: block;
    line-height: 1.35;
}

.adjust-list-table thead th.partners-table-login-id-head .partners-column-hide-btn {
    display: flex;
    width: 100%;
    min-height: 22px;
    margin: 0;
    padding: 0 6px;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
}

.betting-list-table tbody td[data-col="store_id"] {
    padding-top: 2px;
    padding-bottom: 2px;
}

.betting-list-table .members-affiliation-trigger {
    min-height: 26px;
    padding-top: 0;
    padding-bottom: 0;
}

.betting-list-table .cash-deposit-chip-trigger.members-affiliation-trigger {
    min-height: 36px;
    padding-top: 1px;
    padding-bottom: 1px;
}

.betting-list-table td.betting-list-affiliation-merge-cell {
    padding-top: 0;
    padding-bottom: 0;
    vertical-align: middle;
}

.betting-list-table td.betting-list-member-combobox-cell {
    padding-top: 0;
    padding-bottom: 0;
    vertical-align: middle;
}

.betting-list-table .money-log-affiliation-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    max-width: 100%;
    min-height: 30px;
    height: auto;
    margin: 0;
    padding: 2px 6px 2px 4px;
    border: 1px solid #3a4558;
    border-radius: 8px;
    background: #121722;
    color: #e8edf8;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
}

.betting-list-table .money-log-affiliation-combobox {
    position: relative;
    display: inline-block;
    width: max-content;
    max-width: 100%;
    margin: 0;
    vertical-align: middle;
}

.betting-list-table .money-log-affiliation-combobox .members-affiliation-trigger {
    width: auto;
    min-height: 30px;
}

.betting-list-table .members-affiliation-icon,
.betting-list-table .members-affiliation-trigger .members-affiliation-icon {
    width: 22px;
    height: 22px;
}

.betting-list-win {
    color: #57d68d;
}

.betting-list-profit.is-plus {
    color: #57d68d;
}

.betting-list-profit.is-minus {
    color: #ff6b7a;
}

.partners-data-table.betting-list-table {
    border-collapse: collapse;
}

.betting-list-table th[data-col="bet"],
.betting-list-table td[data-col="bet"],
.betting-list-table th[data-col="valid_bet"],
.betting-list-table td[data-col="valid_bet"] {
    text-align: right;
    white-space: nowrap;
    min-width: 88px;
}

.betting-list-table th[data-col="login_id"],
.betting-list-table td[data-col="login_id"] {
    width: 100px;
    min-width: 100px;
    max-width: 140px;
    border-left: 1px solid #3b4554;
    border-right: 1px solid #3b4554;
}

.betting-list-table th[data-col="vendor"],
.betting-list-table td[data-col="vendor"] {
    width: 96px;
    min-width: 96px;
    max-width: 120px;
    border-left: 1px solid #3b4554;
    border-right: 1px solid #3b4554;
}

.betting-list-table th[data-col="game"],
.betting-list-table td[data-col="game"] {
    width: 120px;
    min-width: 120px;
    max-width: 180px;
    border-left: none;
    border-right: 1px solid #3b4554;
}

.betting-list-table td.betting-list-merge-cell {
    vertical-align: middle;
}

.betting-list-table td.betting-list-merge-cell[rowspan],
.betting-list-table td.betting-list-merge-cell.is-rowspan-merged {
    border-top: 1px solid #3b4554;
    border-bottom: 1px solid #3b4554;
    background: rgba(17, 22, 30, 0.72);
    cursor: help;
}

.betting-list-table td.betting-list-merge-cell.is-merge-label-triple {
    position: relative;
    vertical-align: top;
    padding: 3px 6px;
}

.betting-list-table td.betting-list-merge-cell.is-merge-label-triple .betting-list-merge-label {
    display: block;
    width: 100%;
    line-height: 1.25;
    text-align: center;
    word-break: break-all;
}

.betting-list-table td.betting-list-merge-cell.is-merge-label-triple .betting-list-merge-label.is-start {
    position: absolute;
    top: 3px;
    left: 6px;
    right: 6px;
}

.betting-list-table td.betting-list-merge-cell.is-merge-label-triple .betting-list-merge-label.is-mid {
    position: absolute;
    top: 50%;
    left: 6px;
    right: 6px;
    transform: translateY(-50%);
}

.betting-list-table td.betting-list-merge-cell.is-merge-label-triple .betting-list-merge-label.is-end {
    position: absolute;
    bottom: 3px;
    left: 6px;
    right: 6px;
}

.betting-list-table td.betting-list-merge-cell.betting-list-member-cell.is-merge-label-triple .betting-list-merge-label {
    text-align: left;
}

.betting-list-table td.betting-list-affiliation-merge-cell.is-rowspan-merged {
    vertical-align: middle;
}

.betting-list-table td.betting-list-affiliation-merge-cell.is-merge-label-triple .betting-list-merge-affiliation-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
    text-align: left;
}

.betting-list-table td.betting-list-affiliation-merge-cell.is-merge-label-triple .betting-list-merge-affiliation-compact .members-affiliation-icon {
    flex-shrink: 0;
}

.betting-list-table td.betting-list-affiliation-merge-cell.is-merge-label-triple .betting-list-merge-affiliation-compact-code {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.betting-list-merge-tip {
    position: fixed;
    z-index: 12000;
    max-width: min(300px, 88vw);
    padding: 6px 10px;
    border: 1px solid #4a5568;
    border-radius: 6px;
    background: #111827;
    color: #f3f4f6;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    word-break: keep-all;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.betting-list-merge-tip[hidden] {
    display: none !important;
}

html.admin-theme-light .betting-list-merge-tip {
    border-color: #c5cedb;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}

.betting-list-table tbody tr:hover td.betting-list-merge-cell[rowspan],
.betting-list-table tbody tr:hover td.betting-list-merge-cell.is-rowspan-merged {
    background: rgba(21, 28, 40, 0.88);
}

html.admin-theme-light .betting-list-table th[data-col="vendor"],
html.admin-theme-light .betting-list-table td[data-col="vendor"] {
    border-left-color: #c5cedb;
    border-right-color: #c5cedb;
}

html.admin-theme-light .betting-list-table th[data-col="game"],
html.admin-theme-light .betting-list-table td[data-col="game"] {
    border-right-color: #c5cedb;
}

html.admin-theme-light .betting-list-table td.betting-list-merge-cell[rowspan],
html.admin-theme-light .betting-list-table td.betting-list-merge-cell.is-rowspan-merged {
    border-top-color: #c5cedb;
    border-bottom-color: #c5cedb;
    background: #f3f6fa;
    color: #1a2332;
}

html.admin-theme-light .betting-list-table tbody tr:hover td.betting-list-merge-cell[rowspan],
html.admin-theme-light .betting-list-table tbody tr:hover td.betting-list-merge-cell.is-rowspan-merged {
    background: #e9eef5;
}

html.admin-theme-light .betting-list-table .betting-list-win,
html.admin-theme-light .betting-list-table .betting-list-profit.is-plus {
    color: #047857;
    font-weight: 700;
}

html.admin-theme-light .betting-list-table .betting-list-profit.is-minus {
    color: #dc2626;
    font-weight: 700;
}

.betting-list-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(93, 214, 255, 0.45);
    border-radius: 5px;
    background: rgba(93, 214, 255, 0.1);
    color: #5dd6ff;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.betting-list-detail-btn:hover {
    border-color: #5dd6ff;
    background: rgba(93, 214, 255, 0.18);
    color: #8ae4ff;
}

.daily-summary-table {
    min-width: 100%;
}

.daily-summary-table th,
.daily-summary-table td {
    text-align: center;
}

.daily-summary-money-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.35;
    white-space: nowrap;
}

.daily-summary-money-total {
    font-size: 14px;
    font-weight: 700;
    color: #e8edf8;
}

.daily-summary-money-part {
    font-size: 11px;
    font-weight: 600;
}

.daily-summary-money-part.is-cash {
    color: #93c5fd;
}

.daily-summary-money-part.is-coin {
    color: #22d3ee;
}

.daily-summary-total .daily-summary-money-total {
    color: #ffeb3b;
}

.daily-summary-table tfoot td,
.daily-summary-total td {
    background: #151b25;
    color: #e8edf8;
    font-weight: 700;
}

.date-filter-table-shell:has(.record-stats-table) .date-filter-table-wrap {
    padding-bottom: 16px;
    padding-top: 0;
}

.record-stats-table thead th.partners-table-login-id-head,
.record-stats-table th[data-col="game_kind"],
.record-stats-table td[data-col="game_kind"] {
    width: 78px;
    min-width: 78px;
    max-width: 88px;
    padding: 6px 2px 8px;
    vertical-align: middle;
}

.record-stats-table thead th.partners-table-login-id-head .partners-table-login-id-head-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.record-stats-table thead th.partners-table-login-id-head .partners-table-th-label {
    display: block;
    line-height: 1.35;
}

.record-stats-table thead th.partners-table-login-id-head .partners-column-hide-btn {
    display: flex;
    width: 100%;
    min-height: 26px;
    margin: 0;
    padding: 0 2px;
    justify-content: center;
    font-size: 11px;
    line-height: 1.2;
    box-sizing: border-box;
}

.record-stats-table tbody td[data-col="game_kind"],
.record-stats-table tfoot td[data-col="game_kind"] {
    padding-left: 2px;
    padding-right: 2px;
}

.record-stats-table th[data-col="vendor"],
.record-stats-table td[data-col="vendor"] {
    width: 168px;
    min-width: 150px;
    max-width: 220px;
}

.record-stats-table th[data-col="game"],
.record-stats-table td[data-col="game"] {
    width: 260px;
    min-width: 220px;
    max-width: 340px;
}

.record-stats-table th[data-col="profit"],
.record-stats-table td[data-col="profit"] {
    width: 120px;
    min-width: 110px;
    text-align: right;
    white-space: nowrap;
}

.record-stats-sort-head {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.record-stats-sort-label {
    line-height: 1.2;
}

.record-stats-sort-controls {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.record-stats-sort-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 14px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 3px;
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.record-stats-sort-btn .mdi {
    font-size: 12px;
    line-height: 1;
}

.record-stats-sort-btn:hover,
.record-stats-sort-btn:focus-visible {
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(37, 99, 235, 0.18);
    color: #93c5fd;
    outline: none;
}

.record-stats-sort-btn.is-active {
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
}

html.admin-theme-light .record-stats-sort-btn {
    border-color: rgba(100, 116, 139, 0.35);
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
}

html.admin-theme-light .record-stats-sort-btn:hover,
html.admin-theme-light .record-stats-sort-btn:focus-visible {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

html.admin-theme-light .record-stats-sort-btn.is-active {
    border-color: rgba(5, 150, 105, 0.45);
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.record-stats-table td.record-stats-profit.is-plus {
    color: #34d399;
    font-weight: 700;
}

.record-stats-table td.record-stats-profit.is-minus {
    color: #f87171;
    font-weight: 700;
}

html.admin-theme-light .record-stats-table td.record-stats-profit.is-plus {
    color: #059669;
}

html.admin-theme-light .record-stats-table td.record-stats-profit.is-minus {
    color: #dc2626;
}

.record-stats-table tfoot .daily-summary-total td {
    padding-top: 10px;
    padding-bottom: 14px;
}

.daily-summary-table [data-col][hidden],
.settlement-table [data-col][hidden],
.settlement-table .settlement-head-group[hidden] {
    display: none;
}

.settlement-filter-form .login-history-topbar-title {
    margin-right: 4px;
}

body.admin-body.is-settlement-page .admin-main-scroll {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 4px 6px 0;
}

body.admin-body.is-settlement-page .page-container.date-filter-page {
    padding-top: 2px;
    padding-right: 8px;
    padding-bottom: 8px;
    padding-left: 8px;
}

body.admin-body.is-settlement-page .settlement-body.login-history-body.date-filter-body {
    padding: 0 6px 8px;
}

.settlement-list-main {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    min-height: 0;
}

.settlement-tree-section {
    flex: 0 0 200px;
    width: 200px;
    max-width: 200px;
}

.settlement-table-main {
    min-width: 0;
    flex: 1 1 auto;
}

body.admin-body.is-settlement-page .settlement-tree-section.members-tree-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}

body.admin-body.is-settlement-page .settlement-tree-section.members-tree-section .partners-tree-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

body.admin-body.is-settlement-page .settlement-filter-form.login-history-topbar.subordinate-aff-form {
    margin-bottom: 6px;
    padding: 6px 8px;
    gap: 6px 6px;
}

body.admin-body.is-settlement-page .settlement-filter-form .login-history-hint {
    margin: 0;
}

.settlement-filter-form .settlement-excel-download-wrap {
    margin-left: auto;
    flex: 0 0 auto;
}

.settlement-excel-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.12);
    color: #93c5fd;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.settlement-excel-download-btn:hover {
    border-color: #60a5fa;
    background: rgba(37, 99, 235, 0.22);
    color: #bfdbfe;
}

html.admin-theme-light .settlement-excel-download-btn {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

html.admin-theme-light .settlement-excel-download-btn:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.14);
    color: #1e40af;
}

@media (max-width: 960px) {
    .settlement-filter-form .settlement-excel-download-wrap {
        display: none !important;
    }
}

body.admin-body.is-settlement-page .settlement-body .partners-table-shell.date-filter-table-shell {
    margin-top: 0;
}

body.admin-body.is-settlement-page .settlement-body .date-filter-table-wrap.custom-data-table {
    padding-top: 0;
}

body.admin-body.is-settlement-page .page-container.date-filter-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

body.admin-body.is-settlement-page .page-container.date-filter-page > .page-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.admin-body.is-settlement-page .page-container.date-filter-page > .page-card > .page-card-body.settlement-body {
    flex: 1 1 auto;
    min-height: 0;
}

body.admin-body.is-settlement-page .settlement-body.login-history-body.date-filter-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.admin-body.is-settlement-page .settlement-filter-form.login-history-topbar {
    flex: 0 0 auto;
}

body.admin-body.is-settlement-page .settlement-list-tracking {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.admin-body.is-settlement-page #settlement-list-main {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
}

body.admin-body.is-settlement-page .settlement-tree-section.members-tree-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}

body.admin-body.is-settlement-page .settlement-table-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.admin-body.is-settlement-page .settlement-body .partners-table-shell.date-filter-table-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.admin-body.is-settlement-page .settlement-body .date-filter-table-shell .flex-grow-1.overflow-x-auto {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

body.admin-body.is-settlement-page .settlement-body .date-filter-table-wrap {
    padding-bottom: 0;
}

body.admin-body.is-settlement-page .settlement-table tfoot tr.daily-summary-total td {
    position: sticky;
    z-index: 7;
    background-color: #171d27;
    box-shadow: 0 -2px 0 #293241;
}

body.admin-body.is-settlement-page .settlement-table tfoot tr.settlement-grand-total-row td,
body.admin-body.is-settlement-page .settlement-table tfoot tr.daily-summary-total:not(.daily-summary-total--excl-al-sale) td {
    bottom: 0;
}

body.admin-body.is-settlement-page .settlement-table tfoot tr.daily-summary-total--excl-al-sale td {
    bottom: var(--settlement-tfoot-grand-height, 0px);
}

html.admin-theme-light body.admin-body.is-settlement-page .settlement-table tfoot tr.daily-summary-total td {
    background-color: #eef2f8;
    box-shadow: 0 -1px 0 var(--line);
}

.settlement-body .settlement-table thead th {
    position: sticky;
    z-index: 8;
    background-color: rgba(0, 0, 0, 0.78);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 32px -6px rgba(0, 0, 0, 0.72);
}

.settlement-body .settlement-table thead tr:first-child th {
    top: 0;
    z-index: 9;
}

.settlement-body .settlement-table thead tr:nth-child(2) th {
    top: var(--settlement-thead-row2-top, 40px);
    z-index: 8;
}

html.admin-theme-light .settlement-body .settlement-table thead th {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 1px 0 rgba(219, 226, 238, 0.9),
        0 14px 28px -6px rgba(0, 0, 0, 0.22);
}

.settlement-table th,
.settlement-table td {
    white-space: nowrap;
}

.partners-data-table.settlement-table {
    font-size: 13px;
}

.partners-data-table.settlement-table thead th {
    padding: 3px 5px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
}

.partners-data-table.settlement-table tbody td,
.partners-data-table.settlement-table tfoot td {
    padding: 2px 5px;
    font-size: 13px;
    line-height: 1.2;
}

.settlement-head-sub {
    display: inline-block;
    margin-top: 1px;
    padding: 1px 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
}

.settlement-head-bet,
.settlement-head-jukjang,
.settlement-head-receive {
    white-space: normal;
}

.settlement-table thead th.settlement-head-date,
.settlement-table tbody td.settlement-date,
.settlement-table tfoot td.settlement-date {
    color: #fb923c;
    font-weight: 700;
}

.settlement-table tbody td.settlement-date {
    font-size: 12px;
}

.settlement-body .settlement-head-date.partners-table-login-id-head {
    padding: 2px 4px;
    vertical-align: middle;
    text-align: center;
}

.settlement-body .settlement-head-date .partners-table-login-id-head-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    box-sizing: border-box;
}

.settlement-body .settlement-head-date .partners-table-th-label {
    display: block;
    width: max-content;
    max-width: 100%;
    line-height: 1.2;
    text-align: center;
}

.settlement-body .settlement-head-date .partners-column-hide-btn {
    display: flex;
    width: 100%;
    min-height: 22px;
    margin: 0;
    padding: 0 4px;
    justify-content: center;
    font-size: 10px;
    line-height: 1.15;
    box-sizing: border-box;
}

.settlement-table tbody td.settlement-date.is-today {
    color: #fdba74;
    background: rgba(251, 146, 60, 0.16);
}

.settlement-head-rate {
    color: #d9f99d;
}

.settlement-body .settlement-table thead th.settlement-head-al {
    background-color: rgba(55, 28, 110, 0.82);
    color: #e9d5ff;
}

.settlement-head-group {
    text-align: center;
    font-size: 12px;
}

.settlement-body .settlement-table thead th.settlement-head-group-slot {
    background-color: rgba(18, 52, 120, 0.82);
    color: #93c5fd;
}

.settlement-body .settlement-table thead th.settlement-head-group-casino {
    background-color: rgba(95, 35, 115, 0.82);
    color: #f0abfc;
}

.settlement-body .settlement-table thead th[data-col="win_slot"],
.settlement-body .settlement-table thead th[data-col="profit_slot"],
.settlement-body .settlement-table thead th[data-col="bet_slot"] {
    background-color: rgba(18, 52, 120, 0.78);
}

.settlement-body .settlement-table thead th[data-col="win_casino"],
.settlement-body .settlement-table thead th[data-col="profit_casino"],
.settlement-body .settlement-table thead th[data-col="bet_casino"] {
    background-color: rgba(95, 35, 115, 0.78);
}

.settlement-table [data-col="win_slot"],
.settlement-table [data-col="profit_slot"],
.settlement-table [data-col="bet_slot"] {
    background: rgba(96, 165, 250, 0.06);
}

.settlement-table [data-col="win_casino"],
.settlement-table [data-col="profit_casino"],
.settlement-table [data-col="bet_casino"] {
    background: rgba(240, 171, 252, 0.06);
}

.settlement-table tfoot [data-col="win_slot"],
.settlement-table tfoot [data-col="profit_slot"],
.settlement-table tfoot [data-col="bet_slot"],
.settlement-table .daily-summary-total [data-col="win_slot"],
.settlement-table .daily-summary-total [data-col="profit_slot"],
.settlement-table .daily-summary-total [data-col="bet_slot"] {
    background: rgba(96, 165, 250, 0.1);
}

.settlement-table tfoot [data-col="win_casino"],
.settlement-table tfoot [data-col="profit_casino"],
.settlement-table tfoot [data-col="bet_casino"],
.settlement-table .daily-summary-total [data-col="win_casino"],
.settlement-table .daily-summary-total [data-col="profit_casino"],
.settlement-table .daily-summary-total [data-col="bet_casino"] {
    background: rgba(240, 171, 252, 0.1);
}

.settlement-table thead th {
    border-left: 1px solid #293241;
}

.settlement-table thead tr:first-child th:last-of-type,
.settlement-table thead tr:nth-child(2) th:last-of-type {
    border-right: 1px solid #293241;
}

html.admin-theme-light .settlement-table thead th {
    border-left-color: #d1d9e6;
}

html.admin-theme-light .settlement-table thead tr:first-child th:last-of-type,
html.admin-theme-light .settlement-table thead tr:nth-child(2) th:last-of-type {
    border-right-color: #d1d9e6;
}

.settlement-table tbody td {
    border-left: 1px solid #293241;
}

.settlement-table tbody td:last-child {
    border-right: 1px solid #293241;
}

html.admin-theme-light .settlement-table tbody td {
    border-left-color: #d1d9e6;
}

html.admin-theme-light .settlement-table tbody td:last-child {
    border-right-color: #d1d9e6;
}

.settlement-table tfoot tr.daily-summary-total td.settlement-date {
    text-align: center;
}

.settlement-table tfoot tr.daily-summary-total--excl-al-sale td.settlement-date {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    font-size: 12px;
    letter-spacing: -0.03em;
    white-space: normal;
}

.settlement-total-excl-al-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.35;
    gap: 2px;
}

.settlement-grand-total-label,
.settlement-foot-total-label {
    text-align: center;
    line-height: 1.25;
}

.settlement-total-excl-al-sub {
    font-size: 11px;
    letter-spacing: -0.02em;
}

.settlement-grand-total-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.settlement-grand-total-toggle-input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #137fec;
}

.settlement-table tfoot tr.daily-summary-total td.settlement-grand-total-date-cell {
    display: table-cell;
    vertical-align: middle;
    line-height: 1.25;
}

.settlement-grand-total-date-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    line-height: 1.25;
}

.settlement-grand-total-row:not(.is-grand-total-values-visible) td:not([data-col="date"]) {
    visibility: hidden;
}

.settlement-table tfoot tr.daily-summary-total td {
    border-top: 1px solid #3b4554;
    border-left: 1px solid #293241;
    padding-top: 5px;
    padding-bottom: 6px;
    vertical-align: middle;
}

.settlement-table tfoot tr.daily-summary-total td:last-child {
    border-right: 1px solid #293241;
}

html.admin-theme-light .settlement-table tfoot tr.daily-summary-total td {
    border-top-color: #c5cdd9;
    border-left-color: #d1d9e6;
}

html.admin-theme-light .settlement-table tfoot tr.daily-summary-total td:last-child {
    border-right-color: #d1d9e6;
}

.settlement-head-win,
.settlement-num-win {
    color: #fcd34d;
}

.settlement-head-win-casino,
.settlement-num-win-casino {
    color: #f0abfc;
}

.settlement-head-profit,
.settlement-num-profit {
    color: #4ade80;
    font-weight: 700;
}

.settlement-head-profit-casino,
.settlement-num-profit-casino {
    color: #86efac;
}

.settlement-head-bet-has-tip {
    cursor: help;
}

.settlement-head-bet {
    color: #60a5fa;
}

.settlement-head-bet .settlement-head-bet-total,
.settlement-head-bet-casino .settlement-head-bet-total {
    color: #8b939f;
    font-weight: 600;
}

html.admin-theme-light .settlement-head-bet .settlement-head-bet-total,
html.admin-theme-light .settlement-head-bet-casino .settlement-head-bet-total {
    color: #64748b;
}

.settlement-head-bet .settlement-head-sub {
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.24);
}

.settlement-head-bet-casino .settlement-head-sub {
    color: #f0abfc;
    background: rgba(240, 171, 252, 0.22);
}

.settlement-head-jukjang {
    color: #4ade80;
}

.settlement-head-jukjang .settlement-head-sub {
    color: #86efac;
    background: rgba(74, 222, 128, 0.22);
}

.settlement-head-receive {
    color: #818cf8;
}

.settlement-head-receive .settlement-head-sub {
    color: #a5b4fc;
    background: rgba(129, 140, 248, 0.22);
}

.settlement-head-bet-win-minus-rolling {
    color: #67e8f9;
    white-space: normal;
    line-height: 1.2;
}

.settlement-num-bet-win-minus-rolling {
    color: #67e8f9;
    font-weight: 700;
}

.settlement-head-down,
.settlement-head-mine {
    color: #facc15;
}

.settlement-al-cell {
    background: rgba(139, 92, 246, 0.08);
}

.settlement-sub {
    margin-top: 1px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
}

.settlement-sub-badge {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.25;
}

.settlement-sub-badge-slot {
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.24);
}

.settlement-sub-badge-casino {
    color: #f0abfc;
    background: rgba(240, 171, 252, 0.22);
}

.settlement-sub-badge-jukjang {
    color: #86efac;
    background: rgba(74, 222, 128, 0.22);
}

.settlement-mine-breakdown .settlement-sub-badge-losing {
    margin-top: 0;
    padding: 2px 7px;
    border-radius: 6px;
    vertical-align: baseline;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.24);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
    font-weight: 700;
}

.settlement-mine-breakdown .settlement-sub-badge-losing.settlement-num-neg {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.18);
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.32);
}

.settlement-sub-badge.settlement-num-neg {
    color: #f87171;
    background: rgba(248, 113, 113, 0.18);
}

.settlement-muted {
    color: #9da8b9;
    font-weight: 500;
}

.settlement-num-rate {
    color: #bef264;
    font-weight: 700;
}

.settlement-num-al-in {
    color: #67e8f9;
    font-weight: 700;
}

.settlement-num-al-out {
    color: #f0abfc;
    font-weight: 700;
}

.settlement-num-al-profit {
    color: #fcd34d;
    font-weight: 700;
}

.settlement-num-deposit,
.settlement-num-bet {
    color: #60a5fa;
}

.settlement-table [data-col="bet_slot"] .settlement-num-bet-valid,
.settlement-table [data-col="bet_casino"] .settlement-num-bet-valid {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 600;
}

.settlement-table [data-col="bet_slot"] .settlement-num-bet-total,
.settlement-table [data-col="bet_casino"] .settlement-num-bet-total {
    color: #8b939f;
    font-weight: 600;
}

html.admin-theme-light .settlement-table [data-col="bet_slot"] .settlement-num-bet-total,
html.admin-theme-light .settlement-table [data-col="bet_casino"] .settlement-num-bet-total {
    color: #64748b;
}

html.admin-theme-light .settlement-head-bet .settlement-head-sub {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.14);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.32);
}

html.admin-theme-light .settlement-head-bet-casino .settlement-head-sub {
    color: #7e22ce;
    background: rgba(126, 34, 206, 0.12);
    box-shadow: inset 0 0 0 1px rgba(126, 34, 206, 0.28);
}

html.admin-theme-light .settlement-head-receive .settlement-head-sub,
html.admin-theme-light .settlement-head-jukjang .settlement-head-sub {
    color: #4338ca;
    background: rgba(67, 56, 202, 0.12);
    box-shadow: inset 0 0 0 1px rgba(67, 56, 202, 0.28);
}

html.admin-theme-light .settlement-sub-badge-slot {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.14);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.32);
}

html.admin-theme-light .settlement-sub-badge-casino {
    color: #7e22ce;
    background: rgba(126, 34, 206, 0.12);
    box-shadow: inset 0 0 0 1px rgba(126, 34, 206, 0.28);
}

html.admin-theme-light .settlement-sub-badge-jukjang {
    color: #15803d;
    background: rgba(22, 163, 74, 0.12);
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.28);
}

html.admin-theme-light .settlement-mine-breakdown .settlement-sub-badge-losing {
    color: #0369a1;
    background: rgba(14, 165, 233, 0.14);
    box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.32);
}

html.admin-theme-light .settlement-mine-breakdown .settlement-sub-badge-losing.settlement-num-neg {
    color: #b91c1c;
    background: rgba(220, 38, 38, 0.1);
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.28);
}

html.admin-theme-light .settlement-sub.settlement-num-rolling {
    color: inherit;
}

html.admin-theme-light .settlement-muted {
    color: #475569;
    font-weight: 600;
}

.settlement-head-bet-casino,
.settlement-num-bet-casino:not(.settlement-num-bet-total) {
    color: #38bdf8;
}

.settlement-num-withdraw,
.settlement-num-neg {
    color: #f87171;
}

.settlement-num-net,
.settlement-num-jukjang {
    color: #4ade80;
}

.settlement-num-rolling {
    color: #93c5fd;
}

.settlement-sub.settlement-num-rolling {
    font-size: 15px;
}

.settlement-num-receive {
    color: #a5b4fc;
    font-weight: 700;
}

.settlement-num-down {
    color: #facc15;
    font-weight: 700;
}

.settlement-num-mine {
    color: #facc15;
    font-weight: 700;
}

.settlement-num-mine.settlement-mine-badge {
    display: inline-block;
    margin-top: 0;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    color: #fde047;
    background: rgba(250, 204, 21, 0.18);
    box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.38);
}

.settlement-num-mine.settlement-mine-badge.settlement-num-neg {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.16);
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.32);
}

html.admin-theme-light .settlement-num-mine.settlement-mine-badge {
    color: #a16207;
    background: rgba(234, 179, 8, 0.14);
    box-shadow: inset 0 0 0 1px rgba(202, 138, 4, 0.38);
}

html.admin-theme-light .settlement-num-mine.settlement-mine-badge.settlement-num-neg {
    color: #b91c1c;
    background: rgba(220, 38, 38, 0.1);
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.28);
}

.settlement-mine-tooltip-anchor {
    position: relative;
    cursor: help;
}

.settlement-table tfoot td[data-col="mine"] .settlement-losing-settle-btn {
    position: relative;
    z-index: 2;
}

.settlement-losing-settle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 10px;
    width: 100%;
    min-width: 92px;
    max-width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #1a8ff7 0%, #137fec 48%, #0f6fd4 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: normal;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 2px 8px rgba(19, 127, 236, 0.45),
        0 0 0 2px rgba(19, 127, 236, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.settlement-losing-settle-btn-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    opacity: 0.95;
}

.settlement-losing-settle-btn-amount {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.settlement-losing-settle-btn:hover {
    filter: brightness(1.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 4px 14px rgba(19, 127, 236, 0.55),
        0 0 0 2px rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
}

.settlement-losing-settle-btn:active {
    transform: translateY(0);
    filter: brightness(0.96);
}

.settlement-losing-settle-btn:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

html.admin-theme-light .settlement-losing-settle-btn {
    background: linear-gradient(180deg, #2589eb 0%, #137fec 50%, #1269c4 100%);
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.25) inset,
        0 2px 10px rgba(19, 127, 236, 0.35),
        0 0 0 2px rgba(19, 127, 236, 0.2);
}

.losing-settlement-modal-body .losing-settlement-history {
    margin-top: 8px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

#losing-settlement-overlay .losing-settlement-history .date-filter-table-wrap {
    flex: 1 1 auto;
    min-height: 360px;
    overflow: auto;
}

.losing-settlement-history-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
}

.losing-settlement-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    padding-top: 0;
}

#losing-settlement-overlay .losing-settlement-dialog {
    width: min(1120px, calc(100vw - 24px));
    max-width: min(1120px, calc(100vw - 24px));
}

#losing-settlement-overlay .losing-settlement-dialog .auto-card-scroll {
    max-height: min(96vh, 980px);
    min-height: min(90vh, 780px);
}

#losing-settlement-overlay .losing-settlement-dialog .auto-card {
    min-height: 100%;
}

.losing-settlement-records-page .losing-settlement-records-table thead th {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    padding: 4px 8px;
}

.losing-settlement-records-page .losing-settlement-records-table tbody td {
    padding: 4px 8px;
    line-height: 1.25;
    vertical-align: middle;
}

.losing-settlement-records-page .losing-records-kind-cell {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.losing-settlement-records-page .losing-records-partner-cell {
    min-width: 130px;
}

.losing-settlement-records-page .losing-records-affiliation-combobox {
    width: 130px;
    margin: 0;
}

.losing-settlement-records-page .losing-records-affiliation-combobox .members-affiliation-trigger {
    width: 100%;
    min-height: 28px;
    height: 28px;
    padding: 0 4px;
    border-radius: 6px;
    font-size: 12px;
    gap: 4px;
}

.losing-settlement-records-page .losing-records-affiliation-combobox .members-affiliation-icon,
.losing-settlement-records-page .losing-records-affiliation-combobox .members-affiliation-option img {
    width: 22px;
    height: 22px;
}

.losing-settlement-records-page .losing-settlement-records-table .losing-settlement-detail-cell {
    line-height: 1.25;
    font-size: 12px;
}

.losing-settlement-intake-page .losing-intake-period-cell {
    white-space: nowrap;
    font-size: 12px;
}

.losing-settlement-intake-page .losing-intake-amount-cell {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
}

.losing-settlement-intake-page .losing-intake-amount-cell .settlement-losing-settle-btn {
    margin: 0;
    max-width: 100%;
}

.losing-settlement-intake-page .losing-intake-zero-amount {
    display: inline-block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.losing-settlement-intake-page .settlement-losing-complete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #2589eb 0%, #137fec 50%, #1269c4 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 2px 10px rgba(19, 127, 236, 0.4);
}

.losing-settlement-intake-page .settlement-losing-complete-btn:hover {
    filter: brightness(1.08);
}

.losing-settlement-intake-page .settlement-losing-complete-btn:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.losing-settlement-intake-page .losing-intake-detail-cell {
    max-width: 280px;
    font-size: 12px;
    line-height: 1.25;
}

.losing-settlement-intake-page .losing-intake-memo-cell {
    max-width: 160px;
    font-size: 12px;
    word-break: break-word;
}

.losing-settlement-intake-page .losing-intake-processed-cell {
    white-space: nowrap;
    font-size: 12px;
}

.losing-settlement-intake-page .losing-settlement-intake-table {
    table-layout: fixed;
    width: 100%;
}

.losing-settlement-intake-page .losing-settlement-intake-table th.partners-table-login-id-head,
.losing-settlement-intake-page .losing-settlement-intake-table td[data-col="login_id"] {
    width: 209px;
    min-width: 209px;
    max-width: 209px;
}

.losing-settlement-intake-page .losing-settlement-intake-table .subordinate-id-chip {
    width: 148px;
    max-width: 100%;
}

#losing-settlement-overlay .losing-settlement-detail-cell,
.losing-settlement-records-table .losing-settlement-detail-cell,
#losing-settlement-overlay .losing-settlement-preview-detail {
    max-width: 360px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
    color: #f1f5f9;
}

#losing-settlement-overlay .losing-settlement-preview-detail {
    max-width: none;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

#losing-settlement-overlay .losing-settlement-detail-cell .losing-settlement-detail-num,
#losing-settlement-overlay .losing-settlement-amount-cell .losing-settlement-detail-num,
#losing-settlement-overlay .losing-settlement-preview-detail .losing-settlement-detail-num,
.losing-settlement-records-table .losing-settlement-detail-cell .losing-settlement-detail-num {
    color: #fbbf24;
    font-weight: 700;
}

html.admin-theme-light #losing-settlement-overlay .losing-settlement-detail-cell,
html.admin-theme-light .losing-settlement-records-table .losing-settlement-detail-cell,
html.admin-theme-light #losing-settlement-overlay .losing-settlement-preview-detail {
    color: #1e293b;
}

html.admin-theme-light #losing-settlement-overlay .losing-settlement-detail-cell .losing-settlement-detail-num,
html.admin-theme-light #losing-settlement-overlay .losing-settlement-amount-cell .losing-settlement-detail-num,
html.admin-theme-light #losing-settlement-overlay .losing-settlement-preview-detail .losing-settlement-detail-num,
html.admin-theme-light .losing-settlement-records-table .losing-settlement-detail-cell .losing-settlement-detail-num {
    color: #b45309;
}

#losing-settlement-overlay .losing-settlement-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 720px;
    padding: 8px 12px 14px;
}

#losing-settlement-overlay #losing-settlement-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#losing-settlement-overlay #losing-settlement-form > .auto-field {
    margin-bottom: 0;
}

#losing-settlement-overlay .auto-card-divider {
    margin: 6px 0;
}

#losing-settlement-overlay .losing-settlement-history {
    margin-top: 4px;
}

#losing-settlement-overlay .losing-settlement-history-title {
    margin: 0 0 4px;
    font-size: 13px;
}

#losing-settlement-overlay .losing-settlement-form-top-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
    margin-bottom: 6px;
}

#losing-settlement-overlay .losing-settlement-top-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

#losing-settlement-overlay .losing-settlement-top-item .auto-field-label {
    margin: 0;
    white-space: nowrap;
}

#losing-settlement-overlay .losing-settlement-partner-chip-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#losing-settlement-overlay .losing-settlement-partner-type-outside {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: #93c5fd;
    white-space: nowrap;
}

#losing-settlement-overlay .losing-settlement-partner-combobox {
    width: 130px;
    margin: 0;
}

#losing-settlement-overlay .losing-settlement-partner-combobox-static .members-affiliation-trigger {
    pointer-events: none;
    cursor: default;
}

#losing-settlement-overlay .losing-settlement-partner-combobox-static .members-affiliation-trigger:disabled {
    opacity: 1;
}

#losing-settlement-overlay .members-affiliation-menu {
    z-index: 10002;
}

#losing-settlement-overlay .losing-settlement-top-losing-loan {
    flex: 0 0 auto;
    min-width: 110px;
}

#losing-settlement-overlay .losing-settlement-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

#losing-settlement-overlay .losing-settlement-field-label-row .auto-field-label {
    min-width: 0;
    margin: 0;
}

#losing-settlement-overlay .losing-settlement-field-reset-btn {
    flex: 0 0 auto;
    min-height: 22px;
    padding: 2px 8px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(180deg, #1a8ff7 0%, #137fec 48%, #0f6fd4 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 1px 2px rgba(0, 0, 0, 0.22);
    transition: filter 0.15s ease, opacity 0.15s ease;
}

#losing-settlement-overlay .losing-settlement-field-reset-btn:hover:not(:disabled) {
    filter: brightness(1.08);
}

#losing-settlement-overlay .losing-settlement-field-reset-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    filter: none;
}

html.admin-theme-light #losing-settlement-overlay .losing-settlement-field-reset-btn {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 1px 2px rgba(15, 23, 42, 0.1);
}

#losing-settlement-overlay .losing-settlement-transfer-to-loan-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    align-self: flex-end;
    padding-bottom: 2px;
}

#losing-settlement-overlay .losing-settlement-transfer-to-loan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #1a8ff7 0%, #137fec 48%, #0f6fd4 100%);
    color: #fff;
    cursor: pointer;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 1px 2px rgba(0, 0, 0, 0.28);
    transition: filter 0.15s ease, opacity 0.15s ease;
}

#losing-settlement-overlay .losing-settlement-transfer-to-loan-btn:not(:disabled):hover {
    filter: brightness(1.08);
}

#losing-settlement-overlay .losing-settlement-transfer-to-loan-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    filter: none;
}

#losing-settlement-overlay .losing-settlement-transfer-to-loan-icon {
    font-size: 22px;
    line-height: 1;
}

html.admin-theme-light #losing-settlement-overlay .losing-settlement-transfer-to-loan-btn {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 1px 2px rgba(15, 23, 42, 0.12);
}

#losing-settlement-overlay .losing-settlement-losing-loan-amount-input {
    flex: 0 0 auto;
    width: 96px;
    min-width: 96px;
    padding-left: 8px;
    padding-right: 8px;
    text-align: right;
    font-size: 18px;
    font-weight: 800;
    color: #e8edf8;
    font-variant-numeric: tabular-nums;
}

html.admin-theme-light #losing-settlement-overlay .losing-settlement-losing-loan-amount-input {
    color: #0f172a;
}

#losing-settlement-overlay .losing-settlement-top-payable {
    flex: 0 0 auto;
    min-width: 110px;
    margin-left: 10px;
}

#losing-settlement-overlay .losing-settlement-payable-amount-input {
    flex: 0 0 auto;
    width: 96px;
    min-width: 96px;
    padding-left: 8px;
    padding-right: 8px;
    text-align: right;
    font-size: 18px;
    font-weight: 800;
    color: #fbbf24;
}

html.admin-theme-light #losing-settlement-overlay .losing-settlement-payable-amount-input {
    color: #b45309;
}

#losing-settlement-overlay .losing-settlement-preview-block {
    width: 100%;
    min-width: 0;
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

html.admin-theme-light #losing-settlement-overlay .losing-settlement-preview-block {
    border-top-color: rgba(15, 23, 42, 0.12);
}

#losing-settlement-overlay .losing-settlement-top-memo {
    flex: 0 1 400px;
    max-width: 400px;
    min-width: 120px;
    margin-left: 24px;
}

#losing-settlement-overlay .losing-settlement-top-losing-loan .auto-field-input,
#losing-settlement-overlay .losing-settlement-top-payable .auto-field-input,
#losing-settlement-overlay .losing-settlement-top-memo .auto-field-input {
    min-height: 44px;
}

#losing-settlement-overlay .losing-settlement-form-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    align-self: flex-end;
    gap: 8px;
}

#losing-settlement-overlay .losing-settlement-form-top-row .losing-settlement-submit-inline {
    flex: 0 0 auto;
    align-self: flex-end;
    min-height: 44px;
    margin-bottom: 0;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #1a8ff7 0%, #137fec 48%, #0f6fd4 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 2px 8px rgba(19, 127, 236, 0.45);
    transition: filter 0.12s ease, transform 0.12s ease;
}

#losing-settlement-overlay .losing-settlement-submit-inline:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

#losing-settlement-overlay .losing-settlement-submit-inline:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

#losing-settlement-overlay .losing-settlement-submit-wrap {
    display: inline-flex;
    align-items: flex-end;
}

#losing-settlement-overlay .losing-settlement-submit-wrap.is-settlement-blocked {
    cursor: not-allowed;
}

#losing-settlement-overlay .losing-settlement-submit-wrap.is-settlement-blocked .losing-settlement-submit-inline {
    pointer-events: none;
}

#losing-settlement-overlay .losing-settlement-history-table tr.losing-settlement-history-row-overlap td {
    background: rgba(239, 68, 68, 0.14);
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.65);
}

html.admin-theme-light #losing-settlement-overlay .losing-settlement-history-table tr.losing-settlement-history-row-overlap td {
    background: rgba(254, 226, 226, 0.85);
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.45);
}

#losing-settlement-overlay .losing-settlement-history-table th,
#losing-settlement-overlay .losing-settlement-history-table td {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 13px;
}

#losing-settlement-overlay .losing-settlement-dialog-header.sticky-header {
    min-height: 46px;
    padding: 0 12px;
}

#losing-settlement-overlay .losing-settlement-dialog-header.is-dialog-drag-handle {
    cursor: grab;
    user-select: none;
    touch-action: none;
}

#losing-settlement-overlay .losing-settlement-dialog.is-dragging .losing-settlement-dialog-header.is-dialog-drag-handle,
body.settlement-dialog-dragging #losing-settlement-overlay .losing-settlement-dialog-header.is-dialog-drag-handle {
    cursor: grabbing;
}

#losing-settlement-overlay .losing-settlement-dialog-header.is-dialog-drag-handle .losing-settlement-dialog-close {
    cursor: pointer;
}

#losing-settlement-overlay .losing-settlement-dialog.is-dragging {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

#losing-settlement-overlay .losing-settlement-dialog-close {
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

#losing-settlement-overlay .losing-settlement-dialog-close .mdi {
    color: #fff;
}

#losing-settlement-overlay .losing-settlement-dialog-close:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: #dc3545;
    color: #fff;
}

#losing-settlement-overlay .losing-settlement-dialog-close:hover .mdi {
    color: #fff;
}

html.admin-theme-light #losing-settlement-overlay .losing-settlement-dialog-close {
    border: 2px solid #fff;
    background: #475569;
    color: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.25);
}

html.admin-theme-light #losing-settlement-overlay .losing-settlement-dialog-close .mdi {
    color: #fff;
}

html.admin-theme-light #losing-settlement-overlay .losing-settlement-dialog-close:hover {
    background: #dc3545;
    border-color: #fff;
}

html.admin-theme-light #losing-settlement-overlay .losing-settlement-partner-type-outside {
    color: #1d4ed8;
}

.settlement-mine-tooltip-anchor .settlement-mine-tooltip {
    display: none;
}

.settlement-mine-floating-tooltip {
    position: fixed;
    z-index: 10050;
    max-width: min(360px, calc(100vw - 24px));
    padding: 10px 12px;
    border-radius: 8px;
    background: #111827;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    text-align: left;
    white-space: normal;
    word-break: keep-all;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    border: 1px solid #475569;
    pointer-events: none;
}

.settlement-mine-floating-tooltip .settlement-mine-tooltip-formula {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    color: #fde047;
    font-weight: 700;
}

html.admin-theme-light .settlement-mine-floating-tooltip {
    background: #fff;
    color: #0f172a;
    border-color: #cbd5e1;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.15);
}

html.admin-theme-light .settlement-mine-floating-tooltip .settlement-mine-tooltip-formula {
    color: #a16207;
    border-top-color: #e2e8f0;
}

.page-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.deposit-account-body {
    padding: 24px 32px 32px;
}

.deposit-account-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    color: #e8edf8;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.deposit-account-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #1976d2;
    font-size: 30px;
    line-height: 1;
}

.deposit-account-form {
    width: 100%;
}

.deposit-account-fields-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.deposit-account-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.deposit-account-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #121722;
    transition: border-color 0.15s ease;
}

.deposit-account-input-wrap:focus-within {
    border-color: #315dff;
}

.deposit-account-input-wrap .mdi {
    flex-shrink: 0;
    color: #8590ff;
    font-size: 24px;
    line-height: 1;
}

.deposit-account-input {
    width: 100%;
    min-width: 0;
    height: 42px;
    border: 0;
    background: transparent;
    color: #e8edf8;
    font: inherit;
    font-size: 14px;
}

.deposit-account-input:focus {
    outline: 0;
}

.deposit-account-action {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    padding-bottom: 1px;
}

.deposit-account-submit {
    width: fit-content;
    min-width: 88px;
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: #315dff;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.deposit-account-submit:hover {
    filter: brightness(1.08);
}

.deposit-account-reset {
    width: fit-content;
    min-width: 88px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #4a5568;
    border-radius: 8px;
    background: #1a2230;
    color: #e8edf8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.deposit-account-reset:hover {
    border-color: #6b7280;
    background: #232d3d;
}

.user-detail-private-bank-grid .user-detail-bank-reset-btn {
    flex: 0 0 auto;
    height: 36px;
    min-width: 0;
    padding: 0 12px;
    font-size: 12px;
}

@media (max-width: 960px) {
    .deposit-account-fields-row {
        grid-template-columns: 1fr;
    }

    .deposit-account-action {
        justify-content: flex-start;
    }
}

.basic-settings-page .basic-settings-page-header.page-header {
    position: sticky;
    top: 0;
    z-index: 12;
    flex-shrink: 0;
    margin: 0 0 12px;
    padding: 8px 0 12px;
    background: rgba(13, 17, 26, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #252d3c;
}

html.admin-theme-light body.admin-body .basic-settings-page .basic-settings-page-header.page-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: #dbe2ee;
}

.basic-settings-page .basic-settings-page-header .basic-settings-submit {
    flex-shrink: 0;
    margin-right: 8px;
}

.basic-settings-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.basic-settings-card-body {
    padding: 24px;
}

.basic-settings-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: #e8edf8;
    font-size: 18px;
    font-weight: 700;
}

.basic-settings-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #f97316;
    font-size: 20px;
    line-height: 1;
}

.basic-settings-field + .basic-settings-field {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.basic-settings-label {
    display: block;
    margin-bottom: 10px;
    color: #c8d2e4;
    font-size: 14px;
    font-weight: 600;
}

.basic-settings-desc {
    margin: -8px 0 20px;
    color: #9aa8bf;
    font-size: 13px;
    line-height: 1.6;
}

.basic-settings-hint {
    margin: 8px 0 0;
    color: #8b97ad;
    font-size: 12px;
    line-height: 1.5;
}

.basic-settings-gongbet-intro {
    margin: 0 0 12px;
}

.basic-settings-gongbet-grid {
    margin-top: 4px;
}

.basic-settings-gongbet-panel {
    padding: 14px 16px;
    border: 1px solid #293241;
    border-radius: 12px;
    background: #151b25;
}

.basic-settings-gongbet-panel.is-casino {
    border-color: rgba(251, 146, 60, 0.35);
}

.basic-settings-gongbet-panel.is-slot {
    border-color: rgba(93, 214, 255, 0.35);
}

.basic-settings-gongbet-panel.is-rolling-result {
    border-color: rgba(189, 0, 255, 0.35);
}

.basic-settings-gongbet-kind {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    color: #e8edf8;
    font-size: 15px;
    font-weight: 700;
}

.basic-settings-gongbet-panel .basic-settings-hint {
    margin: 0 0 10px;
}

.basic-settings-gongbet-panel .basic-settings-radio-group {
    flex-direction: column;
    align-items: stretch;
}

.basic-settings-gongbet-panel .basic-settings-radio-group.is-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.basic-settings-gongbet-panel .basic-settings-radio-group.is-row .basic-settings-radio {
    flex: 0 1 auto;
    width: auto;
}

.basic-settings-gongbet-panel.is-gongbet-mode {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.basic-settings-gongbet-panel.is-gongbet-mode .basic-settings-gongbet-kind {
    margin: 0;
}

.basic-settings-gongbet-panel.is-gongbet-mode > .basic-settings-hint {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.basic-settings-gongbet-panel.is-gongbet-mode > .basic-settings-radio-group {
    flex: 1 0 100%;
}

.basic-settings-coin-field {
    margin-top: 4px;
}

.basic-settings-coin-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid #334055;
    border-radius: 10px;
    background: #121821;
}

.basic-settings-coin-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1 1 280px;
}

.basic-settings-coin-icon {
    font-size: 28px;
    line-height: 1;
    color: #f59e0b;
}

.basic-settings-coin-title {
    margin: 0;
    color: #e8edf8;
    font-size: 15px;
    font-weight: 700;
}

.basic-settings-coin-panel .basic-settings-hint {
    margin: 6px 0 0;
}

.basic-settings-coin-select {
    flex: 0 0 224px;
    max-width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #334055;
    border-radius: 8px;
    background: #0f141c;
    color: #e8edf8;
    font-size: 15px;
}

.basic-settings-coin-select:focus {
    outline: 0;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.basic-settings-coin-panel--slot-counts {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.basic-settings-coin-panel--slot-counts .basic-settings-coin-head {
    flex: 0 0 auto;
}

.basic-settings-coin-head--block {
    width: 100%;
}

.basic-settings-coin-panel--slot-counts .basic-settings-coin-head .basic-settings-hint {
    margin-bottom: 0;
}

.basic-settings-coin-subrows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid #2a3544;
}

.basic-settings-coin-subrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.basic-settings-coin-subrow-copy {
    flex: 1 1 200px;
    min-width: 0;
}

.basic-settings-coin-subrow-title {
    margin: 0;
    color: #e8edf8;
    font-size: 14px;
    font-weight: 600;
}

.basic-settings-coin-subrow .basic-settings-hint {
    margin: 4px 0 0;
    font-size: 13px;
}

.basic-settings-coin-subrow .basic-settings-coin-select {
    flex: 0 0 224px;
}

.basic-settings-readonly-value {
    flex: 0 0 224px;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #2a3544;
    background: #0f1724;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
}

.basic-settings-slot-api-grid {
    align-items: stretch;
}

.basic-settings-slot-api-grid > .basic-settings-coin-panel {
    height: 100%;
    min-width: 0;
}

.basic-settings-slot-api-grid .basic-settings-coin-subrow .basic-settings-coin-select,
.basic-settings-slot-api-grid .basic-settings-readonly-value {
    flex: 0 0 140px;
}

@media (max-width: 1100px) {
    .basic-settings-slot-api-grid {
        grid-template-columns: 1fr;
    }
}

.coin-dashboard-page .coin-dash-head {
    margin-bottom: 16px;
}

.coin-dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .coin-dash-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.coin-dash-kpi {
    border: 1px solid #334055;
    border-radius: 10px;
    padding: 16px;
    background: #151b24;
}

.coin-dash-kpi.is-success {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.06);
}

.coin-dash-kpi.is-trx {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.06);
}

.coin-dash-kpi-label {
    display: block;
    font-size: 13px;
    color: #9da8b9;
    margin-bottom: 6px;
}

.coin-dash-kpi-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #f3f4f6;
}

.coin-dash-kpi-sub {
    display: block;
    font-size: 13px;
    color: #9da8b9;
    margin-top: 4px;
}

.coin-dash-kpi-sub.is-krw {
    color: #4ade80;
}

.coin-dash-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #e5e7eb;
}

.coin-dash-chart-wrap {
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid #334055;
    border-radius: 10px;
    background: #111418;
}

.coin-dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 160px;
}

.coin-dash-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.coin-dash-bar-track {
    width: 100%;
    max-width: 48px;
    height: 120px;
    display: flex;
    align-items: flex-end;
    background: #1f2937;
    border-radius: 6px 6px 0 0;
}

.coin-dash-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    border-radius: 6px 6px 0 0;
}

.coin-dash-bar-label {
    font-size: 11px;
    color: #9da8b9;
}

.coin-txid-cell {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.coin-stub-ref {
    margin-top: 8px;
    font-size: 13px;
    color: #9da8b9;
}

.coin-inline-error {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
    font-size: 13px;
}

.coin-inline-notice {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
    color: #86efac;
    font-size: 13px;
}

.coin-settlement-summary {
    margin: 16px 0;
}

.coin-settlement-wallet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.coin-settlement-wallet-btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #3b4554;
    background: #282f39;
    color: #fff;
    cursor: pointer;
}

.coin-settlement-wallet-body {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.coin-settlement-wallet-body p {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 4px 0;
}

.coin-pool-usdt-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, 0.45);
    background: rgba(34, 211, 238, 0.08);
}

@keyframes coin-pool-usdt-ack-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.65), 0 0 18px rgba(236, 72, 153, 0.45);
        transform: translateY(0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(34, 211, 238, 0), 0 0 28px rgba(236, 72, 153, 0.8);
        transform: translateY(-1px);
    }
}

.coin-wallet-change-page {
    padding-bottom: 40px;
}

.coin-wallet-change-head {
    margin-bottom: 16px;
}

.coin-wallet-change-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.coin-wallet-change-desc {
    margin: 0;
    font-size: 14px;
    color: #9da8b9;
}

.coin-wallet-change-summary-panel {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #3b4554;
    border-radius: 12px;
    background: #111418;
}

.coin-wallet-change-summary-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.coin-wallet-change-summary-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.coin-wallet-change-summary-note {
    font-size: 12px;
    color: #9da8b9;
}

.coin-wallet-change-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 768px) {
    .coin-wallet-change-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.coin-wallet-change-summary-card {
    padding: 16px;
    border: 1px solid #282f39;
    border-radius: 8px;
    background: #0b0f14;
}

.coin-wallet-change-summary-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.coin-wallet-change-summary-card-label {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #137fec;
}

.coin-wallet-change-summary-badge {
    padding: 2px 8px;
    border: 1px solid #3b4554;
    border-radius: 999px;
    background: #282f39;
    color: #cbd5e1;
    font-size: 12px;
    white-space: nowrap;
}

.coin-wallet-change-summary-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.coin-wallet-change-metric-label {
    margin: 0;
    font-size: 12px;
    color: #9da8b9;
}

.coin-wallet-change-metric-usdt {
    margin: 4px 0 0;
    font-family: ui-monospace, monospace;
    font-size: 18px;
    font-weight: 700;
    color: #6ee7b7;
}

.coin-wallet-change-metric-trx {
    margin: 4px 0 0;
    font-family: ui-monospace, monospace;
    font-size: 18px;
    font-weight: 700;
    color: #c4b5fd;
}

.coin-wallet-change-metric-unit {
    font-size: 12px;
    font-weight: 500;
    color: #9da8b9;
}

.coin-wallet-change-summary-latest {
    margin: 12px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.coin-wallet-change-flash {
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid rgba(19, 127, 236, 0.4);
    border-radius: 8px;
    background: rgba(19, 127, 236, 0.1);
    color: #137fec;
    font-size: 14px;
}

.coin-wallet-change-pool-usdt-panel {
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.1);
}

.coin-wallet-change-pool-usdt-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.coin-wallet-change-pool-usdt-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fef3c7;
}

.coin-wallet-change-pool-usdt-meta {
    margin: 4px 0 0;
    font-size: 12px;
    color: rgba(254, 243, 199, 0.8);
}

.coin-wallet-change-pool-usdt-sum {
    font-family: ui-monospace, monospace;
    font-weight: 700;
}

.coin-wallet-change-ack-btn {
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid rgba(103, 232, 249, 0.7);
    border-radius: 8px;
    background: linear-gradient(90deg, #06b6d4, #c026d3);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    animation: coin-pool-usdt-ack-pulse 1.05s ease-in-out infinite;
}

.coin-wallet-change-ack-btn:hover {
    filter: brightness(1.08);
}

.coin-wallet-change-pool-usdt-table-wrap {
    overflow-x: auto;
}

.coin-wallet-change-pool-usdt-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 14px;
}

.coin-wallet-change-pool-usdt-table thead {
    background: rgba(245, 158, 11, 0.1);
}

.coin-wallet-change-pool-usdt-table th,
.coin-wallet-change-pool-usdt-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    text-align: left;
    vertical-align: middle;
}

.coin-wallet-change-pool-usdt-table th {
    color: rgba(254, 243, 199, 0.8);
    font-weight: 600;
}

.coin-wallet-change-pool-usdt-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.1);
}

.coin-wallet-change-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
}

.coin-wallet-change-filter-input {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #282f39;
    color: #fff;
    font-size: 14px;
}

.coin-wallet-change-filter-search {
    width: 192px;
}

.coin-wallet-change-filter-date {
    width: auto;
}

.coin-wallet-change-filter-sep {
    color: #9da8b9;
    font-size: 14px;
}

.coin-wallet-change-filter-submit {
    min-width: 64px;
    height: 38px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: #137fec;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.coin-wallet-change-log-panel {
    overflow-x: auto;
    border: 1px solid #3b4554;
    border-radius: 12px;
    background: #111418;
}

.coin-wallet-change-log-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    font-size: 14px;
}

.coin-wallet-change-log-table thead {
    background: rgba(40, 47, 57, 0.5);
}

.coin-wallet-change-log-table th,
.coin-wallet-change-log-table td {
    padding: 12px;
    border-bottom: 1px solid #282f39;
    text-align: left;
    vertical-align: middle;
}

.coin-wallet-change-log-table th {
    color: #9da8b9;
    font-weight: 600;
}

.coin-wallet-change-log-table tbody tr:hover {
    background: rgba(40, 47, 57, 0.4);
}

.coin-wallet-change-nowrap {
    white-space: nowrap;
    color: #fff;
}

.coin-wallet-change-muted {
    color: #9da8b9;
}

.coin-wallet-change-detail {
    color: #9da8b9;
    font-size: 12px;
}

.coin-wallet-change-num {
    text-align: right;
    font-family: ui-monospace, monospace;
}

.coin-wallet-change-diff.is-up {
    font-weight: 700;
    color: #86efac;
}

.coin-wallet-change-diff.is-down {
    font-weight: 700;
    color: #fca5a5;
}

.coin-wallet-change-action-pill {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: #282f39;
    color: #fff;
    font-size: 12px;
}

.coin-wallet-change-address-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.coin-wallet-change-address-copy {
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-family: ui-monospace, monospace;
    font-size: 14px;
    text-align: left;
    word-break: break-all;
    cursor: pointer;
}

.coin-wallet-change-address-copy:hover,
.coin-wallet-change-address-copy.is-copied {
    color: #137fec;
}

.coin-wallet-change-empty {
    padding: 40px 24px;
    text-align: center;
    color: #9da8b9;
}

.coin-wallet-change-log-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-top: 1px solid #3b4554;
}

.coin-wallet-change-log-total {
    margin: 0;
    font-size: 14px;
    color: #9da8b9;
}

.coin-wallet-change-pagination .pagination {
    margin: 0;
}

.coin-time-input {
    max-width: 120px;
}

.coin-pool-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.coin-btn-secondary {
    background: #282f39;
    border: 1px solid #3b4554;
}

.coin-pool-bulk-panel {
    margin: 12px 0 16px;
    padding: 12px 14px;
    border: 1px solid #334055;
    border-radius: 10px;
    background: #151b24;
}

.coin-pool-bulk-panel summary {
    cursor: pointer;
    font-weight: 600;
    color: #e2e8f0;
}

.coin-pool-bulk-form {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 720px;
}

.coin-pool-bulk-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #3b4554;
    background: #0b0f14;
    color: #fff;
    font-family: ui-monospace, monospace;
    font-size: 12px;
}

.coin-wallet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: flex-start;
}

.coin-inline-form {
    display: inline;
}

.coin-action-btn {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #3b4554;
    background: #282f39;
    color: #e2e8f0;
    cursor: pointer;
}

.coin-action-btn-danger {
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.coin-key-details summary {
    cursor: pointer;
    font-size: 11px;
    color: #9da8b9;
}

.coin-key-details form {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 220px;
}

.coin-wallet-memo {
    display: block;
    font-size: 11px;
    color: #9da8b9;
}

.coin-allocation-hint {
    margin: 8px 0 0;
    max-width: 100%;
}

.coin-pool-page {
    padding-bottom: 32px;
}

.coin-pool-page-head {
    margin-bottom: 24px;
}

.coin-pool-page-title {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.coin-pool-page-desc {
    margin: 0;
    font-size: 14px;
    color: #9da8b9;
}

.coin-pool-flash {
    margin: 0 0 16px;
    font-size: 14px;
}

.coin-pool-flash--ok {
    color: #4ade80;
}

.coin-pool-flash--warn {
    color: #fbbf24;
}

.coin-pool-code {
    font-size: 12px;
}

.coin-pool-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 32rem;
    margin-bottom: 16px;
}

.coin-pool-kpi {
    padding: 12px;
    border-radius: 8px;
}

.coin-pool-kpi-label {
    margin: 0 0 4px;
    font-size: 12px;
    color: #9da8b9;
}

.coin-pool-kpi-value {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.coin-pool-kpi--free {
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.coin-pool-kpi--free .coin-pool-kpi-value {
    color: #4ade80;
}

.coin-pool-kpi--assigned {
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.coin-pool-kpi--assigned .coin-pool-kpi-value {
    color: #60a5fa;
}

.coin-pool-kpi--disabled {
    border: 1px solid rgba(107, 114, 128, 0.45);
}

.coin-pool-kpi--disabled .coin-pool-kpi-value {
    color: #9ca3af;
}

.coin-pool-top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 1024px) {
    .coin-pool-top-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }
}

.coin-pool-register-panel {
    border: 1px solid #3b4554;
    border-radius: 12px;
    background: #111418;
    padding: 16px;
}

.coin-pool-register-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.55);
    background: #1d4ed8;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.28);
}

.coin-pool-register-summary::-webkit-details-marker {
    display: none;
}

.coin-pool-register-form {
    margin-top: 16px;
}

.coin-pool-register-heading {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.coin-pool-field-label {
    display: block;
    font-size: 12px;
    color: #9da8b9;
}

.coin-pool-field-label--spaced {
    margin-top: 12px;
}

.coin-pool-field-em {
    color: #fff;
}

.coin-pool-register-textarea {
    box-sizing: border-box;
    width: 100%;
    margin-top: 4px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #3b4554;
    background: #282f39;
    color: #fff;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    min-height: 160px;
}

.coin-pool-register-input {
    box-sizing: border-box;
    width: 100%;
    margin-top: 4px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #3b4554;
    background: #282f39;
    color: #fff;
    font-size: 14px;
}

.coin-pool-register-submit {
    box-sizing: border-box;
    width: 100%;
    margin-top: 12px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #137fec;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.coin-pool-register-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.coin-pool-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}

.coin-pool-search-field {
    flex: 1 1 200px;
    min-width: 200px;
}

.coin-pool-search-input {
    box-sizing: border-box;
    width: 100%;
    height: 38px;
    margin-top: 4px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #3b4554;
    background: #282f39;
    color: #fff;
    font-family: ui-monospace, monospace;
    font-size: 14px;
}

.coin-pool-search-submit {
    flex-shrink: 0;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #137fec;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.coin-pool-search-reset {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #3b4554;
    color: #9da8b9;
    font-size: 14px;
    text-decoration: none;
}

.coin-pool-search-reset:hover {
    color: #fff;
    background: #282f39;
}

.coin-pool-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.coin-pool-filter-label {
    font-size: 14px;
    color: #9da8b9;
}

.coin-pool-filter-pill {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    background: #282f39;
    color: #9da8b9;
}

.coin-pool-filter-pill.is-active,
.coin-pool-filter-pill:hover {
    background: #137fec;
    color: #fff;
}

.coin-pool-table-wrap {
    border-color: #3b4554;
    background: #111418;
}

/* sticky thead: overflow:hidden on table-wrap breaks position:sticky in admin-main-scroll */
.coin-pool-page .coin-system-wallet-table-wrap.coin-pool-table-wrap {
    overflow: visible;
}

.coin-pool-page .coin-pool-wallet-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    background-color: #151b25;
    box-shadow: 0 1px 0 #293241;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 8px;
    line-height: 1.25;
}

html.admin-theme-light .coin-pool-page .coin-pool-wallet-table thead th {
    background-color: #eef2f8;
    box-shadow: 0 1px 0 #dbe2ee;
}

.coin-pool-refresh-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 0;
}

.coin-pool-balance-label {
    font-size: 12px;
    color: #6b7280;
}

.coin-pool-wallet-table {
    margin-top: 0;
}

.coin-pool-wallet-row.is-disabled {
    opacity: 0.5;
    filter: saturate(0.5);
}

.coin-pool-wallet-row.is-disabled:hover {
    opacity: 0.7;
}

.coin-pool-next-btn {
    border: 0;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    background: #f59e0b;
    color: #111827;
    cursor: pointer;
}

.coin-pool-next-btn:hover {
    background: #fbbf24;
}

.coin-pool-skip-form {
    display: inline;
}

.coin-pool-pk-cell {
    min-width: 180px;
}

.coin-pool-memo-cell {
    max-width: 12rem;
    vertical-align: top;
}

.coin-pool-memo-form.is-hidden {
    display: none !important;
}

.coin-pool-memo-input {
    min-width: 8rem;
    max-width: 10rem;
}

.coin-pool-action-cell {
    white-space: nowrap;
}

.coin-pool-empty {
    padding: 32px 24px !important;
}

.coin-pool-total-row {
    font-weight: 700;
    border-top: 1px solid #3b4554;
}

.coin-pool-total-row--usable {
    background: rgba(40, 47, 57, 0.6);
}

.coin-pool-total-row--all {
    background: rgba(27, 32, 40, 0.8);
}

.coin-balance-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.coin-balance-usdt-line,
.coin-balance-trx-line,
.coin-balance-krw-line {
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.coin-balance-usdt-num {
    color: #137fec;
}

.coin-balance-trx-num {
    color: #c4b5fd;
}

.coin-balance-krw-num {
    color: #4ade80;
}

.coin-balance-unit {
    color: #9da8b9;
    font-weight: 500;
}

.coin-balance-muted-xs {
    font-size: 12px;
    color: #6b7280;
}

.coin-balance-missing {
    font-size: 12px;
    color: #f87171;
}

.coin-pool-row-next {
    background: rgba(56, 189, 248, 0.06);
}

.coin-wallet-next-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
}

.coin-system-wallet-add-form {
    margin: 0 0 32px;
    padding: 24px;
    border: 1px solid #3b4554;
    border-radius: 12px;
    background: #111418;
}

.coin-system-balance-hint {
    margin-top: 4px;
    margin-bottom: 12px;
    max-width: none;
}

.coin-system-wallet-add-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.coin-system-wallet-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.coin-system-wallet-field label {
    display: block;
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.25;
    color: #9da8b9;
}

.coin-system-wallet-field--type {
    flex: 0 0 140px;
    width: 140px;
    min-width: 140px;
}

.coin-system-wallet-field--address {
    flex: 1 1 240px;
    min-width: 240px;
}

.coin-system-wallet-field--key {
    flex: 1 1 200px;
    min-width: 200px;
    max-width: 384px;
}

.coin-system-wallet-field--memo {
    flex: 1 1 160px;
    min-width: 160px;
    max-width: 320px;
}

.coin-system-wallet-control {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #282f39;
    color: #fff;
    padding: 8px 12px;
    font-family: inherit;
    line-height: 1.35;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.coin-system-wallet-control::placeholder {
    color: #6b7280;
}

.coin-system-wallet-control:focus {
    outline: none;
    border-color: rgba(19, 127, 236, 0.65);
    box-shadow: 0 0 0 1px rgba(19, 127, 236, 0.35);
}

.coin-system-wallet-control:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.coin-system-wallet-select {
    height: 38px;
    font-size: 14px;
    cursor: pointer;
    appearance: auto;
}

.coin-system-wallet-input {
    height: 38px;
}

.coin-system-wallet-input--address {
    font-size: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.coin-system-wallet-input--pk {
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.coin-system-wallet-input--memo {
    font-size: 14px;
}

.coin-system-wallet-submit {
    flex-shrink: 0;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #137fec;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.coin-system-wallet-submit:hover {
    background: #0f6bd0;
}

.coin-mono-input--xs {
    font-size: 11px;
    min-width: 10rem;
}

.coin-system-wallet-table-wrap {
    border: 1px solid #334055;
    border-radius: 10px;
    background: #151b24;
    overflow: hidden;
}

.coin-system-wallet-refresh-form {
    padding: 12px 14px 0;
}

.coin-system-wallet-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #334055;
    border-radius: 8px;
    background: #282f39;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.coin-system-wallet-refresh-btn:hover:not(:disabled) {
    background: #3b4554;
}

.coin-system-wallet-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.coin-system-wallet-table {
    margin-top: 8px;
}

.coin-system-wallet-table .is-num {
    text-align: right;
}

.coin-system-wallet-table .is-center {
    text-align: center;
}

.coin-system-wallet-row.is-inactive {
    opacity: 0.55;
    filter: saturate(0.55);
}

.coin-system-wallet-row.is-inactive:hover {
    opacity: 0.72;
}

.coin-sys-wallet-type {
    display: inline-flex;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.coin-sys-wallet-type.is-usdt {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
}

.coin-sys-wallet-type.is-trx {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
}

.coin-system-wallet-addr-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.coin-mono-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    word-break: break-all;
}

.coin-scan-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border: 1px solid #334055;
    border-radius: 4px;
    background: #282f39;
    font-size: 10px;
    color: #9da8b9;
    text-decoration: none;
}

.coin-scan-link:hover {
    color: #fff;
    background: #3b4554;
}

.coin-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
}

.coin-pill.is-success {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
}

.coin-pill.is-warn {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
}

.coin-system-pk-form {
    margin-top: 6px;
}

.coin-system-pk-form.is-hidden {
    display: none !important;
}

.coin-system-pk-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.coin-system-wallet-memo {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #9da8b9;
    font-size: 13px;
}

.coin-muted {
    color: #9da8b9;
}

.coin-yes {
    color: #4ade80;
    font-weight: 700;
}

.coin-no {
    color: #6b7280;
    font-weight: 700;
}

.coin-nowrap {
    white-space: nowrap;
}

.coin-system-wallet-action-select {
    min-width: 8.5rem;
    max-width: 100%;
    font-size: 12px;
}

.coin-system-wallet-total-row {
    background: rgba(40, 47, 57, 0.55);
    border-top: 1px solid #334055;
}

.coin-system-wallet-total-row td {
    font-weight: 700;
}

.coin-action-btn-muted {
    background: transparent;
    border-color: #334055;
    color: #9da8b9;
}

.coin-system-wallet-add-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.coin-system-wallet-add-grid .login-history-search-input {
    min-width: 160px;
    flex: 1 1 160px;
}

.coin-list-table-wrap {
    margin-top: 16px;
}

.coin-list-table-wrap .partners-data-table thead th {
    font-size: 12px;
    font-weight: 600;
    padding: 10px 8px;
    line-height: 1.25;
}

.coin-list-pagination {
    margin-top: 12px;
}

.coin-detail-panel {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #334055;
    border-radius: 10px;
    background: #151b24;
}

.coin-detail-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.coin-detail-panel-head .coin-dash-section-title {
    margin: 0;
}

.coin-detail-close-link {
    flex-shrink: 0;
    font-size: 13px;
    color: #9da8b9;
    text-decoration: none;
}

.coin-detail-close-link:hover {
    color: #fff;
}

.coin-charge-poll-hint {
    flex: 1 1 100%;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #9da8b9;
}

.coin-charge-poll-hint strong {
    color: #fff;
    font-weight: 700;
}

.coin-charge-filter .coin-charge-poll-hint {
    min-width: 100%;
}

.coin-charge-detail-rates {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.05);
}

.coin-charge-detail-rates-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #7dd3fc;
}

.coin-charge-detail-rates-dl {
    display: grid;
    grid-template-columns: minmax(7rem, 8.5rem) 1fr;
    gap: 8px 16px;
    margin: 0;
    font-size: 14px;
}

.coin-charge-detail-rates-dl dt {
    color: #9da8b9;
}

.coin-charge-detail-rates-dl dd {
    margin: 0;
    color: #e5e7eb;
}

.coin-charge-detail-rates-dl .is-emphasis {
    color: #4ade80;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.coin-charge-detail-rates-dl .is-emphasis.is-white {
    color: #fff;
}

.coin-charge-detail-rates-dl .is-muted {
    color: #9da8b9;
    font-weight: 400;
}

.coin-charge-detail-rates-dl .is-muted.is-xs {
    font-size: 12px;
    margin-left: 4px;
}

.coin-charge-detail-rates-dl .is-muted.is-block {
    display: block;
    margin-top: 4px;
    margin-left: 0;
}

.coin-charge-detail-rates-dl .is-violet {
    color: #c4b5fd;
    font-variant-numeric: tabular-nums;
}

.coin-charge-detail-rates-dl .is-bold {
    font-weight: 700;
}

.coin-charge-tron-page {
    color: #e5e7eb;
    font-size: 14px;
    max-width: 100%;
}

.coin-charge-tron-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.coin-charge-tron-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.coin-charge-tron-pending-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.1);
}

.coin-charge-tron-pending-box.is-hidden {
    display: none;
}

.coin-charge-tron-pending-icon {
    font-family: "Material Symbols Outlined", sans-serif;
    color: #fbbf24;
    font-size: 20px;
}

.coin-charge-tron-pending-label {
    font-size: 14px;
    color: #fde68a;
}

.coin-charge-tron-pending-badge {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f59e0b;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.coin-charge-tron-pending-suffix {
    font-size: 12px;
    color: rgba(253, 230, 138, 0.8);
}

.coin-charge-tron-intro {
    margin: 0 0 24px;
    font-size: 14px;
    color: #9da8b9;
}

.coin-charge-tron-intro strong {
    color: #fff;
}

.coin-charge-tron-flash {
    margin: 0 0 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.coin-charge-tron-flash-ok {
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.coin-charge-tron-detail {
    margin-bottom: 32px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(19, 125, 236, 0.4);
    background: rgba(19, 125, 236, 0.05);
}

.coin-charge-tron-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.coin-charge-tron-detail-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.coin-charge-tron-close {
    font-size: 14px;
    color: #9da8b9;
    text-decoration: none;
}

.coin-charge-tron-close:hover {
    color: #fff;
}

.coin-charge-tron-detail-badge {
    margin-top: 8px;
}

.coin-charge-tron-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
}

.coin-charge-tron-span-2 {
    grid-column: 1 / -1;
}

.coin-charge-tron-wallet-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.coin-charge-tron-muted {
    color: #9da8b9;
}

.coin-charge-tron-muted-xs {
    font-size: 12px;
    color: #9da8b9;
}

.coin-charge-tron-white {
    color: #fff;
}

.coin-charge-tron-primary {
    color: #137fec;
}

.coin-charge-tron-bold {
    font-weight: 700;
}

.coin-charge-tron-warn {
    color: #fcd34d;
}

.coin-charge-tron-ok {
    color: #86efac;
}

.coin-charge-tron-detect-hint {
    margin: 12px 0 0;
    font-size: 12px;
}

.coin-charge-tron-detect-hint.is-ok {
    color: #86efac;
}

.coin-charge-tron-detect-hint.is-warn {
    color: #fcd34d;
}

.coin-charge-tron-recent-deps {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #3b4554;
    background: rgba(17, 20, 24, 0.4);
}

.coin-charge-tron-recent-dep-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 12px;
    margin-top: 6px;
}

.coin-charge-tron-mono-sm {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: #cbd5e1;
}

.coin-charge-tron-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.coin-charge-tron-inline-form {
    display: inline;
}

.coin-charge-tron-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    list-style: none;
}

.coin-charge-tron-btn-amber {
    background: #d97706;
    color: #fff;
}

.coin-charge-tron-btn-orange {
    background: #ea580c;
    color: #fff;
    font-weight: 700;
}

.coin-charge-tron-btn-violet {
    background: #7c3aed;
    color: #fff;
    font-weight: 700;
}

.coin-charge-tron-btn-red {
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    height: 38px;
}

.coin-charge-tron-btn-sky {
    border: 1px solid rgba(14, 165, 233, 0.5);
    background: rgba(14, 165, 233, 0.1);
    color: #7dd3fc;
    font-weight: 700;
    height: 36px;
}

.coin-charge-tron-btn-outline-blue {
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
}

.coin-charge-tron-btn-muted {
    border: 1px solid #3b4554;
    background: transparent;
    color: #9da8b9;
}

.coin-charge-tron-btn-primary {
    background: #137fec;
    color: #fff;
}

.coin-charge-tron-btn-disabled {
    background: #4b5563;
    color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.coin-charge-tron-input {
    width: 100%;
    margin-top: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #3b4554;
    background: #282f39;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.coin-charge-tron-input.is-auto-filled {
    border-color: rgba(14, 165, 233, 0.5);
    background: rgba(14, 165, 233, 0.1);
    color: #7dd3fc;
}

.coin-charge-tron-input-hash {
    min-width: 0;
    flex: 1 1 20rem;
    max-width: 100%;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    height: 36px;
}

.coin-charge-tron-manual-details summary {
    cursor: pointer;
}

.coin-charge-tron-manual-details .coin-charge-tron-manual-lookup {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.coin-charge-tron-manual-form {
    display: grid;
    grid-template-columns: minmax(20rem, 1fr) 12rem 12rem auto;
    gap: 12px;
    align-items: end;
    margin-top: 12px;
    width: 100%;
}

.coin-charge-tron-manual-hint {
    grid-column: 1 / -1;
    line-height: 1.5;
}

.coin-charge-tron-mt {
    display: block;
    margin-top: 12px;
}

.coin-charge-tron-card {
    margin-bottom: 32px;
    border-radius: 12px;
    border: 1px solid #3b4554;
    background: #111418;
    overflow: hidden;
}

.coin-charge-tron-card-title {
    margin: 0;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid #3b4554;
}

.coin-charge-tron-table-scroll {
    overflow-x: auto;
}

.coin-charge-tron-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 14px;
}

.coin-charge-tron-table thead {
    background: rgba(40, 47, 57, 0.5);
    color: #9da8b9;
}

.coin-charge-tron-table th,
.coin-charge-tron-table td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #282f39;
}

.coin-charge-tron-table th.is-right,
.coin-charge-tron-table td.is-right {
    text-align: right;
}

.coin-charge-tron-table th.is-center,
.coin-charge-tron-table td.is-center {
    text-align: center;
}

.coin-charge-tron-table th.is-dispatch {
    min-width: 28rem;
}

.coin-charge-tron-table tbody tr:hover {
    background: rgba(40, 47, 57, 0.3);
}

.coin-charge-tron-dispatch {
    width: 100%;
    min-width: 28rem;
    max-width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #3b4554;
    background: #282f39;
    color: #fff;
    font-family: ui-monospace, monospace;
    font-size: 14px;
}

.coin-charge-tron-empty {
    padding: 32px 24px !important;
    text-align: center;
    color: #9da8b9;
}

.coin-charge-tron-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.coin-charge-tron-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #3b4554;
    background: #282f39;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #e5e7eb;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.coin-charge-tron-pill:hover {
    border-color: #4b5563;
    background: #323a47;
    color: #fff;
}

.coin-charge-tron-pill.is-active {
    border-color: #137fec;
    background: #137fec;
    color: #fff;
}

.coin-charge-tron-pill.is-active:hover {
    border-color: #0f6fd4;
    background: #0f6fd4;
    color: #fff;
}

.coin-charge-tron-detail-link {
    color: #137fec;
    text-decoration: none;
    font-size: 14px;
}

.coin-charge-tron-mono,
.coin-charge-tron-mono-lg,
.coin-charge-tron-mono-sm {
    font-family: ui-monospace, monospace;
    word-break: break-all;
}

.coin-charge-tron-mono-lg {
    font-size: 16px;
    color: #fff;
}

.coin-charge-tron-mono-sm {
    font-size: 14px;
    color: #9da8b9;
}

.coin-charge-tron-dialog {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-charge-tron-dialog[hidden] {
    display: none !important;
}

.coin-charge-tron-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.coin-charge-tron-dialog-panel {
    position: relative;
    max-width: 420px;
    width: calc(100% - 32px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #3b4554;
    background: #111418;
}

.coin-charge-tron-dialog-message {
    margin: 0 0 16px;
    white-space: pre-wrap;
    color: #e5e7eb;
    font-size: 14px;
}

.coin-charge-tron-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.coin-charge-tron-page .coin-charge-tron-exception,
.coin-charge-tron-page .coin-charge-tron-sender-wrap,
.coin-charge-tron-page .coin-charge-tron-fee-bonus,
.coin-charge-tron-page [data-charge-detail-view] > .mt-4.rounded-lg.border {
    margin-top: 16px;
}

.coin-charge-tron-page .coin-charge-tron-exception .rounded-xl,
.coin-charge-tron-page .coin-charge-tron-sender-wrap .rounded-xl {
    border-radius: 12px;
}

.coin-charge-tron-page .coin-charge-tron-exception .border,
.coin-charge-tron-page .coin-charge-tron-sender-wrap .border {
    border-width: 1px;
    border-style: solid;
}

.coin-charge-tron-page .coin-charge-tron-exception .border-amber-500\/30 {
    border-color: rgba(245, 158, 11, 0.3);
}

.coin-charge-tron-page .coin-charge-tron-exception .bg-amber-500\/5 {
    background: rgba(245, 158, 11, 0.05);
}

.coin-charge-tron-page .coin-charge-tron-exception .border-\[\#3b4554\] {
    border-color: #3b4554;
}

.coin-charge-tron-page .coin-charge-tron-exception .bg-\[\#111418\],
.coin-charge-tron-page .coin-charge-tron-exception .bg-\[\#111418\]\/60,
.coin-charge-tron-page .coin-charge-tron-exception .bg-\[\#111418\]\/40 {
    background: rgba(17, 20, 24, 0.85);
}

.coin-charge-tron-page .coin-charge-tron-exception .bg-\[\#282f39\],
.coin-charge-tron-page .coin-charge-tron-exception input,
.coin-charge-tron-page .coin-charge-tron-exception select {
    background: #282f39;
    border-color: #3b4554;
    color: #fff;
}

.coin-charge-tron-page .coin-charge-tron-exception .text-white,
.coin-charge-tron-page .coin-charge-tron-sender-wrap .text-white {
    color: #fff;
}

.coin-charge-tron-page .coin-charge-tron-exception .text-\[\#9da8b9\],
.coin-charge-tron-page .coin-charge-tron-sender-wrap .text-\[\#9da8b9\] {
    color: #9da8b9;
}

.coin-charge-tron-page .coin-charge-tron-exception .text-primary,
.coin-charge-tron-page .coin-charge-tron-exception .text-amber-200 {
    color: #137fec;
}

.coin-charge-tron-page .coin-charge-tron-exception button,
.coin-charge-tron-page .coin-charge-tron-sender-wrap button {
    border-radius: 8px;
}

@media (max-width: 900px) {
    .coin-charge-tron-manual-form {
        grid-template-columns: 1fr;
    }

    .coin-charge-tron-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* 유저 충전 신청 — 상세 패널 (charge_request_list.php detail_id Tailwind 1:1) */
.coin-charge-tron-page [data-charge-detail-view].mb-8 {
    margin-bottom: 32px;
}

.coin-charge-tron-page [data-charge-detail-view].rounded-xl {
    border-radius: 12px;
}

.coin-charge-tron-page [data-charge-detail-view].border {
    border-width: 1px;
    border-style: solid;
}

.coin-charge-tron-page [data-charge-detail-view].border-primary\/40 {
    border-color: rgba(19, 125, 236, 0.4);
}

.coin-charge-tron-page [data-charge-detail-view].bg-primary\/5 {
    background: rgba(19, 125, 236, 0.05);
}

.coin-charge-tron-page [data-charge-detail-view].p-6 {
    padding: 24px;
}

.coin-charge-tron-page [data-charge-detail-view] .text-lg {
    font-size: 18px;
    line-height: 1.75rem;
}

.coin-charge-tron-page [data-charge-detail-view] .text-sm {
    font-size: 14px;
    line-height: 1.25rem;
}

.coin-charge-tron-page [data-charge-detail-view] .text-xs {
    font-size: 12px;
    line-height: 1rem;
}

.coin-charge-tron-page [data-charge-detail-view] .font-bold {
    font-weight: 700;
}

.coin-charge-tron-page [data-charge-detail-view] .font-medium {
    font-weight: 500;
}

.coin-charge-tron-page [data-charge-detail-view] .font-normal {
    font-weight: 400;
}

.coin-charge-tron-page [data-charge-detail-view] .font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.coin-charge-tron-page [data-charge-detail-view] .text-white {
    color: #fff;
}

.coin-charge-tron-page [data-charge-detail-view] .text-\[\#9da8b9\] {
    color: #9da8b9;
}

.coin-charge-tron-page [data-charge-detail-view] .text-\[\#cbd5e1\] {
    color: #cbd5e1;
}

.coin-charge-tron-page [data-charge-detail-view] .text-primary {
    color: #136dec;
}

.coin-charge-tron-page [data-charge-detail-view] .text-green-300 {
    color: #86efac;
}

.coin-charge-tron-page [data-charge-detail-view] .text-green-400 {
    color: #4ade80;
}

.coin-charge-tron-page [data-charge-detail-view] .text-amber-300 {
    color: #fcd34d;
}

.coin-charge-tron-page [data-charge-detail-view] .text-amber-400 {
    color: #fbbf24;
}

.coin-charge-tron-page [data-charge-detail-view] .text-blue-300 {
    color: #93c5fd;
}

.coin-charge-tron-page [data-charge-detail-view] .text-sky-200 {
    color: #bae6fd;
}

.coin-charge-tron-page [data-charge-detail-view] .text-sky-300 {
    color: #7dd3fc;
}

.coin-charge-tron-page [data-charge-detail-view] .text-violet-300 {
    color: #c4b5fd;
}

.coin-charge-tron-page [data-charge-detail-view] .text-gray-300 {
    color: #d1d5db;
}

.coin-charge-tron-page [data-charge-detail-view] .tabular-nums {
    font-variant-numeric: tabular-nums;
}

.coin-charge-tron-page [data-charge-detail-view] .leading-relaxed {
    line-height: 1.625;
}

.coin-charge-tron-page [data-charge-detail-view] .flex {
    display: flex;
}

.coin-charge-tron-page [data-charge-detail-view] .inline-flex {
    display: inline-flex;
}

.coin-charge-tron-page [data-charge-detail-view] .grid {
    display: grid;
}

.coin-charge-tron-page [data-charge-detail-view] .contents {
    display: contents;
}

.coin-charge-tron-page [data-charge-detail-view] .flex-wrap {
    flex-wrap: wrap;
}

.coin-charge-tron-page [data-charge-detail-view] .items-start {
    align-items: flex-start;
}

.coin-charge-tron-page [data-charge-detail-view] .items-center {
    align-items: center;
}

.coin-charge-tron-page [data-charge-detail-view] .items-end {
    align-items: flex-end;
}

.coin-charge-tron-page [data-charge-detail-view] .justify-between {
    justify-content: space-between;
}

.coin-charge-tron-page [data-charge-detail-view] .justify-center {
    justify-content: center;
}

.coin-charge-tron-page [data-charge-detail-view] .shrink-0 {
    flex-shrink: 0;
}

.coin-charge-tron-page [data-charge-detail-view] .gap-2 {
    gap: 8px;
}

.coin-charge-tron-page [data-charge-detail-view] .gap-3 {
    gap: 12px;
}

.coin-charge-tron-page [data-charge-detail-view] .gap-x-3 {
    column-gap: 12px;
}

.coin-charge-tron-page [data-charge-detail-view] .gap-y-1 {
    row-gap: 4px;
}

.coin-charge-tron-page [data-charge-detail-view] .gap-x-4 {
    column-gap: 16px;
}

.coin-charge-tron-page [data-charge-detail-view] .gap-y-2\.5 {
    row-gap: 10px;
}

.coin-charge-tron-page [data-charge-detail-view] .mt-1 {
    margin-top: 4px;
}

.coin-charge-tron-page [data-charge-detail-view] .mt-1\.5 {
    margin-top: 6px;
}

.coin-charge-tron-page [data-charge-detail-view] .coin-charge-tron-pool-memo {
    max-width: 100%;
    word-break: break-word;
}

.coin-charge-tron-page [data-charge-detail-view] .mt-2 {
    margin-top: 8px;
}

.coin-charge-tron-page [data-charge-detail-view] .mt-3 {
    margin-top: 12px;
}

.coin-charge-tron-page [data-charge-detail-view] .mt-4 {
    margin-top: 16px;
}

.coin-charge-tron-page [data-charge-detail-view] .mt-0\.5 {
    margin-top: 2px;
}

.coin-charge-tron-page [data-charge-detail-view] .mb-2 {
    margin-bottom: 8px;
}

.coin-charge-tron-page [data-charge-detail-view] .mb-3 {
    margin-bottom: 12px;
}

.coin-charge-tron-page [data-charge-detail-view] .ml-1 {
    margin-left: 4px;
}

.coin-charge-tron-page [data-charge-detail-view] .ml-2 {
    margin-left: 8px;
}

.coin-charge-tron-page [data-charge-detail-view] .ml-3 {
    margin-left: 12px;
}

.coin-charge-tron-page [data-charge-detail-view] .block {
    display: block;
}

.coin-charge-tron-page [data-charge-detail-view] .w-full {
    width: 100%;
}

.coin-charge-tron-page [data-charge-detail-view] .max-w-full {
    max-width: 100%;
}

.coin-charge-tron-page [data-charge-detail-view] .h-\[36px\] {
    height: 36px;
}

.coin-charge-tron-page [data-charge-detail-view] .h-\[38px\] {
    height: 38px;
}

.coin-charge-tron-page [data-charge-detail-view] .rounded-lg {
    border-radius: 8px;
}

.coin-charge-tron-page [data-charge-detail-view] .px-3 {
    padding-left: 12px;
    padding-right: 12px;
}

.coin-charge-tron-page [data-charge-detail-view] .px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.coin-charge-tron-page [data-charge-detail-view] .py-2 {
    padding-top: 8px;
    padding-bottom: 8px;
}

.coin-charge-tron-page [data-charge-detail-view] .p-3 {
    padding: 12px;
}

.coin-charge-tron-page [data-charge-detail-view] .p-4 {
    padding: 16px;
}

.coin-charge-tron-page [data-charge-detail-view] .border {
    border-width: 1px;
    border-style: solid;
}

.coin-charge-tron-page [data-charge-detail-view] .border-\[\#3b4554\] {
    border-color: #3b4554;
}

.coin-charge-tron-page [data-charge-detail-view] .border-sky-500\/30 {
    border-color: rgba(14, 165, 233, 0.3);
}

.coin-charge-tron-page [data-charge-detail-view] .border-sky-500\/50 {
    border-color: rgba(14, 165, 233, 0.5);
}

.coin-charge-tron-page [data-charge-detail-view] .border-blue-500\/40 {
    border-color: rgba(59, 130, 246, 0.4);
}

.coin-charge-tron-page [data-charge-detail-view] .bg-\[\#282f39\] {
    background-color: #282f39;
}

.coin-charge-tron-page [data-charge-detail-view] .bg-\[\#111418\]\/40 {
    background: rgba(17, 20, 24, 0.4);
}

.coin-charge-tron-page [data-charge-detail-view] .bg-sky-500\/5 {
    background: rgba(14, 165, 233, 0.05);
}

.coin-charge-tron-page [data-charge-detail-view] .bg-sky-500\/10 {
    background: rgba(14, 165, 233, 0.1);
}

.coin-charge-tron-page [data-charge-detail-view] .bg-blue-500\/10 {
    background: rgba(59, 130, 246, 0.1);
}

.coin-charge-tron-page [data-charge-detail-view] .bg-amber-600 {
    background-color: #d97706;
}

.coin-charge-tron-page [data-charge-detail-view] .bg-orange-600 {
    background-color: #ea580c;
}

.coin-charge-tron-page [data-charge-detail-view] .bg-violet-600 {
    background-color: #7c3aed;
}

.coin-charge-tron-page [data-charge-detail-view] .bg-red-600 {
    background-color: #dc2626;
}

.coin-charge-tron-page [data-charge-detail-view] .bg-gray-600 {
    background-color: #4b5563;
}

.coin-charge-tron-page [data-charge-detail-view] .hover\:bg-orange-500:hover {
    background-color: #f97316;
}

.coin-charge-tron-page [data-charge-detail-view] .hover\:bg-violet-500:hover {
    background-color: #8b5cf6;
}

.coin-charge-tron-page [data-charge-detail-view] .hover\:bg-red-500:hover {
    background-color: #ef4444;
}

.coin-charge-tron-page [data-charge-detail-view] .hover\:bg-sky-500\/20:hover {
    background: rgba(14, 165, 233, 0.2);
}

.coin-charge-tron-page [data-charge-detail-view] .hover\:text-white:hover {
    color: #fff;
}

.coin-charge-tron-page [data-charge-detail-view] .cursor-pointer {
    cursor: pointer;
}

.coin-charge-tron-page [data-charge-detail-view] .cursor-not-allowed {
    cursor: not-allowed;
}

.coin-charge-tron-page [data-charge-detail-view] .opacity-60 {
    opacity: 0.6;
}

.coin-charge-tron-page [data-charge-detail-view] .list-none {
    list-style: none;
}

.coin-charge-tron-page [data-charge-detail-view] .break-all {
    word-break: break-all;
}

.coin-charge-tron-page [data-charge-detail-view] .space-y-1\.5 > * + * {
    margin-top: 6px;
}

.coin-charge-tron-page [data-charge-detail-view] .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.coin-charge-tron-page [data-charge-detail-view] dl.grid {
    margin: 0;
}

.coin-charge-tron-page [data-charge-detail-view] dl.grid dt,
.coin-charge-tron-page [data-charge-detail-view] dl.grid dd {
    margin: 0;
}

@media (min-width: 640px) {
    .coin-charge-tron-page [data-charge-detail-view] .sm\:grid-cols-\[8\.5rem_1fr\] {
        grid-template-columns: 8.5rem 1fr;
    }

    .coin-charge-tron-page [data-charge-detail-view] .sm\:grid-cols-\[7rem_1fr\] {
        grid-template-columns: 7rem 1fr;
    }

    .coin-charge-tron-page [data-charge-detail-view] .sm\:w-\[34rem\] {
        width: 34rem;
    }
}

/* 상세 — 상태 뱃지 (트론 tron_deposit_render_status_badge) */
.coin-charge-tron-page [data-charge-detail-view] .rounded-full {
    border-radius: 9999px;
}

.coin-charge-tron-page [data-charge-detail-view] .bg-orange-500\/10 {
    background: rgba(249, 115, 22, 0.1);
}

.coin-charge-tron-page [data-charge-detail-view] .text-orange-400 {
    color: #fb923c;
}

.coin-charge-tron-page [data-charge-detail-view] .bg-gray-500\/10 {
    background: rgba(107, 114, 128, 0.1);
}

.coin-charge-tron-page [data-charge-detail-view] .text-gray-400 {
    color: #9ca3af;
}

.coin-charge-tron-page [data-charge-detail-view] .text-gray-500 {
    color: #6b7280;
}

.coin-charge-tron-page [data-charge-detail-view] .bg-green-500\/10 {
    background: rgba(34, 197, 94, 0.1);
}

.coin-charge-tron-page [data-charge-detail-view] .bg-yellow-500\/10 {
    background: rgba(234, 179, 8, 0.1);
}

.coin-charge-tron-page [data-charge-detail-view] .text-yellow-400 {
    color: #facc15;
}

.coin-charge-tron-page [data-charge-detail-view] .bg-blue-500\/10 {
    background: rgba(59, 130, 246, 0.1);
}

.coin-charge-tron-page [data-charge-detail-view] .text-blue-400 {
    color: #60a5fa;
}

.coin-charge-tron-page [data-charge-detail-view] .bg-purple-500\/10 {
    background: rgba(168, 85, 247, 0.1);
}

.coin-charge-tron-page [data-charge-detail-view] .text-purple-400 {
    color: #c084fc;
}

.coin-charge-tron-page [data-charge-detail-view] .bg-red-500\/10 {
    background: rgba(239, 68, 68, 0.1);
}

/* 상세 — TRX 보상 패널 (violet) */
.coin-charge-tron-page [data-charge-detail-view] .border-violet-500\/30 {
    border-color: rgba(139, 92, 246, 0.3);
}

.coin-charge-tron-page [data-charge-detail-view] .border-violet-500\/20 {
    border-color: rgba(139, 92, 246, 0.2);
}

.coin-charge-tron-page [data-charge-detail-view] .bg-violet-500\/5 {
    background: rgba(139, 92, 246, 0.05);
}

.coin-charge-tron-page [data-charge-detail-view] .text-violet-200 {
    color: #ddd6fe;
}

.coin-charge-tron-page [data-charge-detail-view] .text-violet-300 {
    color: #c4b5fd;
}

.coin-charge-tron-page [data-charge-detail-view] .rounded-md {
    border-radius: 6px;
}

.coin-charge-tron-page [data-charge-detail-view] .border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.coin-charge-tron-page [data-charge-detail-view] .pt-3 {
    padding-top: 12px;
}

.coin-charge-tron-page [data-charge-detail-view] .leading-snug {
    line-height: 1.375;
}

.coin-charge-tron-page [data-charge-detail-view] .hover\:underline:hover {
    text-decoration: underline;
}

.coin-charge-tron-page [data-charge-detail-view] .text-amber-300\/90 {
    color: rgba(252, 211, 77, 0.9);
}

@media (min-width: 768px) {
    .coin-charge-tron-page [data-charge-detail-view] .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coin-charge-tron-page [data-charge-detail-view] .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .coin-charge-tron-page [data-charge-detail-view] .md\:col-span-4 {
        grid-column: span 4 / span 4;
    }

    .coin-charge-tron-page [data-charge-detail-view] .md\:grid-cols-\[minmax\(20rem\2c 1fr\)_12rem_12rem_auto\] {
        grid-template-columns: minmax(20rem, 1fr) 12rem 12rem auto;
    }
}

.coin-charge-tron-page [data-charge-detail-view] a.text-sm {
    text-decoration: none;
}

.coin-charge-tron-page [data-charge-detail-view] .coin-charge-tron-detail-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 38px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid #0f6fd4;
    background: linear-gradient(180deg, #137fec 0%, #0f6fd4 100%);
    box-shadow: 0 0 0 1px rgba(19, 125, 236, 0.25), 0 4px 14px rgba(19, 125, 236, 0.35);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.coin-charge-tron-page [data-charge-detail-view] .coin-charge-tron-detail-close:hover {
    border-color: #3b9eff;
    background: linear-gradient(180deg, #2d8ef0 0%, #137fec 100%);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(59, 158, 255, 0.45), 0 6px 22px rgba(19, 125, 236, 0.45);
}

.coin-charge-tron-page [data-charge-detail-view] .coin-charge-tron-detail-close:active {
    transform: translateY(1px);
}

.coin-charge-tron-page [data-charge-detail-view] .coin-charge-tron-detail-request-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}

.coin-charge-tron-page [data-charge-detail-view] .coin-charge-tron-detail-usdt-amount {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.coin-charge-tron-page [data-charge-detail-view] .coin-charge-tron-detail-usdt-amount .text-primary {
    color: #136dec;
}

.coin-charge-tron-page [data-charge-detail-view] .coin-charge-tron-detail-usdt-amount .text-\[\#9da8b9\] {
    font-size: 16px;
    font-weight: 500;
}

.coin-charge-tron-page [data-charge-detail-view] button {
    border: none;
    cursor: pointer;
}

.coin-charge-tron-page [data-charge-detail-view] input,
.coin-charge-tron-page [data-charge-detail-view] select {
    box-sizing: border-box;
}

.coin-charge-tron-page [data-charge-detail-view] .mt-6 {
    margin-top: 24px;
}

.coin-charge-tron-page [data-charge-detail-view] .border-amber-500\/30 {
    border-color: rgba(245, 158, 11, 0.3);
}

.coin-charge-tron-page [data-charge-detail-view] .bg-amber-500\/5 {
    background: rgba(245, 158, 11, 0.05);
}

.coin-charge-tron-page [data-charge-detail-view] .text-amber-200 {
    color: #fde68a;
}

.coin-charge-tron-page [data-charge-detail-view] .text-orange-300 {
    color: #fdba74;
}

.coin-charge-tron-page [data-charge-detail-view] .text-blue-300 {
    color: #93c5fd;
}

.coin-charge-tron-page [data-charge-detail-view] .text-\[\#6b7280\] {
    color: #6b7280;
}

.coin-charge-tron-page [data-charge-detail-view] .text-gray-400 {
    color: #9ca3af;
}

.coin-charge-tron-page [data-charge-detail-view] .overflow-x-auto {
    overflow-x: auto;
}

.coin-charge-tron-page [data-charge-detail-view] .min-w-full {
    min-width: 100%;
}

.coin-charge-tron-page [data-charge-detail-view] .divide-y.divide-\[\#282f39\] > tr {
    border-bottom: 1px solid #282f39;
}

.coin-charge-tron-page [data-charge-detail-view] .space-y-1 > * + * {
    margin-top: 4px;
}

.coin-charge-tron-page [data-charge-detail-view] .px-1\.5 {
    padding-left: 6px;
    padding-right: 6px;
}

.coin-charge-tron-page [data-charge-detail-view] .py-0\.5 {
    padding-top: 2px;
    padding-bottom: 2px;
}

.coin-charge-tron-page [data-charge-detail-view] .px-2 {
    padding-left: 8px;
    padding-right: 8px;
}

.coin-charge-tron-page [data-charge-detail-view] .py-1\.5 {
    padding-top: 6px;
    padding-bottom: 6px;
}

.coin-charge-tron-page [data-charge-detail-view] .bg-red-500\/10 {
    background: rgba(239, 68, 68, 0.1);
}

.coin-charge-tron-page [data-charge-detail-view] .text-red-400 {
    color: #f87171;
}

.coin-charge-tron-page [data-charge-detail-view] .bg-green-500\/10 {
    background: rgba(34, 197, 94, 0.1);
}

.coin-charge-tron-page [data-charge-detail-view] .hover\:text-white:hover {
    color: #fff;
}

.coin-charge-tron-page [data-charge-detail-view] .hover\:text-orange-200:hover {
    color: #fed7aa;
}

.coin-charge-tron-page [data-charge-detail-view] .coin-charge-tron-exception table {
    width: 100%;
    border-collapse: collapse;
}

.coin-charge-tron-page [data-charge-detail-view] .coin-charge-tron-exception thead {
    background: rgba(40, 47, 57, 0.5);
    color: #9da8b9;
}

.coin-charge-tron-page [data-charge-detail-view] .coin-charge-tron-exception th,
.coin-charge-tron-page [data-charge-detail-view] .coin-charge-tron-exception td {
    padding: 8px;
    vertical-align: top;
}

/* 유저 충전 신청 — 목록 테이블 (트론 charge_request_list.php Tailwind 1:1) */
.coin-charge-tron-page .coin-charge-tron-list-wrap {
    border-radius: 12px;
    border: 1px solid #3b4554;
    background: #111418;
    overflow-x: auto;
}

.coin-charge-tron-page .coin-charge-tron-list-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.coin-charge-tron-page .coin-charge-tron-list-table thead {
    background: rgba(40, 47, 57, 0.5);
    color: #9da8b9;
}

.coin-charge-tron-page .coin-charge-tron-list-table th,
.coin-charge-tron-page .coin-charge-tron-list-table td {
    vertical-align: top;
}

.coin-charge-tron-page .coin-charge-tron-list-table tbody tr {
    border-bottom: 1px solid #282f39;
}

.coin-charge-tron-page .coin-charge-tron-list-table tbody tr:hover {
    background: rgba(40, 47, 57, 0.3);
}

.coin-charge-tron-page .coin-charge-tron-list-table tbody tr:last-child {
    border-bottom: none;
}

/* legacy HTML + 목록 셀 Tailwind 클래스 (트론 CDN 대응) */
.coin-charge-tron-page .coin-charge-tron-list-wrap .px-3,
.coin-charge-tron-page .coin-charge-tron-list-table .px-3 {
    padding-left: 12px;
    padding-right: 12px;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .py-2,
.coin-charge-tron-page .coin-charge-tron-list-table .py-2 {
    padding-top: 8px;
    padding-bottom: 8px;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .py-3,
.coin-charge-tron-page .coin-charge-tron-list-table .py-3 {
    padding-top: 12px;
    padding-bottom: 12px;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .px-6,
.coin-charge-tron-page .coin-charge-tron-list-table .px-6 {
    padding-left: 24px;
    padding-right: 24px;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .py-8,
.coin-charge-tron-page .coin-charge-tron-list-table .py-8 {
    padding-top: 32px;
    padding-bottom: 32px;
}

.coin-charge-tron-page .coin-charge-tron-list-table .min-w-full {
    min-width: 100%;
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-sm {
    font-size: 14px;
    line-height: 1.25rem;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .text-left,
.coin-charge-tron-page .coin-charge-tron-list-table .text-left {
    text-align: left;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .text-right,
.coin-charge-tron-page .coin-charge-tron-list-table .text-right {
    text-align: right;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .text-center,
.coin-charge-tron-page .coin-charge-tron-list-table .text-center {
    text-align: center;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .text-white,
.coin-charge-tron-page .coin-charge-tron-list-table .text-white,
.coin-charge-tron-page .coin-charge-tron-table .text-white {
    color: #fff;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .text-\[\#9da8b9\],
.coin-charge-tron-page .coin-charge-tron-list-table .text-\[\#9da8b9\],
.coin-charge-tron-page .coin-charge-tron-table .text-\[\#9da8b9\] {
    color: #9da8b9;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .text-\[\#6b7280\],
.coin-charge-tron-page .coin-charge-tron-list-table .text-\[\#6b7280\] {
    color: #6b7280;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .whitespace-nowrap,
.coin-charge-tron-page .coin-charge-tron-list-table .whitespace-nowrap {
    white-space: nowrap;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .tabular-nums,
.coin-charge-tron-page .coin-charge-tron-list-table .tabular-nums,
.coin-charge-tron-page .coin-charge-tron-table .tabular-nums {
    font-variant-numeric: tabular-nums;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .leading-relaxed,
.coin-charge-tron-page .coin-charge-tron-list-table .leading-relaxed {
    line-height: 1.625;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .text-xs,
.coin-charge-tron-page .coin-charge-tron-list-table .text-xs {
    font-size: 12px;
    line-height: 1rem;
}

.coin-charge-tron-page .coin-charge-tron-list-wrap .bg-\[\#282f39\]\/50,
.coin-charge-tron-page .coin-charge-tron-list-table thead.bg-\[\#282f39\]\/50 {
    background: rgba(40, 47, 57, 0.5);
}

.coin-charge-tron-page .coin-charge-tron-list-table tbody.divide-y.divide-\[\#282f39\] > tr {
    border-bottom: 1px solid #282f39;
}

.coin-charge-tron-page .coin-charge-tron-list-table tr.hover\:bg-\[\#282f39\]\/30:hover {
    background: rgba(40, 47, 57, 0.3);
}

/* 목록·미처리 테이블 내 legacy 렌더 (USDT/원화/뱃지/Scan·QR/상세) */
.coin-charge-tron-page .coin-charge-tron-list-table .text-primary,
.coin-charge-tron-page .coin-charge-tron-table .text-primary {
    color: #136dec;
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-green-400,
.coin-charge-tron-page .coin-charge-tron-table .text-green-400 {
    color: #4ade80;
}

.coin-charge-tron-page .coin-charge-tron-list-table .font-mono,
.coin-charge-tron-page .coin-charge-tron-table .font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.coin-charge-tron-page .coin-charge-tron-list-table .font-medium,
.coin-charge-tron-page .coin-charge-tron-table .font-medium {
    font-weight: 500;
}

.coin-charge-tron-page .coin-charge-tron-list-table .font-bold,
.coin-charge-tron-page .coin-charge-tron-table .font-bold {
    font-weight: 700;
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-base,
.coin-charge-tron-page .coin-charge-tron-table .text-base {
    font-size: 16px;
    line-height: 1.5rem;
}

.coin-charge-tron-page .coin-charge-tron-list-table .break-all,
.coin-charge-tron-page .coin-charge-tron-table .break-all {
    word-break: break-all;
}

.coin-charge-tron-page .coin-charge-tron-list-table .flex,
.coin-charge-tron-page .coin-charge-tron-table .flex {
    display: flex;
}

.coin-charge-tron-page .coin-charge-tron-list-table .inline-flex,
.coin-charge-tron-page .coin-charge-tron-table .inline-flex {
    display: inline-flex;
}

.coin-charge-tron-page .coin-charge-tron-list-table .flex-wrap,
.coin-charge-tron-page .coin-charge-tron-table .flex-wrap {
    flex-wrap: wrap;
}

.coin-charge-tron-page .coin-charge-tron-list-table .flex-col,
.coin-charge-tron-page .coin-charge-tron-table .flex-col {
    flex-direction: column;
}

.coin-charge-tron-page .coin-charge-tron-list-table .items-center,
.coin-charge-tron-page .coin-charge-tron-table .items-center {
    align-items: center;
}

.coin-charge-tron-page .coin-charge-tron-list-table .items-end,
.coin-charge-tron-page .coin-charge-tron-table .items-end {
    align-items: flex-end;
}

.coin-charge-tron-page .coin-charge-tron-list-table .justify-center,
.coin-charge-tron-page .coin-charge-tron-table .justify-center {
    justify-content: center;
}

.coin-charge-tron-page .coin-charge-tron-list-table .shrink-0,
.coin-charge-tron-page .coin-charge-tron-table .shrink-0 {
    flex-shrink: 0;
}

.coin-charge-tron-page .coin-charge-tron-list-table .gap-2,
.coin-charge-tron-page .coin-charge-tron-table .gap-2 {
    gap: 8px;
}

.coin-charge-tron-page .coin-charge-tron-list-table .gap-0\.5,
.coin-charge-tron-page .coin-charge-tron-table .gap-0\.5 {
    gap: 2px;
}

.coin-charge-tron-page .coin-charge-tron-list-table .rounded,
.coin-charge-tron-page .coin-charge-tron-table .rounded {
    border-radius: 4px;
}

.coin-charge-tron-page .coin-charge-tron-list-table .rounded-lg,
.coin-charge-tron-page .coin-charge-tron-table .rounded-lg {
    border-radius: 8px;
}

.coin-charge-tron-page .coin-charge-tron-list-table .rounded-full,
.coin-charge-tron-page .coin-charge-tron-table .rounded-full {
    border-radius: 9999px;
}

.coin-charge-tron-page .coin-charge-tron-list-table .px-1\.5,
.coin-charge-tron-page .coin-charge-tron-table .px-1\.5 {
    padding-left: 6px;
    padding-right: 6px;
}

.coin-charge-tron-page .coin-charge-tron-list-table .py-0\.5,
.coin-charge-tron-page .coin-charge-tron-table .py-0\.5 {
    padding-top: 2px;
    padding-bottom: 2px;
}

.coin-charge-tron-page .coin-charge-tron-list-table .px-2,
.coin-charge-tron-page .coin-charge-tron-table .px-2 {
    padding-left: 8px;
    padding-right: 8px;
}

.coin-charge-tron-page .coin-charge-tron-list-table .py-1,
.coin-charge-tron-page .coin-charge-tron-table .py-1 {
    padding-top: 4px;
    padding-bottom: 4px;
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-\[10px\],
.coin-charge-tron-page .coin-charge-tron-table .text-\[10px\] {
    font-size: 10px;
}

.coin-charge-tron-page .coin-charge-tron-list-table .leading-tight,
.coin-charge-tron-page .coin-charge-tron-table .leading-tight {
    line-height: 1.25;
}

.coin-charge-tron-page .coin-charge-tron-list-table .leading-snug,
.coin-charge-tron-page .coin-charge-tron-table .leading-snug {
    line-height: 1.375;
}

.coin-charge-tron-page .coin-charge-tron-list-table .leading-none,
.coin-charge-tron-page .coin-charge-tron-table .leading-none {
    line-height: 1;
}

.coin-charge-tron-page .coin-charge-tron-list-table .mt-0\.5,
.coin-charge-tron-page .coin-charge-tron-table .mt-0\.5 {
    margin-top: 2px;
}

.coin-charge-tron-page .coin-charge-tron-list-table .block,
.coin-charge-tron-page .coin-charge-tron-table .block {
    display: block;
}

.coin-charge-tron-page .coin-charge-tron-list-table .border,
.coin-charge-tron-page .coin-charge-tron-table .border {
    border-width: 1px;
    border-style: solid;
}

.coin-charge-tron-page .coin-charge-tron-list-table .border-\[\#3b4554\],
.coin-charge-tron-page .coin-charge-tron-table .border-\[\#3b4554\] {
    border-color: #3b4554;
}

.coin-charge-tron-page .coin-charge-tron-list-table .bg-\[\#282f39\],
.coin-charge-tron-page .coin-charge-tron-table .bg-\[\#282f39\] {
    background-color: #282f39;
}

.coin-charge-tron-page .coin-charge-tron-list-table a.border-\[\#3b4554\].bg-\[\#282f39\],
.coin-charge-tron-page .coin-charge-tron-table a.border-\[\#3b4554\].bg-\[\#282f39\] {
    color: #9da8b9;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.coin-charge-tron-page .coin-charge-tron-list-table a.border-\[\#3b4554\].bg-\[\#282f39\]:hover,
.coin-charge-tron-page .coin-charge-tron-table a.border-\[\#3b4554\].bg-\[\#282f39\]:hover {
    color: #fff;
    background-color: #3b4554;
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-amber-200,
.coin-charge-tron-page .coin-charge-tron-table .text-amber-200 {
    color: #fde68a;
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-amber-200\/90,
.coin-charge-tron-page .coin-charge-tron-table .text-amber-200\/90 {
    color: rgba(253, 230, 138, 0.9);
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-amber-300,
.coin-charge-tron-page .coin-charge-tron-table .text-amber-300 {
    color: #fcd34d;
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-amber-300\/90,
.coin-charge-tron-page .coin-charge-tron-table .text-amber-300\/90 {
    color: rgba(252, 211, 77, 0.9);
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-blue-400,
.coin-charge-tron-page .coin-charge-tron-table .text-blue-400 {
    color: #60a5fa;
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-yellow-400,
.coin-charge-tron-page .coin-charge-tron-table .text-yellow-400 {
    color: #facc15;
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-purple-400,
.coin-charge-tron-page .coin-charge-tron-table .text-purple-400 {
    color: #c084fc;
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-red-400,
.coin-charge-tron-page .coin-charge-tron-table .text-red-400 {
    color: #f87171;
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-gray-400,
.coin-charge-tron-page .coin-charge-tron-table .text-gray-400 {
    color: #9ca3af;
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-gray-500,
.coin-charge-tron-page .coin-charge-tron-table .text-gray-500 {
    color: #6b7280;
}

.coin-charge-tron-page .coin-charge-tron-list-table .bg-orange-500\/10,
.coin-charge-tron-page .coin-charge-tron-table .bg-orange-500\/10 {
    background-color: rgba(249, 115, 22, 0.1);
}

.coin-charge-tron-page .coin-charge-tron-list-table .text-orange-400,
.coin-charge-tron-page .coin-charge-tron-table .text-orange-400 {
    color: #fb923c;
}

.coin-charge-tron-page .coin-charge-tron-list-table .bg-gray-500\/10,
.coin-charge-tron-page .coin-charge-tron-table .bg-gray-500\/10 {
    background-color: rgba(107, 114, 128, 0.1);
}

.coin-charge-tron-page .coin-charge-tron-list-table .bg-blue-500\/10,
.coin-charge-tron-page .coin-charge-tron-table .bg-blue-500\/10 {
    background-color: rgba(59, 130, 246, 0.1);
}

.coin-charge-tron-page .coin-charge-tron-list-table .bg-yellow-500\/10,
.coin-charge-tron-page .coin-charge-tron-table .bg-yellow-500\/10 {
    background-color: rgba(234, 179, 8, 0.1);
}

.coin-charge-tron-page .coin-charge-tron-list-table .bg-purple-500\/10,
.coin-charge-tron-page .coin-charge-tron-table .bg-purple-500\/10 {
    background-color: rgba(168, 85, 247, 0.1);
}

.coin-charge-tron-page .coin-charge-tron-list-table .bg-green-500\/10,
.coin-charge-tron-page .coin-charge-tron-table .bg-green-500\/10 {
    background-color: rgba(34, 197, 94, 0.1);
}

.coin-charge-tron-page .coin-charge-tron-list-table .bg-red-500\/10,
.coin-charge-tron-page .coin-charge-tron-table .bg-red-500\/10 {
    background-color: rgba(239, 68, 68, 0.1);
}

.coin-charge-tron-page .coin-charge-tron-list-table .bg-amber-500\/15,
.coin-charge-tron-page .coin-charge-tron-table .bg-amber-500\/15 {
    background-color: rgba(245, 158, 11, 0.15);
}

.coin-charge-tron-page .coin-charge-tron-list-table .bg-green-500\/15,
.coin-charge-tron-page .coin-charge-tron-table .bg-green-500\/15 {
    background-color: rgba(34, 197, 94, 0.15);
}

.coin-charge-tron-page .coin-charge-tron-list-table .bg-red-500\/15,
.coin-charge-tron-page .coin-charge-tron-table .bg-red-500\/15 {
    background-color: rgba(239, 68, 68, 0.15);
}

/* 미처리 테이블 — 목록과 동일 셀 높이·호버 */
.coin-charge-tron-page .coin-charge-tron-table th,
.coin-charge-tron-page .coin-charge-tron-table td {
    padding: 8px 12px;
    vertical-align: top;
}

.coin-detail-dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin: 0;
}

.coin-detail-dl div {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.coin-detail-dl dt {
    color: #9da8b9;
    min-width: 88px;
}

.coin-deposit-address {
    word-break: break-all;
    font-size: 13px;
}

.coin-deposit-step.is-hidden {
    display: none !important;
}

.coin-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.coin-inline-form {
    display: inline;
}

.coin-config-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    max-width: 520px;
}

.coin-config-field label {
    min-width: 180px;
    font-size: 14px;
    color: #e5e7eb;
}

.coin-config-page {
    max-width: 960px;
    color: #e8edf8;
}

.coin-config-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 24px;
    box-sizing: border-box;
    width: 100%;
    max-width: 768px;
    position: sticky;
    top: 0;
    z-index: 12;
    margin-top: -10px;
    padding: 10px 0 12px;
    background: var(--bg);
    box-shadow: 0 1px 0 rgba(46, 56, 82, 0.55);
}

.coin-config-page-head .coin-config-page-title {
    margin: 0;
    align-self: center;
}

.coin-config-page-head .coin-config-page-title.login-history-topbar-title-active {
    margin-top: 0;
    margin-bottom: 0;
}

.coin-config-save-btn--head {
    flex-shrink: 0;
    margin: 0;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    box-sizing: border-box;
}

.coin-config-page-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.coin-config-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.coin-config-notice-success {
    border: 1px solid rgba(19, 127, 236, 0.35);
    background: rgba(19, 127, 236, 0.12);
    color: #7dd3fc;
}

.coin-config-notice-error {
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.coin-config-alert {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
}

.coin-config-alert-danger {
    border: 1px solid rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
}

.coin-config-alert a {
    color: #7dd3fc;
    text-decoration: underline;
}

.coin-config-tabular {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.coin-config-rates-card,
.coin-config-table-card {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #3b4554;
    border-radius: 12px;
    background: #111418;
}

.coin-config-rates-card {
    max-width: 768px;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.12);
}

.coin-config-section-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.coin-config-rate-block {
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 4px solid #0ea5e9;
    background: rgba(14, 165, 233, 0.05);
}

.coin-config-rate-block-trx {
    border-left-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
    margin-bottom: 0;
}

.coin-config-rate-heading {
    margin: 8px 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #e0f2fe;
}

.coin-config-rate-heading-trx {
    color: #ede9fe;
}

.coin-config-rate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

@media (max-width: 720px) {
    .coin-config-rate-grid {
        grid-template-columns: 1fr;
    }
}

.coin-config-rate-card {
    padding: 8px 10px;
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: rgba(40, 47, 57, 0.4);
    line-height: 1.25;
}

.coin-config-rate-card.is-selected-usdt {
    border: 2px solid #0ea5e9;
    background: rgba(14, 165, 233, 0.15);
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.35);
}

.coin-config-rate-card.is-selected-trx {
    border: 2px solid #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.35);
}

.coin-config-rate-card-label {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
}

.coin-config-rate-badge {
    margin-left: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.coin-config-rate-badge-trx {
    color: #c4b5fd;
}

.coin-config-rate-value {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #4ade80;
    line-height: 1.2;
}

.coin-config-rate-won {
    font-size: 12px;
    font-weight: 500;
    color: #9da8b9;
}

.coin-config-rate-stale {
    margin: 2px 0 0;
    font-size: 10px;
    line-height: 1.2;
    color: #6b7280;
}

.coin-config-rate-error {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.3;
    color: #fbbf24;
}

.coin-config-rate-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
}

.coin-config-rate-saved {
    font-size: 14px;
    color: #9da8b9;
}

.coin-config-rate-saved strong {
    color: #fff;
}

.coin-config-bonus-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #3b4554;
}

.coin-config-bonus-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.coin-config-bonus-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #ddd6fe;
}

.coin-config-bonus-dispatch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.coin-config-bonus-dispatch-label {
    font-size: 14px;
    color: #9da8b9;
}

.coin-config-bonus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 640px) {
    .coin-config-bonus-grid {
        grid-template-columns: 1fr;
    }
}

.coin-config-bonus-field-label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.coin-config-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.coin-config-table thead th {
    padding: 0 0 12px;
    border-bottom: 1px solid #3b4554;
    color: #9da8b9;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
}

.coin-config-th-section {
    width: 112px;
}

.coin-config-table tbody tr {
    border-bottom: 1px solid #282f39;
}

.coin-config-section-cell {
    padding: 16px 12px 16px 0;
    vertical-align: top;
    background: rgba(40, 47, 57, 0.5);
    border-right: 1px solid #282f39;
}

.coin-config-section-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid #3b4554;
    border-radius: 6px;
    background: #1a1f27;
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: pre-line;
    text-align: center;
}

.coin-config-label-cell {
    padding: 16px 16px 16px 20px;
    vertical-align: top;
}

.coin-config-label-title {
    margin: 0;
    font-weight: 500;
    color: #fff;
}

.coin-config-label-key {
    margin: 2px 0 0;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: #9da8b9;
}

.coin-config-label-hint {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: #6b7280;
}

.coin-config-value-cell {
    padding: 16px 0;
    vertical-align: top;
}

.coin-config-input-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.coin-config-number-input,
.coin-config-text-input,
.coin-config-select {
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #282f39;
    color: #fff;
    font-size: 14px;
}

.coin-config-number-input {
    width: 96px;
    padding: 8px;
    font-variant-numeric: tabular-nums;
}

.coin-config-number-input-wide {
    width: 100%;
    max-width: 160px;
}

.coin-config-text-input {
    width: 100%;
    max-width: 320px;
    padding: 8px 12px;
}

.coin-config-select {
    min-width: 128px;
    padding: 8px 12px;
}

.coin-config-select-usdt {
    border-color: rgba(14, 165, 233, 0.45);
}

.coin-config-select-trx {
    border-color: rgba(139, 92, 246, 0.45);
}

.coin-config-dispatch-select.is-auto {
    border-color: #34d399;
    color: #6ee7b7;
    font-weight: 600;
}

.coin-config-dispatch-select.is-manual {
    border-color: rgba(139, 92, 246, 0.45);
    font-weight: 600;
}

.coin-config-bool-select {
    width: 96px;
    padding: 8px;
    border-radius: 8px;
    border-width: 1px;
    border-style: solid;
    font-size: 14px;
    font-weight: 700;
}

.coin-config-bool-select.is-on {
    border-color: rgba(52, 211, 153, 0.6);
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.coin-config-bool-select.is-off {
    border-color: rgba(244, 63, 94, 0.5);
    background: rgba(244, 63, 94, 0.1);
    color: #fda4af;
}

.coin-config-unit {
    font-size: 12px;
    font-weight: 500;
    color: #9da8b9;
}

.coin-config-unit-usdt {
    color: #137fec;
}

.coin-config-unit-trx,
.coin-config-unit-krw {
    color: #c4b5fd;
}

.coin-config-unit-krw {
    color: #4ade80;
}

.coin-config-empty {
    padding: 16px 0;
    color: #9da8b9;
}

.coin-config-save-btn {
    margin-top: 24px;
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    background: #137fec;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.coin-config-save-btn:hover {
    opacity: 0.9;
}

.coin-config-page-head .coin-config-save-btn {
    margin-top: 0;
}

.coin-config-notes {
    max-width: 640px;
    margin-top: 32px;
    font-size: 14px;
    color: #9da8b9;
}

.coin-config-notes-title {
    margin: 0 0 8px;
    font-weight: 500;
    color: #fff;
}

.coin-config-notes ul {
    margin: 0;
    padding-left: 20px;
}

.coin-config-notes li {
    margin-bottom: 6px;
    line-height: 1.45;
}

.coin-config-notes strong {
    color: #fff;
}

.partners-data-table tbody tr.is-selected {
    background: rgba(59, 130, 246, 0.12);
}

.date-filter-submit-btn.is-muted {
    opacity: 0.85;
}

.basic-settings-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.basic-settings-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #334055;
    border-radius: 8px;
    background: #121821;
    color: #d7e0f0;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.basic-settings-radio:has(input:checked) {
    border-color: rgba(93, 214, 255, 0.55);
    background: rgba(93, 214, 255, 0.1);
    color: #8ae4ff;
}

.basic-settings-radio input {
    margin: 0;
    accent-color: #5dd6ff;
}

.basic-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.basic-settings-partner-labels-card .basic-settings-card-body {
    padding: 16px 20px;
}

.basic-settings-partner-labels-card .basic-settings-card-title {
    margin-bottom: 10px;
}

.basic-settings-partner-labels-desc {
    margin: 0 0 10px;
}

.basic-settings-partner-labels-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 0;
    overflow-x: auto;
    padding-bottom: 2px;
}

.basic-settings-partner-labels-grid .basic-settings-field {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
}

.basic-settings-partner-labels-grid .basic-settings-field + .basic-settings-field {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.basic-settings-partner-labels-grid .basic-settings-label {
    flex: 0 0 auto;
    margin-bottom: 0;
    font-size: 13px;
    white-space: nowrap;
}

.basic-settings-partner-labels-grid .basic-settings-input-wrap {
    flex: 0 1 108px;
    width: 108px;
    max-width: 108px;
    min-width: 84px;
}

.basic-settings-alert-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.basic-settings-alert-desc {
    margin: 0;
}

.basic-settings-alert-card.is-casino {
    border: 1px solid rgba(244, 114, 182, 0.28);
    background: linear-gradient(180deg, rgba(244, 114, 182, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.basic-settings-alert-card.is-casino .basic-settings-card-icon {
    color: #f472b6;
}

.basic-settings-alert-card.is-casino .basic-settings-card-title {
    color: #fbcfe8;
}

.basic-settings-alert-card .basic-settings-card-title {
    flex-wrap: wrap;
    gap: 8px 12px;
}

.basic-settings-alert-card .basic-settings-alert-title-hint {
    flex: 1 1 auto;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #9aa8bc;
    white-space: nowrap;
}

.basic-settings-alert-card.is-slot {
    border: 1px solid rgba(96, 165, 250, 0.28);
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.basic-settings-alert-card.is-slot .basic-settings-card-icon {
    color: #60a5fa;
}

.basic-settings-alert-card.is-slot .basic-settings-card-title {
    color: #bfdbfe;
}

.basic-settings-telegram-card {
    border-color: rgba(56, 189, 248, 0.35);
}

.basic-settings-telegram-card .basic-settings-card-body {
    padding-top: 18px;
    padding-bottom: 18px;
}

.basic-settings-telegram-card .basic-settings-card-title {
    margin-bottom: 10px;
}

.basic-settings-telegram-card .basic-settings-label {
    margin-bottom: 6px;
}

.basic-settings-telegram-card .basic-settings-card-icon {
    color: #38bdf8;
}

.basic-settings-telegram-grid {
    grid-template-columns: minmax(0, 440px) minmax(0, 200px) minmax(0, 1fr);
    gap: 8px 20px;
    align-items: start;
}

.basic-settings-telegram-grid .basic-settings-field + .basic-settings-field {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.basic-settings-telegram-grid .basic-settings-field.basic-settings-telegram-alert-types-field {
    grid-column: 1 / -1;
    margin-top: 0;
    padding-top: 2px;
}

.basic-settings-telegram-grid .basic-settings-field.basic-settings-telegram-alert-types-field:not(:last-child) {
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.basic-settings-telegram-grid .basic-settings-field.basic-settings-telegram-section-start {
    margin-top: 2px;
    padding-top: 4px;
}

.basic-settings-telegram-input-wrap {
    max-width: 100%;
}

.basic-settings-telegram-grid .basic-settings-field:nth-child(1) .basic-settings-telegram-input-wrap,
.basic-settings-telegram-grid .basic-settings-field:nth-child(5) .basic-settings-telegram-input-wrap {
    max-width: 440px;
}

.basic-settings-telegram-grid .basic-settings-field:nth-child(2) .basic-settings-telegram-input-wrap,
.basic-settings-telegram-grid .basic-settings-field:nth-child(6) .basic-settings-telegram-input-wrap {
    max-width: 200px;
}

.basic-settings-telegram-grid .basic-settings-input-wrap .basic-settings-input {
    width: 100%;
}

.basic-settings-telegram-test-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
}

.basic-settings-telegram-test-row .basic-settings-input {
    flex: 1 1 160px;
    min-width: 0;
    max-width: 360px;
}

.basic-settings-telegram-test-btn {
    flex-shrink: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.12);
    color: #e0f2fe;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.basic-settings-telegram-test-btn:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.22);
    border-color: rgba(56, 189, 248, 0.65);
}

.basic-settings-telegram-test-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.basic-settings-telegram-alert-types {
    margin-top: 0;
    max-width: none;
}

.basic-settings-telegram-alert-types-title {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.75);
}

.basic-settings-telegram-alert-type-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
}

.basic-settings-telegram-alert-type-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #e2e8f0;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.basic-settings-telegram-alert-type-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #38bdf8;
}

html.admin-theme-light .basic-settings-telegram-alert-types-title {
    color: rgba(15, 23, 42, 0.65);
}

html.admin-theme-light .basic-settings-telegram-alert-type-row {
    color: #0f172a;
}

.basic-settings-telegram-enabled-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.basic-settings-telegram-enabled-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #c8d2e4;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.basic-settings-telegram-enabled-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #38bdf8;
}

.basic-settings-telegram-enabled-label-row .basic-settings-label {
    margin-bottom: 0;
}

html.admin-theme-light .basic-settings-telegram-enabled-toggle {
    color: #334155;
}

.basic-settings-telegram-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: 200px;
    margin-bottom: 10px;
}

.basic-settings-telegram-label-row .basic-settings-label {
    margin-bottom: 0;
}

.basic-settings-telegram-find-btn {
    flex-shrink: 0;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.basic-settings-telegram-find-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(148, 163, 184, 0.55);
}

.basic-settings-telegram-find-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.basic-settings-input-secret {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
}

.basic-settings-alert-field-first {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.basic-settings-alert-notify-group,
.basic-settings-alert-reclaim-group {
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    background: rgba(15, 20, 28, 0.35);
}

.basic-settings-alert-notify-group {
    margin-bottom: 12px;
}

.basic-settings-alert-notify-group .basic-settings-card-title,
.basic-settings-alert-reclaim-group .basic-settings-card-title {
    margin-bottom: 12px;
}

.basic-settings-alert-reclaim-group .basic-settings-field {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.basic-settings-alert-amount-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.basic-settings-alert-amount-row .basic-settings-field,
.basic-settings-alert-amount-row .basic-settings-field + .basic-settings-field {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.basic-settings-alert-card .basic-settings-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.basic-settings-alert-card .basic-settings-label {
    flex: 0 0 auto;
    margin-bottom: 0;
    white-space: nowrap;
}

.basic-settings-alert-card .basic-settings-input-wrap {
    flex: 0 1 320px;
    width: 320px;
    max-width: 100%;
}

.basic-settings-alert-card .basic-settings-input-wrap.is-alert-amount,
.basic-settings-alert-card .basic-settings-input-wrap.is-max-win-amount {
    flex: 0 1 110px;
    width: 110px;
}

.basic-settings-reclaim-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0 2px;
    color: #c5d0e0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.basic-settings-reclaim-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #5dd6ff;
    cursor: pointer;
}

.basic-settings-alert-card .basic-settings-hint {
    flex: 1 0 100%;
    margin-top: 0;
}

.basic-settings-input-wrap {
    max-width: 320px;
}

.basic-settings-input {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #334055;
    border-radius: 8px;
    background: #121821;
    color: #e8edf8;
    font: inherit;
    font-size: 14px;
}

.basic-settings-input:focus {
    outline: none;
    border-color: rgba(93, 214, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(93, 214, 255, 0.25);
}

.basic-settings-country-card {
    border-color: #3b4554;
}

.basic-settings-country-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.basic-settings-country-tool-btn {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #151b25;
    color: #e8edf5;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.basic-settings-country-tool-btn:hover {
    border-color: #137fec;
    color: #137fec;
}

.basic-settings-country-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.basic-settings-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 12px;
    margin-top: 8px;
}

.basic-settings-country-grid.is-all {
    margin-top: 12px;
    max-height: 320px;
    overflow: auto;
    padding-right: 4px;
}

.basic-settings-country-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #282f39;
    background: #111418;
    font-size: 13px;
    cursor: pointer;
}

.basic-settings-country-check:has(input:checked) {
    border-color: #137fec;
    background: rgba(19, 127, 236, 0.08);
}

.basic-settings-country-check.is-locked {
    border-color: #3b4554;
    background: #151b25;
    cursor: default;
    opacity: 0.92;
}

.basic-settings-country-check.is-locked input:disabled {
    cursor: default;
}

.basic-settings-country-check input {
    flex: 0 0 auto;
}

.basic-settings-country-more {
    margin-top: 16px;
}

.basic-settings-country-more summary {
    cursor: pointer;
    color: #137fec;
    font-size: 13px;
    font-weight: 600;
}

.basic-settings-submit {
    min-width: 96px;
    min-height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #315dff 0%, #2748c7 100%);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.basic-settings-submit:hover {
    filter: brightness(1.08);
}

@media (max-width: 960px) {
    .basic-settings-grid {
        grid-template-columns: 1fr;
    }

    .basic-settings-telegram-grid {
        grid-template-columns: 1fr;
    }

    .basic-settings-card-body {
        padding: 16px;
    }
}

body.admin-body.is-al-deposit-disabled .members-al-deposit-btn,
body.admin-body.is-al-deposit-disabled [data-action="al-deposit"],
body.admin-body.is-al-deposit-disabled .shop-command-select option[value="charge"] {
    display: none !important;
}

body.admin-body.is-al-withdraw-disabled .members-al-withdraw-btn,
body.admin-body.is-al-withdraw-disabled [data-action="al-withdraw"],
body.admin-body.is-al-withdraw-disabled .shop-command-select option[value="withdraw"] {
    display: none !important;
}

body.admin-body.is-user-signup-disabled .members-user-create-btn,
body.admin-body.is-user-signup-disabled [data-action="create-user"] {
    display: none !important;
}

body.admin-body.is-child-signup-disabled #partner-create-btn,
body.admin-body.is-child-signup-disabled #createRootPartnerBtn,
body.admin-body.is-child-signup-disabled [data-action="create-child"],
body.admin-body.is-child-signup-disabled [data-action="create-user"],
body.admin-body.is-child-signup-disabled .members-user-create-btn,
body.admin-body.is-child-signup-disabled [data-action="manage-child"] {
    display: none !important;
}

.loss-adjust-card-page.page-container {
    padding: 8px 32px 16px;
}

.loss-adjust-card-page .page-header {
    margin-bottom: 6px;
}

.loss-adjust-card-page .page-title {
    font-size: 18px;
    line-height: 1.2;
}

.loss-adjust-card-date {
    margin: 2px 0 0;
    color: #9aa8bf;
    font-size: 12px;
    line-height: 1.2;
}

.loss-adjust-card-body {
    padding: 0;
}

.loss-adjust-card-body .loss-adjust-card-aff-form {
    margin: 0;
    border-bottom: 1px solid #232b39;
}

.loss-adjust-card-page .loss-adjust-card-aff-form.login-history-topbar.subordinate-aff-form {
    margin-bottom: 0;
    padding: 8px 12px;
    border: none;
    border-radius: 0;
    background: transparent;
}

.loss-adjust-card-page .loss-adjust-card-table-wrap.custom-data-table {
    padding-top: 8px;
}

.loss-adjust-card-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #232b39;
}

.loss-adjust-card-gongbet-mode {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    min-width: 0;
    color: #c8d0df;
    font-size: 13px;
    line-height: 1.35;
}

.loss-adjust-card-gongbet-mode-kind {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(251, 146, 60, 0.18);
    color: #fdba74;
    font-size: 12px;
    font-weight: 700;
}

.loss-adjust-card-gongbet-mode-kind.is-slot {
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
}

.loss-adjust-card-gongbet-mode-value {
    color: #ffb347;
    font-weight: 700;
}

.loss-adjust-card-gongbet-mode-scope {
    color: #9aa8bf;
    font-size: 12px;
}

.loss-adjust-card-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.loss-adjust-card-per-page {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c8d0df;
    font-size: 13px;
}

.loss-adjust-card-per-page-select {
    min-width: 72px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #323b49;
    border-radius: 6px;
    background: #171d27;
    color: #e8edf8;
    font: inherit;
    font-size: 13px;
}

.loss-adjust-card-save-btn {
    min-width: 72px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid rgba(93, 214, 255, 0.45);
    border-radius: 8px;
    background: linear-gradient(180deg, #1f6f93 0%, #15516d 100%);
    color: #e8f8ff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.loss-adjust-card-save-btn:hover:not(:disabled) {
    border-color: rgba(138, 228, 255, 0.75);
    color: #fff;
}

.loss-adjust-card-save-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.loss-adjust-card-table.partners-data-table {
    width: auto;
    max-width: 100%;
    table-layout: fixed;
}

.loss-adjust-card-table.partners-data-table thead th {
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.loss-adjust-card-table.partners-data-table th[data-col="store_code"],
.loss-adjust-card-table.partners-data-table td[data-col="store_code"] {
    width: 240px;
    max-width: 280px;
}

.loss-adjust-card-table.partners-data-table th[data-col="deduct_count"],
.loss-adjust-card-table.partners-data-table td[data-col="deduct_count"] {
    width: 120px;
    max-width: 132px;
}

.loss-adjust-card-table.partners-data-table tbody td {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    padding-left: 8px;
    padding-right: 8px;
    line-height: 1.2;
    vertical-align: middle;
}

.loss-adjust-card-table td[data-col="store_code"] .members-affiliation-combobox {
    width: auto;
    max-width: 100%;
    margin: 0;
}

.loss-adjust-card-table td[data-col="store_code"] .members-affiliation-trigger {
    min-height: 28px;
    padding: 0 4px;
    gap: 4px;
    font-size: 12px;
}

.loss-adjust-card-table td[data-col="store_code"] .partner-type-badge--md {
    width: 20px;
    height: 20px;
    font-size: 10px;
}

.loss-adjust-card-deduct-count-th {
    line-height: 1.2;
    white-space: normal;
}

.loss-adjust-card-th-sub {
    display: block;
    margin-top: 1px;
    color: #ffb347;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.loss-adjust-card-table td[data-col="deduct_count"] {
    text-align: center;
}

.loss-adjust-card-table .loss-adjust-count-input {
    min-height: 28px;
    font-size: 15px;
}

.loss-adjust-count-input {
    width: 96px;
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid #334055;
    border-radius: 8px;
    background: #121821;
    color: #c8d0df;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.loss-adjust-count-input.is-active {
    border-color: rgba(255, 179, 71, 0.9);
    background: #221a0c;
    color: #ffd48a;
    box-shadow: 0 0 0 1px rgba(255, 179, 71, 0.28);
}

.loss-adjust-amount-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loss-adjust-step-btn {
    min-width: 32px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #334055;
    border-radius: 8px;
    background: #121821;
    color: #e8edf8;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.loss-adjust-step-btn:hover {
    border-color: rgba(93, 214, 255, 0.55);
    color: #8ae4ff;
}

.loss-adjust-amount-input {
    width: 88px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #334055;
    border-radius: 8px;
    background: #121821;
    color: #e8edf8;
    font: inherit;
    font-size: 13px;
    text-align: right;
}

.loss-adjust-card-table-footer {
    justify-content: flex-end;
}

.payout-control-page .page-header {
    margin-bottom: 12px;
}

.payout-control-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payout-control-card-body {
    padding: 10px 8px 10px 12px;
}

.payout-control-section-title {
    margin: 0 0 4px;
    color: #e8edf8;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.payout-control-section-title-on {
    color: #8ae4ff;
}

.payout-control-section-title-off {
    color: #ffb4b4;
}

.payout-control-section-title-signup {
    color: #86efac;
}

.payout-control-section-title-block {
    color: #fbbf24;
}

.payout-control-section-title-chat {
    color: #67e8f9;
}

.payout-control-section-title-money-request {
    color: #c4b5fd;
}

.payout-control-section-title-inquiry {
    color: #fda4af;
}

.payout-control-section-title-user-menu {
    color: #c4b5fd;
}

.payout-control-desc {
    margin: 0 0 18px;
    color: #9aa8bf;
    font-size: 13px;
    line-height: 1.6;
}

.payout-control-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payout-control-radio-group-compact {
    margin-left: auto;
}

.payout-control-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #334055;
    border-radius: 8px;
    background: #121821;
    color: #d7e0f0;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.payout-control-radio:has(input:checked) {
    border-color: rgba(93, 214, 255, 0.55);
    background: rgba(93, 214, 255, 0.1);
    color: #8ae4ff;
}

.payout-control-radio input {
    margin: 0;
    accent-color: #5dd6ff;
}

.payout-control-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 220px)
        minmax(0, 220px)
        minmax(0, 300px)
        minmax(0, 280px)
        minmax(0, 280px)
        minmax(0, 300px);
    gap: 10px;
    align-items: start;
    justify-content: start;
    width: max-content;
    max-width: 100%;
}

.payout-control-partner-na {
    color: #6b7280;
    font-size: 13px;
}

.payout-control-grid .payout-control-card .page-card-body {
    min-height: 0;
}

.payout-control-type-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payout-control-type-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 2px 4px 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
}

.payout-control-type-label {
    min-width: 76px;
    flex: 0 0 auto;
    color: #e8edf8;
    font-size: 12px;
    font-weight: 600;
}

.payout-control-grid .payout-control-card:nth-child(-n + 2) .payout-control-type-label {
    min-width: 72px;
    font-size: 12px;
}

.payout-control-type-caption {
    flex: 1 1 auto;
    min-width: 0;
    color: #9aa8bf;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.payout-control-type-switch-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: auto;
    padding-right: 0;
}

.payout-control-preview-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.payout-control-preview-list li {
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 120, 120, 0.18);
    border-radius: 10px;
    background: rgba(255, 120, 120, 0.08);
    color: #ffb4b4;
    font-size: 14px;
}

.payout-control-preview-list li + li {
    margin-top: 10px;
}

.payout-control-preview-empty {
    margin: 0;
    color: #8b97ad;
    font-size: 13px;
}

.payout-control-individual-section {
    margin-top: 28px;
}

.payout-control-individual-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 12px;
}

.payout-control-individual-title {
    margin: 0;
    flex: 1 1 280px;
    min-width: 0;
    color: #e8edf8;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.payout-control-partner-combobox {
    margin-left: auto;
}

.payout-control-partner-search-hint {
    flex: 1 1 100%;
    margin: -4px 0 0;
}

.payout-control-partner-row.is-payout-partner-jump-highlight {
    background: rgba(49, 93, 255, 0.16);
    outline: 1px solid rgba(74, 114, 255, 0.45);
    outline-offset: -1px;
}

.payout-control-individual-card {
    border-radius: 4px;
}

.payout-control-individual-card-body {
    padding: 0;
}

.payout-control-individual-table-wrap {
    overflow: hidden;
}

.payout-control-individual-table-wrap.custom-data-table {
    min-width: 0;
    padding: 0;
}

.payout-control-individual-card .payout-control-individual-table {
    min-width: 0;
    table-layout: fixed;
    width: max-content;
    max-width: 100%;
}

.payout-control-individual-table.partners-data-table thead th {
    min-width: 0;
    padding: 4px 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.payout-control-individual-table.partners-data-table thead th:nth-child(1),
.payout-control-individual-table.partners-data-table tbody td:nth-child(1) {
    width: 112px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payout-control-individual-table.partners-data-table thead th:nth-child(2),
.payout-control-individual-table.partners-data-table tbody td:nth-child(2) {
    width: 68px;
}

.payout-control-individual-table.partners-data-table thead th:nth-child(n + 3),
.payout-control-individual-table.partners-data-table tbody td:nth-child(n + 3) {
    width: 72px;
    padding-left: 2px;
    padding-right: 2px;
    font-size: 12px;
    line-height: 1.15;
}

.payout-control-individual-table.partners-data-table thead th:nth-child(9),
.payout-control-individual-table.partners-data-table tbody td:nth-child(9) {
    width: 84px;
}

.payout-control-individual-table.partners-data-table thead th:nth-child(n + 3) {
    white-space: normal;
    text-align: center;
    vertical-align: middle;
}

.payout-control-individual-table.partners-data-table tbody td {
    padding: 2px 4px;
    font-size: 12px;
    line-height: 1.2;
    vertical-align: middle;
}

.payout-control-individual-table.partners-data-table tbody td:first-child {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
}

.payout-control-individual-table .partners-data-table-empty {
    padding: 12px 8px !important;
}

.payout-control-partner-type {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.payout-control-individual-table .payout-control-partner-type {
    min-height: 20px;
    padding: 1px 8px;
    font-size: 11px;
}

.payout-control-partner-type.is-sub_head {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.14);
}

.payout-control-partner-type.is-branch {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
}

.payout-control-partner-type.is-distributor {
    color: #34d399;
    background: rgba(52, 211, 153, 0.14);
}

.payout-control-partner-type.is-store {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.14);
}

.payout-control-switch-cell {
    text-align: center;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.payout-control-table-switch {
    width: 32px;
    height: 32px;
}

.payout-control-table-switch .table-switch-track {
    width: 34px;
    height: 18px;
}

.payout-control-table-switch .table-switch-track::after {
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
}

.payout-control-table-switch input:checked + .table-switch-track {
    background: #3b82f6;
}

.payout-control-table-switch input:checked + .table-switch-track::after {
    transform: translateX(16px);
}

.payout-control-page .payout-control-table-switch input:checked + .table-switch-track {
    background: #10b981;
}

.payout-control-individual-table-footer.partners-data-table-footer {
    gap: 10px;
    min-height: 0;
    padding: 4px 8px;
    border-top: 1px solid #232b39;
}

.payout-control-individual-table-footer .partners-data-table-per-page-select {
    height: 28px;
    min-width: 64px;
    padding: 0 6px;
    font-size: 12px;
}

.payout-control-individual-table-footer .partners-data-table-per-page-label,
.payout-control-individual-table-footer .partners-data-table-page-summary {
    font-size: 12px;
}

.payout-control-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.payout-control-submit {
    min-width: 96px;
    min-height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #315dff 0%, #2748c7 100%);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.payout-control-submit:hover {
    filter: brightness(1.08);
}

@media (max-width: 1600px) {
    .payout-control-grid {
        grid-template-columns: repeat(3, minmax(0, 300px));
    }
}

@media (max-width: 960px) {
    .payout-control-grid {
        grid-template-columns: 1fr;
    }

    .payout-control-type-row {
        flex-wrap: wrap;
    }

    .payout-control-radio-group-compact {
        margin-left: 0;
        width: 100%;
    }

    .payout-control-card-body {
        padding: 10px 8px 10px 12px;
    }
}

.notice-admin-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #1b222d;
    color: #dce3f1;
    font-size: 13px;
}

.notice-admin-table th,
.notice-admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #323b49;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.notice-admin-table th {
    color: #c8d0df;
    font-size: 16px;
    font-weight: 700;
    background: #1a202a;
}

.notice-list-table.notice-admin-table thead th {
    font-size: 12px;
}

.notice-admin-table td {
    color: #e8edf8;
}

.notice-admin-table .col-id {
    width: 64px;
}

.notice-admin-table .col-order {
    width: 88px;
    padding-left: 8px;
    padding-right: 8px;
}

.notice-order-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.notice-order-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.notice-admin-table .col-category {
    width: 96px;
}

.notice-admin-table .col-title {
    width: auto;
    text-align: left;
    white-space: normal;
}

.notice-admin-table .col-date {
    width: 170px;
}

.notice-admin-table .col-visible,
.notice-admin-table .col-popup,
.notice-admin-table .col-image {
    width: 88px;
}

.notice-admin-table .col-image .notice-image-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5em;
    font-weight: 700;
    color: #8b95a8;
}

.notice-admin-table .col-image .notice-image-flag.is-on {
    color: #3dd68c;
}

html.admin-theme-light .notice-admin-table .col-image .notice-image-flag {
    color: #94a3b8;
}

html.admin-theme-light .notice-admin-table .col-image .notice-image-flag.is-on {
    color: #059669;
}

.notice-admin-table .col-popup-size {
    width: 104px;
    font-size: 12px;
    color: #aeb8cc;
    letter-spacing: -0.02em;
}

html.admin-theme-light .notice-admin-table .col-popup-size {
    color: #64748b;
}

.notice-admin-table .col-actions {
    width: 72px;
}

.notice-admin-table .notice-link {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    white-space: nowrap;
    padding: 4px 6px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #e8edf8;
    font: inherit;
    cursor: pointer;
}

.notice-admin-table .notice-link.notice-link-rich {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    line-height: 1.45;
    text-overflow: unset;
}

.notice-admin-table .notice-link-label {
    display: inline;
}

.notice-admin-table .notice-link-rich .notice-link-label :where(p, div, h1, h2, h3, h4, h5, h6) {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
}

.notice-admin-table .notice-link-rich .notice-link-label :where(br) {
    display: none;
}

.partner-notices-table tbody tr.partner-notice-row-clickable {
    cursor: pointer;
}

.partner-notices-table td.col-title {
    text-align: left;
}

.partner-notices-table .partner-notice-title {
    display: block;
    width: 100%;
    min-height: 1.25em;
    font-weight: 700;
    cursor: inherit;
}

.partner-notices-table .partner-notice-title:hover,
.partner-notices-table .partner-notice-title:focus-visible {
    color: inherit;
    background: transparent;
    text-decoration: none;
}

#partner-notice-view-overlay .partner-notice-view-dialog .notice-edit-title {
    padding: 22px 24px;
    line-height: 1.45;
    border-bottom: 1px solid #293241;
    background: #151b25;
}

#partner-notice-view-overlay .partner-notice-view-body {
    padding: 28px 24px 32px;
    min-height: 88px;
    background: #171d27;
}

#partner-notice-view-overlay .notice-dialog-actions {
    padding: 18px 20px 22px;
    min-height: 58px;
    border-top: 1px solid #293241;
    background: #151b25;
}

.table-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 22px;
    cursor: pointer;
}

.table-switch.is-disabled {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

.table-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.table-switch-track {
    position: relative;
    display: block;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #3a4356;
    transition: background 0.15s ease;
}

.table-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s ease;
}

.table-switch input:checked + .table-switch-track {
    background: #315dff;
}

.table-switch input:checked + .table-switch-track::after {
    transform: translateX(16px);
}

.table-text-btn {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.table-text-btn-edit {
    color: #5dd6ff;
}

.table-text-btn-delete {
    color: #ff5d7a;
}

.table-text-btn:hover {
    text-decoration: underline;
}

.login-history-body {
    padding: 20px 24px 24px;
}

.login-history-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #293241;
    border-radius: 12px;
    background: #171d27;
}

.login-history-topbar-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 0 0;
    color: #e8edf8;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.page-title.login-history-topbar-title-active,
.gpl-title.login-history-topbar-title-active,
.coin-charge-tron-title.login-history-topbar-title-active,
.coin-pool-page-title.login-history-topbar-title-active,
.coin-wallet-change-title.login-history-topbar-title-active,
.coin-config-page-title.login-history-topbar-title-active,
.partners-list-title.login-history-topbar-title-active {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.25) !important;
    color: #fdba74 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: inset 0 0 0 2px rgba(251, 146, 60, 0.85);
}

/* 사이드바 .nav a.active 와 동일한 현재 메뉴 칩 (menu-page 날짜 필터) */
.login-history-topbar-title.login-history-topbar-title-active {
    gap: 10px;
    min-height: 40px;
    padding: 8px 18px;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.25) !important;
    color: #fdba74 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: inset 0 0 0 2px rgba(251, 146, 60, 0.85);
}

.login-history-topbar-title.login-history-topbar-title-active .submenu-icon,
.page-title.login-history-topbar-title-active .submenu-icon,
.gpl-title.login-history-topbar-title-active .submenu-icon,
.coin-charge-tron-title.login-history-topbar-title-active .submenu-icon,
.coin-pool-page-title.login-history-topbar-title-active .submenu-icon,
.coin-wallet-change-title.login-history-topbar-title-active .submenu-icon,
.coin-config-page-title.login-history-topbar-title-active .submenu-icon,
.partners-list-title.login-history-topbar-title-active .submenu-icon {
    color: #fb923c !important;
}

.login-history-topbar-title-active.login-history-topbar-title-standalone .menu-icon,
.page-title.login-history-topbar-title-active.login-history-topbar-title-standalone .menu-icon,
.gpl-title.login-history-topbar-title-active.login-history-topbar-title-standalone .menu-icon,
.coin-charge-tron-title.login-history-topbar-title-active.login-history-topbar-title-standalone .menu-icon,
.coin-pool-page-title.login-history-topbar-title-active.login-history-topbar-title-standalone .menu-icon,
.coin-wallet-change-title.login-history-topbar-title-active.login-history-topbar-title-standalone .menu-icon,
.coin-config-page-title.login-history-topbar-title-active.login-history-topbar-title-standalone .menu-icon {
    color: #fb923c !important;
}

.login-history-topbar-title.login-history-topbar-title-active .submenu-image-icon {
    filter: drop-shadow(0 0 5px rgba(251, 146, 60, 0.55));
}

.login-history-search-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 140px;
    min-width: 125px;
    max-width: 140px;
    min-height: 40px;
    padding: 0 8px;
    border-bottom: 1px solid #323b49;
    background: transparent;
}

.login-history-search-wrap .mdi {
    color: #8590ff;
    font-size: 22px;
}

.login-history-search-input {
    width: 100%;
    height: 38px;
    border: 0;
    background: transparent;
    color: #e8edf8;
    font: inherit;
    font-size: 14px;
}

.login-history-search-input:focus {
    outline: 0;
}

.date-filter-search-wrap {
    flex: 0 0 170px;
    min-width: 170px;
    max-width: 170px;
}

.date-filter-search-select {
    flex: 0 0 120px;
    width: 120px;
    height: 40px;
    padding: 0 34px 0 12px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background-color: #121722;
    color: #e8edf8;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.date-filter-search-select:focus {
    outline: 0;
    border-color: #315dff;
}

.inquiry-pending-search-wrap,
.inquiry-all-search-wrap {
    flex: 0 0 210px;
    min-width: 210px;
    max-width: 210px;
    margin-left: 4px;
}

.inquiry-all-filter .inquiry-all-search-wrap {
    flex: 0 0 180px;
    min-width: 160px;
    max-width: 200px;
}

.inquiry-all-filter .inquiry-search-field-select {
    flex: 0 0 96px;
    min-width: 88px;
}

.inquiry-pending-filter .login-history-topbar-title,
.inquiry-all-filter .login-history-topbar-title {
    margin-right: 12px;
}

.inquiry-list-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px;
}

.inquiry-list-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #315dff;
    border-radius: 8px;
    background: transparent;
    color: #5d8cff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.inquiry-list-control-btn:hover {
    background: rgba(49, 93, 255, 0.12);
    color: #8fb0ff;
}

.inquiry-list-table-shell {
    margin-top: 0;
}

.inquiry-list-table-wrap {
    min-width: 1050px;
}

.inquiry-pending-table-wrap {
    min-width: 1120px;
}

.inquiry-list-table {
    table-layout: fixed;
}

.inquiry-list-table th,
.inquiry-list-table td {
    padding-right: 5px !important;
    padding-left: 5px !important;
    white-space: nowrap;
}

.partners-data-table.inquiry-list-table tbody td {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    line-height: 1.2;
    vertical-align: middle;
}

.inquiry-list-table .inquiry-user-chip .members-affiliation-trigger.partner-money-transfer-chip-trigger {
    min-height: 30px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 12px;
}

.inquiry-list-table .inquiry-user-chip .members-affiliation-trigger .members-affiliation-icon,
.inquiry-list-table .inquiry-user-chip .members-affiliation-trigger .partner-type-badge {
    flex-shrink: 0;
}

.inquiry-list-table .inquiry-user-chip .members-affiliation-trigger .members-affiliation-icon {
    width: 22px;
    height: 22px;
}

.inquiry-list-table .inquiry-row-answer,
.inquiry-list-table .inquiry-row-delete,
.inquiry-list-table button.table-text-btn.inquiry-row-answer,
.inquiry-list-table button.table-text-btn.inquiry-row-delete {
    min-height: 26px;
    height: 26px;
    padding: 0 7px;
}

.inquiry-list-table td.inquiry-title-cell {
    line-height: 1.25;
}

.inquiry-list-table thead th {
    font-size: 12px;
    font-weight: 600;
    padding-top: 6px;
    padding-bottom: 6px;
    line-height: 1.15;
}

.inquiry-list-table th.inquiry-list-select-head {
    min-width: 88px;
    width: 88px;
    max-width: 88px;
    padding-top: 4px;
    padding-bottom: 4px;
    vertical-align: bottom;
}

.inquiry-list-table .inquiry-list-column-hide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 22px;
    margin: 0 auto 3px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
}

.inquiry-list-select-head-label {
    display: block;
    line-height: 1.35;
    text-align: center;
}

.inquiry-list-table th:nth-child(1),
.inquiry-list-table td:nth-child(1) {
    width: 88px;
}

.inquiry-list-table th:nth-child(2),
.inquiry-list-table td:nth-child(2) {
    width: 140px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inquiry-list-table:not(.inquiry-pending-table) th:nth-child(8),
.inquiry-list-table:not(.inquiry-pending-table) td:nth-child(8) {
    width: 76px;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

.inquiry-pending-table th:nth-child(8),
.inquiry-pending-table td:nth-child(8),
.inquiry-pending-table th:nth-child(9),
.inquiry-pending-table td:nth-child(9) {
    width: 76px;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

.inquiry-affiliation-chip {
    width: 130px;
}

.inquiry-user-chip {
    width: 130px;
}

.inquiry-user-chip .partner-money-transfer-hierarchy-menu {
    width: 230px;
    max-height: 360px;
    overflow-y: auto;
    padding: 6px;
}

.inquiry-user-chip .members-affiliation-option {
    min-height: 42px;
    gap: 8px;
    padding: 5px 8px;
    font-size: 13px;
}

.members-affiliation-user-icon {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #ffd34d;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 211, 77, 0.28);
}

.members-affiliation-user-icon .mdi {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.inquiry-list-table th:nth-child(3),
.inquiry-list-table td:nth-child(3) {
    width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inquiry-list-table th:nth-child(4),
.inquiry-list-table td:nth-child(4) {
    width: auto;
    min-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inquiry-list-table th:nth-child(5),
.inquiry-list-table td:nth-child(5),
.inquiry-list-table th:nth-child(6),
.inquiry-list-table td:nth-child(6) {
    width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inquiry-list-table th:nth-child(7),
.inquiry-list-table td:nth-child(7) {
    width: 110px;
}

.inquiry-list-table th:nth-child(8),
.inquiry-list-table td:nth-child(8) {
    width: 76px;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

.inquiry-pending-table th:nth-child(8),
.inquiry-pending-table td:nth-child(8) {
    width: 76px;
}

.inquiry-pending-table th:nth-child(9),
.inquiry-pending-table td:nth-child(9) {
    width: 76px;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

.inquiry-row-check {
    width: 16px;
    height: 16px;
    accent-color: #315dff;
}

.inquiry-row-answer,
.inquiry-row-delete,
button.table-text-btn.inquiry-row-answer,
button.table-text-btn.inquiry-row-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 30px;
    padding: 0 9px;
    border-radius: 7px;
    border-style: solid;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
}

.inquiry-row-answer,
button.table-text-btn.inquiry-row-answer {
    border-width: 2px;
    border-color: #315dff;
    background: rgba(49, 93, 255, 0.13);
    color: #b9c8ff;
}

.inquiry-row-delete,
button.table-text-btn.inquiry-row-delete {
    border-width: 2px;
    border-color: #ff5d7a;
    background: rgba(255, 93, 122, 0.12);
    color: #ffd5de;
}

.inquiry-row-answer:hover,
.inquiry-row-delete:hover,
button.table-text-btn.inquiry-row-answer:hover,
button.table-text-btn.inquiry-row-delete:hover {
    filter: brightness(1.12);
    text-decoration: none !important;
}

.inquiry-list-table tbody tr.inquiry-list-row {
    cursor: pointer;
}

.inquiry-list-table tbody tr.inquiry-list-row td.inquiry-title-cell {
    cursor: pointer;
}

.inquiry-detail-question-content {
    white-space: pre-wrap;
    word-break: break-word;
}

.inquiry-title-cell {
    white-space: normal;
    word-break: break-word;
}

.inquiry-title-prefix {
    display: block;
    margin-bottom: 2px;
    color: #ffbb35;
    font-weight: 800;
    line-height: 1.05;
}

.inquiry-title-text {
    color: inherit;
}

.inquiry-title-button {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.inquiry-title-button:hover .inquiry-title-text {
    color: #5dd6ff;
    text-decoration: underline;
}

.inquiry-answer-view-content {
    min-height: 120px;
    padding: 14px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #171d27;
    color: #e8edf8;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.inquiry-status-badge {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.inquiry-status-badge.is-pending {
    color: #ffb347;
}

.inquiry-status-badge.is-answered {
    color: #a8e6b5;
}

.inquiry-status-read-badge {
    display: block;
    margin-top: 3px;
    color: #ff6f91;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.inquiry-answer-dialog {
    width: 700px;
    max-width: calc(100vw - 48px);
}

.inquiry-answer-card {
    max-height: calc(100vh - 48px);
    overflow: hidden;
}

.inquiry-answer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    min-height: 52px;
    padding: 12px 20px;
}

.inquiry-answer-header .auto-card-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.inquiry-answer-header .auto-card-close {
    flex: 0 0 auto;
    margin-left: auto;
}

#inquiry-answer-view-overlay .inquiry-answer-card {
    position: relative;
}

.inquiry-answer-form {
    max-height: calc(100vh - 196px);
    overflow-y: auto;
    padding: 0;
}

.inquiry-answer-info-section,
.inquiry-answer-write-section {
    padding: 12px 20px 14px;
}

.inquiry-answer-info-section {
    border-bottom: 1px solid #293241;
    background: rgba(255, 255, 255, 0.025);
}

.inquiry-answer-info-section h3,
.inquiry-answer-write-section h3 {
    margin: 0 0 10px;
    color: #e8edf8;
    font-size: 15px;
    font-weight: 800;
}

.inquiry-answer-info-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    margin: 0;
    border: 1px solid #323b49;
    border-radius: 8px;
    overflow: hidden;
}

.inquiry-answer-info-grid dt,
.inquiry-answer-info-grid dd {
    min-height: 36px;
    margin: 0;
    padding: 8px 12px;
    border-bottom: 1px solid #293241;
    box-sizing: border-box;
}

.inquiry-answer-info-grid dt {
    color: #d7b37a;
    font-weight: 800;
    background: #121722;
}

.inquiry-answer-info-grid dd {
    color: #e8edf8;
    background: #171d27;
    word-break: break-word;
}

.inquiry-answer-info-grid dt:last-of-type,
.inquiry-answer-info-grid dd:last-of-type {
    border-bottom: 0;
}

.inquiry-answer-field {
    display: block;
    margin-bottom: 16px;
}

.inquiry-answer-field span {
    display: block;
    margin-bottom: 8px;
    color: #e8edf8;
    font-size: 14px;
    font-weight: 800;
}

.inquiry-answer-field em {
    color: #aeb8cc;
    font-style: normal;
    font-weight: 500;
}

.inquiry-answer-field strong {
    color: #ff5d7a;
}

.inquiry-answer-field select,
.inquiry-answer-field textarea {
    width: 100%;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #121722;
    color: #e8edf8;
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.inquiry-answer-field select {
    height: 40px;
    padding: 0 36px 0 12px;
    appearance: none;
    -webkit-appearance: none;
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23aeb8cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.inquiry-answer-field textarea {
    min-height: 260px;
    padding: 12px;
    resize: vertical;
}

.inquiry-answer-editor-container {
    gap: 4px;
}

.inquiry-answer-editor-container .editor-toolbar {
    width: 100%;
    min-height: 0;
    padding: 5px 10px;
}

.inquiry-answer-content-editor {
    min-height: 260px;
    padding: 12px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #121722;
    color: #e8edf8;
    font-size: 14px;
    outline: 0;
    box-sizing: border-box;
}

.inquiry-answer-footer {
    justify-content: flex-end;
    padding: 16px 24px;
}

.inquiry-macro-page {
    max-width: none;
    padding-right: 4px !important;
    padding-left: 4px !important;
}

.inquiry-macro-body {
    padding: 12px 4px 16px;
}

.inquiry-macro-title {
    margin: 0 0 14px;
    color: #e8edf8;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.inquiry-macro-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.inquiry-macro-header .inquiry-macro-title {
    margin-bottom: 0;
}

.inquiry-macro-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 96px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid rgba(87, 214, 141, 0.52);
    border-radius: 8px;
    background: linear-gradient(135deg, #18b97a 0%, #2ed6a1 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(24, 185, 122, 0.24);
}

.inquiry-macro-add-btn i {
    font-size: 18px;
    line-height: 1;
}

.inquiry-macro-add-btn:hover {
    border-color: rgba(117, 239, 176, 0.75);
    filter: brightness(1.06);
    box-shadow: 0 7px 18px rgba(24, 185, 122, 0.34);
}

.inquiry-macro-table-shell {
    margin: 0;
}

.inquiry-macro-table-wrap {
    min-width: 760px !important;
    padding-top: 6px;
}

.inquiry-macro-table th,
.inquiry-macro-table td {
    padding-right: 6px !important;
    padding-left: 6px !important;
}

.inquiry-macro-table th:nth-child(1),
.inquiry-macro-table td:nth-child(1) {
    width: 180px;
}

.inquiry-macro-table th:nth-child(3),
.inquiry-macro-table td:nth-child(3) {
    width: 180px;
}

.inquiry-macro-table th:nth-child(4),
.inquiry-macro-table td:nth-child(4),
.inquiry-macro-table th:nth-child(5),
.inquiry-macro-table td:nth-child(5) {
    width: 80px;
}

.inquiry-macro-content {
    max-width: 420px;
    overflow: hidden;
    color: #c8d0df;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inquiry-macro-action-btn {
    min-width: 48px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #4a7dff;
    border-radius: 7px;
    background: rgba(49, 93, 255, 0.32);
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.inquiry-macro-action-btn.is-danger {
    border-color: #ff7a90;
    background: rgba(255, 93, 122, 0.32);
    color: #ffffff;
}

.inquiry-macro-action-btn:hover {
    filter: brightness(1.1);
}

.inquiry-macro-edit-card {
    min-height: 810px;
}

.inquiry-macro-edit-form {
    min-height: 683px;
}

.inquiry-macro-edit-content-field {
    margin-bottom: 0;
}

.inquiry-macro-editor-container {
    gap: 8px;
}

.inquiry-macro-editor-container .editor-toolbar {
    width: 100%;
    min-height: 65px;
}

.inquiry-macro-edit-content {
    min-height: 430px;
    padding: 12px 13px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #101620;
    color: #e8edf8;
    outline: 0;
}

.login-history-hint {
    margin: 0 10px;
    flex: 0 0 118px;
    color: #ff5252;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    word-break: keep-all;
}

.login-history-date-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.login-history-date-label {
    color: #c8d0df;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

html.admin-theme-light .login-history-date-label {
    color: #334155;
}

.login-history-ip-block-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 0 16px 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #293241;
}

.login-history-ip-block-label {
    color: #c8d0df;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

html.admin-theme-light .login-history-ip-block-label {
    color: #334155;
}

.login-history-ip-block-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.login-history-ip-block-input-wrap {
    width: 220px;
    min-height: 40px;
    padding: 0 4px;
    border-bottom: 1px solid #323b49;
    transition: border-color 0.15s ease;
}

.login-history-ip-block-input-wrap:focus-within {
    border-color: #315dff;
}

.login-history-ip-block-input {
    width: 100%;
    height: 38px;
    border: 0;
    background: transparent;
    color: #e8edf8;
    font: inherit;
    font-size: 14px;
}

.login-history-ip-block-input:focus {
    outline: 0;
}

.login-history-ip-block-input.is-invalid {
    color: #ff8fa3;
}

.login-history-ip-block-hint {
    margin: 0;
    flex: 1 1 180px;
    color: #8590a6;
    font-size: 13px;
    line-height: 1.4;
    visibility: hidden;
}

.login-history-ip-block-hint.is-visible {
    visibility: visible;
    color: #ff5d7a;
}

.login-history-ip-block-btn {
    min-width: 88px;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #315dff;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.login-history-ip-block-btn:hover {
    filter: brightness(1.08);
}

.login-history-date-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 126px;
    min-height: 40px;
    padding: 0 6px 0 2px;
    border-bottom: 1px solid #323b49;
    background: transparent;
    transition: border-color 0.15s ease;
}

.login-history-date-wrap:focus-within {
    border-color: #315dff;
}

.login-history-date-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8590ff;
    cursor: pointer;
}

.login-history-date-trigger .mdi {
    font-size: 20px;
    line-height: 1;
}

.login-history-date-input {
    width: 96px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #e8edf8;
    font: inherit;
    font-size: 13px;
    flex: 0 0 96px;
    min-width: 0;
    color-scheme: dark;
}

.login-history-date-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    display: none;
    pointer-events: none;
}

.login-history-date-input:focus {
    outline: 0;
}

.date-filter-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #20283b;
    color: #315dff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.date-filter-submit-btn:hover {
    background: #263149;
    color: #5dd6ff;
}

.date-filter-submit-btn .mdi {
    font-size: 22px;
    line-height: 1;
}

.date-filter-primary-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    flex: 0 1 auto;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
}

/* 검색 줄이 있는 date-filter(문의·레거시 키워드): 날짜·안내는 다음 줄 전체 */
.date-filter-form:has(.date-filter-search-wrap):not(:has(.date-filter-vendor-kind--inline)) .date-filter-primary-controls {
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
}

.date-filter-primary-controls .login-history-hint {
    margin: 0;
}

.date-filter-vendor-kind.date-filter-vendor-kind--inline {
    margin-left: 0;
    flex: 0 0 auto;
}

/* 베팅 현황: 1행 제목(좌) · 날짜/안내(우) / 2행 검색·구분 */
.date-filter-form:has(.date-filter-vendor-kind--inline) .date-filter-primary-controls {
    order: 5;
    flex: 0 1 auto;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
}

.date-filter-form:has(.date-filter-vendor-kind--inline)::after {
    content: "";
    order: 10;
    flex: 1 1 100%;
    width: 0;
    height: 0;
}

.date-filter-form:has(.date-filter-vendor-kind--inline) .date-filter-search-wrap,
.date-filter-form:has(.date-filter-vendor-kind--inline) .date-filter-search-select,
.date-filter-form:has(.date-filter-vendor-kind--inline) .date-filter-vendor-kind--inline,
.date-filter-form:has(.date-filter-vendor-kind--inline) .betting-list-amount-filter {
    order: 15;
}

.betting-list-amount-filter {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: 4px;
}

.betting-list-amount-filter-label {
    color: #9aa8bc;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.betting-list-amount-filter-or {
    color: #6f7d92;
    font-size: 12px;
    white-space: nowrap;
}

.betting-list-amount-filter-input {
    width: 92px;
    height: 36px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #111418;
    color: #e8edf5;
    font: inherit;
    font-size: 13px;
    text-align: right;
}

.betting-list-amount-filter-input::placeholder {
    color: #6f7d92;
    font-size: 12px;
    text-align: left;
}

.betting-list-amount-filter-input:focus {
    outline: none;
    border-color: #315dff;
}

html.admin-theme-light .betting-list-amount-filter-input {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
}

.date-filter-form:has(.date-filter-vendor-kind--inline) .betting-list-query-totals {
    order: 16;
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    margin-top: 0;
    margin-left: auto;
    padding-top: 0;
    border-top: 0;
    justify-content: flex-end;
}

.betting-list-query-totals {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    flex: 1 1 100%;
    width: 100%;
    order: 25;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(59, 69, 84, 0.65);
}

.betting-list-query-totals-title {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: #9aa8bc;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.betting-list-query-totals-scope {
    color: #7a8799;
    font-size: 12px;
    font-weight: 600;
}

.betting-list-query-totals-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

.betting-list-query-totals-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.betting-list-query-totals-label {
    color: #8b98ad;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.betting-list-query-totals-value {
    color: #e8edf8;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.betting-list-query-totals-value.is-win {
    color: #7dd3fc;
}

.betting-list-query-totals-profit.is-plus {
    color: #57d68d;
}

.betting-list-query-totals-profit.is-minus {
    color: #ff5d7a;
}

.date-filter-action-group {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.date-filter-action-group.date-filter-action-group-spread {
    flex: 1 1 100%;
}

.date-filter-action-group .date-filter-submit-btn {
    margin-left: 0;
}

.settlement-filter-form .settlement-period-lock-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    border: 1px solid #6b5340;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.14) 0%, rgba(180, 83, 9, 0.06) 100%);
    box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.12);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.settlement-filter-form .settlement-period-lock-label:hover {
    border-color: #d97706;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.22) 0%, rgba(180, 83, 9, 0.1) 100%);
}

.settlement-filter-form .settlement-period-lock-label:has(.settlement-period-lock-input:checked) {
    border-color: #f59e0b;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.35) 0%, rgba(180, 83, 9, 0.2) 100%);
    box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.5),
        0 0 14px rgba(245, 158, 11, 0.28);
}

.settlement-filter-form .settlement-period-lock-label:has(.settlement-period-lock-input:focus-visible) {
    outline: 2px solid rgba(251, 191, 36, 0.75);
    outline-offset: 2px;
}

.settlement-filter-form .settlement-period-lock-input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #f59e0b;
    flex-shrink: 0;
}

.settlement-filter-form .settlement-period-lock-icon {
    font-size: 20px;
    line-height: 1;
    color: #c4a574;
    transition: color 0.15s ease;
}

.settlement-filter-form .settlement-period-lock-label:has(.settlement-period-lock-input:checked) .settlement-period-lock-icon {
    color: #fde68a;
}

.settlement-filter-form .settlement-period-lock-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f5e6c8;
    transition: color 0.15s ease;
}

.settlement-filter-form .settlement-period-lock-label:has(.settlement-period-lock-input:checked) .settlement-period-lock-text {
    color: #fffbeb;
}

html.admin-theme-light .settlement-filter-form .settlement-period-lock-label {
    border-color: #e7c88a;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html.admin-theme-light .settlement-filter-form .settlement-period-lock-label:hover {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
}

html.admin-theme-light .settlement-filter-form .settlement-period-lock-label:has(.settlement-period-lock-input:checked) {
    border-color: #d97706;
    background: linear-gradient(180deg, #fde68a 0%, #fcd34d 100%);
    box-shadow:
        0 0 0 1px rgba(217, 119, 6, 0.35),
        0 2px 10px rgba(245, 158, 11, 0.35);
}

html.admin-theme-light .settlement-filter-form .settlement-period-lock-icon {
    color: #a16207;
}

html.admin-theme-light .settlement-filter-form .settlement-period-lock-label:has(.settlement-period-lock-input:checked) .settlement-period-lock-icon {
    color: #92400e;
}

html.admin-theme-light .settlement-filter-form .settlement-period-lock-text {
    color: #78350f;
}

html.admin-theme-light .settlement-filter-form .settlement-period-lock-label:has(.settlement-period-lock-input:checked) .settlement-period-lock-text {
    color: #451a03;
}

.settlement-filter-form:has(.settlement-period-lock-input:checked) .login-history-hint {
    display: none;
}

.date-filter-month-btns {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.date-filter-month-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 90px;
    width: 90px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #4caf50;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.date-filter-month-btn:hover {
    background: #43a047;
}

.date-filter-vendor-kind {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.date-filter-vendor-kind-track {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(26, 34, 48, 0.98), rgba(15, 20, 30, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 6px 20px rgba(0, 0, 0, 0.28);
}

.date-filter-vendor-kind-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 82px;
    height: 36px;
    padding: 0 14px 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #8b95a8;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.date-filter-vendor-kind-label {
    color: inherit;
}

.date-filter-vendor-kind-option.is-all:not(.is-active) .date-filter-vendor-kind-label {
    color: #93c5fd;
}

.date-filter-vendor-kind-option.is-all:not(.is-active) .date-filter-vendor-kind-check {
    border-color: #315dff;
    background: rgba(49, 93, 255, 0.12);
}

.date-filter-vendor-kind-option.is-slot:not(.is-active) .date-filter-vendor-kind-label {
    color: #67e8f9;
}

.date-filter-vendor-kind-option.is-slot:not(.is-active) .date-filter-vendor-kind-check {
    border-color: #0891b2;
    background: rgba(8, 145, 178, 0.14);
}

.date-filter-vendor-kind-option.is-casino:not(.is-active) .date-filter-vendor-kind-label {
    color: #e9d5ff;
}

.date-filter-vendor-kind-option.is-casino:not(.is-active) .date-filter-vendor-kind-check {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.14);
}

.date-filter-vendor-kind-option:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.05);
}

.date-filter-vendor-kind-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid #4b5563;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.date-filter-vendor-kind-check .mdi {
    font-size: 12px;
    line-height: 1;
}

.date-filter-vendor-kind-option.is-all.is-active {
    background: linear-gradient(135deg, #315dff, #6366f1);
    box-shadow: 0 0 18px rgba(49, 93, 255, 0.55);
}

.date-filter-vendor-kind-option.is-all.is-active .date-filter-vendor-kind-label {
    color: #eff6ff;
}

.date-filter-vendor-kind-option.is-all.is-active .date-filter-vendor-kind-check {
    border-color: #bfdbfe;
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 0 10px rgba(191, 219, 254, 0.65);
}

.date-filter-vendor-kind-option.is-slot.is-active {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}

.date-filter-vendor-kind-option.is-slot.is-active .date-filter-vendor-kind-label {
    color: #042f2e;
}

.date-filter-vendor-kind-option.is-slot.is-active .date-filter-vendor-kind-check {
    border-color: #5eead4;
    background: #0f172a;
    color: #5eead4;
    box-shadow: 0 0 12px rgba(94, 234, 212, 0.55);
}

.date-filter-vendor-kind-option.is-casino.is-active {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.55);
}

.date-filter-vendor-kind-option.is-casino.is-active .date-filter-vendor-kind-label {
    color: #faf5ff;
}

.date-filter-vendor-kind-option.is-casino.is-active .date-filter-vendor-kind-check {
    border-color: #f3e8ff;
    background: #4c1d95;
    color: #f0abfc;
    box-shadow: 0 0 12px rgba(240, 171, 252, 0.45);
}

.date-filter-vendor-kind-option.is-deposit:not(.is-active) .date-filter-vendor-kind-label {
    color: #6ee7b7;
}

.date-filter-vendor-kind-option.is-deposit:not(.is-active) .date-filter-vendor-kind-check {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.14);
}

.date-filter-vendor-kind-option.is-deposit.is-active {
    background: linear-gradient(135deg, #059669, #34d399);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.55);
}

.date-filter-vendor-kind-option.is-deposit.is-active .date-filter-vendor-kind-label {
    color: #ecfdf5;
}

.date-filter-vendor-kind-option.is-deposit.is-active .date-filter-vendor-kind-check {
    border-color: #a7f3d0;
    background: #064e3b;
    color: #6ee7b7;
    box-shadow: 0 0 12px rgba(110, 231, 183, 0.45);
}

.date-filter-vendor-kind-option.is-withdraw:not(.is-active) .date-filter-vendor-kind-label {
    color: #fca5a5;
}

.date-filter-vendor-kind-option.is-withdraw:not(.is-active) .date-filter-vendor-kind-check {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.14);
}

.date-filter-vendor-kind-option.is-withdraw.is-active {
    background: linear-gradient(135deg, #dc2626, #f87171);
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.55);
}

.date-filter-vendor-kind-option.is-withdraw.is-active .date-filter-vendor-kind-label {
    color: #fef2f2;
}

.date-filter-vendor-kind-option.is-withdraw.is-active .date-filter-vendor-kind-check {
    border-color: #fecaca;
    background: #7f1d1d;
    color: #fca5a5;
    box-shadow: 0 0 12px rgba(252, 165, 165, 0.45);
}

.date-filter-vendor-kind-option.is-active {
    transform: translateY(-1px);
}

/* 라이트 모드: 슬롯/카지노 구분 라벨 대비 */
html.admin-theme-light .date-filter-vendor-kind-track {
    border-color: #cbd5e1;
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 1px 4px rgba(15, 23, 42, 0.08);
}

html.admin-theme-light .date-filter-vendor-kind-option.is-all:not(.is-active) .date-filter-vendor-kind-label {
    color: #1d4ed8;
}

html.admin-theme-light .date-filter-vendor-kind-option.is-slot:not(.is-active) .date-filter-vendor-kind-label {
    color: #0e7490;
}

html.admin-theme-light .date-filter-vendor-kind-option.is-casino:not(.is-active) .date-filter-vendor-kind-label {
    color: #6d28d9;
}

html.admin-theme-light .date-filter-vendor-kind-option.is-casino.is-active .date-filter-vendor-kind-label {
    color: #ffffff;
}

.login-history-page .login-history-main.cash-deposit-main {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    min-height: 520px;
}

.login-history-page .login-history-tree-section.cash-deposit-tree-section {
    flex: 0 0 200px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
}

.login-history-page .login-history-table-main.cash-deposit-table-main {
    flex: 1 1 auto;
    min-width: 0;
}

.login-history-page .login-history-table-main .partners-table-shell.cash-deposit-table-shell {
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
}

.login-history-table .col-affiliation {
    width: 120px;
    min-width: 96px;
    white-space: nowrap;
}

.login-history-table .col-login-id {
    width: 140px;
}

.login-history-table td.login-history-member-combobox-cell {
    padding-top: 0;
    padding-bottom: 0;
    vertical-align: middle;
}

.login-history-table .money-log-affiliation-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    max-width: 100%;
    min-height: 30px;
    height: auto;
    margin: 0;
    padding: 2px 6px 2px 4px;
    border: 1px solid #3a4558;
    border-radius: 8px;
    background: #121722;
    color: #e8edf8;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
}

.login-history-table .money-log-affiliation-combobox {
    position: relative;
    display: inline-block;
    width: max-content;
    max-width: 100%;
    margin: 0;
    vertical-align: middle;
}

.login-history-table .money-log-affiliation-combobox .members-affiliation-trigger {
    width: auto;
    min-height: 30px;
}

.login-history-table .col-error-type {
    width: 160px;
}

.login-history-table .col-ip {
    width: 150px;
}

.login-history-table .col-money,
.login-history-table .col-point {
    width: 110px;
    text-align: right;
}

.login-history-table .col-success {
    width: 90px;
}

.login-history-table .col-block {
    width: 110px;
}

.login-history-page .login-history-table.partners-data-table thead th {
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.login-history-page .page-card-body.login-history-body.cash-deposit-body {
    padding: 6px 10px 10px;
}

.login-history-page .login-history-tracking.cash-deposit-tracking {
    margin-top: 0;
}

.login-history-page .login-history-topbar.cash-deposit-filter {
    margin-bottom: 6px;
    padding: 8px 10px;
}

.login-history-page .login-history-topbar.cash-deposit-filter.subordinate-aff-form {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 6px;
    row-gap: 8px;
}

@media (min-width: 1200px) {
    .login-history-page.cash-deposit-page .cash-deposit-filter.login-history-topbar.subordinate-aff-form {
        flex-wrap: wrap;
    }
}

.login-history-page .login-history-topbar.subordinate-aff-form > .login-history-hint {
    flex: 0 0 auto;
    width: auto;
    max-width: 7.5em;
    margin: 0;
    align-self: center;
}

.login-history-page .login-history-topbar.subordinate-aff-form > .login-history-date-group,
.login-history-page .login-history-topbar.subordinate-aff-form > .date-filter-action-group {
    flex: 0 0 auto;
    align-self: center;
}

.login-history-page .login-history-topbar.subordinate-aff-form .date-filter-action-group--money-log-search {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.login-history-page .login-history-topbar.subordinate-aff-form .login-history-search-wrap.date-filter-search-wrap {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    height: 40px;
    margin: 0;
}

.login-history-page .login-history-topbar.subordinate-aff-form .subordinate-aff-select-wrap,
.login-history-page .login-history-topbar.subordinate-aff-form .members-aff-filter-panel-toggle {
    align-self: center;
}

.login-history-page .login-history-table.partners-data-table.notice-admin-table tbody td {
    padding: 2px 6px !important;
    font-size: 12px;
    line-height: 1.25;
}

.login-history-page .login-history-table td[data-column="affiliation"] .members-affiliation-trigger {
    min-height: 30px;
    padding-top: 0;
    padding-bottom: 0;
}

.login-history-page .login-history-block-action-btn {
    min-width: 72px;
    height: 28px;
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
}

.login-history-block-cell {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.login-history-block-action-btn {
    min-width: 80px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #1867c0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.login-history-block-action-btn:hover:not(:disabled) {
    filter: brightness(1.08);
}

.login-history-block-action-btn:disabled {
    background: #3a4558;
    color: #c8d0df;
    cursor: not-allowed;
    box-shadow: none;
}

.login-history-block-form {
    margin: 0;
}

.login-history-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.login-history-badge.is-success {
    background: rgba(87, 214, 141, 0.16);
    color: #57d68d;
}

.login-history-badge.is-fail {
    background: rgba(255, 93, 122, 0.16);
    color: #ff5d7a;
}

.basic-settings-idle-logout-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 20px;
    align-items: start;
}

.basic-settings-idle-logout-grid .basic-settings-idle-logout-panel {
    margin-top: 0;
    padding: 14px 16px;
    border: 1px solid #293241;
    border-radius: 12px;
    background: #151b25;
}

.basic-settings-idle-logout-grid .basic-settings-idle-logout-panel + .basic-settings-idle-logout-panel {
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid #293241;
}

.basic-settings-idle-logout-grid .basic-settings-idle-logout-panel .basic-settings-label {
    margin-bottom: 10px;
}

@media (max-width: 960px) {
    .basic-settings-idle-logout-grid {
        grid-template-columns: 1fr;
    }

    .basic-settings-idle-logout-grid .basic-settings-idle-logout-panel + .basic-settings-idle-logout-panel {
        margin-top: 0;
    }
}

.bank-account-changes-table {
    table-layout: fixed;
    width: 100%;
}

.bank-account-changes-page .bank-account-changes-table.partners-data-table thead th {
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.bank-account-changes-table .col-affiliation {
    width: 120px;
    min-width: 96px;
}

.bank-account-changes-table .bank-account-changes-col-login-id,
.bank-account-changes-table .bank-account-changes-login-id {
    width: 96px;
    max-width: 96px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bank-account-changes-table .bank-account-changes-col-before,
.bank-account-changes-table .bank-account-changes-col-after {
    width: 28%;
    min-width: 240px;
}

.bank-account-changes-table .bank-account-changes-col-changed-at {
    width: 118px;
}

.bank-account-changes-table .bank-account-changes-col-changed-by {
    width: 88px;
}

.bank-account-changes-table .bank-account-changes-before,
.bank-account-changes-table .bank-account-changes-after {
    max-width: none;
    white-space: normal;
    word-break: break-all;
    text-align: left;
    line-height: 1.35;
}

.bank-account-changes-table .bank-account-changes-after {
    color: #57d68d;
}

.bank-account-changes-page .login-history-filter-search-row .login-history-search-wrap.date-filter-search-wrap {
    flex: 0 0 240px;
    min-width: 240px;
    max-width: 280px;
}

.login-history-empty {
    padding: 32px 14px !important;
    color: #8590a6;
    text-align: center;
}

@media (max-width: 960px) {
    .login-history-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .login-history-topbar-title {
        margin: 0;
    }

    .login-history-search-wrap,
    .login-history-hint {
        max-width: none;
        flex: 1 1 auto;
    }

    /* 시작일·종료일이 각각 한 줄 전체(width:100%)를 먹지 않도록 */
    .login-history-date-group {
        width: auto;
        flex: 0 0 auto;
        min-width: 0;
    }

    .login-history-date-wrap {
        flex: 0 0 auto;
        min-width: 0;
    }

    /* 안내문은 위 줄, 날짜·검색·월버튼은 가능하면 한 줄
       (vendor-kind inline 의 flex-end 보다 우선) */
    .date-filter-primary-controls,
    .date-filter-form .date-filter-primary-controls,
    .date-filter-form:has(.date-filter-search-wrap) .date-filter-primary-controls,
    .date-filter-form:has(.date-filter-vendor-kind--inline) .date-filter-primary-controls {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px 3px;
        width: 100%;
        margin-left: 0;
    }

    .date-filter-primary-controls .login-history-hint {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .date-filter-primary-controls .login-history-date-group {
        position: relative;
        gap: 3px;
    }

    .date-filter-primary-controls .login-history-date-label {
        font-size: 11px;
    }

    .date-filter-primary-controls .login-history-date-wrap {
        min-width: 0;
        min-height: 34px;
        padding: 0 2px;
        gap: 2px;
    }

    .date-filter-primary-controls .login-history-date-trigger {
        width: 18px;
    }

    .date-filter-primary-controls .login-history-date-trigger .mdi {
        font-size: 18px;
    }

    .date-filter-primary-controls .login-history-date-input {
        width: 68px;
        flex: 0 0 68px;
        height: 32px;
        font-size: 11px;
    }

    .date-filter-primary-controls .date-filter-submit-btn {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        margin-left: 0;
    }

    .date-filter-primary-controls .date-filter-submit-btn .mdi {
        font-size: 17px;
    }

    .date-filter-primary-controls .date-filter-month-btns {
        gap: 3px;
        flex: 0 0 auto;
    }

    .date-filter-primary-controls .date-filter-month-btn {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        height: 32px;
        padding: 0 6px;
        font-size: 11px;
    }

    /* topbar column 시 flex-basis 120px가 높이로 적용됨 → 고정 높이 */
    .date-filter-search-select,
    .date-filter-form .date-filter-search-select {
        flex: 0 0 auto;
        align-self: flex-start;
        width: 120px;
        max-width: 100%;
        height: 40px;
        min-height: 40px;
    }

    .date-filter-search-wrap,
    .date-filter-form .date-filter-search-wrap {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        width: auto;
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    /* 좁은 폭: 라벨 숨기고 날짜·검색·월버튼을 한 줄에 */
    .date-filter-primary-controls .login-history-date-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .date-filter-primary-controls .login-history-date-wrap {
        min-width: 88px;
    }
}

.ip-block-body {
    padding: 20px 24px 24px;
}

.ip-block-header {
    margin-bottom: 16px;
}

.ip-block-title {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.ip-block-table {
    min-width: 920px;
}

.ip-block-table.notice-admin-table thead th {
    font-size: 12px;
}

.ip-block-table .col-ip {
    width: 180px;
}

.ip-block-table .col-account {
    width: 220px;
}

.ip-block-table .col-reason {
    width: auto;
}

.ip-block-table .col-date {
    width: 180px;
}

.ip-block-table .col-unblock {
    width: 110px;
}

.ip-block-unblock-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.ip-block-unblock-btn {
    min-width: 80px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #1867c0;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.ip-block-unblock-btn:hover {
    filter: brightness(1.08);
}

.ip-block-empty {
    padding: 32px 14px !important;
    color: #8590a6;
    text-align: center;
}

.ip-block-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 12px;
    padding-top: 8px;
    color: #c8d0df;
    font-size: 13px;
}

.ip-block-per-page-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.ip-block-per-page-label {
    color: #c8d0df;
    white-space: nowrap;
}

.ip-block-per-page-select {
    min-width: 72px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #323b49;
    border-radius: 6px;
    background: #171d27;
    color: #e8edf8;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.ip-block-per-page-select:focus {
    outline: none;
    border-color: #315dff;
}

.ip-block-page-summary {
    color: #c8d0df;
    white-space: nowrap;
}

.blocked-users-partners-body {
    padding: 20px 24px 24px;
}

.blocked-users-partners-header {
    margin-bottom: 16px;
}

.blocked-users-partners-title {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.blocked-users-partners-table {
    min-width: 1040px;
}

.blocked-users-partners-table.notice-admin-table thead th {
    font-size: 12px;
}

.blocked-users-partners-table .col-member-id {
    width: 140px;
}

.blocked-users-partners-table .col-nickname {
    width: 140px;
}

.blocked-users-partners-table .col-message {
    width: auto;
}

.blocked-users-partners-table .col-money,
.blocked-users-partners-table .col-rolling {
    width: 120px;
}

.blocked-users-partners-table .col-blocked-at {
    width: 180px;
}

.blocked-users-partners-table .col-detail {
    width: 110px;
}

.blocked-users-partners-detail-cell {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.blocked-users-partners-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: #1867c0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.blocked-users-partners-detail-btn:hover {
    filter: brightness(1.08);
    color: #fff;
}

.blocked-users-partners-empty {
    padding: 32px 14px !important;
    color: #8590a6;
    text-align: center;
}

.partners-list-body {
    padding: 20px 24px 24px;
}

.members-list-body {
    padding-right: 6px;
    padding-left: 6px;
}

.partner-type-list-body {
    padding: 6px;
}

.partners-list-datepicker {
    margin-top: 12px;
}

.partners-list-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 16px 18px;
    border: 1px solid #293241;
    border-radius: 12px;
    background: #171d27;
}

.partners-list-sort-bar {
    margin-top: 8px;
    margin-bottom: 8px;
}

.partners-list-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.partners-list-title {
    margin: 0;
    color: #e8edf8;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.partners-menu-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.partners-menu-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #121722;
    color: #e8edf8;
    font: inherit;
    font-size: 13px;
}

.partners-menu-search-input:focus {
    outline: 0;
    border-color: #315dff;
}

.partners-menu-search-input::placeholder {
    color: #8590a6;
}

.partners-menu-search-select {
    flex: 0 0 120px;
    width: 120px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #121722;
    color: #e8edf8;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.partners-menu-search-select:focus {
    outline: 0;
    border-color: #315dff;
}

.partners-list-hint {
    flex: 1 1 220px;
    margin: 0;
    color: #8590a6;
    font-size: 12px;
    line-height: 1.4;
}

.partners-list-date-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.partners-list-date-label {
    color: #c8d0df;
    font-size: 12px;
    white-space: nowrap;
}

html.admin-theme-light .partners-list-date-label {
    color: #334155;
}

.partners-list-date-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #121722;
    transition: border-color 0.15s ease;
}

.partners-list-date-wrap:focus-within {
    border-color: #315dff;
}

.partners-list-date-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #8590ff;
    cursor: pointer;
}

.partners-list-date-trigger .mdi {
    font-size: 18px;
    line-height: 1;
}

.partners-list-date-input {
    width: 118px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #e8edf8;
    font: inherit;
    font-size: 13px;
}

.partners-list-date-input::-webkit-calendar-picker-indicator {
    display: none;
}

.partners-list-date-input:focus {
    outline: 0;
}

.partners-list-sort-btn {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #323b49;
    border-radius: 6px;
    background: #121722;
    color: #c8d0df;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.partners-list-sort-btn:hover {
    border-color: #315dff;
    color: #e8edf8;
}

.partners-list-sort-btn.is-active {
    border-color: #315dff;
    background: rgba(49, 93, 255, 0.16);
    color: #fff;
}

.partners-list-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
}

.partners-tree-section {
    flex: 0 0 205px;
    width: 205px;
    max-width: 100%;
}

.partners-tree-card {
    min-height: 320px;
    padding: 16px;
    border: 1px solid #293241;
    border-radius: 12px;
    background: #171d27;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.partners-page-container .partners-tree-card {
    padding: 6px;
}

.partner-money-transfer-page {
    max-width: none;
    padding-right: 4px !important;
    padding-left: 4px !important;
}

/* 파트너 머니이동 list-tracking: 상단 여백 최소화 */
body.admin-body .admin-main-scroll:has(> .page-container.partner-money-transfer-page.list-tracking-page) {
    padding-top: 4px;
}

.page-container.partner-money-transfer-page.list-tracking-page {
    padding-top: 0;
    padding-bottom: 24px;
}

.page-container.partner-money-transfer-page.list-tracking-page > .page-card > .page-card-body.partners-list-body.partner-money-transfer-body {
    padding-top: 4px;
    padding-right: 10px;
    padding-bottom: 16px;
    padding-left: 10px;
}

.page-container.partner-money-transfer-page.list-tracking-page .list-tracking-aff-form {
    margin-bottom: 2px;
}

.page-container.partner-money-transfer-page.list-tracking-page .list-tracking-aff-form .login-history-topbar.subordinate-aff-form {
    margin-top: 0;
    margin-bottom: 6px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.page-container.partner-money-transfer-page.list-tracking-page .list-tracking-tab-filter.login-history-topbar {
    margin-top: 0;
    margin-bottom: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* 파트너 머니이동: 표만 스크롤 · 페이지 칸 하단 고정 */
body.admin-body .admin-main-scroll:has(> .page-container.partner-money-transfer-page.list-tracking-page) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

.page-container.partner-money-transfer-page.list-tracking-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.page-container.partner-money-transfer-page.list-tracking-page > .page-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.partner-money-transfer-page.list-tracking-page > .page-card > .page-card-body.partner-money-transfer-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.page-container.partner-money-transfer-page.list-tracking-page .partner-money-transfer-layout {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
}

.page-container.partner-money-transfer-page.list-tracking-page .partner-money-transfer-tree-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}

.page-container.partner-money-transfer-page.list-tracking-page .partner-money-transfer-tree-section .partners-tree-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.page-container.partner-money-transfer-page.list-tracking-page .partner-money-transfer-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.partner-money-transfer-page.list-tracking-page .partner-money-transfer-table-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.partner-money-transfer-page.list-tracking-page .partner-money-transfer-table-shell > .flex-grow-1.overflow-x-auto {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.page-container.partner-money-transfer-page.list-tracking-page #partner-money-transfer-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #151b25;
}

html.admin-theme-light .page-container.partner-money-transfer-page #partner-money-transfer-data-table thead th {
    background: #eef2f8;
    box-shadow: 0 1px 0 var(--line);
}

.page-container.partner-money-transfer-page.list-tracking-page #partner-money-transfer-table-footer {
    flex: 0 0 auto;
    padding: 4px 10px;
    gap: 6px 10px;
}

.page-container.partner-money-transfer-page.list-tracking-page #partner-money-transfer-table-footer .members-data-table-footer-controls {
    gap: 6px 10px;
}

.page-container.partner-money-transfer-page.list-tracking-page #partner-money-transfer-table-footer .members-data-table-pages .pagination-page,
.page-container.partner-money-transfer-page.list-tracking-page #partner-money-transfer-table-footer .members-data-table-page-ellipsis {
    width: 26px;
    height: 26px;
    min-width: 26px;
}

.partner-money-transfer-body {
    padding: 12px 4px 16px;
}

.partner-money-transfer-layout {
    gap: 0;
    margin-top: 0;
}

.partner-money-transfer-tree-section {
    flex: 0 0 205px;
    width: 205px;
}

.partner-money-transfer-tree-section .partners-tree-card {
    min-height: 760px;
    padding: 2px;
}

#partner-money-transfer-tree .tree {
    margin: 0;
    padding: 0;
}

#partner-money-transfer-tree .node-content {
    padding-top: 4px;
    padding-right: 2px;
    padding-bottom: 4px;
}

#partner-money-transfer-tree .tree-node-toggle,
#partner-money-transfer-tree .toggle-placeholder {
    width: 14px;
    min-width: 14px;
}

#partner-money-transfer-tree .node-icon {
    width: 20px;
    height: 20px;
    margin-right: 2px;
}

#partner-money-transfer-tree .node-label {
    letter-spacing: -0.3px;
}

.partner-money-transfer-main {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
}

.partner-money-transfer-table-shell {
    margin: 0;
}

.partner-money-transfer-table-wrap {
    min-width: 492px !important;
    padding-top: 4px;
}

.partner-money-transfer-table {
    table-layout: fixed;
}

.partner-money-transfer-table th,
.partner-money-transfer-table td {
    padding-right: 1px !important;
    padding-left: 1px !important;
}

.partner-money-transfer-table thead th {
    min-width: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 6px !important;
    line-height: 1.25;
    white-space: nowrap;
    word-break: keep-all;
}

.partner-money-transfer-table td {
    font-size: 13px;
    padding: 4px 6px !important;
}

.partner-money-transfer-page .partner-money-transfer-table .partners-table-login-id-head .partners-column-hide-btn {
    min-height: 22px;
    font-size: 11px;
    line-height: 1.2;
}

.partner-money-transfer-table th:nth-child(1),
.partner-money-transfer-table td:nth-child(1),
.partner-money-transfer-table th:nth-child(3),
.partner-money-transfer-table td:nth-child(3) {
    width: 112px;
}

.partner-money-transfer-table th.partner-money-transfer-flow-head,
.partner-money-transfer-table td.partner-money-transfer-flow-cell,
.partner-member-al-transfer-table th.partner-money-transfer-flow-head,
.partner-member-al-transfer-table td.partner-money-transfer-flow-cell {
    /* table-layout: fixed — auto 너비 열이 남은 폭을 전부 흡수함 */
    width: 108px;
    min-width: 108px !important;
    max-width: 108px;
    padding-left: 2px !important;
    padding-right: 2px !important;
    text-align: center;
    vertical-align: middle;
    overflow: visible;
    box-sizing: border-box;
}

.partner-money-transfer-table .partner-money-transfer-flow-stack,
.partner-member-al-transfer-table .partner-money-transfer-flow-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.1;
    width: 100%;
}

.partner-money-transfer-table .partner-money-transfer-flow-amount,
.partner-member-al-transfer-table .partner-money-transfer-flow-amount {
    display: block;
    width: 100%;
    max-width: 104px;
    padding: 4px 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.partner-money-transfer-table .partner-money-transfer-flow-amount.is-deposit,
.partner-member-al-transfer-table .partner-money-transfer-flow-amount.is-deposit {
    color: #ecfdf5;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.55) 0%, rgba(5, 150, 105, 0.42) 100%);
    border: 1px solid rgba(110, 231, 183, 0.75);
    text-shadow: 0 0 14px rgba(52, 211, 153, 0.55), 0 1px 2px rgba(0, 0, 0, 0.45);
}

.partner-money-transfer-table .partner-money-transfer-flow-amount.is-withdraw,
.partner-member-al-transfer-table .partner-money-transfer-flow-amount.is-withdraw {
    color: #fff1f2;
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.5) 0%, rgba(185, 28, 28, 0.4) 100%);
    border: 1px solid rgba(252, 165, 165, 0.7);
    text-shadow: 0 0 14px rgba(248, 113, 113, 0.5), 0 1px 2px rgba(0, 0, 0, 0.45);
}

.partner-money-transfer-flow-icon {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    color: #137fec;
}

.partner-money-transfer-table thead th.partner-money-transfer-flow-head,
.partner-member-al-transfer-table thead th.partner-money-transfer-flow-head {
    font-weight: 400 !important;
    padding: 4px 0 !important;
}

.partner-money-transfer-table th:nth-child(4),
.partner-money-transfer-table td:nth-child(4),
.partner-money-transfer-table th:nth-child(5),
.partner-money-transfer-table td:nth-child(5) {
    width: 76px;
}

.partner-money-transfer-table th:nth-child(6),
.partner-money-transfer-table td:nth-child(6) {
    width: 112px;
}

.cash-partner-transfer-page .cash-partner-transfer-table thead th,
.partners-data-table.cash-partner-transfer-table thead th,
.partners-data-table.partner-member-transfer-table.cash-partner-transfer-table thead th,
.cash-partner-transfer-page #cash-partner-transfer-data-table thead th {
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 4px 6px !important;
    line-height: 1.2;
}

.cash-partner-transfer-page #cash-partner-transfer-data-table thead th[data-column="direction"] .partners-table-login-id-head-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.cash-partner-transfer-page #cash-partner-transfer-data-table thead th[data-column="direction"] .partners-table-th-label {
    display: block;
    line-height: 1.15;
}

.cash-partner-transfer-page #cash-partner-transfer-data-table thead th[data-column="direction"] .partners-column-hide-btn {
    width: 100%;
    min-height: 22px;
    margin: 0;
    padding: 0 6px;
    justify-content: center;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.2;
}

.cash-partner-transfer-page .cash-partner-transfer-table td {
    font-size: 13px;
    padding: 4px 6px !important;
}

.cash-partner-transfer-table th.partner-money-transfer-flow-head,
.cash-partner-transfer-table td.partner-money-transfer-flow-cell,
.master-member-transfer-table th.partner-money-transfer-flow-head,
.master-member-transfer-table td.partner-money-transfer-flow-cell {
    width: 32px;
    min-width: 32px !important;
    max-width: 32px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center;
    vertical-align: middle;
}

.cash-partner-transfer-table thead th.partner-money-transfer-flow-head,
.master-member-transfer-table thead th.partner-money-transfer-flow-head {
    font-weight: 400 !important;
    padding: 4px 0 !important;
}

.partner-money-transfer-chip {
    width: 100px;
}

.partner-money-transfer-chip-trigger {
    cursor: pointer;
}

.partner-money-transfer-page .partner-money-transfer-chip.is-list-partner-selected .partner-money-transfer-chip-trigger {
    border: 2px solid #137fec;
    box-shadow: 0 0 0 1px rgba(19, 127, 236, 0.35);
}

.partner-money-transfer-chip-trigger .members-affiliation-icon {
    width: 24px;
    height: 24px;
}

.partner-money-transfer-chip-trigger .members-affiliation-label {
    text-align: left;
}

.partner-money-transfer-hierarchy-menu {
    width: 180px;
    max-height: 240px;
    z-index: 25;
}

.partner-money-transfer-hierarchy-option {
    cursor: default;
}

.partner-money-transfer-hierarchy-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-transfer-hierarchy-chip {
    width: 130px;
}

.partner-type-parent-chip {
    width: 112px;
}

.members-list-layout {
    gap: 12px;
}

.members-list-body .partners-list-topbar,
.members-list-body .members-aff-form,
.members-list-body .partners-list-sort-bar {
    margin-right: 0;
    margin-left: 0;
}

.members-list-body .partners-table-shell {
    margin-right: 0;
    margin-left: 0;
}

.members-list-body .members-table-scroll {
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.members-page-container .members-list-body .partners-table-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    overflow: hidden;
}

.members-page-container .members-list-body .members-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: auto;
}

.members-page-container .members-data-table-footer {
    flex: 0 0 auto;
}

/* 회원 목록(일반): 카드·필터·레이아웃·푸터 여백 최소화 */
.members-page-container:not(.online-members-page) .partners-list-body.members-list-body {
    padding: 4px 6px 6px;
}

.members-page-container:not(.online-members-page) .members-aff-form.login-history-topbar.subordinate-aff-form {
    margin-bottom: 4px;
    padding: 6px 10px;
}

.members-page-container:not(.online-members-page) .partners-list-layout.members-list-layout {
    margin-top: 4px;
    gap: 8px;
}

.members-page-container:not(.online-members-page) .members-data-table-footer {
    padding: 6px 12px;
    gap: 8px 12px;
}

.members-list-body .members-table-scroll .custom-data-table {
    padding-top: 0;
}

.members-page-container:not(.online-members-page) .members-list-body .members-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 12;
    background-color: #151b25;
    box-shadow:
        0 1px 0 #293241,
        0 8px 16px -4px rgba(0, 0, 0, 0.45);
}

html.admin-theme-light .members-page-container:not(.online-members-page) .members-list-body .members-data-table thead th {
    background-color: #eef2f8;
    box-shadow:
        0 1px 0 #dbe2ee,
        0 8px 16px -4px rgba(15, 23, 42, 0.12);
}

.members-page-container:not(.online-members-page) .members-list-body .members-data-table thead th.partners-table-login-id-head {
    z-index: 13;
}

.members-page-container.online-members-page .members-list-body .members-data-table thead th {
    position: static;
    top: auto;
    z-index: auto;
    box-shadow: none;
}

html.admin-theme-light body.admin-body .members-page-container.online-members-page .members-list-body .members-data-table thead th {
    box-shadow: none;
}

.members-aff-form .members-user-create-btn,
.members-aff-form .members-user-create-btn--aff {
    flex: 0 0 auto;
    align-self: center;
    width: auto;
    max-width: none;
    margin: 0 0 0 auto;
}

.members-aff-form .login-history-topbar-title-active {
    flex: 0 0 auto;
    order: -1;
}

.members-page-container.is-store-viewer .members-data-table [data-col="affiliation"] {
    display: none;
}

.members-page-container.is-store-viewer .members-tree-section {
    display: none;
}

.members-page-container.is-store-viewer .online-members-table [data-col="partner"] {
    display: none;
}

.date-filter-page.is-store-viewer .betting-list-table [data-col="store_id"] {
    display: none;
}

.cash-deposit-filter .cash-deposit-filter-primary-controls,
.login-history-topbar--search-below .login-history-filter-primary-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 10px;
    flex: 1 1 auto;
    width: auto;
    margin-left: auto;
}

.cash-deposit-filter .cash-deposit-filter-primary-controls .login-history-hint,
.login-history-topbar--search-below .login-history-filter-primary-controls .login-history-hint {
    margin: 0;
}

.cash-deposit-filter .cash-deposit-filter-search-row,
.login-history-topbar--search-below .login-history-filter-search-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    flex: 1 1 100%;
    width: 100%;
}

.cash-deposit-filter .cash-deposit-filter-search-row .cash-deposit-request-kind-filter {
    flex: 0 0 auto;
    margin-left: auto;
}

.cash-deposit-filter .cash-deposit-filter-search-row .cash-deposit-coin-scope-filter {
    flex: 0 0 auto;
    margin-left: 0;
}

/* 넓은 화면: 날짜·검색과 전체/충전/환전(알 지급·회수) 구분을 한 줄에 */
@media (min-width: 1200px) {
    .cash-deposit-page .cash-deposit-filter.login-history-topbar {
        flex-wrap: nowrap;
        align-items: center;
    }

    .cash-deposit-page .cash-deposit-filter .cash-deposit-filter-primary-controls {
        flex: 0 1 auto;
        flex-grow: 0;
        width: auto;
        min-width: 0;
        margin-left: auto;
    }

    .cash-deposit-page .cash-deposit-filter .cash-deposit-filter-primary-controls .al-transfer-kind-filter {
        flex: 0 0 auto;
        margin-left: 0;
    }

    .cash-deposit-page .cash-deposit-filter .cash-deposit-filter-search-row {
        flex: 0 0 auto;
        width: auto;
        margin-left: 0;
    }

    .cash-deposit-page .cash-deposit-filter .cash-deposit-filter-search-row .cash-deposit-request-kind-filter,
    .cash-deposit-page .cash-deposit-filter .cash-deposit-filter-search-row .al-transfer-kind-filter {
        margin-left: 0;
    }
}

.cash-deposit-page .cash-deposit-filter-primary-controls select[name="status"].date-filter-search-select,
.cash-deposit-page .cash-deposit-filter-search-row select[name="status"].date-filter-search-select {
    flex: 0 0 132px;
    width: 132px;
}

.login-history-topbar--search-below .login-history-filter-search-row .login-history-search-wrap {
    flex: 0 0 auto;
    min-width: 125px;
    max-width: 170px;
}

/* 모바일: 날짜 컨트롤과 검색/상태 셀렉트를 같은 flex 흐름으로 (base display:flex 보다 뒤) */
@media (max-width: 960px) {
    .cash-deposit-filter.login-history-topbar,
    .login-history-topbar--search-below.login-history-topbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 4px;
    }

    .cash-deposit-filter .cash-deposit-filter-primary-controls,
    .login-history-topbar--search-below .login-history-filter-primary-controls {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px 4px;
        flex: 1 1 100%;
        width: 100%;
        margin-left: 0;
    }

    .cash-deposit-filter .cash-deposit-filter-search-row,
    .login-history-topbar--search-below .login-history-filter-search-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 4px;
        flex: 1 1 100%;
        width: 100%;
    }

    .cash-deposit-filter > .login-history-topbar-title,
    .cash-deposit-filter > .login-history-topbar-title-active,
    .login-history-topbar--search-below > .login-history-topbar-title,
    .login-history-topbar--search-below > .login-history-topbar-title-active {
        flex: 1 1 100%;
        width: 100%;
        margin: 0 0 2px;
    }

    .cash-deposit-filter .login-history-hint,
    .login-history-topbar--search-below .login-history-hint {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .cash-deposit-filter .login-history-date-group,
    .login-history-topbar--search-below .login-history-date-group {
        position: relative;
        gap: 3px;
    }

    .cash-deposit-filter .login-history-date-label,
    .login-history-topbar--search-below .login-history-date-label {
        font-size: 11px;
    }

    .cash-deposit-filter .login-history-date-wrap,
    .login-history-topbar--search-below .login-history-date-wrap {
        min-width: 0;
        min-height: 34px;
        padding: 0 2px;
        gap: 2px;
    }

    .cash-deposit-filter .login-history-date-input,
    .login-history-topbar--search-below .login-history-date-input {
        width: 68px;
        flex: 0 0 68px;
        height: 32px;
        font-size: 11px;
    }

    .cash-deposit-filter .date-filter-action-group,
    .login-history-topbar--search-below .date-filter-action-group {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        flex: 0 0 auto;
    }

    .cash-deposit-filter .date-filter-submit-btn,
    .login-history-topbar--search-below .date-filter-submit-btn {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        margin-left: 0;
    }

    .cash-deposit-filter .date-filter-month-btn,
    .login-history-topbar--search-below .date-filter-month-btn {
        flex: 0 0 auto;
        width: auto;
        height: 32px;
        padding: 0 6px;
        font-size: 11px;
    }

    .cash-deposit-filter .login-history-search-wrap.date-filter-search-wrap,
    .login-history-topbar--search-below .login-history-search-wrap.date-filter-search-wrap,
    .cash-deposit-filter .cash-deposit-filter-primary-controls .login-history-search-wrap.date-filter-search-wrap {
        flex: 1 1 96px;
        min-width: 88px;
        max-width: 130px;
        width: auto;
        height: 34px;
        align-self: center;
    }

    .cash-deposit-filter .date-filter-search-select,
    .login-history-topbar--search-below .date-filter-search-select,
    .cash-deposit-page .cash-deposit-filter-primary-controls select[name="status"].date-filter-search-select,
    .cash-deposit-page .cash-deposit-filter-search-row select[name="status"].date-filter-search-select {
        flex: 0 0 auto;
        width: auto;
        min-width: 72px;
        max-width: 100px;
        height: 34px;
        min-height: 34px;
        padding: 0 24px 0 6px;
        font-size: 11px;
        align-self: center;
    }

    .cash-deposit-filter .cash-deposit-request-kind-filter {
        flex: 1 1 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .cash-deposit-filter .login-history-date-label,
    .login-history-topbar--search-below .login-history-date-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .cash-deposit-filter .login-history-date-wrap,
    .login-history-topbar--search-below .login-history-date-wrap {
        min-width: 88px;
    }
}

/* 모바일 베팅목록 필터: 줄 수 최소화 (제목 / 날짜·월 / 검색·구분 / 집계) */
@media (max-width: 960px) {
    .date-filter-form.login-history-topbar:has(.date-filter-vendor-kind--inline) {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 4px;
    }

    .date-filter-form:has(.date-filter-vendor-kind--inline)::after {
        display: none;
        content: none;
        flex: 0 0 0;
        width: 0;
        height: 0;
        order: 0;
    }

    .date-filter-form:has(.date-filter-vendor-kind--inline) > .login-history-topbar-title,
    .date-filter-form:has(.date-filter-vendor-kind--inline) > .login-history-topbar-title-active {
        flex: 1 1 100%;
        width: 100%;
        margin: 0;
        order: 1;
    }

    .date-filter-form:has(.date-filter-vendor-kind--inline) .date-filter-primary-controls {
        display: flex;
        flex: 1 1 100%;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        width: 100%;
        margin: 0;
        order: 2;
    }

    .date-filter-form:has(.date-filter-vendor-kind--inline) .date-filter-primary-controls .login-history-hint {
        display: none;
    }

    .date-filter-form:has(.date-filter-vendor-kind--inline) .date-filter-search-wrap {
        flex: 1 1 84px;
        min-width: 84px;
        max-width: 110px;
        width: auto;
        height: 34px;
        order: 3;
        align-self: center;
    }

    .date-filter-form:has(.date-filter-vendor-kind--inline) .date-filter-search-select {
        flex: 0 0 auto;
        width: auto;
        min-width: 64px;
        max-width: 78px;
        height: 34px;
        min-height: 34px;
        padding: 0 22px 0 4px;
        font-size: 11px;
        order: 3;
        align-self: center;
    }

    .date-filter-form:has(.date-filter-vendor-kind--inline) .date-filter-vendor-kind--inline {
        flex: 1 1 150px;
        min-width: 140px;
        margin-left: 0;
        order: 3;
    }

    .date-filter-form:has(.date-filter-vendor-kind--inline) .date-filter-vendor-kind-track {
        display: flex;
        width: 100%;
        max-width: 100%;
        padding: 2px;
        gap: 2px;
    }

    .date-filter-form:has(.date-filter-vendor-kind--inline) .date-filter-vendor-kind-option {
        flex: 1 1 0;
        min-width: 0;
        height: 30px;
        padding: 0 4px;
        gap: 2px;
        font-size: 11px;
    }

    .date-filter-form:has(.date-filter-vendor-kind--inline) .date-filter-vendor-kind-check {
        display: none;
    }

    .date-filter-form:has(.date-filter-vendor-kind--inline) .betting-list-query-totals {
        display: flex;
        flex: 1 1 100%;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 4px 8px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        border-top: 0;
        order: 4;
    }

    .date-filter-form:has(.date-filter-vendor-kind--inline) .betting-list-query-totals-title,
    .date-filter-form:has(.date-filter-vendor-kind--inline) .betting-list-query-totals-label {
        font-size: 11px;
    }

    .date-filter-form:has(.date-filter-vendor-kind--inline) .betting-list-query-totals-value {
        font-size: 12px;
    }

    .date-filter-form:has(.date-filter-vendor-kind--inline) .betting-list-query-totals-grid {
        gap: 4px 10px;
    }
}

.partner-inquiry-table tbody tr.partner-inquiry-row-clickable {
    cursor: pointer;
}

.partner-cash-requests-filter .cash-deposit-filter-primary-controls .login-history-hint {
    flex: 0 0 172px;
    width: 172px;
    max-width: 220px;
}

body.admin-body .admin-main-scroll:has(> .partner-cash-requests-page) {
    padding-top: 2px;
    padding-bottom: 40px;
}

.partner-cash-requests-page {
    padding-top: 0 !important;
}

.partner-cash-requests-page > .page-card > .page-card-body.partner-cash-requests-body {
    padding-top: 0;
    padding-bottom: 44px;
}

.partner-cash-requests-page .partner-cash-requests-filter.login-history-topbar {
    margin-top: 0;
    margin-bottom: 12px;
    padding-top: 6px;
    padding-bottom: 10px;
}

.partner-cash-requests-page .partners-pagination {
    margin-top: 12px;
    margin-bottom: 8px;
}

.partner-cash-requests-page .partners-table-shell.date-filter-table-shell {
    overflow: visible;
}

.partner-cash-requests-page .partners-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
}

.partner-cash-requests-page .members-affiliation-menu {
    z-index: 120;
}

/* 파트너 충환전 승인: 충환전 내역과 동일 합계 토글·트리 레이아웃 */
.partner-cash-requests-page.cash-deposit-page .cash-deposit-tracking {
    width: 100%;
    margin-top: 4px;
}

.partner-cash-requests-page.cash-deposit-page .cash-deposit-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0 0 10px;
    border: 0;
    background: transparent;
    color: #e8edf8;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.partner-cash-requests-page.cash-deposit-page .cash-deposit-summary span {
    color: #e8edf8;
}

.partner-cash-requests-page.cash-deposit-page .cash-deposit-summary-kind.is-deposit {
    color: #34d399 !important;
    font-weight: 700 !important;
}

.partner-cash-requests-page.cash-deposit-page .cash-deposit-summary-kind.is-withdraw {
    color: #f87171 !important;
    font-weight: 700 !important;
}

.partner-cash-requests-page.cash-deposit-page .cash-deposit-summary-sep {
    color: #64748b !important;
    font-weight: 500;
}

.partner-cash-requests-page.cash-deposit-page .cash-deposit-summary-arrow {
    font-size: 12px;
}

.partner-cash-requests-page.cash-deposit-page .al-transfer-list-layout.cash-deposit-main {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    margin-top: 0;
    min-height: 520px;
}

.partner-cash-requests-page.cash-deposit-page .cash-deposit-main.is-collapsed {
    display: none !important;
}

.partner-cash-requests-page.cash-deposit-page .al-transfer-tree-section.cash-deposit-tree-section:not(.is-tree-panel-collapsed) {
    flex: 0 0 200px;
    width: 200px;
    max-width: 200px;
}

.partner-cash-requests-page.cash-deposit-page .al-transfer-tree-section .partners-tree-card {
    min-height: 420px;
    padding: 6px;
}

.partner-cash-requests-page.cash-deposit-page .cash-deposit-table-main {
    flex: 1 1 auto;
    min-width: 0;
}

.members-affiliation-combobox.is-menu-above .members-affiliation-menu {
    top: auto;
    bottom: calc(100% + 4px);
}

.page-container.cash-deposit-page {
    padding-top: 16px;
    padding-bottom: 32px;
}

.cash-deposit-body {
    padding: 12px 10px 20px;
}

.cash-deposit-page.is-store-viewer .cash-deposit-tree-section {
    flex: 0 0 200px;
    width: 200px;
    max-width: 200px;
}


.cash-deposit-page.is-store-viewer #cash-deposit-data-table [data-column="affiliation"] {
    display: none !important;
}

.members-user-create-btn {
    min-width: 98px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #b91c1c;
    border-radius: 8px;
    background: linear-gradient(135deg, #dc2626, #f87171);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.22), 0 8px 18px rgba(220, 38, 38, 0.34);
}

.members-user-create-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.36), 0 10px 22px rgba(220, 38, 38, 0.46);
}

.members-data-table-wrap {
    min-width: 840px;
}

.members-page-container .partners-table-login-id-head {
    padding-top: 4px;
    padding-bottom: 4px;
    vertical-align: middle;
}

.members-page-container .partners-table-login-id-head-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

.members-page-container .partners-table-login-id-head .partners-table-th-label {
    display: block;
    font-size: 12px;
    line-height: 1.15;
}

.members-page-container .partners-table-login-id-head .partners-column-hide-btn {
    display: flex;
    width: 100%;
    min-height: 22px;
    margin: 0;
    padding: 0 6px;
    justify-content: center;
    font-size: 11px;
    line-height: 1.2;
    box-sizing: border-box;
}

.members-page-container .members-table-scroll .custom-data-table {
    padding-top: 0;
}

.members-page-container:not(.online-members-page) .partners-table-shell .custom-data-table {
    padding-bottom: 16px;
}

.members-data-table thead th {
    min-width: 64px;
    padding-right: 5px;
    padding-left: 5px;
}

.members-data-table tbody td {
    padding-right: 5px;
    padding-left: 5px;
}

.members-data-table tfoot td,
.members-total-row td {
    background: #151b25;
    color: #e8edf8;
    font-size: 16px;
    font-weight: 700;
    padding-right: 5px;
    padding-left: 5px;
}

.members-total-row td:first-child {
    white-space: nowrap;
}

.members-total-row .members-money-label {
    font-weight: 700;
}

.members-data-table thead th:nth-child(3),
.members-data-table .members-money-cell {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

.members-data-table td[data-rolling-raw],
.members-total-row td[data-total-field="rolling"] {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.members-data-table thead th .members-head-money-label {
    color: #fbbf24;
    font-weight: 700;
}

.members-data-table thead th .members-head-point-label {
    color: #e8edf8;
    font-weight: 700;
}

.members-money-cell .members-point-value,
.members-total-row .members-point-value {
    color: #e8edf8 !important;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.members-page-container:not(.online-members-page) .members-data-table thead th {
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.12;
    padding: 4px 5px !important;
    vertical-align: middle;
}

.members-page-container:not(.online-members-page) .members-list-body .members-data-table thead th .members-head-money-label,
.members-page-container:not(.online-members-page) .members-list-body .members-data-table thead th .members-head-point-label {
    font-size: 12px;
    line-height: 1.12;
}

.members-page-container:not(.online-members-page) .members-list-body .members-data-table tbody td {
    padding: 4px 5px;
    line-height: 1.15;
    vertical-align: middle;
}

.members-page-container:not(.online-members-page) .members-list-body .members-total-row td {
    padding-top: 4px;
    padding-bottom: 4px;
}

.members-page-container:not(.online-members-page) .members-list-body .members-data-table td[data-col="block"],
.members-page-container:not(.online-members-page) .members-list-body .members-data-table td[data-col="admin_chat"] {
    padding: 3px 4px;
}

.members-page-container:not(.online-members-page) .members-list-body .members-data-table .subordinate-flag-cell-stack {
    gap: 2px;
    min-height: 0;
}

.members-page-container:not(.online-members-page) .members-list-body .members-data-table thead th.members-flag-col-head,
.members-page-container:not(.online-members-page) .members-list-body .members-data-table thead th[data-col="block"].subordinate-flag-head,
.members-page-container:not(.online-members-page) .members-list-body .members-data-table thead th[data-col="admin_chat"].subordinate-flag-head {
    padding: 3px 2px !important;
    font-size: 12px !important;
    line-height: 1.1;
}

.members-page-container:not(.online-members-page) .members-list-body .members-data-table thead th[data-col="detail"] {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    padding: 3px 2px !important;
    font-size: 12px !important;
    line-height: 1.1;
}

.members-page-container:not(.online-members-page) .members-list-body .members-money-action-stack,
.members-page-container:not(.online-members-page) .members-list-body .members-detail-action-stack {
    gap: 1px;
}

.members-page-container:not(.online-members-page) .members-list-body .members-money-row {
    gap: 2px;
    line-height: 1.1;
}

.members-page-container:not(.online-members-page) .members-list-body .members-money-row.is-point.is-compact {
    margin-top: 0;
}

.members-page-container:not(.online-members-page) .members-list-body .members-data-table .members-affiliation-trigger {
    min-height: 0;
    padding: 2px 4px;
}

.members-page-container:not(.online-members-page) .members-list-body .members-money-action-btn.members-al-deposit-btn,
.members-page-container:not(.online-members-page) .members-list-body .members-money-action-btn.members-al-withdraw-btn {
    min-height: 22px;
    padding: 0 4px;
    font-size: 11px;
}

.members-page-container:not(.online-members-page) .members-list-body .members-detail-btn,
.members-page-container:not(.online-members-page) .members-list-body .members-detail-new-window-btn {
    min-height: 22px;
    min-width: 0;
    width: 100%;
    max-width: 52px;
    padding: 0 3px;
    font-size: 10px;
    line-height: 1.1;
}

.members-page-container:not(.online-members-page) .members-list-body .members-data-table td[data-col="detail"] {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    padding: 3px 2px;
}

.members-page-container .members-list-body .subordinate-flag-open-btn {
    min-width: 48px;
    min-height: 22px;
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.25;
}

.members-page-container .members-list-body .subordinate-flag-open-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* 회원·접속자 목록: 사이트 작동 / 1:1채팅 열(헤더·본문) 동일 폭·스타일 */
.members-page-container .members-data-table thead th.members-flag-col-head,
.members-page-container .members-data-table thead th[data-col="block"].subordinate-flag-head,
.members-page-container .members-data-table thead th[data-col="admin_chat"].subordinate-flag-head {
    width: 68px;
    min-width: 68px;
    max-width: 68px;
    padding: 4px 3px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    white-space: normal;
    vertical-align: middle;
}

.members-page-container .members-data-table td[data-col="block"],
.members-page-container .members-data-table td[data-col="admin_chat"] {
    width: 68px;
    min-width: 68px;
    max-width: 68px;
    padding: 6px 4px;
    text-align: center;
    vertical-align: middle;
}

.members-page-container .members-data-table .subordinate-flag-cell-stack {
    gap: 3px;
    align-items: center;
    justify-content: center;
    min-height: 54px;
}

.members-page-container:not(.online-members-page) .members-list-body .members-data-table .subordinate-flag-cell-stack {
    min-height: 0;
}

.members-page-container:not(.online-members-page) .members-list-body .subordinate-flag-open-btn {
    min-width: 44px;
    padding: 2px 6px;
    font-size: 11px;
}

.members-page-container .members-data-table td[data-col="admin_chat"] .table-switch.subordinate-perm-grant-switch {
    flex-shrink: 0;
}

.members-page-container .members-data-table td[data-col="admin_chat"] .admin-chat-status-badge.subordinate-flag-status {
    min-width: 34px;
    padding: 1px 4px;
    font-size: 10px;
}

.members-money-cell {
    vertical-align: middle;
}

.members-money-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.members-money-row {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: baseline;
    gap: 4px;
    line-height: 0.95;
}

.members-money-label {
    color: #8b95a8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.members-money-value {
    margin: 0;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    text-align: right;
    white-space: nowrap;
}

.members-money-row.is-total .members-money-label {
    color: #d7deea;
}

.members-money-row.is-total.is-compact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    text-align: right;
}

.members-monster-api-mark {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 17px;
    height: 17px;
    border: 1.5px solid #c5cdd9;
    border-radius: 3px;
    color: #e8edf8;
    background: rgba(255, 255, 255, 0.06);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    cursor: help;
}

.members-money-row.is-total .members-money-value {
    color: #fbbf24;
    font-size: 15px;
    font-weight: 700;
}

.members-money-row.is-total.is-compact .members-money-value {
    display: block;
    width: auto;
    max-width: 100%;
    text-align: right;
}

.members-money-value.is-api-split {
    color: #fca5a5;
    animation: members-api-money-split-blink 1.2s ease-in-out infinite;
    cursor: help;
}

@keyframes members-api-money-split-blink {
    0%,
    100% {
        opacity: 1;
        color: #fecaca;
    }
    50% {
        opacity: 0.35;
        color: #ef4444;
    }
}

@media (prefers-reduced-motion: reduce) {
    .members-money-value.is-api-split {
        animation: none;
        color: #fca5a5;
    }
}

.members-money-row.is-point.is-compact {
    display: block;
    text-align: right;
    margin-top: 2px;
}

.members-money-row.is-point.is-compact .members-point-value {
    display: block;
    width: 100%;
    text-align: right;
}

.members-money-row.is-main .members-money-label {
    color: #7ea6ff;
}

.members-money-row.is-main .members-money-value {
    color: #b9d0ff;
    font-size: 13px;
    font-weight: 600;
}

.members-money-row.is-mato .members-money-label {
    color: #6fcf9c;
}

.members-money-row.is-mato .members-money-value {
    color: #a8e6c5;
    font-size: 13px;
    font-weight: 600;
}

.members-money-row.is-main,
.members-money-row.is-mato {
    opacity: 0.96;
}

.members-affiliation-combobox {
    position: relative;
    width: 130px;
    margin: 0 auto;
}

.members-affiliation-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 42px;
    padding: 0 4px;
    border: 1px solid #3a4558;
    border-radius: 8px;
    background: #121722;
    color: #e8edf8;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.members-affiliation-icon,
.members-affiliation-option img {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.partner-type-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    user-select: none;
}

.partner-type-badge--md {
    width: 24px;
    height: 24px;
    font-size: 11px;
}

.partner-type-badge--sm {
    width: 20px;
    height: 20px;
    font-size: 10px;
}

.partner-type-badge.is-partner-type-head {
    background: linear-gradient(180deg, #d4a017 0%, #9a7209 100%);
}

.partner-type-badge.is-partner-type-main-head {
    background: linear-gradient(180deg, #a855f7 0%, #7e22ce 100%);
}

.partner-type-badge.is-partner-type-sub-head {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
}

.partner-type-badge.is-partner-type-sub-head.is-partner-al-sale-minibon {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 5px;
    color: #0a0a0a;
    font-weight: 800;
    border: 0;
    box-shadow: none;
}

.partner-type-badge.is-partner-al-sale-tree {
    color: #0a0a0a;
    font-weight: 800;
}

.partner-type-badge.is-partner-type-branch {
    background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%);
}

.partner-type-badge.is-partner-type-distributor {
    background: linear-gradient(180deg, #f97316 0%, #c2410c 100%);
}

.partner-type-badge.is-partner-type-store {
    background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
}

.partner-type-badge.is-partner-type-member {
    background: linear-gradient(180deg, #e879f9 0%, #a21caf 100%);
    color: #fff;
    font-weight: 700;
}

.partner-type-badge.is-partner-type-unknown {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

.members-affiliation-option .partner-type-badge {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.subordinate-id-chip .partner-transfer-hierarchy-menu .partner-type-badge--md {
    width: 24px;
    height: 24px;
    font-size: 11px;
}

.partners-table-type .partner-type-badge {
    width: 18px;
    height: 18px;
    font-size: 9px;
    border-radius: 4px;
}

.node-content .partner-type-badge,
.partners-menu-child-icons .partner-type-badge,
.partners-menu-child-count-item .partner-type-badge {
    width: 20px;
    height: 20px;
    font-size: 10px;
}

.member-detail-info-type .partner-type-badge,
.user-management-detail-type .partner-type-badge {
    width: 20px;
    height: 20px;
    font-size: 10px;
}

.members-affiliation-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.members-affiliation-arrow {
    flex: 0 0 auto;
    color: #aeb8cc;
    font-size: 18px;
}

.members-affiliation-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 50;
    padding: 4px;
    border: 1px solid #3a4558;
    border-radius: 8px;
    background: #171d27;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
}

.members-affiliation-option {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 36px;
    padding: 3px 6px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #e8edf8;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: default;
}

.members-affiliation-option:hover {
    background: rgba(49, 93, 255, 0.16);
}

.members-affiliation-trigger:focus {
    outline: 0;
    border-color: #315dff;
}

.members-money-action-btn {
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid #3a4558;
    border-radius: 6px;
    background: #121722;
    color: #c8d0df;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.members-money-action-btn.members-al-deposit-btn,
.members-money-action-btn.members-al-withdraw-btn {
    min-width: 48px;
    min-height: 24px;
    padding: 0 6px;
    border: 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow:
        0 3px 1px -2px rgba(0, 0, 0, 0.2),
        0 2px 2px 0 rgba(0, 0, 0, 0.14),
        0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.members-money-action-btn.members-al-deposit-btn {
    background: #315dff;
    color: #fff;
}

.members-money-action-btn.members-al-withdraw-btn {
    background: #e53935;
    color: #fff;
}

.members-money-action-stack,
.members-detail-action-stack {
    display: grid;
    justify-content: center;
    gap: 3px;
}

.members-detail-action-stack {
    gap: 2px;
}

.members-detail-btn,
.members-detail-new-window-btn {
    min-width: 83px;
    min-height: 28px;
    padding: 0 6px;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    box-shadow:
        0 3px 1px -2px rgba(0, 0, 0, 0.2),
        0 2px 2px 0 rgba(0, 0, 0, 0.14),
        0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.members-detail-btn {
    background: #315dff;
}

.members-detail-new-window-btn {
    background: #0d9488;
}

.members-money-action-btn:hover {
    border-color: #315dff;
    color: #fff;
}

.members-detail-btn:hover,
.members-detail-new-window-btn:hover {
    filter: brightness(1.1);
}

.members-money-action-btn.partner-menu-manage-btn {
    min-width: 64px;
    min-height: 24px;
    padding: 0 6px;
    border: 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    box-shadow:
        0 3px 1px -2px rgba(0, 0, 0, 0.2),
        0 2px 2px 0 rgba(0, 0, 0, 0.14),
        0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.members-money-action-btn.partner-menu-manage-btn.is-suspend {
    background: #c51818;
}

.members-money-action-btn.partner-menu-manage-btn.is-unsuspend {
    background: #059669;
}

.members-money-action-btn.partner-menu-manage-btn.is-create-child {
    background: #315dff;
}

.members-money-action-btn.partner-menu-manage-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.members-money-action-btn.partner-menu-manage-btn:hover:not(:disabled) {
    border: 0;
    color: #fff;
    filter: brightness(1.08);
}

.partner-type-list-body .partners-list-topbar {
    padding: 8px 10px;
}

.partner-type-list-body .partners-table-shell {
    margin: 8px 0 12px;
}

.members-tree-section {
    flex: 0 0 200px;
    width: 200px;
    max-width: 200px;
}

.members-tree-section .partners-tree-card {
    padding: 6px;
    min-height: 0;
}

.members-tree-section .members-tree-toolbar,
.members-tree-section .bg-tree .members-tree-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    flex: 0 0 auto;
}

.members-tree-section > .members-tree-toolbar {
    margin-bottom: 8px;
}

body.admin-body.is-settlement-page .settlement-tree-section .members-tree-toolbar,
body.admin-body.is-settlement-page .settlement-tree-section > .members-tree-toolbar {
    margin-bottom: 4px;
}

.members-tree-section .members-tree-toolbar .members-tree-search-input,
.members-tree-section .bg-tree .members-tree-toolbar .members-tree-search-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.members-tree-section .members-tree-panel-toggle {
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 37px;
    padding: 0;
    border: 1px solid rgba(52, 211, 153, 0.38);
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.members-tree-section .members-tree-panel-toggle:hover {
    border-color: #34d399;
    background: rgba(16, 185, 129, 0.24);
    color: #ecfdf5;
}

.members-tree-section .members-tree-panel-toggle .mdi {
    font-size: 20px;
    line-height: 1;
}

.members-tree-section.is-tree-panel-collapsed {
    flex: 0 0 44px;
    flex-basis: 44px;
    width: 44px;
    max-width: 44px;
    min-width: 44px;
}

.cash-deposit-page .cash-deposit-tree-section.members-tree-section.is-tree-panel-collapsed,
.login-history-page .login-history-tree-section.members-tree-section.is-tree-panel-collapsed,
.date-filter-page .betting-list-tree-section.members-tree-section.is-tree-panel-collapsed,
.rolling-convert-page .rolling-convert-tree-section.members-tree-section.is-tree-panel-collapsed,
.login-history-page .login-history-tree-section.members-tree-section.is-tree-panel-collapsed,
.cash-withdraw-page .cash-withdraw-tree-section.members-tree-section.is-tree-panel-collapsed,
body.admin-body.is-settlement-page .settlement-tree-section.members-tree-section.is-tree-panel-collapsed {
    flex: 0 0 44px;
    width: 44px;
    max-width: 44px;
    min-width: 44px;
}

.members-tree-section.is-tree-panel-collapsed .partners-tree-card {
    padding: 6px 4px;
}

.members-tree-section.is-tree-panel-collapsed .members-tree-search-input,
.members-tree-section.is-tree-panel-collapsed .members-tree-panel-body {
    display: none;
}

.members-tree-section.is-tree-panel-collapsed .members-tree-toolbar {
    margin-bottom: 0;
    justify-content: center;
}

.members-tree-section.is-tree-panel-collapsed .members-tree-panel-toggle {
    width: 34px;
    height: 34px;
}

.tree-container {
    width: 100%;
}

#customtree .search-container,
#members-tree .search-container,
#cash-deposit-tree .search-container,
#cash-withdraw-tree .search-container,
#betting-list-tree .search-container,
#rolling-convert-tree .search-container,
#login-history-tree .search-container,
#money-log-standalone-tree .search-container,
.money-log-standalone-tree-section > .search-container.members-tree-toolbar,
.cash-deposit-tree-section > .search-container.members-tree-toolbar {
    margin-bottom: 8px;
}

#settlement-tree .search-container,
body.admin-body.is-settlement-page .settlement-tree-section > .search-container.members-tree-toolbar {
    margin-bottom: 4px;
}

#customtree .search-input,
#members-tree .search-input,
#cash-deposit-tree .search-input,
#cash-withdraw-tree .search-input,
#betting-list-tree .search-input,
#rolling-convert-tree .search-input,
#login-history-tree .search-input,
#money-log-standalone-tree .search-input,
#settlement-tree .search-input,
.members-tree-section .bg-tree .members-tree-search-input {
    width: 100%;
    height: 37px;
    padding: 8px 10px;
    border: 1px solid #323b49;
    border-radius: 4px;
    background: #121722;
    color: #e8edf8;
    font: inherit;
    font-size: 14px;
}

#customtree .search-input::placeholder,
#members-tree .search-input::placeholder,
#cash-deposit-tree .search-input::placeholder,
#cash-withdraw-tree .search-input::placeholder {
    color: #8590a6;
}

#customtree .search-input:focus,
#members-tree .search-input:focus,
#cash-deposit-tree .search-input:focus,
#cash-withdraw-tree .search-input:focus {
    outline: 0;
    border-color: #315dff;
}

.members-tree-section .bg-tree .search-input:focus,
.members-tree-section .bg-tree .members-tree-search-input:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.18);
}

#customtree .highlight,
#members-tree .highlight,
#cash-deposit-tree .highlight,
#cash-withdraw-tree .highlight {
    background-color: #ff0 !important;
    color: #121722 !important;
    font-weight: 700;
    display: inline;
}

#customtree .tree,
#members-tree .tree,
#cash-deposit-tree .tree,
#cash-withdraw-tree .tree,
#betting-list-tree .tree,
#rolling-convert-tree .tree,
#login-history-tree .tree,
#money-log-standalone-tree .tree,
#settlement-tree .tree {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.members-tree-section .bg-tree > ul.tree,
.members-tree-section .bg-tree ul.tree.members-tree-panel-body {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tree-node {
    list-style: none;
    margin: 0;
    padding: 0;
}

.node-content {
    display: flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 8px 5px 0;
    border-bottom: 1px solid #293241;
    transition: background 0.2s ease;
}

.node-content:hover {
    background: rgba(49, 93, 255, 0.08);
    border-radius: 4px;
}

.tree-node.is-selected > .node-content,
.node-content.is-selected {
    background: rgba(49, 93, 255, 0.16);
    border-radius: 4px;
}

.partners-tree-section .bg-tree .node-content,
.members-tree-section .bg-tree .node-content {
    position: relative;
}

.partners-tree-section .bg-tree .node-content.is-selected,
.partners-tree-section .tree-node.is-selected > .node-content {
    border-bottom-color: transparent;
}

.members-tree-section .bg-tree .node-content.is-selected,
.members-tree-section .tree-node.is-selected > .node-content {
    border-bottom-color: transparent;
    background: transparent;
}

.partners-tree-section .bg-tree .node-content.is-selected::after,
.members-tree-section .bg-tree .node-content.is-selected::after,
.members-tree-section .node-content.is-selected::after,
.partners-tree-section .tree-node.is-selected > .node-content::after,
.members-tree-section .tree-node.is-selected > .node-content::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    border-radius: 4px;
    background-image:
        linear-gradient(#fff8d0, #ffd24a),
        linear-gradient(#ffd24a, #ff9f1a),
        linear-gradient(#ffd24a, #fff8d0),
        linear-gradient(#ff9f1a, #ffd24a);
    background-repeat: no-repeat;
    background-position: left top, right top, right bottom, left bottom;
    animation: members-tree-selected-frame 2.2s linear infinite;
}

body.has-partner-tree-shop-command .partners-tree-section .tree-node[data-partner-id]:not([data-member-user-id]).is-selected > .node-content::after,
body.has-partner-tree-shop-command .members-tree-section .tree-node[data-partner-id]:not([data-member-user-id]).is-selected > .node-content::after,
body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]).is-selected > .node-content::after {
    animation: none;
    inset: auto;
    top: 5px;
    right: 3px;
    width: 14px;
    height: 14px;
    border-radius: 0;
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4a5.5 5.5 0 0 1 5.5 5.5V16a5.5 5.5 0 1 1-11 0V9.5A5.5 5.5 0 0 1 12 4z' stroke='%2334d399' stroke-width='1.75'/%3E%3Cpath d='M12 4v8.25' stroke='%2334d399' stroke-width='1.35' stroke-linecap='round'/%3E%3Cpath d='M12 4h5.5a5.5 5.5 0 0 1 5.5 5.5V12H12V4z' fill='%2334d399' fill-opacity='0.52'/%3E%3Ccircle cx='12' cy='15.25' r='1.15' fill='%2334d399' fill-opacity='0.85'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.42;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body.has-partner-tree-shop-command .partners-tree-section .tree-node[data-partner-id]:not([data-member-user-id]).is-selected > .node-content:hover::after,
body.has-partner-tree-shop-command .members-tree-section .tree-node[data-partner-id]:not([data-member-user-id]).is-selected > .node-content:hover::after,
body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]).is-selected > .node-content:hover::after {
    opacity: 0.95;
    transform: scale(1.06);
}

@keyframes members-tree-selected-frame {
    0% {
        opacity: 1;
        background-size: 0 2px, 2px 0, 0 2px, 2px 0;
        box-shadow: 0 0 0 0 rgba(255, 196, 40, 0);
    }
    12% {
        opacity: 1;
        background-size: 100% 2px, 2px 0, 0 2px, 2px 0;
        box-shadow: 0 0 8px 1px rgba(255, 210, 74, 0.45);
    }
    24% {
        opacity: 1;
        background-size: 100% 2px, 2px 100%, 0 2px, 2px 0;
        box-shadow: 0 0 10px 2px rgba(255, 196, 40, 0.55);
    }
    36% {
        opacity: 1;
        background-size: 100% 2px, 2px 100%, 100% 2px, 2px 0;
        box-shadow: 0 0 12px 2px rgba(255, 176, 30, 0.6);
    }
    48% {
        opacity: 1;
        background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
        box-shadow: 0 0 14px 3px rgba(255, 210, 74, 0.7);
    }
    58% {
        opacity: 1;
        background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
        box-shadow: 0 0 10px 2px rgba(255, 210, 74, 0.45);
    }
    70% {
        opacity: 0;
        background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
        box-shadow: 0 0 0 0 rgba(255, 196, 40, 0);
    }
    100% {
        opacity: 0;
        background-size: 0 2px, 2px 0, 0 2px, 2px 0;
        box-shadow: 0 0 0 0 rgba(255, 196, 40, 0);
    }
}

.members-tree-section .bg-tree .node-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.members-data-table-total.members-tree-filter-flash {
    color: #ffd24a;
    text-shadow: 0 0 8px rgba(255, 210, 74, 0.45);
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.members-tree-section .tree-node[data-partner-id] > .node-content {
    cursor: pointer;
}

.members-tree-section .tree-node[data-partner-id] > .node-content .tree-node-toggle {
    cursor: pointer;
}

.members-tree-filter-active-hint {
    flex: 0 1 auto;
    margin: 0;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.35;
    color: #ffd24a;
    border: 1px solid rgba(255, 210, 74, 0.35);
    border-radius: 6px;
    background: rgba(255, 210, 74, 0.08);
    white-space: nowrap;
}

.members-aff-form .members-tree-filter-active-hint {
    align-self: center;
}

.members-tree-section .bg-tree .node-content.is-selected,
.members-tree-section .tree-node.is-selected > .node-content,
.members-tree-section .node-content.is-selected {
    background: transparent;
    box-shadow: none;
    border-bottom-color: transparent;
    border-radius: 4px;
}

.toggle-icon,
.tree-node-toggle {
    cursor: pointer;
    width: 20px;
    display: inline-block;
    text-align: center;
    flex-shrink: 0;
    color: #c8d0df;
    font-size: 11px;
    line-height: 1;
    user-select: none;
}

.toggle-icon:hover,
.tree-node-toggle:hover {
    color: #fff;
}

.toggle-placeholder {
    width: 20px;
    display: inline-block;
    flex-shrink: 0;
}

.node-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    margin: 0 4px;
    flex-shrink: 0;
    cursor: pointer;
}

.node-label {
    color: #e8edf8;
    font-size: 13px;
    line-height: 1.35;
    padding: 2px 4px;
    word-break: break-all;
    cursor: pointer;
}

.node-label:has(.node-label-nickname) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.node-label-nickname {
    display: block;
    max-width: 100%;
    color: #9da8b9;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.child-nodes {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tree-node.is-expanded > .child-nodes {
    display: block;
}

.tree-node[hidden] {
    display: none !important;
}

.listview-container {
    flex: 1 1 auto;
    min-width: 0;
}

.partners-card-shell {
    border: 1px solid #293241;
    border-radius: 12px;
    background: #171d27;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    min-height: 320px;
}

#cardview.pa-5 {
    padding: 20px;
}

.cardview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cardview-item {
    flex: 1 1 calc(25% - 12px);
    min-width: 160px;
    max-width: 100%;
}

.cardview-card {
    height: 100%;
    padding: 12px 14px;
    border: 1px solid #293241;
    border-radius: 4px;
    background: #121722;
}

.card-hover-effect {
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.card-hover-effect:hover {
    background: rgba(128, 128, 128, 0.12);
}

.rounded-custom {
    border-radius: 4px;
}

.cardview-card-title h5 {
    margin: 0;
    color: #8590a6;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.cardview-divider {
    margin: 10px 0;
    border: 0;
    border-top: 1px solid #293241;
}

.cardview-card-value h4 {
    margin: 0;
    color: #e8edf8;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-all;
}

.cardview-type-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cardview-type-icon {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.cardview-empty {
    margin: 0;
    color: #8590a6;
    font-size: 13px;
    text-align: center;
}

.partners-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0 20px 40px;
    padding-top: 4px;
}

.partners-action-btn {
    min-height: 36px;
    margin-right: 12px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

.partners-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.partners-action-btn-primary {
    background: #315dff;
    color: #fff;
}

.partners-action-btn-primary:hover:not(:disabled) {
    filter: brightness(1.08);
}

.partners-action-btn-danger {
    background: #e53935;
    color: #fff;
}

.partners-action-btn-danger:hover:not(:disabled) {
    filter: brightness(1.08);
}

.partners-action-btn.ml-5 {
    margin-left: 20px;
}

.partner-modal-overlay.is-open {
    display: flex;
}

.partner-edit-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 14, 0.84);
    backdrop-filter: blur(2px);
    overflow-y: auto;
}

.partner-edit-overlay.is-open {
    display: flex;
}

.partner-edit-overlay[hidden]:not(.is-open) {
    display: none;
}

.partner-edit-field-duplicate-login.is-focus-highlight {
    border-radius: 8px;
    outline: 2px solid #137fec;
    outline-offset: 4px;
    background: rgba(19, 127, 236, 0.08);
}

.auto-dialog {
    width: min(1016px, calc(100vw - 48px));
    margin: 0 auto;
}

.auto-dialog-md {
    width: min(800px, calc(100vw - 48px));
}

#al-deposit-overlay .al-transfer-dialog,
#al-withdraw-overlay .al-transfer-dialog,
#point-reclaim-overlay .al-transfer-dialog {
    display: flex;
    flex-direction: column;
    width: min(1080px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
}

#al-deposit-overlay .al-transfer-dialog > .auto-card,
#al-withdraw-overlay .al-transfer-dialog > .auto-card,
#point-reclaim-overlay .al-transfer-dialog > .auto-card {
    max-height: calc(100vh - 48px);
}

#al-deposit-overlay .al-transfer-dialog .auto-card-header.sticky-header,
#al-withdraw-overlay .al-transfer-dialog .auto-card-header.sticky-header,
#point-reclaim-overlay .al-transfer-dialog .auto-card-header.sticky-header {
    min-height: 44px;
    padding: 0 14px;
    gap: 10px;
}

#al-deposit-overlay .al-transfer-dialog .auto-card-title,
#al-withdraw-overlay .al-transfer-dialog .auto-card-title,
#point-reclaim-overlay .al-transfer-dialog .auto-card-title {
    font-size: 18px;
}

#al-deposit-overlay .al-transfer-dialog .auto-card-scroll,
#al-withdraw-overlay .al-transfer-dialog .auto-card-scroll,
#point-reclaim-overlay .al-transfer-dialog .auto-card-scroll {
    overflow-y: auto;
}

#al-deposit-overlay .al-transfer-modal-form-column,
#al-withdraw-overlay .al-transfer-modal-form-column,
#point-reclaim-overlay .al-transfer-modal-form-column {
    flex: 0 0 200px;
    width: 200px;
}

#al-deposit-overlay .al-transfer-modal-layout .partner-al-history-panel,
#al-withdraw-overlay .al-transfer-modal-layout .partner-al-history-panel,
#point-reclaim-overlay .al-transfer-modal-layout .partner-al-history-panel {
    left: calc(200px + 14px);
}

#al-deposit-overlay #al-deposit-form,
#al-withdraw-overlay #al-withdraw-form,
#point-reclaim-overlay #point-reclaim-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    grid-template-columns: none;
}

#al-deposit-overlay .al-transfer-modal-form .auto-field,
#al-withdraw-overlay .al-transfer-modal-form .auto-field,
#point-reclaim-overlay .al-transfer-modal-form .auto-field {
    margin-bottom: 0;
    max-width: 100%;
}

#al-deposit-overlay .al-transfer-modal-form .auto-field-label,
#al-withdraw-overlay .al-transfer-modal-form .auto-field-label,
#point-reclaim-overlay .al-transfer-modal-form .auto-field-label {
    font-size: 11px;
}

#al-deposit-overlay .al-transfer-modal-form .auto-field-input,
#al-withdraw-overlay .al-transfer-modal-form .auto-field-input,
#point-reclaim-overlay .al-transfer-modal-form .auto-field-input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 32px;
    padding: 4px 8px;
    font-size: 12px;
}

#al-deposit-overlay .al-deposit-amount-actions,
#al-withdraw-overlay .al-deposit-amount-actions,
#point-reclaim-overlay .al-deposit-amount-actions {
    gap: 6px;
    margin-top: 6px;
}

#al-deposit-overlay .al-deposit-amount-btn,
#al-withdraw-overlay .al-deposit-amount-btn,
#point-reclaim-overlay .al-deposit-amount-btn {
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
}

#al-deposit-overlay .al-transfer-modal-form .al-transfer-partner-id-trigger,
#al-withdraw-overlay .al-transfer-modal-form .al-transfer-partner-id-trigger,
#point-reclaim-overlay .al-transfer-modal-form .al-transfer-partner-id-trigger {
    min-height: 34px;
    padding: 2px 3px;
    font-size: 12px;
}

#al-deposit-overlay .al-transfer-modal-form .al-transfer-partner-id-trigger .members-affiliation-label,
#al-withdraw-overlay .al-transfer-modal-form .al-transfer-partner-id-trigger .members-affiliation-label,
#point-reclaim-overlay .al-transfer-modal-form .al-transfer-partner-id-trigger .members-affiliation-label {
    font-size: 12px;
}

#al-deposit-overlay .al-transfer-partner-balance-hint,
#al-withdraw-overlay .al-transfer-partner-balance-hint,
#point-reclaim-overlay .al-transfer-partner-balance-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin-top: 6px;
    padding: 4px 0 2px;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
}

html.admin-theme-light #al-deposit-overlay .al-transfer-partner-balance-hint,
html.admin-theme-light #al-withdraw-overlay .al-transfer-partner-balance-hint,
html.admin-theme-light #point-reclaim-overlay .al-transfer-partner-balance-hint {
    color: rgba(15, 23, 42, 0.72);
}

#al-deposit-overlay .al-transfer-partner-balance-item,
#al-withdraw-overlay .al-transfer-partner-balance-item,
#point-reclaim-overlay .al-transfer-partner-balance-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

#al-deposit-overlay .al-transfer-partner-balance-label,
#al-withdraw-overlay .al-transfer-partner-balance-label,
#point-reclaim-overlay .al-transfer-partner-balance-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

html.admin-theme-light #al-deposit-overlay .al-transfer-partner-balance-label,
html.admin-theme-light #al-withdraw-overlay .al-transfer-partner-balance-label,
html.admin-theme-light #point-reclaim-overlay .al-transfer-partner-balance-label {
    color: rgba(15, 23, 42, 0.55);
}

#al-deposit-overlay .al-transfer-partner-balance-value,
#al-withdraw-overlay .al-transfer-partner-balance-value,
#point-reclaim-overlay .al-transfer-partner-balance-value {
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.92);
}

html.admin-theme-light #al-deposit-overlay .al-transfer-partner-balance-value,
html.admin-theme-light #al-withdraw-overlay .al-transfer-partner-balance-value,
html.admin-theme-light #point-reclaim-overlay .al-transfer-partner-balance-value {
    color: rgba(15, 23, 42, 0.88);
}

#al-deposit-overlay .al-transfer-partner-balance-sep,
#al-withdraw-overlay .al-transfer-partner-balance-sep,
#point-reclaim-overlay .al-transfer-partner-balance-sep {
    color: rgba(255, 255, 255, 0.35);
    user-select: none;
}

html.admin-theme-light #al-deposit-overlay .al-transfer-partner-balance-sep,
html.admin-theme-light #al-withdraw-overlay .al-transfer-partner-balance-sep,
html.admin-theme-light #point-reclaim-overlay .al-transfer-partner-balance-sep {
    color: rgba(15, 23, 42, 0.28);
}

#al-deposit-overlay .al-transfer-modal-actions,
#al-withdraw-overlay .al-transfer-modal-actions,
#point-reclaim-overlay .al-transfer-modal-actions {
    gap: 6px;
    margin-top: 6px;
}

#al-deposit-overlay .al-transfer-modal-actions .auto-card-btn,
#al-withdraw-overlay .al-transfer-modal-actions .auto-card-btn,
#point-reclaim-overlay .al-transfer-modal-actions .auto-card-btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
}

.al-transfer-modal-body {
    padding: 12px 14px !important;
}

.al-transfer-modal-layout {
    position: relative;
    min-height: min(680px, calc(100vh - 100px));
    padding-right: 0;
}

.al-transfer-modal-form-column {
    flex: 0 0 300px;
    width: 300px;
    max-width: 100%;
}

.al-transfer-modal-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.al-transfer-modal-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.al-transfer-modal-layout .partner-al-history-panel {
    position: absolute;
    top: 0;
    right: 0;
    left: calc(300px + 14px);
    bottom: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 10px 12px 8px;
    border: 1px solid #3d4a61;
    border-radius: 10px;
    background: rgba(15, 20, 30, 0.55);
}

.partner-al-history-panel {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px 8px;
    border: 1px solid #3d4a61;
    border-radius: 10px;
    background: rgba(15, 20, 30, 0.55);
}

.partner-al-history-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 10px;
    margin-bottom: 8px;
}

.partner-al-history-title {
    margin: 0;
    color: #e8edf8;
    font-size: 15px;
    font-weight: 600;
}

.partner-al-history-filters {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.partner-al-history-filter-btn-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1.15;
    font-size: 11px;
    white-space: nowrap;
}

.partner-al-history-filter-btn {
    min-width: 52px;
    min-height: 28px;
    height: auto;
    padding: 5px 10px;
    border: 3px solid #3a4558;
    border-radius: 6px;
    background: transparent;
    color: #9aa6bc;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.partner-al-history-filter-btn:hover {
    border-color: #315dff;
    color: #dce4f2;
}

.partner-al-history-filter-btn.is-active {
    border-color: #315dff;
    background: rgba(49, 93, 255, 0.22);
    color: #e8edf8;
}

.partner-al-history-filter-btn[data-partner-al-history-filter="deposit"] {
    border-color: rgba(49, 93, 255, 0.45);
    background: rgba(49, 93, 255, 0.18);
    color: #93c5fd;
}

.partner-al-history-filter-btn[data-partner-al-history-filter="deposit"]:hover {
    border-color: rgba(49, 93, 255, 0.65);
    color: #bfdbfe;
}

.partner-al-history-filter-btn[data-partner-al-history-filter="deposit"].is-active {
    border-color: rgba(49, 93, 255, 0.75);
    background: rgba(49, 93, 255, 0.28);
    color: #e8edf8;
}

.partner-al-history-filter-btn[data-partner-al-history-filter="withdraw"] {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

.partner-al-history-filter-btn[data-partner-al-history-filter="withdraw"]:hover {
    border-color: rgba(16, 185, 129, 0.6);
    color: #a7f3d0;
}

.partner-al-history-filter-btn[data-partner-al-history-filter="withdraw"].is-active {
    border-color: rgba(16, 185, 129, 0.7);
    background: rgba(16, 185, 129, 0.24);
    color: #ecfdf5;
}

.partner-al-history-totals {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0 0 8px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.partner-al-history-total {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(61, 74, 97, 0.65);
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.partner-al-history-total-label {
    font-weight: 700;
    font-size: 11px;
    line-height: 1.25;
}

.partner-al-history-total.is-deposit {
    background: rgba(49, 93, 255, 0.14);
    border-color: rgba(49, 93, 255, 0.45);
}

.partner-al-history-total.is-deposit .partner-al-history-total-label {
    color: #93c5fd;
}

.partner-al-history-total.is-withdraw {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
}

.partner-al-history-total.is-withdraw .partner-al-history-total-label {
    color: #6ee7b7;
}

.partner-al-history-total-value {
    color: #e8edf8;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.partner-al-history-total.is-deposit .partner-al-history-total-value {
    color: #93c5fd;
}

.partner-al-history-total.is-withdraw .partner-al-history-total-value {
    color: #6ee7b7;
}

.partner-al-history-table-wrap {
    position: relative;
    max-height: 420px;
    overflow: auto;
}

.al-transfer-modal-layout .partner-al-history-table-wrap {
    flex: 1 1 auto;
    min-height: 100px;
    max-height: none;
    overflow: auto;
}

.al-transfer-modal-layout .partner-al-history-pagination {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 8px;
}

.partner-al-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.partner-al-history-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 8px 6px;
    border-bottom: 1px solid #3d4a61;
    background: #2a3448;
    color: #aeb8cc;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.partner-al-history-table tbody td {
    padding: 7px 6px;
    border-bottom: 1px solid rgba(61, 74, 97, 0.55);
    color: #dce4f2;
    vertical-align: top;
}

.partner-al-history-table tbody tr:last-child td {
    border-bottom: 0;
}

.partner-al-history-table .is-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 700;
}

.partner-al-history-table td.is-num.is-deposit {
    color: #93c5fd;
}

.partner-al-history-table td.is-num.is-withdraw {
    color: #6ee7b7;
}

.partner-al-history-table th.is-balance-before,
.partner-al-history-table td.is-balance-before {
    color: #8b97ad;
    font-weight: 500;
}

.partner-al-history-table thead th.is-balance-before {
    color: #78859c;
    font-weight: 600;
}

.partner-al-history-table .is-memo {
    max-width: 120px;
    word-break: break-all;
}

.partner-al-history-table td.is-date {
    min-width: 0;
    font-size: 11px;
}

.partner-al-history-date-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.partner-al-history-date-abs {
    flex: 0 1 auto;
    min-width: 0;
    color: #9aa6bc;
    white-space: nowrap;
}

.partner-al-history-date-rel {
    flex: 0 0 auto;
    color: #7b8798;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.partner-al-history-kind {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.partner-al-history-kind.is-deposit {
    background: rgba(49, 93, 255, 0.18);
    color: #93c5fd;
}

.partner-al-history-kind.is-withdraw {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}

.partner-al-history-empty,
.partner-al-history-loading {
    margin: 12px 0 0;
    color: #9aa6bc;
    font-size: 13px;
    text-align: center;
}

.partner-al-history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.partner-al-history-page-btn {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #3a4558;
    border-radius: 6px;
    background: transparent;
    color: #c9d4ea;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.partner-al-history-page-btn:hover:not(:disabled) {
    border-color: #315dff;
    color: #fff;
}

.partner-al-history-page-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.partner-al-history-page-summary {
    color: #9aa6bc;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .al-transfer-modal-form-column {
        flex: 1 1 auto;
        width: 100%;
    }

    .al-transfer-modal-layout .partner-al-history-panel {
        position: static;
        left: auto;
        right: auto;
        width: 100%;
        margin-top: 14px;
        min-height: 280px;
        max-height: 50vh;
    }
}

#partner-create-overlay .auto-dialog,
#member-create-overlay .auto-dialog {
    width: min(720px, calc(100vw - 48px));
}

.al-deposit-amount-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.al-deposit-amount-btn {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #3a4558;
    border-radius: 6px;
    background: transparent;
    color: #315dff;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.al-deposit-amount-btn-reset {
    color: #e53935;
}

.al-withdraw-full-amount {
    color: #24e089;
}

.al-deposit-amount-btn:hover {
    border-color: #315dff;
    filter: brightness(1.08);
}

.al-transfer-modal-form .al-transfer-partner-id-chip {
    width: 100%;
    max-width: 100%;
}

.al-transfer-modal-form .al-transfer-partner-id-chip {
    position: relative;
}

.al-transfer-modal-form .al-transfer-partner-id-trigger {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 4px 4px;
    border: 2px solid rgba(49, 93, 255, 0.55);
    background: rgba(49, 93, 255, 0.1);
    cursor: pointer;
}

.al-transfer-modal-form .al-transfer-partner-id-trigger .members-affiliation-label {
    color: #e8edf8;
    font-weight: 600;
}

.al-transfer-modal-form .al-transfer-partner-hierarchy-menu {
    z-index: 30;
}

.al-transfer-modal-form .al-transfer-member-identity {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.al-transfer-modal-form button.al-transfer-member-id-trigger.node-content {
    appearance: none;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    border: 0;
    cursor: pointer;
}

.al-transfer-modal-form .al-transfer-member-id-trigger .members-affiliation-arrow {
    margin-left: auto;
    flex-shrink: 0;
}

.al-transfer-modal-form .al-transfer-member-hierarchy-menu {
    z-index: 30;
}

#al-deposit-overlay .al-deposit-amount-btn,
#al-withdraw-overlay .al-deposit-amount-btn {
    min-height: 36px;
    padding: 0 14px;
    border-width: 2px;
    font-size: 13px;
}

.auto-card {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    border: 1px solid #4a5870;
    border-radius: 12px;
    background: #222b3d;
    box-shadow:
        0 0 0 1px rgba(126, 166, 255, 0.16),
        0 18px 56px rgba(0, 0, 0, 0.72),
        0 0 36px rgba(49, 93, 255, 0.14);
    overflow: hidden;
}

.auto-card-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.auto-card-header.sticky-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    padding: 0 20px;
    border-bottom: 1px solid #3d4a61;
    background: #2a3448;
}

.auto-card-title {
    margin: 0;
    color: #e8edf8;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

#partner-create-overlay .partner-create-header-titles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    flex: 1 1 auto;
    min-width: 0;
}

#partner-create-overlay .partner-create-card-footer {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

#partner-create-overlay .partner-create-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

#partner-create-overlay .partner-create-al-sale-field {
    display: flex;
    align-items: center;
    margin: 0;
    min-width: 0;
}

#partner-create-overlay .partner-create-al-sale-field[hidden] {
    display: none;
}

#partner-create-overlay .partner-create-al-sale-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #c5d0e6;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

#partner-create-overlay .partner-create-al-sale-wrap input[type='checkbox'] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.auto-card-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #aeb8cc;
    font-size: 20px;
    cursor: pointer;
}

.auto-card-close:hover {
    background: #20283b;
    color: #fff;
}

.auto-card-body.pa-10 {
    padding: 40px;
}

#partner-edit-overlay .auto-card-body.pa-10 {
    padding: 12px 14px;
}

#partner-edit-overlay #partner-edit-form {
    gap: 10px 14px;
}

#partner-edit-overlay #partner-edit-form .auto-field {
    margin-bottom: 0;
}

#partner-edit-overlay .auto-card-footer {
    padding: 8px 12px;
    gap: 8px;
}

#partner-edit-overlay .auto-card-header.sticky-header.is-dialog-drag-handle,
#partner-create-overlay .auto-card-header.sticky-header.is-dialog-drag-handle,
#member-create-overlay .auto-card-header.sticky-header.is-dialog-drag-handle {
    cursor: grab;
    user-select: none;
    touch-action: none;
}

#partner-edit-overlay .auto-dialog.is-dragging .auto-card-header.sticky-header.is-dialog-drag-handle,
body.partner-edit-dialog-dragging #partner-edit-overlay .auto-card-header.sticky-header.is-dialog-drag-handle,
#partner-create-overlay .auto-dialog.is-dragging .auto-card-header.sticky-header.is-dialog-drag-handle,
body.partner-create-dialog-dragging #partner-create-overlay .auto-card-header.sticky-header.is-dialog-drag-handle,
#member-create-overlay .auto-dialog.is-dragging .auto-card-header.sticky-header.is-dialog-drag-handle,
body.member-create-dialog-dragging #member-create-overlay .auto-card-header.sticky-header.is-dialog-drag-handle {
    cursor: grabbing;
}

#partner-edit-overlay .auto-card-header.sticky-header.is-dialog-drag-handle .auto-card-close,
#partner-create-overlay .auto-card-header.sticky-header.is-dialog-drag-handle .auto-card-close,
#member-create-overlay .auto-card-header.sticky-header.is-dialog-drag-handle .auto-card-close {
    cursor: pointer;
}

body.partner-edit-dialog-dragging,
body.partner-create-dialog-dragging,
body.member-create-dialog-dragging {
    cursor: grabbing !important;
}

#partner-edit-overlay .auto-dialog.is-dragging,
#partner-create-overlay .auto-dialog.is-dragging,
#member-create-overlay .auto-dialog.is-dragging {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.auto-field {
    margin-bottom: 16px;
}

.auto-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.auto-field-row .auto-field {
    margin-bottom: 0;
}

.auto-field-id-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auto-field-id-row .auto-field-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.login-id-check-btn,
.join-auth-check-btn {
    flex: 0 0 auto;
    min-height: 34px;
    min-width: 72px;
    padding: 0 12px;
    white-space: nowrap;
    box-sizing: border-box;
}

#partner-create-form .auto-field:has(#create-login-id) .auto-field-id-row,
#partner-create-form .auto-field:has(#create-join-auth-code) .auto-field-id-row,
#partner-edit-form .auto-field:has(#edit-partner-join-auth-code) .auto-field-id-row {
    width: 100%;
    max-width: 100%;
}

#partner-edit-form,
#partner-create-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

#partner-edit-form .partner-edit-field-highlight {
    padding: 10px 12px 12px;
    border-radius: 10px;
}

#partner-edit-form .partner-edit-field-highlight .auto-field-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

#partner-edit-form .partner-edit-field-highlight .auto-field-input {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#partner-edit-form .partner-edit-field-login-id {
    border: 1px solid rgba(56, 189, 248, 0.55);
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.55));
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.12), 0 8px 20px rgba(14, 165, 233, 0.12);
}

#partner-edit-form .partner-edit-field-login-id .auto-field-label {
    color: #7dd3fc;
}

#partner-edit-form .partner-edit-field-login-id .auto-field-input {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(8, 47, 73, 0.65);
    color: #e0f2fe;
}

#partner-edit-form .partner-edit-field-rolling {
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: linear-gradient(
        145deg,
        rgba(0, 217, 255, 0.12) 0%,
        rgba(168, 85, 247, 0.14) 55%,
        rgba(15, 23, 42, 0.55) 100%
    );
    box-shadow:
        0 0 0 1px rgba(125, 211, 252, 0.12),
        0 8px 20px rgba(14, 165, 233, 0.08),
        0 8px 20px rgba(168, 85, 247, 0.08);
}

#partner-edit-form .partner-edit-rolling-group-title {
    display: block;
    margin-bottom: 10px;
    color: #bae6fd;
}

#partner-edit-form .partner-edit-rolling-dual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#partner-edit-form .partner-edit-rolling-cell {
    min-width: 0;
}

#partner-edit-form .partner-edit-rolling-cell-slot .auto-field-label {
    color: #67e8f9;
}

#partner-edit-form .partner-edit-rolling-cell-slot .auto-field-input {
    border-color: rgba(0, 217, 255, 0.45);
    background: rgba(8, 51, 68, 0.72);
    color: #cffafe;
}

#partner-edit-form .partner-edit-rolling-cell-slot .auto-field-input:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35);
}

#partner-edit-form .partner-edit-rolling-cell-casino .auto-field-label {
    color: #d8b4fe;
}

#partner-edit-form .partner-edit-rolling-cell-casino .auto-field-input {
    border-color: rgba(192, 132, 252, 0.48);
    background: rgba(59, 21, 92, 0.55);
    color: #f3e8ff;
}

#partner-edit-form .partner-edit-rolling-cell-casino .auto-field-input:focus {
    border-color: #c084fc;
    box-shadow: 0 0 0 2px rgba(192, 132, 252, 0.35);
}

html.admin-theme-light #partner-edit-form .partner-edit-field-rolling {
    border-color: #bae6fd;
    background: linear-gradient(135deg, #ecfeff 0%, #f5f3ff 52%, #fff 100%);
    box-shadow: 0 1px 4px rgba(14, 165, 233, 0.1);
}

html.admin-theme-light #partner-edit-form .partner-edit-rolling-group-title {
    color: #334155;
}

html.admin-theme-light #partner-edit-form .partner-edit-rolling-cell-slot .auto-field-label {
    color: #0e7490;
}

html.admin-theme-light #partner-edit-form .partner-edit-rolling-cell-slot .auto-field-input {
    border-color: #67e8f9;
    background: #fff;
    color: #0f172a;
}

html.admin-theme-light #partner-edit-form .partner-edit-rolling-cell-casino .auto-field-label {
    color: #7e22ce;
}

html.admin-theme-light #partner-edit-form .partner-edit-rolling-cell-casino .auto-field-input {
    border-color: #d8b4fe;
    background: #fff;
    color: #0f172a;
}

#partner-edit-form .partner-edit-field-losing {
    border: 1px solid rgba(251, 146, 60, 0.52);
    background: linear-gradient(
        145deg,
        rgba(251, 146, 60, 0.16) 0%,
        rgba(244, 63, 94, 0.12) 48%,
        rgba(15, 23, 42, 0.55) 100%
    );
    box-shadow:
        0 0 0 1px rgba(253, 186, 116, 0.14),
        0 8px 20px rgba(249, 115, 22, 0.1),
        0 8px 20px rgba(244, 63, 94, 0.08);
}

#partner-edit-form .partner-edit-field-losing .auto-field-label {
    color: #fdba74;
}

#partner-edit-form .partner-edit-field-losing .auto-field-input {
    border-color: rgba(251, 146, 60, 0.48);
    background: rgba(67, 20, 7, 0.58);
    color: #ffedd5;
}

#partner-edit-form .partner-edit-field-losing .auto-field-input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.35);
}

html.admin-theme-light #partner-edit-form .partner-edit-field-losing {
    border-color: #fdba74;
    background: linear-gradient(135deg, #fff7ed 0%, #ffe4e6 52%, #fff 100%);
    box-shadow: 0 1px 4px rgba(249, 115, 22, 0.12);
}

html.admin-theme-light #partner-edit-form .partner-edit-field-losing .auto-field-label {
    color: #c2410c;
}

html.admin-theme-light #partner-edit-form .partner-edit-field-losing .auto-field-input {
    border-color: #fdba74;
    background: #fff;
    color: #0f172a;
}

#partner-edit-form .partner-rate-bounds-label-row,
#partner-create-form .partner-rate-bounds-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

#partner-edit-form .partner-rate-bounds-label-row .auto-field-label,
#partner-create-form .partner-rate-bounds-label-row .auto-field-label {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

#partner-edit-form .partner-rate-bounds,
#partner-create-form .partner-rate-bounds {
    flex-shrink: 0;
    padding: 5px 11px;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.75);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(245, 158, 11, 0.12));
    box-shadow: 0 0 0 1px rgba(254, 243, 199, 0.08), 0 4px 14px rgba(245, 158, 11, 0.22);
    color: #fef08a;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

#partner-edit-form .partner-edit-field-highlight .partner-rate-bounds {
    color: #fffbeb;
    border-color: rgba(253, 224, 71, 0.85);
    background: linear-gradient(135deg, rgba(253, 224, 71, 0.35), rgba(217, 119, 6, 0.2));
    box-shadow: 0 0 0 1px rgba(255, 251, 235, 0.12), 0 4px 16px rgba(251, 191, 36, 0.35);
}

#partner-edit-form .partner-edit-field-rate-bounds .partner-rate-bounds-label-row {
    margin-bottom: 8px;
}

#partner-create-form .partner-create-field-rate-bounds .partner-rate-bounds-label-row {
    margin-bottom: 4px;
}

#partner-create-form {
    gap: 8px 12px;
    padding: 14px 16px 10px;
}

#partner-create-form .auto-field-label {
    margin-bottom: 4px;
    font-size: 12px;
}

#partner-create-form .auto-field-input,
#partner-create-form .auto-field-type {
    min-height: 34px;
    padding: 0 12px;
}

#partner-create-form .auto-field-select {
    background-position: right 10px center;
    padding-right: 32px;
}

#al-deposit-form,
#al-withdraw-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

#partner-create-form .partner-create-bank-row,
#partner-create-form .partner-create-memo-field {
    grid-column: 1 / -1;
}

#partner-create-form .partner-create-bank-row {
    display: grid;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
    padding-right: 32px;
}

#al-deposit-form,
#al-withdraw-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

#partner-create-form .partner-create-bank-row,
#partner-create-form .partner-create-memo-field {
    grid-column: 1 / -1;
}

#partner-create-form .partner-create-bank-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

#partner-create-form .partner-create-memo-field .auto-field-input {
    min-height: 64px;
    height: 64px;
    padding: 6px 12px;
    line-height: 1.4;
    resize: none;
}

#partner-create-form .partner-create-memo-field .auto-field-label-hint {
    margin-left: 6px;
    color: #7d8798;
    font-weight: 400;
}

#partner-create-form .partner-create-parent-info,
#member-create-form .partner-create-parent-info {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    padding: 8px 12px 10px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #151b28;
}

.partner-create-parent-heading {
    margin: 0 0 8px;
    color: #ffd28b;
    font-size: 12px;
    font-weight: 700;
}

.partner-create-parent-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px 14px;
}

#partner-create-form .partner-create-parent-grid > .auto-field,
#member-create-form .partner-create-parent-grid > .auto-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 0;
}

#partner-create-form .partner-create-parent-grid .auto-field-label,
#member-create-form .partner-create-parent-grid .auto-field-label {
    margin-bottom: 0;
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
}

#partner-create-form .partner-create-parent-grid .auto-field-input,
#partner-create-form .partner-create-parent-grid .auto-field-type,
#member-create-form .partner-create-parent-grid .auto-field-input,
#member-create-form .partner-create-parent-grid .auto-field-type {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 32px;
    height: 32px;
    padding: 0 10px;
}

#partner-create-form .partner-create-parent-grid .auto-field-type-icon,
#member-create-form .partner-create-parent-grid .auto-field-type-icon {
    width: 22px;
    height: 22px;
}

#partner-create-form .partner-create-parent-grid .auto-field-type span,
#member-create-form .partner-create-parent-grid .auto-field-type span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-create-parent-rates {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #323b49;
}

.partner-create-parent-rate-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex: 1 1 calc(25% - 16px);
    min-width: 148px;
}

.partner-create-parent-rate-cell .auto-field-label {
    margin-bottom: 0;
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
    color: #9aa3b5;
}

.partner-create-parent-rate-value {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    color: #f0f4fa;
    white-space: nowrap;
}

#partner-create-form > .auto-field:has(#create-phone),
#partner-create-form .partner-create-bank-row > .auto-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

#partner-create-form > .auto-field:has(#create-phone) .auto-field-label,
#partner-create-form .partner-create-bank-row > .auto-field .auto-field-label {
    margin-bottom: 0;
    flex: 0 0 auto;
    min-width: 76px;
    font-size: 12px;
    white-space: nowrap;
}

#partner-create-form > .auto-field:has(#create-phone) .auto-field-input,
#partner-create-form .partner-create-bank-row > .auto-field .auto-field-input,
#partner-create-form .partner-create-bank-row > .auto-field .auto-field-select {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 34px;
    height: 34px;
}

#partner-edit-form .auto-field,
#partner-create-form .auto-field,
#al-deposit-form .auto-field,
#al-withdraw-form .auto-field,
#member-create-form .auto-field {
    margin-bottom: 0;
}

#al-deposit-form .auto-field:nth-of-type(4),
#al-withdraw-form .auto-field:nth-of-type(4),
#al-deposit-form .auto-field:nth-of-type(6),
#al-withdraw-form .auto-field:nth-of-type(6) {
    grid-column: 1 / -1;
}

@media (max-width: 720px) {
    #al-deposit-form,
    #al-withdraw-form {
        grid-template-columns: 1fr;
    }

    #al-deposit-form .auto-field,
    #al-withdraw-form .auto-field {
        grid-column: 1 / -1;
    }
}

#member-create-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 14px 16px 10px;
}

#member-create-form .auto-field-label {
    margin-bottom: 4px;
    font-size: 12px;
}

#member-create-form .auto-field-input {
    min-height: 34px;
    padding: 0 12px;
}

.auto-field-label {
    display: block;
    margin-bottom: 8px;
    color: #aeb8cc;
    font-size: 13px;
    font-weight: 500;
}

.auto-field-input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #121722;
    color: #e8edf8;
    font: inherit;
    font-size: 14px;
}

.auto-field-input.is-readonly {
    background: #0f131c;
    color: #8590a6;
    cursor: default;
}

.auto-field-type {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
}

.auto-field-type-icon {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.auto-field-type span:not(.partner-type-badge) {
    color: #e8edf8;
    font-size: 14px;
    font-weight: 500;
}

.auto-field-input:focus {
    outline: 0;
    border-color: #315dff;
}

.auto-field-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #121722;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23aeb8cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 36px;
}

.auto-card-divider {
    border-top: 2px solid #293241;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.auto-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #3d4a61;
    background: #2a3448;
}

.auto-card-btn {
    min-height: 36px;
    padding: 0 18px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: transparent;
    color: #e8edf8;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.auto-card-btn-primary {
    border-color: #315dff;
    color: #315dff;
}

.auto-card-btn-cancel {
    color: #aeb8cc;
}

#partner-create-overlay .auto-card-btn-primary,
#partner-edit-overlay .auto-card-btn-primary,
#partner-password-overlay .auto-card-btn-primary,
#member-create-overlay .auto-card-btn-primary,
#al-deposit-overlay .auto-card-btn-primary,
#al-withdraw-overlay .auto-card-btn-primary,
#member-al-deposit-overlay .auto-card-btn-primary,
#member-al-withdraw-overlay .auto-card-btn-primary {
    border-color: #315dff;
    background: #315dff;
    color: #fff;
    font-weight: 700;
}

#partner-create-overlay .auto-card-btn-primary:hover,
#partner-edit-overlay .auto-card-btn-primary:hover,
#partner-password-overlay .auto-card-btn-primary:hover,
#member-create-overlay .auto-card-btn-primary:hover,
#al-deposit-overlay .auto-card-btn-primary:hover,
#al-withdraw-overlay .auto-card-btn-primary:hover,
#member-al-deposit-overlay .auto-card-btn-primary:hover,
#member-al-withdraw-overlay .auto-card-btn-primary:hover {
    filter: none;
    background: #4a72ff;
    border-color: #4a72ff;
    color: #fff;
}

#partner-self-deposit-overlay .auto-card-btn-cancel,
#partner-self-cash-overlay .auto-card-btn-cancel,
#partner-create-overlay .auto-card-btn-cancel,
#partner-edit-overlay .auto-card-btn-cancel,
#partner-password-overlay .auto-card-btn-cancel,
#member-create-overlay .auto-card-btn-cancel,
#al-deposit-overlay .auto-card-btn-cancel,
#al-withdraw-overlay .auto-card-btn-cancel,
#member-al-deposit-overlay .auto-card-btn-cancel,
#member-al-withdraw-overlay .auto-card-btn-cancel {
    border-color: #4b5568;
    background: #4b5568;
    color: #fff;
}

#partner-self-deposit-overlay .auto-card-btn-cancel:hover,
#partner-self-cash-overlay .auto-card-btn-cancel:hover,
#partner-create-overlay .auto-card-btn-cancel:hover,
#partner-edit-overlay .auto-card-btn-cancel:hover,
#partner-password-overlay .auto-card-btn-cancel:hover,
#member-create-overlay .auto-card-btn-cancel:hover,
#al-deposit-overlay .auto-card-btn-cancel:hover,
#al-withdraw-overlay .auto-card-btn-cancel:hover,
#member-al-deposit-overlay .auto-card-btn-cancel:hover,
#member-al-withdraw-overlay .auto-card-btn-cancel:hover {
    filter: none;
    background: #64748b;
    border-color: #64748b;
    color: #fff;
}

/* 파트너·회원 생성/수정 모달 — 관리자 라이트 모드 */
html.admin-theme-light .partner-edit-overlay {
    background: rgba(15, 23, 42, 0.35);
}

html.admin-theme-light #partner-create-overlay .auto-card,
html.admin-theme-light #partner-edit-overlay .auto-card,
html.admin-theme-light #member-create-overlay .auto-card,
html.admin-theme-light #partner-password-overlay .auto-card {
    border-color: var(--line);
    background: var(--panel);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.06),
        0 18px 48px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light #partner-create-overlay .auto-card-header.sticky-header,
html.admin-theme-light #partner-edit-overlay .auto-card-header.sticky-header,
html.admin-theme-light #member-create-overlay .auto-card-header.sticky-header,
html.admin-theme-light #partner-password-overlay .auto-card-header.sticky-header {
    border-bottom-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light #partner-create-overlay .auto-card-title,
html.admin-theme-light #partner-edit-overlay .auto-card-title,
html.admin-theme-light #member-create-overlay .auto-card-title,
html.admin-theme-light #partner-password-overlay .auto-card-title {
    color: var(--text);
}

html.admin-theme-light #partner-create-overlay .partner-create-al-sale-wrap {
    color: var(--text);
}

html.admin-theme-light #partner-create-overlay .auto-card-close,
html.admin-theme-light #partner-edit-overlay .auto-card-close,
html.admin-theme-light #member-create-overlay .auto-card-close,
html.admin-theme-light #partner-password-overlay .auto-card-close {
    color: var(--muted);
}

html.admin-theme-light #partner-create-overlay .auto-card-close:hover,
html.admin-theme-light #partner-edit-overlay .auto-card-close:hover,
html.admin-theme-light #member-create-overlay .auto-card-close:hover,
html.admin-theme-light #partner-password-overlay .auto-card-close:hover {
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light #partner-create-overlay .auto-card-footer,
html.admin-theme-light #partner-edit-overlay .auto-card-footer,
html.admin-theme-light #member-create-overlay .auto-card-footer,
html.admin-theme-light #partner-password-overlay .auto-card-footer {
    border-top-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light #partner-create-overlay .auto-card-btn-cancel,
html.admin-theme-light #partner-edit-overlay .auto-card-btn-cancel,
html.admin-theme-light #member-create-overlay .auto-card-btn-cancel,
html.admin-theme-light #partner-password-overlay .auto-card-btn-cancel {
    border-color: #cbd5e1;
    background: #fff;
    color: #475569;
}

html.admin-theme-light #partner-create-overlay .auto-card-btn-cancel:hover,
html.admin-theme-light #partner-edit-overlay .auto-card-btn-cancel:hover,
html.admin-theme-light #member-create-overlay .auto-card-btn-cancel:hover,
html.admin-theme-light #partner-password-overlay .auto-card-btn-cancel:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
}

html.admin-theme-light #partner-create-form .auto-field-label,
html.admin-theme-light #partner-edit-form .auto-field-label,
html.admin-theme-light #member-create-form .auto-field-label {
    color: #475569;
}

html.admin-theme-light #partner-create-form .auto-field-input:not(.auto-field-select),
html.admin-theme-light #partner-create-form .auto-field-type,
html.admin-theme-light #partner-edit-form .auto-field-input:not(.auto-field-select),
html.admin-theme-light #partner-edit-form .auto-field-type,
html.admin-theme-light #member-create-form .auto-field-input:not(.auto-field-select),
html.admin-theme-light #member-create-form .auto-field-type {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

html.admin-theme-light #partner-create-form .auto-field-input.is-readonly,
html.admin-theme-light #partner-edit-form .auto-field-input.is-readonly,
html.admin-theme-light #member-create-form .auto-field-input.is-readonly {
    background: #f1f5f9;
    color: #64748b;
}

html.admin-theme-light #partner-create-form .partner-create-bank-row .auto-field-input.is-readonly,
html.admin-theme-light #partner-edit-form #edit-partner-bank-name.auto-field-input.is-readonly {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
    cursor: default;
}

html.admin-theme-light #partner-create-form .auto-field-select,
html.admin-theme-light #partner-edit-form .auto-field-select,
html.admin-theme-light #member-create-form .auto-field-select {
    border-color: var(--line);
    color: var(--text);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
}

html.admin-theme-light #partner-create-form .auto-field-select option,
html.admin-theme-light #partner-edit-form .auto-field-select option,
html.admin-theme-light #member-create-form .auto-field-select option {
    background: #fff;
    color: #1f2937;
}

html.admin-theme-light #partner-create-form .partner-create-parent-info,
html.admin-theme-light #member-create-form .partner-create-parent-info {
    border-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light .partner-create-parent-heading {
    color: #b45309;
}

html.admin-theme-light .partner-create-parent-rates {
    border-top-color: var(--line);
}

html.admin-theme-light .partner-create-parent-rate-cell .auto-field-label {
    color: #64748b;
}

html.admin-theme-light .partner-create-parent-rate-value {
    color: var(--text);
}

html.admin-theme-light #partner-create-form .auto-field-type span:not(.partner-type-badge),
html.admin-theme-light #partner-edit-form .auto-field-type span:not(.partner-type-badge),
html.admin-theme-light #member-create-form .auto-field-type span:not(.partner-type-badge) {
    color: #1e293b;
    font-weight: 600;
}

html.admin-theme-light #partner-create-form .auto-field-type.is-readonly .partner-type-badge,
html.admin-theme-light #partner-edit-form .auto-field-type.is-readonly .partner-type-badge,
html.admin-theme-light #member-create-form .auto-field-type.is-readonly .partner-type-badge {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.14);
}

html.admin-theme-light #partner-create-form .partner-rate-bounds,
html.admin-theme-light #partner-edit-form .partner-rate-bounds {
    border-color: #fcd34d;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    box-shadow: 0 1px 4px rgba(180, 83, 9, 0.12);
}

html.admin-theme-light #partner-create-form .auto-field-hint,
html.admin-theme-light #partner-edit-form .auto-field-hint {
    color: var(--muted);
}

html.admin-theme-light #partner-create-form .partner-create-memo-field .auto-field-label-hint {
    color: var(--muted);
}

.auto-card-btn:hover {
    filter: brightness(1.08);
}

.partner-modal-overlay[hidden]:not(.is-open) {
    display: none;
}

.partner-modal-dialog {
    width: min(640px, calc(100vw - 32px));
}

.partner-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.partner-form-field {
    display: grid;
    gap: 8px;
}

.partner-form-field span {
    color: #c8d0df;
    font-size: 13px;
}

.partner-form-field input {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #121722;
    color: #e8edf8;
    font: inherit;
    font-size: 14px;
}

.partner-form-field input:focus {
    outline: 0;
    border-color: #315dff;
}

.partner-modal-hint {
    margin: 0 0 4px;
    color: #8590a6;
    font-size: 13px;
}

.partners-list-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 320px;
}

.partners-table-shell {
    margin: 0 20px 24px;
    border: 1px solid #293241;
    border-radius: 12px;
    background: #171d27;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.partners-column-hide-btn {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin: 0 0 12px 16px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #315dff;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.partners-column-hide-btn:hover {
    filter: brightness(1.08);
}

.auto-dialog-sm {
    width: min(380px, calc(100vw - 48px));
}

.partners-column-hide-card {
    max-height: calc(100vh - 48px);
}

.partners-column-hide-card .auto-card-header.sticky-header {
    min-height: 46px;
    padding: 0 16px;
}

#settlement-column-hide-overlay .settlement-column-hide-card .settlement-column-hide-header.sticky-header {
    background: #151b25;
    border-bottom-color: #2a3448;
}

#settlement-column-hide-overlay .settlement-column-hide-header.is-dialog-drag-handle {
    cursor: grab;
    user-select: none;
    touch-action: none;
}

#settlement-column-hide-overlay .settlement-column-hide-dialog.is-dragging .settlement-column-hide-header.is-dialog-drag-handle,
body.settlement-dialog-dragging #settlement-column-hide-overlay .settlement-column-hide-header.is-dialog-drag-handle {
    cursor: grabbing;
}

#settlement-column-hide-overlay .settlement-column-hide-header.is-dialog-drag-handle .auto-card-close {
    cursor: pointer;
}

body.settlement-dialog-dragging {
    cursor: grabbing !important;
}

#settlement-column-hide-overlay .settlement-column-hide-dialog.is-dragging {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

html.admin-theme-light #settlement-column-hide-overlay .settlement-column-hide-card .settlement-column-hide-header.sticky-header {
    background: #c8d0dc;
    border-bottom-color: #a8b4c4;
}

html.admin-theme-light #settlement-column-hide-overlay .settlement-column-hide-card .auto-card-title {
    color: #1e293b;
}

html.admin-theme-light #settlement-column-hide-overlay .settlement-column-hide-card .auto-card-close {
    color: #475569;
}

.partners-column-hide-card .auto-card-title {
    font-size: 17px;
}

.partners-column-hide-card .auto-card-footer {
    padding: 12px 16px;
}

.partners-column-hide-card .auto-card-btn {
    min-height: 32px;
    padding: 0 14px;
    font-size: 13px;
}

.partners-column-hide-body {
    max-height: calc(100vh - 180px);
    padding: 6px 0;
    overflow-y: auto;
}

.partners-column-hide-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.partners-column-hide-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    padding: 4px 16px;
    border-bottom: 1px solid #232b39;
    color: #e8edf8;
    font-size: 13px;
    line-height: 1.25;
}

.partners-column-hide-item.is-locked {
    opacity: 0.55;
}

.partners-column-hide-item.is-locked .partners-column-hide-switch {
    pointer-events: none;
    cursor: not-allowed;
}

.partners-column-hide-item.is-locked span:first-child {
    color: #94a3b8;
}

.partners-column-hide-item:last-child {
    border-bottom: 0;
}

.partners-column-hide-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.partners-column-hide-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.partners-column-hide-switch-track {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #3a4558;
    transition: background 0.2s ease;
}

.partners-column-hide-switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.partners-column-hide-switch input:checked + .partners-column-hide-switch-track {
    background: #315dff;
}

.partners-column-hide-switch input:checked + .partners-column-hide-switch-track::after {
    transform: translateX(20px);
}

.flex-grow-1.overflow-x-auto {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
}

.custom-data-table {
    width: 100%;
    min-width: 960px;
    padding: 16px 0 0;
}

.partners-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
    font-size: 13px;
}

.partners-data-table thead th {
    min-width: 88px;
    padding: 14px 10px;
    border-bottom: 1px solid #293241;
    background: #151b25;
    color: #aeb8cc;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    vertical-align: middle;
}

.partners-data-table.inquiry-list-table thead th {
    padding: 4px 5px !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    vertical-align: middle;
}

.partners-data-table.inquiry-list-table thead th.inquiry-list-select-head {
    vertical-align: bottom;
}

.partners-data-table.inquiry-list-table .inquiry-list-select-head-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
}

.partners-data-table.inquiry-macro-table thead th {
    padding: 6px 6px !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    vertical-align: middle;
}

.partners-data-table.inquiry-macro-table thead th.partners-table-login-id-head {
    padding-top: 4px;
    vertical-align: bottom;
}

.partners-data-table.inquiry-macro-table .partners-table-th-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
}

.partners-data-table.inquiry-macro-table .partners-table-login-id-head .partners-column-hide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 22px;
    margin: 0 auto 3px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    box-sizing: border-box;
}

.partners-data-table.inquiry-macro-table .partners-table-login-id-head-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
}

.partners-data-table.inquiry-macro-table .partners-table-th-label {
    display: block;
    text-align: center;
}

.partners-page-container .custom-data-table {
    padding-top: 0;
}

.partners-page-container .partners-table-login-id-head {
    padding-top: 8px;
    vertical-align: middle;
}

.partners-page-container .partners-table-login-id-head-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.partners-page-container .partners-table-login-id-head .partners-table-th-label {
    display: block;
    line-height: 1.35;
}

.partners-page-container .partners-table-login-id-head .partners-column-hide-btn {
    display: flex;
    width: 100%;
    min-height: 28px;
    margin: 0;
    padding: 0 8px;
    justify-content: center;
    font-size: 12px;
    line-height: 1.2;
    box-sizing: border-box;
}

.partners-data-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #232b39;
    color: #e8edf8;
    vertical-align: middle;
}

.partners-data-table tbody tr:hover {
    background: rgba(49, 93, 255, 0.06);
}

.partners-data-table-empty {
    padding: 32px 16px !important;
    color: #8590a6;
    text-align: center;
}

.subordinate-expand-col,
.subordinate-expand-cell {
    width: 42px;
    min-width: 42px;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

.subordinate-data-table thead .subordinate-expand-col {
    width: 1%;
    min-width: 0;
    padding-left: 2px !important;
    padding-right: 2px !important;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.subordinate-expand-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.subordinate-root-create-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #b91c1c;
    border-radius: 8px;
    background: linear-gradient(135deg, #dc2626, #f87171);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    gap: 6px;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.22), 0 6px 14px rgba(220, 38, 38, 0.28);
}

.subordinate-root-create-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.36), 0 8px 18px rgba(220, 38, 38, 0.4);
}

.subordinate-expand-col .subordinate-aff-toggle {
    height: auto;
    min-height: 36px;
    padding: 4px 4px;
    gap: 3px;
    font-size: 13px;
    white-space: normal;
}

.subordinate-expand-col .toggle-all-shops-label {
    display: block;
    line-height: 1.12;
    text-align: center;
}

.shop-tree-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 999px;
    background: transparent;
    color: #10b981;
    cursor: pointer;
}

.shop-tree-toggle:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.shop-tree-toggle .mdi {
    font-size: 14px;
    line-height: 1;
}

.shop-tree-toggle .shop-tree-icon-collapse,
.shop-tree-toggle[aria-expanded="true"] .shop-tree-icon-expand {
    display: none;
}

.shop-tree-toggle[aria-expanded="true"] .shop-tree-icon-collapse {
    display: inline-flex;
}

.subordinate-root-row {
    background: #252d3a;
}

.subordinate-child-row {
    background: #131920;
}

.subordinate-child-row.is-collapsed {
    display: none;
}

.subordinate-data-table tbody tr:hover {
    background: #2d3644;
}

.subordinate-data-table tbody tr.subordinate-row.is-partner-blocked > td {
    background-color: rgba(127, 29, 29, 0.16) !important;
}

.subordinate-data-table tbody tr.subordinate-row.is-partner-blocked:hover > td {
    background-color: rgba(127, 29, 29, 0.24) !important;
}

.subordinate-data-table tbody tr.subordinate-row.is-partner-blocked > td:first-child {
    box-shadow: inset 3px 0 0 rgba(239, 68, 68, 0.9);
}

.subordinate-data-table tbody tr.subordinate-row.is-partner-blocked .subordinate-id-chip,
.subordinate-data-table tbody tr.subordinate-row.is-partner-blocked .subordinate-stat-pill {
    opacity: 0.88;
}

html.admin-theme-light .subordinate-data-table tbody tr.subordinate-row.is-partner-blocked > td {
    background-color: rgba(254, 226, 226, 0.72) !important;
}

html.admin-theme-light .subordinate-data-table tbody tr.subordinate-row.is-partner-blocked:hover > td {
    background-color: rgba(254, 202, 202, 0.82) !important;
}

.subordinate-data-table tbody tr.subordinate-total-row,
.subordinate-data-table tbody tr.subordinate-total-row:hover {
    background: rgba(40, 47, 57, 0.5);
}

.subordinate-total-row td {
    font-weight: 700;
}

.subordinate-grand-total-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
}

.subordinate-grand-total-toggle-input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #137fec;
}

.subordinate-grand-total-row:not(.is-grand-total-values-visible) td[data-col="total_holdings"] > *,
.subordinate-grand-total-row:not(.is-grand-total-values-visible) td[data-col="own_holdings"] > *,
.subordinate-grand-total-row:not(.is-grand-total-values-visible) td[data-col="under_holdings"] > *,
.subordinate-grand-total-row:not(.is-grand-total-values-visible) td[data-col="members"] > *,
.subordinate-grand-total-row:not(.is-grand-total-values-visible) td[data-col="rolling"] > *,
.subordinate-grand-total-row:not(.is-grand-total-values-visible) td[data-col="losing"] > * {
    visibility: hidden;
}

.subordinate-total-row--excl-al-sale .subordinate-total-label {
    font-size: 12px;
    letter-spacing: -0.03em;
    white-space: normal;
    vertical-align: middle;
}

.subordinate-total-excl-al-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.35;
    gap: 2px;
}

.subordinate-total-excl-al-sub {
    font-size: 11px;
    letter-spacing: -0.02em;
}

.subordinate-total-label {
    color: #fde68a;
    text-align: center;
    white-space: nowrap;
}

.subordinate-total-row .subordinate-holdings-cell {
    background: rgba(6, 182, 212, 0.2);
    font-size: 16px;
}

.subordinate-total-row .subordinate-own-cell {
    background: rgba(6, 182, 212, 0.15);
    color: #a5f3fc;
}

.subordinate-total-row .subordinate-under-cell {
    background: rgba(6, 182, 212, 0.1);
    color: #a5f3fc;
}

.subordinate-total-muted {
    color: #9da8b9;
}

.subordinate-total-row .subordinate-member-count-pill {
    color: #d1d5db;
}

.subordinate-total-row .subordinate-member-money {
    color: #6ee7b7;
}

.subordinate-total-row .subordinate-member-rolling {
    color: #fb923c;
}

.subordinate-child-row:hover {
    background: #1a222c;
}

.subordinate-id-cell {
    text-align: left;
}

.subordinate-child-row[data-depth="1"] .subordinate-id-cell {
    padding-left: 24px;
}

.subordinate-child-row[data-depth="2"] .subordinate-id-cell {
    padding-left: 40px;
}

.subordinate-child-row[data-depth="3"] .subordinate-id-cell {
    padding-left: 56px;
}

.subordinate-child-row[data-depth="4"] .subordinate-id-cell,
.subordinate-child-row[data-depth="5"] .subordinate-id-cell {
    padding-left: 72px;
}

.subordinate-id-chip {
    width: 148px;
    margin: 0;
}

.rate-change-log-table.partners-data-table thead th,
.rate-change-log-table.notice-admin-table thead th {
    font-size: 12px;
}

.rate-change-log-table th.rate-change-affiliation-head,
.rate-change-log-table td.rate-change-affiliation-cell {
    min-width: 168px;
    width: 168px;
}

.rate-change-log-table td.rate-change-login-id {
    color: #fde047;
    font-weight: 800;
}

.rate-change-log-table td.rate-change-game-kind {
    color: #38bdf8;
    font-weight: 700;
}

.rate-change-log-table td.rate-change-rate-kind {
    color: #c4b5fd;
    font-weight: 700;
}

.rate-change-log-table td.rate-change-rate-after {
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.subordinate-id-chip .subordinate-id-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 0;
}

.subordinate-id-type {
    color: #9da8b9;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.subordinate-id-chip .members-affiliation-label {
    font-weight: 600;
}

.subordinate-id-nickname,
.members-affiliation-label-nickname {
    max-width: 100%;
    overflow: hidden;
    color: #9da8b9;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.members-affiliation-label-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
    max-width: 100%;
    line-height: 1.2;
}

.members-affiliation-label-stack .members-affiliation-label-id {
    max-width: 100%;
    overflow: hidden;
    font-weight: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.members-affiliation-label-stack.is-inline {
    display: inline-flex;
    vertical-align: top;
}

.members-affiliation-option-text {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.2em 0.35em;
    min-width: 0;
    text-align: left;
}

.members-login-detail-link.has-id-nickname-stack {
    display: inline-block;
    line-height: 1.25;
    white-space: pre-line;
}

.subordinate-holdings-head,
.subordinate-holdings-cell {
    background: rgba(6, 182, 212, 0.12);
    font-weight: 700;
}

.partners-data-table thead th.subordinate-holdings-head,
.partners-data-table tbody td.subordinate-holdings-cell {
    color: #ffeb3b;
}

.subordinate-holdings-subhead {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #9da8b9;
    line-height: 1.2;
}

.subordinate-holdings-rolling-line {
    margin-top: 2px;
    color: #fb923c;
    font-size: 12px;
    line-height: 1.15;
}

.subordinate-list-body .subordinate-data-table .subordinate-holdings-rolling-line {
    margin-top: 0;
}

.subordinate-own-head,
.subordinate-own-cell {
    background: rgba(6, 182, 212, 0.09);
    color: #a5f3fc;
    font-weight: 600;
}

.subordinate-under-head,
.subordinate-under-cell {
    background: rgba(6, 182, 212, 0.06);
    color: #a5f3fc;
    font-weight: 600;
}

/* 파트너(하부) 목록: 테이블 영역 내부 스크롤 + 헤더 고정 (하부 펼침 포함) */
.subordinate-list-body .subordinate-table-scroll {
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.subordinate-list-body .subordinate-table-scroll .custom-data-table {
    padding-top: 0;
}

.subordinate-list-body .subordinate-data-table {
    --subordinate-thead-row2-top: 18px;
}

.subordinate-list-body .subordinate-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 12;
    background-color: #151b25;
    box-shadow: 0 1px 0 #293241;
}

.subordinate-list-body .subordinate-data-table thead tr.subordinate-head-perm-sub > th {
    top: var(--subordinate-thead-row2-top, 38px);
    z-index: 13;
    vertical-align: middle;
    border-top: 0;
    box-shadow:
        0 1px 0 #293241,
        0 8px 16px -4px rgba(0, 0, 0, 0.45);
}

.subordinate-list-body .subordinate-data-table thead tr.subordinate-head-primary > th.subordinate-perm-group-head {
    z-index: 14;
    vertical-align: bottom;
    padding-top: 2px;
    padding-bottom: 0;
    line-height: 1.1;
    box-shadow: none;
    border-left: 1px solid #293241;
    border-right: 1px solid #293241;
    border-bottom: 1px solid #293241;
}

.subordinate-list-body .subordinate-data-table thead tr.subordinate-head-perm-sub > th:first-child {
    border-left: 1px solid #293241;
}

.subordinate-list-body .subordinate-data-table thead tr.subordinate-head-perm-sub > th:last-child {
    border-right: 1px solid #293241;
}

.subordinate-list-body .subordinate-data-table tbody td[data-col="perm_casino_service"] {
    border-left: 1px solid #293241;
}

.subordinate-list-body .subordinate-data-table tbody td[data-col="perm_admin_chat"] {
    border-right: 1px solid #293241;
}

.subordinate-list-body .subordinate-data-table thead tr.subordinate-head-primary > th[rowspan] {
    box-shadow:
        0 1px 0 #293241,
        0 8px 16px -4px rgba(0, 0, 0, 0.45);
}

.subordinate-list-body .subordinate-data-table thead th:not(.subordinate-expand-col) {
    font-size: 13px;
    line-height: 1.15;
    padding: 5px 4px;
    min-width: 0;
}

.subordinate-list-body .partners-table-login-id-head .partners-table-login-id-head-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.subordinate-list-body .partners-table-login-id-head .partners-table-th-label {
    display: block;
    line-height: 1.35;
}

.subordinate-list-body .partners-table-login-id-head .partners-column-hide-btn {
    display: flex;
    width: 100%;
    min-height: 26px;
    margin: 0;
    padding: 0 8px;
    justify-content: center;
    font-size: 12px;
    line-height: 1.2;
    box-sizing: border-box;
}

.subordinate-list-body .subordinate-data-table tbody td {
    padding: 4px 5px;
    line-height: 1.15;
    vertical-align: middle;
    font-size: 12px;
}

.subordinate-list-body .subordinate-data-table .subordinate-under-money,
.subordinate-list-body .subordinate-data-table .subordinate-member-money,
.subordinate-list-body .subordinate-data-table .subordinate-member-rolling,
.subordinate-list-body .subordinate-data-table .subordinate-rolling-amount,
.subordinate-list-body .subordinate-data-table .subordinate-losing-loan {
    margin-top: 0;
    line-height: 1.15;
}

.subordinate-list-body .subordinate-data-table .subordinate-stat-pill {
    padding: 1px 8px;
    font-size: 12px;
    line-height: 1.15;
}

.subordinate-list-body .subordinate-data-table .subordinate-losing-rate-pill {
    line-height: 1.1;
}

.subordinate-list-body .subordinate-data-table .subordinate-id-chip .members-affiliation-trigger {
    min-height: 0;
    padding: 4px 4px;
}

.subordinate-list-body .subordinate-data-table .subordinate-id-type {
    line-height: 1.15;
}

.subordinate-list-body .subordinate-data-table .members-detail-action-stack {
    gap: 1px;
}

.subordinate-list-body .subordinate-data-table th[data-col="command"],
.subordinate-list-body .subordinate-data-table td[data-col="command"] {
    width: 74px;
    min-width: 74px;
    max-width: 74px;
    padding-left: 3px;
    padding-right: 3px;
}

.subordinate-list-body .subordinate-data-table .shop-command-select {
    box-sizing: border-box;
    width: 74px;
    min-width: 74px;
    max-width: 74px;
    padding: 4px 18px 4px 6px;
    font-size: 12px;
    background-position: right 5px center;
}

.subordinate-list-body .subordinate-data-table .members-detail-btn,
.subordinate-list-body .subordinate-data-table .members-detail-new-window-btn {
    min-height: 24px;
    min-width: 78px;
    padding: 0 4px;
}

.subordinate-list-body .subordinate-data-table thead th.subordinate-expand-col {
    z-index: 14;
    width: 1%;
    min-width: 0;
    max-width: 34px;
    padding: 2px 1px 2px 0 !important;
}

/* 하부 파트너 목록: 카드·테이블 shell 여백·열 폭 최소화 */
.subordinate-list-body.partner-type-list-body {
    padding: 0 2px 4px;
}

.subordinate-list-body .login-history-topbar.subordinate-aff-form {
    margin-bottom: 6px;
    padding: 8px 10px;
    gap: 6px;
}

.subordinate-list-body .partners-table-shell {
    margin: 0 0 4px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.subordinate-list-body .subordinate-data-table {
    font-size: 12px;
}

.subordinate-list-body .subordinate-data-table thead th {
    min-width: 0;
}

.subordinate-list-body .subordinate-expand-cell {
    width: 30px;
    min-width: 30px;
    max-width: 34px;
    padding-left: 0 !important;
    padding-right: 1px !important;
}

.page-card:not(.losing-settlement-intake-page) .subordinate-list-body .subordinate-data-table thead th.subordinate-expand-col,
.page-card:not(.losing-settlement-intake-page) .subordinate-list-body .subordinate-data-table tbody td.subordinate-expand-cell {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
    box-sizing: border-box;
}

.page-card:not(.losing-settlement-intake-page) .subordinate-list-body .subordinate-expand-col .subordinate-aff-toggle {
    min-width: 44px;
    padding: 2px 4px;
    font-size: 11px;
    line-height: 1.15;
    gap: 2px;
}

.page-card:not(.losing-settlement-intake-page) .subordinate-list-body .subordinate-expand-col .toggle-all-shops-label {
    font-size: 11px;
    line-height: 1.15;
}

.page-card:not(.losing-settlement-intake-page) .subordinate-list-body #toggleAllShopsBtn.subordinate-aff-toggle .mdi {
    font-size: 16px;
}

.losing-settlement-intake-page .subordinate-list-body .losing-settlement-intake-table thead th.subordinate-expand-col,
.losing-settlement-intake-page .subordinate-list-body .losing-settlement-intake-table tbody td.subordinate-expand-cell {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
    box-sizing: border-box;
}

.losing-settlement-intake-page .subordinate-list-body .losing-settlement-intake-table .subordinate-expand-col .subordinate-aff-toggle {
    min-width: 64px;
    min-height: 0;
    height: auto;
    padding: 2px 4px;
    font-size: 11px;
    line-height: 1.15;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 2px;
}

.losing-settlement-intake-page .subordinate-list-body .losing-settlement-intake-table .subordinate-expand-col .toggle-all-shops-label {
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
    text-align: left;
}

.losing-settlement-intake-page .subordinate-list-body .losing-settlement-intake-table .subordinate-expand-col .mdi {
    font-size: 16px;
    flex-shrink: 0;
}

.losing-settlement-intake-page .subordinate-list-body .losing-settlement-intake-table .subordinate-expand-actions {
    width: 100%;
    align-items: flex-start;
}

.subordinate-list-body .subordinate-expand-actions {
    gap: 2px;
    align-items: flex-start;
    padding-left: 0;
    margin-left: 0;
}

.subordinate-list-body .subordinate-expand-col .subordinate-aff-toggle {
    min-height: 0;
    min-width: 0;
    height: auto;
    padding: 0 1px 0 0;
    font-size: 10px;
    line-height: 1.05;
    gap: 0;
    justify-content: flex-start;
    align-items: center;
}

.subordinate-list-body #toggleAllShopsBtn.subordinate-aff-toggle {
    flex-direction: row;
    flex-wrap: nowrap;
}

.subordinate-list-body #toggleAllShopsBtn.subordinate-aff-toggle .mdi {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
    margin: 0;
    flex-shrink: 0;
}

.subordinate-list-body .subordinate-expand-col .toggle-all-shops-label {
    line-height: 1.05;
    font-size: 9px;
    padding: 0;
    margin: 0;
    text-align: left;
}

.subordinate-list-body .subordinate-data-table th.subordinate-flag-head,
.subordinate-list-body .subordinate-data-table td.subordinate-flag-cell,
.subordinate-list-body .subordinate-data-table td.subordinate-site-block-cell {
    width: 68px;
    min-width: 68px;
}

.subordinate-list-body .subordinate-data-table th.subordinate-perm-group-head {
    font-size: 12px;
    padding-left: 1px;
    padding-right: 1px;
}

.subordinate-list-body .subordinate-data-table th.subordinate-perm-sub-head {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    font-size: 11px;
    line-height: 1.15;
    padding: 4px 1px;
    white-space: normal;
    vertical-align: middle;
    text-align: center;
}

.subordinate-list-body .subordinate-data-table th.subordinate-perm-sub-head--chat {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
}

.subordinate-list-body .subordinate-data-table th[data-col="perm_admin_chat"].subordinate-perm-sub-head {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
}

.subordinate-list-body .subordinate-perm-cell {
    width: 50px;
    min-width: 50px;
    padding: 3px 2px;
}

.subordinate-list-body .subordinate-perm-cell .admin-chat-status-badge,
.subordinate-list-body .subordinate-perm-cell .subordinate-flag-status {
    min-width: 34px;
    padding: 1px 4px;
    font-size: 10px;
}

.subordinate-list-body .subordinate-data-table th[data-col="members"],
.subordinate-list-body .subordinate-data-table td[data-col="members"],
.subordinate-list-body .subordinate-data-table td.subordinate-member-cell {
    width: 76px;
    min-width: 76px;
}

.subordinate-list-body .subordinate-data-table th[data-col="rolling"],
.subordinate-list-body .subordinate-data-table td[data-col="rolling"],
.subordinate-list-body .subordinate-data-table td.subordinate-rolling-cell,
.subordinate-list-body .subordinate-data-table th[data-col="losing"],
.subordinate-list-body .subordinate-data-table td[data-col="losing"],
.subordinate-list-body .subordinate-data-table td.subordinate-losing-cell {
    width: 82px;
    min-width: 82px;
}

.subordinate-list-body .subordinate-data-table thead th[data-col="members"] {
    font-size: 12px;
    line-height: 1.2;
}

.subordinate-list-body .subordinate-data-table thead th[data-col="join_auth_created"],
.subordinate-list-body .subordinate-data-table td[data-col="join_auth_created"] {
    width: 76px;
    min-width: 76px;
    max-width: 84px;
    font-size: 11px;
    white-space: normal;
    line-height: 1.15;
}

.subordinate-list-body .subordinate-join-created-cell {
    vertical-align: middle;
    text-align: center;
}

.subordinate-list-body .subordinate-join-created-cell .subordinate-join-auth-code {
    display: block;
    margin-bottom: 2px;
}

.subordinate-list-body .subordinate-join-auth-code {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #8ec5ff;
}

html.admin-theme-light .subordinate-list-body .subordinate-join-auth-code {
    color: #1a5fb8;
    font-weight: 800;
}

.subordinate-list-body .subordinate-join-created-cell .subordinate-created-at-date,
.subordinate-list-body .subordinate-join-created-cell .subordinate-created-at-time,
.subordinate-list-body .subordinate-join-created-cell .subordinate-created-at-single {
    display: block;
    white-space: nowrap;
    line-height: 1.15;
}

.subordinate-list-body .subordinate-created-at-cell {
    vertical-align: middle;
    text-align: center;
}

.subordinate-list-body .subordinate-created-at-date,
.subordinate-list-body .subordinate-created-at-time,
.subordinate-list-body .subordinate-created-at-single {
    display: block;
    white-space: nowrap;
    line-height: 1.15;
}

.subordinate-list-body .subordinate-created-at-time {
    margin-top: 0;
    color: #9da8b9;
    font-size: 11px;
}

.subordinate-list-body .subordinate-detail-cell {
    padding-left: 3px;
    padding-right: 3px;
}

.subordinate-list-body .subordinate-data-table .subordinate-holdings-cell,
.subordinate-list-body .subordinate-data-table .subordinate-own-cell,
.subordinate-list-body .subordinate-data-table .subordinate-under-cell,
.subordinate-list-body .subordinate-data-table .subordinate-money-cell {
    padding-left: 4px;
    padding-right: 4px;
}

body.admin-body .admin-main-scroll:has(> .page-card > .page-card-body.subordinate-list-body) {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    padding: 6px 8px;
}

body.admin-body .admin-main-scroll:has(> .page-card > .page-card-body.subordinate-list-body) > .page-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.subordinate-list-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.subordinate-list-body > .login-history-topbar.subordinate-aff-form {
    flex: 0 0 auto;
}

.subordinate-list-body .partners-table-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.subordinate-list-body .subordinate-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
}

.subordinate-list-body .partners-data-table thead th.subordinate-holdings-head {
    background-color: #152930;
}

.subordinate-list-body .partners-data-table thead th.subordinate-own-head {
    background-color: #172428;
}

.subordinate-list-body .partners-data-table thead th.subordinate-under-head {
    background-color: #182226;
}

html.admin-theme-light .subordinate-list-body .subordinate-data-table thead th {
    background-color: #f3f6fb;
    box-shadow: 0 1px 0 #dbe2ee;
}

html.admin-theme-light .subordinate-list-body .subordinate-data-table thead tr.subordinate-head-perm-sub > th {
    box-shadow:
        0 1px 0 #dbe2ee,
        0 8px 16px -4px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light .subordinate-list-body .subordinate-data-table thead tr.subordinate-head-primary > th.subordinate-perm-group-head {
    border-left-color: #dbe2ee;
    border-right-color: #dbe2ee;
    border-bottom-color: #dbe2ee;
}

html.admin-theme-light .subordinate-list-body .subordinate-data-table thead tr.subordinate-head-perm-sub > th:first-child {
    border-left-color: #dbe2ee;
}

html.admin-theme-light .subordinate-list-body .subordinate-data-table thead tr.subordinate-head-perm-sub > th:last-child {
    border-right-color: #dbe2ee;
}

html.admin-theme-light .subordinate-list-body .subordinate-data-table tbody td[data-col="perm_casino_service"] {
    border-left-color: #dbe2ee;
}

html.admin-theme-light .subordinate-list-body .subordinate-data-table tbody td[data-col="perm_admin_chat"] {
    border-right-color: #dbe2ee;
}

html.admin-theme-light .subordinate-list-body .subordinate-data-table thead tr.subordinate-head-primary > th[rowspan] {
    box-shadow:
        0 1px 0 #dbe2ee,
        0 8px 16px -4px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light .subordinate-list-body .partners-data-table thead th.subordinate-holdings-head {
    background-color: #e8f7fa;
}

html.admin-theme-light .subordinate-list-body .partners-data-table thead th.subordinate-own-head {
    background-color: #eef9fb;
}

html.admin-theme-light .subordinate-list-body .partners-data-table thead th.subordinate-under-head {
    background-color: #f2fafb;
}

.subordinate-stat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.subordinate-rolling-rate-pill {
    background: rgba(234, 179, 8, 0.12);
    color: #fde68a;
}

.subordinate-losing-rate-pill {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.subordinate-member-count-pill {
    background: rgba(59, 69, 84, 0.6);
    color: #fff;
}

.subordinate-rolling-amount {
    margin-top: 4px;
    color: #ff9800;
    font-size: 13px;
    font-weight: 600;
}

.subordinate-losing-loan {
    margin-top: 4px;
    color: #86efac;
    font-size: 13px;
    font-weight: 600;
}

.subordinate-rolling-badge {
    display: inline-flex;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(234, 179, 8, 0.12);
    color: #fde68a;
    font-size: 13px;
    font-weight: 600;
}

.subordinate-money-cell {
    color: #fbbf24;
}

.subordinate-under-money {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    color: #f2f3f5;
    font-size: 13px;
    font-weight: 500;
}

.subordinate-under-label {
    display: inline-flex;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.1);
    color: #f2f3f5;
    font-weight: 500;
}

.subordinate-member-money {
    margin-top: 2px;
    color: #6ee7b7;
}

.subordinate-member-rolling {
    margin-top: 2px;
    color: #fb923c;
}

.subordinate-detail-cell {
    text-align: center;
    white-space: nowrap;
}

.subordinate-command-wrap {
    position: relative;
    display: inline-flex;
}

.subordinate-flag-head,
.subordinate-flag-cell {
    width: 88px;
    min-width: 88px;
    text-align: center;
    white-space: nowrap;
}

.subordinate-data-table th.subordinate-flag-head--site-status {
    white-space: normal;
    line-height: 1.25;
    vertical-align: middle;
}

.subordinate-site-block-cell {
    vertical-align: middle;
}

.subordinate-site-block-switch.table-switch,
.subordinate-perm-grant-switch.table-switch {
    width: 28px;
    height: 28px;
    margin: 0 auto;
}

.subordinate-site-block-switch .table-switch-track,
.subordinate-perm-grant-switch .table-switch-track {
    width: 28px;
    height: 16px;
}

.subordinate-site-block-switch .table-switch-track::after,
.subordinate-perm-grant-switch .table-switch-track::after {
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
}

/* 사이트 작동여부 — 파란색 */
.subordinate-site-block-switch input:checked + .table-switch-track {
    background: #3b82f6;
}

.subordinate-site-block-switch input:checked + .table-switch-track::after {
    transform: translateX(12px);
}

/* 권한 설정(알지급·알회수·가입·정지·1:1채팅) — 에메랄드 */
.subordinate-perm-grant-switch input:checked + .table-switch-track {
    background: #10b981;
}

.subordinate-perm-grant-switch input:checked + .table-switch-track::after {
    transform: translateX(12px);
}

.subordinate-site-block-switch.is-disabled,
.subordinate-perm-grant-switch.is-disabled {
    opacity: 0.72;
    cursor: default;
}

.subordinate-data-table th.subordinate-perm-group-head {
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 700;
    border-left: 1px solid #293241;
    border-right: 1px solid #293241;
}

.subordinate-data-table th.subordinate-perm-sub-head {
    width: 56px;
    min-width: 56px;
    text-align: center;
    vertical-align: middle;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
}

.subordinate-data-table thead tr.subordinate-head-perm-sub > th.subordinate-perm-sub-head:first-child {
    border-left: 1px solid #293241;
}

.subordinate-data-table thead tr.subordinate-head-perm-sub > th.subordinate-perm-sub-head:last-child {
    border-right: 1px solid #293241;
}

.subordinate-data-table th.subordinate-perm-sub-head--chat {
    width: 64px;
    min-width: 64px;
}

.subordinate-perm-cell {
    width: 56px;
    min-width: 56px;
    text-align: center;
    vertical-align: middle;
    padding: 6px 4px;
}

.subordinate-perm-cell .admin-chat-status-badge,
.subordinate-perm-cell .subordinate-flag-status {
    min-width: 42px;
    font-size: 11px;
}

.subordinate-flag-cell-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.subordinate-flag-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 2px 8px;
    border: 1px solid #137fec;
    border-radius: 999px;
    background: rgba(19, 127, 236, 0.12);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

.subordinate-flag-open-btn:hover {
    background: rgba(19, 127, 236, 0.22);
    color: #bfdbfe;
}

.subordinate-flag-open-btn:focus-visible {
    outline: 2px solid #137fec;
    outline-offset: 2px;
}

.subordinate-flag-toggle {
    border: none;
    font: inherit;
    line-height: 1.3;
}

.subordinate-flag-toggle:focus-visible {
    outline: 2px solid #137fec;
    outline-offset: 2px;
}

.subordinate-flag-status.is-muted {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.subordinate-flag-status:not(.is-muted) {
    cursor: default;
}

.shop-command-select {
    appearance: none;
    min-width: 128px;
    padding: 6px 28px 6px 10px;
    border: 2px solid #10b981;
    border-radius: 8px;
    background: #282f39 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M2 2.5 L7 7.5 L12 2.5' stroke='%2310b981' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center;
    color: #34d399;
    font-size: 13px;
    font-weight: 700;
}

.shop-command-select option {
    color: #e8edf8;
    font-weight: 500;
    background: #282f39;
}

.shop-command-select option[value=""] {
    color: #34d399;
    font-weight: 700;
}

.shop-command-select option.shop-command-select-divider {
    color: rgba(110, 231, 183, 0.75);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -0.08em;
    background: #232a34;
}

.shop-command-select:focus {
    outline: none;
    border-color: #34d399;
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.45);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M2 2.5 L7 7.5 L12 2.5' stroke='%2334d399' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.shop-command-floating-menu {
    position: fixed;
    z-index: 12050;
    min-width: 152px;
    padding: 6px 0 8px;
    border: 1px solid rgba(52, 211, 153, 0.45);
    border-radius: 12px;
    background:
        linear-gradient(165deg, rgba(52, 211, 153, 0.07) 0%, transparent 42%),
        linear-gradient(180deg, #2c3440 0%, #252c36 55%, #1f252e 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 16px 40px rgba(0, 0, 0, 0.48),
        0 4px 14px rgba(16, 185, 129, 0.14);
    backdrop-filter: blur(10px);
    animation: shop-command-floating-enter 0.16s ease-out;
}

@keyframes shop-command-floating-enter {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.shop-command-floating-menu:has(> .shop-command-floating-item.is-placeholder),
.shop-command-floating-menu:has(> .shop-command-floating-header) {
    padding-top: 0;
    overflow: hidden;
}

.shop-command-floating-menu:has(> .shop-command-floating-item.is-placeholder) .shop-command-floating-divider:not(.is-section-divider),
.shop-command-floating-menu:has(> .shop-command-floating-header) > .shop-command-floating-divider:not(.is-section-divider) {
    display: none;
}

.shop-command-floating-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 9px 8px 9px 14px;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(74, 222, 128, 0.28) 0%, rgba(16, 185, 129, 0.16) 52%, rgba(5, 150, 105, 0.12) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.shop-command-floating-header::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.65), transparent);
}

.shop-command-floating-header-title {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1 1 auto;
    min-width: 0;
    color: #ecfdf5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.shop-command-floating-header-title::before {
    content: "";
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 7h16M4 12h10M4 17h14' stroke='%23a7f3d0' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.95;
    filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.45));
}

.shop-command-floating-header-close {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.18);
    color: #ecfdf5;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.shop-command-floating-header-close:hover,
.shop-command-floating-header-close:focus-visible {
    background: rgba(0, 0, 0, 0.32);
    color: #ffffff;
    outline: none;
}

.shop-command-floating-item {
    position: relative;
    display: block;
    width: calc(100% - 12px);
    margin: 0 6px;
    padding: 9px 12px 9px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #dce4f2;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-align: left;
    cursor: pointer;
    transition:
        background 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.12s ease;
}

.shop-command-floating-item.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin: 0;
    padding: 11px 14px 10px;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(74, 222, 128, 0.28) 0%, rgba(16, 185, 129, 0.16) 52%, rgba(5, 150, 105, 0.12) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18);
    color: #ecfdf5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
    cursor: default;
}

.shop-command-floating-item.is-placeholder::before {
    content: "";
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 7h16M4 12h10M4 17h14' stroke='%23a7f3d0' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.95;
    filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.45));
}

.shop-command-floating-item.is-placeholder::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.65), transparent);
}

.shop-command-floating-divider {
    height: 0;
    margin: 2px 12px 6px;
    border: 0;
    border-top: 1px solid rgba(52, 211, 153, 0.22);
}

.shop-command-floating-divider.is-section-divider {
    margin: 7px 10px;
    border-top: 1px solid rgba(110, 231, 183, 0.72);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.35),
        0 -1px 0 rgba(255, 255, 255, 0.06);
    opacity: 1;
}

.shop-command-floating-item:not(.is-placeholder)::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #6ee7b7, #10b981);
    transform: translateY(-50%);
    transition: height 0.16s ease;
}

.shop-command-floating-item:not(.is-placeholder):hover,
.shop-command-floating-item:not(.is-placeholder):focus-visible {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.08) 100%);
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.22);
    color: #6ee7b7;
    outline: none;
}

.shop-command-floating-item:not(.is-placeholder):hover::before,
.shop-command-floating-item:not(.is-placeholder):focus-visible::before {
    height: 58%;
}

.shop-command-floating-item:not(.is-placeholder):active {
    transform: scale(0.985);
}

.login-history-topbar.subordinate-aff-form {
    gap: 8px 6px;
    margin-bottom: 12px;
}

.subordinate-aff-create-wrap {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 0;
}

.subordinate-aff-form .subordinate-root-create-btn {
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
}

.login-history-topbar.subordinate-aff-form .login-history-topbar-title-active,
.login-history-topbar.subordinate-aff-form .login-history-topbar-title {
    margin-right: 4px;
}

.subordinate-aff-select-wrap {
    position: relative;
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

.subordinate-aff-select-wrap--sub-head-order {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
}

.subordinate-aff-select-wrap--sub-head-order .subordinate-aff-select {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

.subordinate-aff-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    height: 40px;
    min-width: 58px;
    padding: 2px 8px;
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #282f39;
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.subordinate-aff-order-btn .mdi {
    font-size: 16px;
    line-height: 1;
    flex: 0 0 auto;
}

.subordinate-aff-order-btn-label {
    display: block;
    text-align: left;
}

.subordinate-aff-order-btn:hover {
    background: #323b47;
    border-color: #4a5568;
}

.sub-head-order-dialog.auto-dialog-lg {
    width: min(480px, calc(100vw - 32px));
    max-width: 480px;
    max-height: calc(100vh - 32px);
}

.sub-head-order-dialog.is-dragging {
    user-select: none;
}

.sub-head-order-drag-handle {
    cursor: move;
    touch-action: none;
    align-items: center;
    gap: 12px;
}

.sub-head-order-header-main {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
    flex-wrap: nowrap;
}

.sub-head-order-header-main .auto-card-title {
    margin: 0;
    flex: 0 0 auto;
    white-space: nowrap;
}

.sub-head-order-drag-handle .sub-head-order-hint {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 220px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
}

.sub-head-order-drag-handle .auto-card-close {
    cursor: pointer;
}

#sub-head-order-overlay .sub-head-order-modal-body.auto-card-body.pa-10 {
    padding: 6px 10px 8px;
}

.sub-head-order-wrap .gpl-order-head {
    margin-bottom: 4px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.sub-head-order-wrap .gpl-order-card {
    margin: 0;
}

.sub-head-order-wrap .gpl-order-card .gpl-card-top {
    min-height: 0;
    padding-top: 4px;
    padding-bottom: 4px;
}

.sub-head-order-wrap .gpl-order-card .gpl-card-identity-head {
    min-height: 0;
    gap: 6px;
}

.subordinate-aff-select,
select.date-filter-search-select.subordinate-aff-select,
.login-history-topbar.subordinate-aff-form select.date-filter-search-select.subordinate-aff-select,
.date-filter-form.subordinate-aff-form select.date-filter-search-select.subordinate-aff-select {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 40px;
    padding-right: 40px;
    box-sizing: border-box;
    border-color: #3b4554;
    background-color: #282f39;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: calc(100% - 8px) 50%;
    background-size: 21px 21px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* 순서설정 버튼이 있는 미니본사 셀렉트: form 쪽 (0,4,1) width:100% 보다 높은 특이도로 150px 고정 */
.login-history-topbar.subordinate-aff-form .subordinate-aff-select-wrap--sub-head-order select.date-filter-search-select.subordinate-aff-select,
.date-filter-form.subordinate-aff-form .subordinate-aff-select-wrap--sub-head-order select.date-filter-search-select.subordinate-aff-select,
.subordinate-aff-select-wrap--sub-head-order select.date-filter-search-select.subordinate-aff-select {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

@keyframes subordinate-aff-selected-blink {
    0%, 100% {
        border-color: #fb923c;
        box-shadow: 0 0 0 2px rgba(251, 146, 60, .2);
    }
    50% {
        border-color: #ffd08a;
        box-shadow: 0 0 0 3px rgba(251, 146, 60, .85);
    }
}

select.subordinate-aff-select.is-selected {
    border-color: #fb923c !important;
    box-shadow: 0 0 0 2px rgba(251, 146, 60, .45);
}

select.subordinate-aff-select.is-blink {
    animation: subordinate-aff-selected-blink 1.2s ease-in-out infinite;
}

.subordinate-aff-id-search-wrap {
    position: relative;
    flex: 0 0 130px;
    width: 130px;
}

.subordinate-aff-id-search-wrap .mdi {
    position: absolute;
    top: 50%;
    left: 10px;
    color: #9da8b9;
    font-size: 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.subordinate-aff-id-search {
    width: 100%;
    height: 40px;
    padding: 0 10px 0 34px;
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #282f39;
    color: #fff;
    font: inherit;
    font-size: 13px;
}

.subordinate-aff-id-search::placeholder {
    color: #9da8b9;
}

.subordinate-aff-id-search:focus {
    outline: 0;
    border-color: #315dff;
}

.subordinate-aff-search-btn,
.subordinate-aff-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.subordinate-aff-search-btn {
    border: 0;
    background: #315dff;
    color: #fff;
}

.subordinate-aff-search-btn:hover {
    filter: brightness(1.08);
}

.subordinate-aff-search-btn .mdi,
.subordinate-aff-toggle .mdi {
    font-size: 20px;
    line-height: 1;
}

.subordinate-aff-toggle {
    border: 1px solid rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.08);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.subordinate-aff-toggle:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.subordinate-aff-toggle[aria-expanded="true"] {
    border-color: #059669;
    background: #059669;
    color: #fff;
    box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.35);
}

.subordinate-aff-toggle .toggle-all-icon-collapse,
.subordinate-aff-toggle[aria-expanded="true"] .toggle-all-icon-expand {
    display: none;
}

.subordinate-aff-toggle[aria-expanded="true"] .toggle-all-icon-collapse {
    display: inline-flex;
}

.subordinate-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 12px;
}

.subordinate-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #3b4554;
    border-radius: 6px;
    background: #282f39;
    color: #c8d0df;
    font-size: 13px;
    text-decoration: none;
}

.subordinate-page-link.is-active,
.subordinate-page-link:hover {
    border-color: #315dff;
    color: #fff;
}

.partners-menu-login-id,
.partners-menu-nickname {
    display: block;
}

.partners-menu-login-id.member-user-identity-host,
.partners-menu-login-id:has(.member-user-identity-display) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    max-width: 100%;
}

.member-user-identity-display {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    vertical-align: middle;
}

.member-user-identity-display .members-affiliation-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.betting-list-table td.betting-list-member-cell .member-user-identity-display .members-affiliation-label {
    font-size: 11px;
}

.betting-list-table td.betting-list-merge-cell.is-merge-label-triple .betting-list-merge-label.betting-list-member-user-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    max-width: 100%;
    text-align: left;
}

.betting-list-table td.betting-list-member-cell:not(.is-merge-label-triple) {
    vertical-align: middle;
}

.inquiry-user-chip .members-affiliation-trigger.partner-money-transfer-chip-trigger .member-user-identity-display .members-affiliation-label {
    font-size: 13px;
}

.members-identity-cell {
    cursor: pointer;
}

.has-member-identity-contextmenu .members-identity-cell {
    position: relative;
    cursor: context-menu;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.07) 0%, transparent 36%);
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.has-member-identity-contextmenu .members-identity-cell::before {
    content: "";
    position: absolute;
    inset: 5px 4px;
    border: 1px dashed rgba(52, 211, 153, 0.22);
    border-radius: 8px;
    pointer-events: none;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.has-member-identity-contextmenu .members-identity-cell::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 5px;
    width: 16px;
    height: 16px;
    opacity: 0.42;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4a5.5 5.5 0 0 1 5.5 5.5V16a5.5 5.5 0 1 1-11 0V9.5A5.5 5.5 0 0 1 12 4z' stroke='%2334d399' stroke-width='1.75'/%3E%3Cpath d='M12 4v8.25' stroke='%2334d399' stroke-width='1.35' stroke-linecap='round'/%3E%3Cpath d='M12 4h5.5a5.5 5.5 0 0 1 5.5 5.5V12H12V4z' fill='%2334d399' fill-opacity='0.52'/%3E%3Ccircle cx='12' cy='15.25' r='1.15' fill='%2334d399' fill-opacity='0.85'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.has-member-identity-contextmenu .members-identity-cell:hover,
.has-member-identity-contextmenu .members-identity-cell:focus-within {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0.04) 100%);
    box-shadow: inset 3px 0 0 #34d399;
}

.has-member-identity-contextmenu .members-identity-cell:hover::before,
.has-member-identity-contextmenu .members-identity-cell:focus-within::before {
    border-color: rgba(110, 231, 183, 0.55);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.12);
}

.has-member-identity-contextmenu .members-identity-cell:hover::after,
.has-member-identity-contextmenu .members-identity-cell:focus-within::after {
    opacity: 0.95;
    transform: scale(1.06);
}

.has-member-identity-contextmenu .members-identity-cell .members-login-detail-link {
    cursor: pointer;
}

.has-member-identity-contextmenu .members-identity-cell .partners-menu-login-id,
.has-member-identity-contextmenu .members-identity-cell .members-login-detail-link {
    background: none;
    box-shadow: none;
}

.has-member-identity-contextmenu .members-identity-cell .partners-menu-login-id::before,
.has-member-identity-contextmenu .members-identity-cell .partners-menu-login-id::after,
.has-member-identity-contextmenu .members-identity-cell .members-login-detail-link::before,
.has-member-identity-contextmenu .members-identity-cell .members-login-detail-link::after {
    content: none;
    display: none;
}

.has-member-identity-contextmenu .members-identity-cell .partners-menu-login-id:hover,
.has-member-identity-contextmenu .members-identity-cell .members-login-detail-link:hover {
    background: none;
    box-shadow: none;
}

.members-identity-cell:hover .partners-menu-login-id,
.members-identity-cell:hover .partners-menu-login-id .members-affiliation-label {
    text-decoration: none;
}

.partners-menu-login-id {
    color: #7ec8ff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.partners-menu-login-id.is-member-al-sale-line,
.members-login-detail-link.is-member-al-sale-line {
    color: #0a0a0a !important;
    font-weight: 800;
}

.has-member-identity-contextmenu .members-identity-cell .partners-menu-login-id.is-member-al-sale-line,
.has-member-identity-contextmenu .members-identity-cell .members-login-detail-link.is-member-al-sale-line,
.has-member-identity-contextmenu .members-identity-cell .partners-menu-login-id.is-member-al-sale-line:hover,
.has-member-identity-contextmenu .members-identity-cell .members-login-detail-link.is-member-al-sale-line:hover {
    color: #0a0a0a !important;
}

.partners-menu-nickname {
    margin-top: 4px;
    color: #8b95aa;
}

.partners-menu-stat-value {
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.partners-menu-rolling-value,
.text-rolling-orange {
    color: #ff9800 !important;
    font-weight: 700;
}

.partners-menu-child-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

.partners-menu-child-icons img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.partners-menu-child-count-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 22px;
}

.partners-menu-child-count-item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.partners-menu-member-count-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 48px;
    min-height: 24px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    background: #315dff;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 3px 1px -2px rgba(0, 0, 0, 0.2),
        0 2px 2px 0 rgba(0, 0, 0, 0.14),
        0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.partners-menu-member-count-btn:hover {
    border: 0;
    background: #254de6;
    color: #fff;
    text-decoration: none;
}

.partners-data-table-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    min-height: 62px;
    padding: 12px 16px;
    border-top: 1px solid #232b39;
    color: #c8d0df;
    font-size: 13px;
}

.partners-data-table-per-page {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.partners-data-table-per-page-label {
    color: #c8d0df;
    white-space: nowrap;
}

.partners-data-table-per-page-select {
    min-width: 72px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #323b49;
    border-radius: 6px;
    background: #171d27;
    color: #e8edf8;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.partners-data-table-per-page-select:focus {
    outline: none;
    border-color: #315dff;
}

.partners-data-table-page-summary {
    color: #c8d0df;
    white-space: nowrap;
}

.members-data-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 16px;
    border-top: 1px solid #293241;
    background: #171d27;
}

.members-data-table-footer-spacer {
    flex: 0 0 auto;
    min-width: 0;
}

.members-data-table-footer-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-left: auto;
}

.members-data-table-total {
    color: #00d9ff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.members-data-table-per-page-select {
    height: 28px;
    min-width: 70px;
    margin-left: 8px;
    padding: 0 8px;
    border: 1px solid #323b49;
    border-radius: 6px;
    background: #171d27;
    color: #e8edf8;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.members-data-table-per-page-select:focus {
    outline: none;
    border-color: #315dff;
}

.members-data-table-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.members-data-table-pages a.pagination-page {
    text-decoration: none;
}

.members-data-table-pages .pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: 1px solid #3a4558;
    border-radius: 8px;
    background: #20283b;
    color: #9aa5b8;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.members-data-table-pages .pagination-page:hover {
    border-color: rgba(249, 115, 22, 0.55);
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
}

.members-data-table-pages .pagination-page-active {
    border-color: #f97316;
    background: #f97316;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.35);
}

.members-data-table-pages .pagination-page-active:hover {
    border-color: #fb923c;
    background: #fb923c;
    color: #fff;
}

.members-data-table-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #6b7280;
    font-size: 12px;
}

html.admin-theme-light .members-data-table-footer {
    border-top-color: #dbe2ee;
    background: #fff;
}

html.admin-theme-light .members-data-table-total {
    color: #0284c7;
    font-size: 15px;
    font-weight: 800;
}

html.admin-theme-light .members-data-table-per-page-select {
    border-color: #dbe2ee;
    background: #fff;
    color: #0f172a;
}

html.admin-theme-light .members-data-table-pages .pagination-page {
    border-color: #dbe2ee;
    background: #f1f5f9;
    color: #64748b;
}

html.admin-theme-light .members-data-table-pages .pagination-page:hover {
    border-color: rgba(249, 115, 22, 0.45);
    background: rgba(249, 115, 22, 0.08);
    color: #ea580c;
}

html.admin-theme-light .members-data-table-pages .pagination-page-active,
html.admin-theme-light .members-data-table-pages .pagination-page-active:hover {
    border-color: #f97316;
    background: #f97316;
    color: #fff;
}

.partners-table-name-cell {
    min-width: 140px;
}

.partners-table-name-btn {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.partners-table-login-id {
    color: #ff9800;
    font-size: 14px;
    font-weight: 600;
}

.partners-table-nickname {
    color: #e8edf8;
    font-size: 13px;
}

.partners-table-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.partners-table-type-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.partners-table-rate-cell {
    display: grid;
    gap: 4px;
    justify-items: center;
}

.partners-table-action-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.partners-table-detail-cell {
    min-width: 160px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.partners-table-detail-combobox-wrap {
    display: flex;
    justify-content: center;
    margin: 0;
}

.partners-detail-combobox {
    position: relative;
    width: 160px;
}

.partners-detail-combobox-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #3a4558;
    border-radius: 8px;
    background: #171d27;
    color: #e8edf8;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}

.partners-detail-combobox-trigger::after {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 6px;
    margin-left: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23aeb8cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.partners-detail-combobox-trigger:hover:not(:disabled),
.partners-detail-combobox.is-open .partners-detail-combobox-trigger {
    border-color: #315dff;
}

.partners-detail-combobox-trigger:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.partners-detail-combobox-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.partners-detail-combobox-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 280px;
    margin: 0;
    padding: 4px 0;
    border: 1px solid #3a4558;
    border-radius: 8px;
    background: #171d27;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    list-style: none;
    overflow-y: auto;
}

.partners-detail-combobox-item {
    margin: 0;
}

.partners-detail-combobox-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: #e8edf8;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.partners-detail-combobox-option:hover {
    background: rgba(49, 93, 255, 0.12);
    color: #315dff;
}

.auto-dialog-lg {
    width: min(800px, calc(100vw - 48px));
}

.members-al-card {
    min-height: 736px;
}

.members-al-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.members-al-form .members-al-field:nth-of-type(n + 6),
.members-al-form .members-al-total-field,
.members-al-form .members-al-wallet-select-field,
.members-al-form .members-al-cap-field,
.members-al-form .members-al-amount-field,
.members-al-form .members-al-macro-field,
.members-al-form .members-al-memo-field,
.members-al-form .members-al-status {
    grid-column: 1 / -1;
}

.members-al-field > label em {
    margin-left: 6px;
    color: #aeb8cc;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
}

.members-al-macro {
    min-height: 40px;
    width: 100%;
    box-sizing: border-box;
}

.members-al-wallet-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 40px;
    align-items: center;
}

.members-al-wallet-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #3a4558;
    border-radius: 8px;
    background: #151b25;
    color: #dce3f1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.members-al-wallet-option:has(input[value="main"]:checked) {
    border-width: 3px;
    border-color: #315dff;
    background: rgba(49, 93, 255, 0.14);
    color: #9cbcff;
}

.members-al-wallet-option:has(input[value="mato"]:checked) {
    border-width: 3px;
    border-color: #24e089;
    background: rgba(36, 224, 137, 0.14);
    color: #6affb5;
}

.members-al-wallet-option input {
    margin: 0;
}

.members-al-wallet-option.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.members-al-total-money {
    color: #f8fafc !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.members-al-wallet-mato {
    color: #24e089 !important;
}

.members-al-wallet-balance-field {
    transition: opacity 0.18s ease, filter 0.18s ease;
}

.members-al-wallet-balance-field > label,
.members-al-wallet-balance-field .members-al-readonly {
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        padding-left 0.18s ease;
}

.members-al-wallet-balance-field > label {
    min-height: 46px;
    padding-left: 10px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.members-al-wallet-balance-field .members-al-readonly {
    min-height: 46px;
    font-size: 18px;
    font-weight: 800;
}

.members-al-wallet-balance-field:not(.is-active) {
    opacity: 0.82;
}

.members-al-wallet-balance-field:not(.is-active)[data-wallet="main"] > label {
    color: #7ea6e0;
}

.members-al-wallet-balance-field:not(.is-active)[data-wallet="main"] .members-al-readonly {
    color: #7ea6e0 !important;
    border-color: #3a4a63;
    background: #101620;
}

.members-al-wallet-balance-field:not(.is-active)[data-wallet="mato"] > label {
    color: #5bc994;
}

.members-al-wallet-balance-field:not(.is-active)[data-wallet="mato"] .members-al-readonly {
    color: #5bc994 !important;
    border-color: #3a5548;
    background: #101620;
}

.members-al-wallet-balance-field.is-active {
    opacity: 1;
    z-index: 1;
}

.members-al-wallet-balance-field.is-active .members-al-readonly {
    background: #101620;
    box-shadow: none;
    border-width: 3px;
}

.members-al-wallet-balance-field.is-active[data-wallet="main"] > label {
    color: #9cbcff;
}

.members-al-wallet-balance-field.is-active[data-wallet="main"] .members-al-readonly {
    color: #9cbcff !important;
    animation: members-al-wallet-border-blink-main 1s ease-in-out infinite;
}

.members-al-wallet-balance-field.is-active[data-wallet="mato"] > label {
    color: #6affb5;
}

.members-al-wallet-balance-field.is-active[data-wallet="mato"] .members-al-readonly {
    color: #6affb5 !important;
    animation: members-al-wallet-border-blink-mato 1s ease-in-out infinite;
}

@keyframes members-al-wallet-border-blink-main {
    0%,
    100% {
        border-color: #323b49;
    }
    50% {
        border-color: #315dff;
    }
}

@keyframes members-al-wallet-border-blink-mato {
    0%,
    100% {
        border-color: #323b49;
    }
    50% {
        border-color: #24e089;
    }
}

.members-al-field {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}

.members-al-field > label {
    min-height: 40px;
    display: flex;
    align-items: center;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
}

.members-al-readonly {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #101620;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 600;
    box-sizing: border-box;
}

.members-al-amount-input {
    min-height: 60px;
    padding: 12px 18px;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0.08) 100%);
    color: #fde68a;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.2),
        0 8px 24px rgba(245, 158, 11, 0.12);
}

.members-al-amount-input::placeholder {
    color: rgba(253, 230, 138, 0.42);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
}

.members-al-amount-input:focus {
    outline: 0;
    border-color: #fbbf24;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.24) 0%, rgba(245, 158, 11, 0.12) 100%);
    color: #fff7c2;
    box-shadow:
        0 0 0 3px rgba(251, 191, 36, 0.35),
        0 10px 28px rgba(245, 158, 11, 0.2);
}

.members-al-money-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.members-al-money-buttons button {
    min-width: 70px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #315dff;
    border-radius: 8px;
    background: rgba(49, 93, 255, 0.14);
    color: #dbe6ff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.members-al-money-buttons button:hover {
    filter: brightness(1.12);
}

.members-al-money-buttons .members-al-reset {
    border-color: #6b7280;
    background: rgba(148, 163, 184, 0.14);
    color: #e5e7eb;
}

.members-al-money-buttons .members-al-full {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.16);
    color: #fecaca;
}

.auto-card[data-wallet-theme="main"] .members-al-money-buttons button:not(.members-al-reset):not(.members-al-full) {
    border-width: 3px;
    border-color: #315dff;
    background: rgba(49, 93, 255, 0.14);
    color: #9cbcff;
}

.auto-card[data-wallet-theme="mato"] .members-al-money-buttons button:not(.members-al-reset):not(.members-al-full) {
    border-width: 3px;
    border-color: #24e089;
    background: rgba(36, 224, 137, 0.14);
    color: #6affb5;
}

.auto-card[data-wallet-theme="main"] .auto-card-btn-primary {
    border-width: 3px;
    border-color: #315dff;
    color: #315dff;
}

.auto-card[data-wallet-theme="mato"] .auto-card-btn-primary {
    border-width: 3px;
    border-color: #24e089;
    color: #24e089;
}

@media (max-width: 720px) {
    .members-al-form {
        grid-template-columns: 1fr;
    }

    .members-al-form .members-al-field,
    .members-al-form .members-al-status {
        grid-column: 1 / -1;
    }
}

.members-al-memo {
    min-height: 92px;
    padding-top: 10px;
    resize: vertical;
}

.members-al-status {
    min-height: 20px;
    color: #f87171;
    font-size: 13px;
    text-align: right;
}

.members-al-status.is-success {
    color: #4ade80;
}

.partner-member-transfer-page {
    padding-top: 0;
}

.partner-member-transfer-card {
    background: transparent;
    box-shadow: none;
}

.partner-member-transfer-body {
    padding: 0;
}

/* 파트너간 자금이동(list-tracking v-container): 상단 여백 최소화 */
body.admin-body .admin-main-scroll:has(> .cash-partner-transfer-page.list-tracking-page) {
    padding-top: 4px;
}

.cash-partner-transfer-page.list-tracking-page.partner-member-transfer-page {
    padding-top: 0;
}

.cash-partner-transfer-page.list-tracking-page > .page-card > .page-card-body.partners-list-body.partner-member-transfer-body {
    padding-top: 4px;
    padding-right: 10px;
    padding-bottom: 16px;
    padding-left: 10px;
}

.cash-partner-transfer-page.list-tracking-page .list-tracking-aff-form {
    margin-bottom: 2px;
}

.cash-partner-transfer-page.list-tracking-page .list-tracking-aff-form .login-history-topbar.subordinate-aff-form {
    margin-top: 0;
    margin-bottom: 6px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.cash-partner-transfer-page.list-tracking-page .list-tracking-tab-filter.login-history-topbar {
    margin-top: 0;
    margin-bottom: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.partner-member-transfer-page.cash-deposit-page .partner-member-transfer-filter.login-history-topbar {
    margin-bottom: 12px;
}

.partner-member-transfer-page.cash-deposit-page .partner-member-transfer-table-shell {
    margin-top: 0;
}

/* 알이동 목록: 파트너 트리(왼쪽) + 테이블(오른쪽) — 충환전 내역과 동일 */
.partner-member-transfer-page.cash-deposit-page .cash-deposit-tracking {
    width: 100%;
    margin-top: 4px;
}

.partner-member-transfer-page.cash-deposit-page .al-transfer-list-layout.cash-deposit-main {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    margin-top: 0;
    min-height: 420px;
}

.partner-member-transfer-page.cash-deposit-page .cash-deposit-main.is-collapsed {
    display: none !important;
}

.partner-member-transfer-page.cash-deposit-page .al-transfer-tree-section.cash-deposit-tree-section:not(.is-tree-panel-collapsed) {
    flex: 0 0 200px;
    width: 200px;
    max-width: 200px;
}

.partner-member-transfer-page.cash-deposit-page .al-transfer-tree-section .partners-tree-card {
    min-height: 420px;
    padding: 6px;
}

.partner-member-transfer-page.cash-deposit-page .cash-deposit-table-main {
    flex: 1 1 auto;
    min-width: 0;
}

.partner-member-transfer-page.cash-deposit-page .cash-deposit-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #e8edf8;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    flex-wrap: wrap;
}

.partner-member-transfer-page.cash-deposit-page .cash-deposit-summary-kind.is-deposit {
    color: #34d399 !important;
}

.partner-member-transfer-page.cash-deposit-page .cash-deposit-summary-kind.is-withdraw {
    color: #f87171 !important;
}

.partner-member-transfer-page.cash-deposit-page .cash-deposit-summary-sep {
    color: #64748b !important;
    font-weight: 500;
}

.partner-member-transfer-table-shell {
    margin-top: 0;
}

/* 파트너-회원 / 마스터 알이동: 표만 스크롤 · 페이지 칸 하단 고정 */
body.admin-body .admin-main-scroll:has(> .page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page:not(.master-member-transfer-page):not(.master-partner-transfer-page)),
body.admin-body .admin-main-scroll:has(> .page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page),
body.admin-body .admin-main-scroll:has(> .page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page > .page-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page > .page-card > .page-card-body.partner-member-transfer-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page .cash-deposit-tracking {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page #partner-member-transfer-main,
.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page #master-partner-transfer-main,
.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page #master-member-transfer-main {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
}

.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page .al-transfer-tree-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}

.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page .al-transfer-tree-section .partners-tree-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page .cash-deposit-table-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page .partner-member-transfer-table-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page .partner-member-transfer-table-shell > .flex-grow-1.overflow-x-auto {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page #partner-member-transfer-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #151b25;
}

html.admin-theme-light .page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page #partner-member-transfer-data-table thead th {
    background: #eef2f8 !important;
    color: #1f2937;
    border-bottom-color: var(--line);
    box-shadow: 0 1px 0 var(--line);
}

html.admin-theme-light .page-container.partner-member-transfer-page #partner-member-transfer-data-table thead th .partners-table-th-label {
    color: #1f2937;
}

html.admin-theme-light .page-container.partner-member-transfer-page.cash-deposit-page .partner-member-transfer-table-shell.cash-deposit-table-shell {
    background: var(--panel);
    border-color: var(--line);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light .page-container.partner-member-transfer-page #partner-member-transfer-data-table.partner-member-al-transfer-table {
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light .page-container.partner-member-transfer-page #partner-member-transfer-data-table tbody td {
    color: var(--text);
    border-bottom-color: var(--line);
}

.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page #partner-member-transfer-table-footer,
.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page #master-partner-transfer-table-footer,
.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page #master-member-transfer-table-footer {
    flex: 0 0 auto;
    padding: 4px 10px;
    gap: 6px 10px;
}

.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page #partner-member-transfer-table-footer .members-data-table-footer-controls,
.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page #master-partner-transfer-table-footer .members-data-table-footer-controls,
.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page #master-member-transfer-table-footer .members-data-table-footer-controls {
    gap: 6px 10px;
}

.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page #partner-member-transfer-table-footer .members-data-table-pages .pagination-page,
.page-container.partner-member-transfer-page.cash-deposit-page.list-tracking-page #partner-member-transfer-table-footer .members-data-table-page-ellipsis,
.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page #master-partner-transfer-table-footer .members-data-table-pages .pagination-page,
.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page #master-partner-transfer-table-footer .members-data-table-page-ellipsis,
.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page #master-member-transfer-table-footer .members-data-table-pages .pagination-page,
.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page #master-member-transfer-table-footer .members-data-table-page-ellipsis {
    width: 26px;
    height: 26px;
    min-width: 26px;
}

.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page > .page-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page > .page-card > .page-card-body.partner-member-transfer-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page .cash-deposit-tracking {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page .al-transfer-tree-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}

.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page .al-transfer-tree-section .partners-tree-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page .cash-deposit-table-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page .partner-member-transfer-table-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page .partner-member-transfer-table-shell > .flex-grow-1.overflow-x-auto {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page #master-partner-transfer-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #151b25;
}

html.admin-theme-light .page-container.master-partner-transfer-page.cash-deposit-page.list-tracking-page #master-partner-transfer-data-table thead th {
    background: #eef2f8 !important;
    color: #1f2937;
    border-bottom-color: var(--line);
    box-shadow: 0 1px 0 var(--line);
}

html.admin-theme-light .page-container.master-partner-transfer-page #master-partner-transfer-data-table thead th .partners-table-th-label {
    color: #1f2937;
}

html.admin-theme-light .page-container.master-partner-transfer-page.cash-deposit-page .partner-member-transfer-table-shell.cash-deposit-table-shell {
    background: var(--panel);
    border-color: var(--line);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light .page-container.master-partner-transfer-page #master-partner-transfer-data-table {
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light .page-container.master-partner-transfer-page #master-partner-transfer-data-table tbody td {
    color: var(--text);
    border-bottom-color: var(--line);
}

.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page > .page-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page > .page-card > .page-card-body.partner-member-transfer-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page .cash-deposit-tracking {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page .al-transfer-tree-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}

.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page .al-transfer-tree-section .partners-tree-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page .cash-deposit-table-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page .partner-member-transfer-table-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page .partner-member-transfer-table-shell > .flex-grow-1.overflow-x-auto {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page #master-member-transfer-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #151b25;
}

html.admin-theme-light .page-container.master-member-transfer-page.cash-deposit-page.list-tracking-page #master-member-transfer-data-table thead th {
    background: #eef2f8 !important;
    color: #1f2937;
    border-bottom-color: var(--line);
    box-shadow: 0 1px 0 var(--line);
}

html.admin-theme-light .page-container.master-member-transfer-page #master-member-transfer-data-table thead th .partners-table-th-label {
    color: #1f2937;
}

html.admin-theme-light .page-container.master-member-transfer-page.cash-deposit-page .partner-member-transfer-table-shell.cash-deposit-table-shell {
    background: var(--panel);
    border-color: var(--line);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light .page-container.master-member-transfer-page #master-member-transfer-data-table {
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light .page-container.master-member-transfer-page #master-member-transfer-data-table tbody td {
    color: var(--text);
    border-bottom-color: var(--line);
}

.partner-member-transfer-page .partner-member-transfer-table-wrap.custom-data-table {
    width: auto;
    max-width: 100%;
    min-width: 0;
}

.partner-member-transfer-page #partner-member-transfer-data-table {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
}

.partner-member-transfer-page #partner-member-transfer-data-table thead th {
    min-width: 0 !important;
    box-sizing: border-box;
}

.partner-member-transfer-page #partner-member-transfer-data-table th[data-col="partner_id"],
.partner-member-transfer-page #partner-member-transfer-data-table td[data-col="partner_id"] {
    width: 184px !important;
    min-width: 184px !important;
    max-width: 184px !important;
}

.partner-member-transfer-page #partner-member-transfer-data-table th.partner-money-transfer-flow-head,
.partner-member-transfer-page #partner-member-transfer-data-table td.partner-money-transfer-flow-cell {
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
}

.partner-member-transfer-page #partner-member-transfer-data-table th[data-col="member_id"],
.partner-member-transfer-page #partner-member-transfer-data-table td[data-col="member_id"] {
    width: 164px !important;
    min-width: 164px !important;
    max-width: 164px !important;
}

.partner-member-transfer-page #partner-member-transfer-data-table th[data-col="deposit"],
.partner-member-transfer-page #partner-member-transfer-data-table td[data-col="deposit"],
.partner-member-transfer-page #partner-member-transfer-data-table th[data-col="withdraw"],
.partner-member-transfer-page #partner-member-transfer-data-table td[data-col="withdraw"] {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

.partner-member-transfer-page #partner-member-transfer-data-table th[data-col="created_at"],
.partner-member-transfer-page #partner-member-transfer-data-table td[data-col="created_at"] {
    width: auto !important;
    min-width: 152px !important;
    max-width: none !important;
}

.partner-member-transfer-page #partner-member-transfer-data-table .partner-member-transfer-th-partner-id .partners-table-login-id-head-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    max-width: 172px;
    margin: 0 auto;
}

.partner-member-transfer-table th,
.partner-member-transfer-table td {
    white-space: nowrap;
    font-size: 13px;
}

.partners-data-table.partner-member-transfer-table:not(.cash-partner-transfer-table) thead th {
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 6px !important;
    line-height: 1.25;
}

.partner-member-transfer-table .partner-member-transfer-cell-partner-id {
    color: #ff5a5a;
    font-weight: 700;
}

.partner-member-transfer-table .partner-member-transfer-cell-partner-nickname {
    color: #3ddc84;
    font-weight: 700;
}

.partner-member-transfer-page .partner-member-transfer-table .partners-table-login-id-head .partners-column-hide-btn {
    min-height: 22px;
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
}

.partner-member-transfer-table td {
    font-size: 13px;
    padding: 4px 6px !important;
}

.partner-history-body {
    padding-top: 0 !important;
}

.partner-history-table {
    min-width: 720px;
}

.partners-table-outline-btn {
    min-height: 28px;
    min-width: 120px;
    padding: 0 10px;
    border: 1px solid #3a4558;
    border-radius: 6px;
    background: transparent;
    color: #e8edf8;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.partners-table-outline-btn:hover {
    border-color: #315dff;
    color: #315dff;
}

.member-detail-info-body {
    padding: 20px 24px 24px;
}

.member-detail-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.member-detail-info-title {
    margin: 0;
    color: #e8edf8;
    font-size: 18px;
    font-weight: 600;
}

.member-detail-info-back {
    color: #315dff;
    font-size: 13px;
    text-decoration: none;
}

.member-detail-info-back:hover {
    text-decoration: underline;
}

.member-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.member-detail-info-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #293241;
    border-radius: 10px;
    background: #151b25;
}

.member-detail-info-label {
    color: #8590a6;
    font-size: 12px;
}

.member-detail-info-value {
    color: #e8edf8;
    font-size: 14px;
    font-weight: 500;
}

.member-detail-info-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.admin-body.is-user-detail-popup {
    background: #0d1117;
}

body.admin-body.is-user-detail-popup .shell {
    display: block;
    min-height: 100vh;
}

body.admin-body.is-user-detail-popup .main {
    width: 100%;
    min-height: 100vh;
}

.user-detail-popup-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #293241;
    background: #111418;
}

.user-detail-popup-toolbar-title {
    color: #e8edf8;
    font-size: 16px;
    font-weight: 700;
}

.user-detail-popup-close-btn {
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #282f39;
    color: #e8edf8;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
}

.user-detail-popup-close-btn:hover {
    background: #343f4d;
}

.user-detail-popup-scroll {
    padding: 16px 20px 24px;
}

.user-management-detail-page {
    display: grid;
    gap: 16px;
}

.page-container.user-management-detail-page:not(.is-money-log-standalone) {
    padding-top: 4px;
    padding-bottom: 16px;
}

.user-management-detail-page:not(.is-money-log-standalone) {
    gap: 8px;
}

body.admin-body .admin-main-scroll:has(> .page-container.user-management-detail-page:not(.is-money-log-standalone)) {
    padding: 6px;
}

.user-management-detail-page:not(.is-money-log-standalone) .user-management-detail-backbar {
    margin-bottom: 6px;
}

.user-management-detail-page:not(.is-money-log-standalone) .page-header.user-management-detail-backbar {
    margin-bottom: 4px;
    gap: 10px;
}

.user-management-detail-page:not(.is-money-log-standalone) .user-management-detail-summary {
    padding: 12px 16px;
}

.user-management-detail-page:not(.is-money-log-standalone) .user-management-detail-summary-grid {
    gap: 10px 16px;
}

.user-management-detail-page:not(.is-money-log-standalone) .user-management-detail-tabs {
    gap: 6px;
}

.user-management-detail-page:not(.is-money-log-standalone) .user-management-detail-tabs-shell {
    margin-bottom: 2px;
}

.user-management-detail-page:not(.is-money-log-standalone) .user-management-detail-panels {
    gap: 8px;
}

/* 게임베팅내역: 표만 스크롤, 페이지 푸터는 하단 고정·세로 여백 최소 */
body.admin-body .admin-main-scroll:has(> .page-container.user-management-detail-page #user-detail-tab-game-bet-log) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.admin-body .admin-main-scroll:has(> .page-container.user-management-detail-page #user-detail-tab-game-bet-log) > .page-container.user-management-detail-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    padding-bottom: 0;
}

.user-management-detail-page:has(#user-detail-tab-game-bet-log) > :not(.user-management-detail-panels) {
    flex: 0 0 auto;
}

.user-management-detail-page:has(#user-detail-tab-game-bet-log) .user-management-detail-panels,
#user-detail-tab-game-bet-log,
#user-detail-tab-game-bet-log > .user-detail-tab-card,
#user-detail-tab-game-bet-log > .user-detail-tab-card > .page-card-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#user-detail-tab-game-bet-log > .user-detail-tab-card > .page-card-body {
    padding-bottom: 0;
}

#user-detail-tab-game-bet-log .user-detail-tab-filter {
    flex: 0 0 auto;
}

#user-detail-tab-game-bet-log .page-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

#user-detail-tab-game-bet-log #user-detail-bet-log-table-footer {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin-top: 0;
    padding: 2px 8px;
    gap: 2px 8px;
    border-top: 1px solid #293241;
    background: #171d27;
}

#user-detail-tab-game-bet-log #user-detail-bet-log-table-footer .members-data-table-footer-controls {
    gap: 2px 8px;
}

html.admin-theme-light #user-detail-tab-game-bet-log #user-detail-bet-log-table-footer {
    border-top-color: var(--line);
    background: var(--panel);
}

.user-management-detail-page:not(.is-money-log-standalone) .user-management-detail-info-shell {
    margin-top: 12px;
}

.user-management-detail-page:not(.is-money-log-standalone) #user-detail-tab-info > .user-detail-info-panels > .user-detail-expansion-panel:first-child {
    margin-top: 4px;
}

.user-management-detail-page:not(.is-money-log-standalone) .user-detail-info-panels,
.user-management-detail-page:not(.is-money-log-standalone) .user-detail-info-column {
    gap: 8px;
}

.user-management-detail-page:not(.is-money-log-standalone) .user-detail-info-panels-grid {
    gap: 8px;
}

.user-management-detail-page:not(.is-money-log-standalone) .user-detail-expansion-title {
    min-height: 48px;
    padding: 10px 16px;
    font-size: 1.05rem;
}

.user-management-detail-page:not(.is-money-log-standalone) .user-detail-expansion-body {
    padding: 12px 16px 16px;
}

.user-management-detail-page:not(.is-money-log-standalone) .user-detail-basic-fields-grid {
    gap: 10px 12px;
}

body.admin-body .admin-main-scroll:has(> .page-container.user-management-detail-page.is-money-log-standalone) {
    padding-top: 4px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-container.user-management-detail-page.is-money-log-standalone {
    padding: 0 10px 0;
    padding-left: 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.user-management-detail-page.is-money-log-standalone {
    gap: 0;
}

.user-management-detail-page.is-money-log-standalone .user-management-detail-panels {
    margin: 0;
}

.money-log-standalone-card {
    margin: 0;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.money-log-standalone-body {
    padding: 0 10px 0 0;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.money-log-standalone-card .money-log-standalone-body.partners-list-body {
    padding-top: 0;
}

.money-log-standalone-aff-form,
.list-tracking-aff-form {
    margin-bottom: 4px;
}

/* 충환전 list-tracking(내역·거절내역): 상단 여백 최소화 */
body.admin-body .admin-main-scroll:has(> .page-container.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page)) {
    padding-top: 4px;
}

.page-container.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page) {
    padding-top: 0;
    padding-bottom: 24px;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page) > .page-card > .page-card-body.partners-list-body.cash-deposit-body {
    padding-top: 4px;
    padding-right: 10px;
    padding-bottom: 16px;
    padding-left: 10px;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page) .list-tracking-aff-form {
    margin-bottom: 2px;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page) .list-tracking-aff-form .login-history-topbar.subordinate-aff-form {
    margin-top: 0;
    margin-bottom: 6px;
    padding-top: 2px;
    padding-bottom: 2px;
    align-items: center;
    row-gap: 8px;
}

.cash-deposit-page .cash-deposit-filter--in-aff {
    display: contents;
}

.cash-deposit-page .list-tracking-aff-form .cash-deposit-filter--in-aff > .login-history-hint,
.cash-deposit-page .list-tracking-aff-form .cash-deposit-filter--in-aff > .login-history-date-group,
.cash-deposit-page .list-tracking-aff-form .cash-deposit-filter--in-aff > .date-filter-action-group,
.cash-deposit-page .list-tracking-aff-form .cash-deposit-filter--in-aff > .date-filter-vendor-kind {
    flex: 0 0 auto;
}

.cash-deposit-page .list-tracking-aff-form .cash-deposit-filter--in-aff .user-detail-money-log-search-row {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    width: auto;
}

.cash-deposit-page .list-tracking-aff-form .cash-deposit-filter--in-aff .user-detail-money-log-search-row .inquiry-all-search-wrap {
    flex: 0 0 120px;
    min-width: 120px;
    max-width: 120px;
    margin-left: 0;
}

.cash-deposit-page.list-tracking-page:not(.is-store-viewer) .cash-deposit-table-main > .list-tracking-tab-filter {
    display: none;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page) .cash-deposit-tracking {
    margin-top: 0;
}

/* 충환전 내역: 표만 스크롤하고 페이지 칸은 하단에 고정 */
body.admin-body .admin-main-scroll:has(> .page-container.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page)) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

.page-container.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) > .page-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) > .page-card > .page-card-body.cash-deposit-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) .cash-deposit-tracking {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) #cash-deposit-main {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) .cash-deposit-tree-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) .cash-deposit-tree-section .partners-tree-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) .cash-deposit-table-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) .cash-deposit-table-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) .cash-deposit-table-shell > .flex-grow-1.overflow-x-auto {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) #cash-deposit-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #151b25;
}

html.admin-theme-light .cash-deposit-page #cash-deposit-data-table thead th {
    background: #eef2f8 !important;
    color: #1f2937;
    box-shadow: 0 1px 0 var(--line);
}

html.admin-theme-light .cash-deposit-page #cash-deposit-data-table thead th .cash-deposit-table-head-label {
    color: #1f2937;
}

html.admin-theme-light .cash-deposit-page .cash-deposit-table-shell {
    background: var(--panel);
    border-color: var(--line);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light .cash-deposit-page .partners-data-table.cash-deposit-table {
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light .cash-deposit-page .partners-data-table.cash-deposit-table tbody td {
    color: var(--text);
    border-bottom-color: var(--line);
}

html.admin-theme-light .cash-deposit-page .cash-deposit-summary,
html.admin-theme-light .cash-deposit-page .cash-deposit-summary span:not(.cash-deposit-summary-kind):not(.cash-deposit-wallet) {
    color: var(--text);
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) #cash-deposit-table-footer {
    flex: 0 0 auto;
    padding: 4px 10px;
    gap: 6px 10px;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) #cash-deposit-table-footer .members-data-table-footer-controls {
    gap: 6px 10px;
}

.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) #cash-deposit-table-footer .members-data-table-pages .pagination-page,
.cash-deposit-page.list-tracking-page:not(.partner-cash-requests-page):not(.partner-member-transfer-page) #cash-deposit-table-footer .members-data-table-page-ellipsis {
    width: 26px;
    height: 26px;
    min-width: 26px;
}

/* 일자별 충환전 등 date-filter + list-tracking: 상단 여백 최소화 */
body.admin-body .admin-main-scroll:has(> .page-container.date-filter-page.list-tracking-page) {
    padding-top: 4px;
}

.page-container.date-filter-page.list-tracking-page {
    padding-top: 0;
    padding-bottom: 24px;
}

.page-container.date-filter-page.list-tracking-page:not(:has(.betting-list-tracking)) > .page-card > .page-card-body.partners-list-body.login-history-body.date-filter-body {
    padding-top: 4px;
    padding-right: 10px;
    padding-bottom: 16px;
    padding-left: 10px;
}

.page-container.date-filter-page.list-tracking-page .list-tracking-aff-form {
    margin-bottom: 2px;
}

.page-container.date-filter-page.list-tracking-page .list-tracking-aff-form .login-history-topbar.subordinate-aff-form {
    margin-top: 0;
    margin-bottom: 6px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.page-container.date-filter-page.list-tracking-page .list-tracking-tab-filter.login-history-topbar {
    margin-top: 0;
    margin-bottom: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.list-tracking-page .list-tracking-tab-filter.login-history-topbar {
    margin: 0 0 12px;
}

.list-tracking-page .cash-deposit-table-main > .list-tracking-tab-filter {
    margin-bottom: 10px;
}

.money-log-standalone-aff-form .login-history-topbar.subordinate-aff-form {
    margin-top: 0;
    margin-bottom: 0;
    padding: 6px 10px;
    align-items: center;
    row-gap: 8px;
}

.members-aff-filter-panel-toggle {
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 32px;
    min-width: 32px;
    height: 37px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(52, 211, 153, 0.38);
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, width 0.15s ease, padding 0.15s ease;
}

.members-aff-filter-panel-toggle.is-collapsed {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 0 10px;
}

.members-aff-filter-panel-toggle:hover,
.members-aff-filter-panel-toggle:focus-visible {
    border-color: #34d399;
    background: rgba(16, 185, 129, 0.24);
    color: #ecfdf5;
    outline: none;
}

.members-aff-filter-panel-toggle .mdi {
    font-size: 20px;
    line-height: 1;
}

.members-aff-filter-panel-toggle-label {
    line-height: 1;
}

.list-tracking-aff-form .subordinate-aff-form.is-aff-filter-collapsed,
.money-log-standalone-aff-form .subordinate-aff-form.is-aff-filter-collapsed,
.settlement-filter-form.subordinate-aff-form.is-aff-filter-collapsed,
.betting-list-filter-form.subordinate-aff-form.is-aff-filter-collapsed,
.daily-betting-aff-form.subordinate-aff-form.is-aff-filter-collapsed,
#subordinate-aff-form.subordinate-aff-form.is-aff-filter-collapsed,
.members-aff-form.subordinate-aff-form.is-aff-filter-collapsed {
    padding-top: 4px;
    padding-bottom: 4px;
    row-gap: 0;
}

.list-tracking-aff-form .subordinate-aff-form.is-aff-filter-collapsed > :not(.members-aff-filter-panel-toggle):not(.login-history-topbar-title):not(.login-history-topbar-title-active),
.money-log-standalone-aff-form .subordinate-aff-form.is-aff-filter-collapsed > :not(.members-aff-filter-panel-toggle):not(.login-history-topbar-title):not(.login-history-topbar-title-active),
.settlement-filter-form.subordinate-aff-form.is-aff-filter-collapsed > :not(.members-aff-filter-panel-toggle):not(.login-history-topbar-title):not(.login-history-topbar-title-active),
.betting-list-filter-form.subordinate-aff-form.is-aff-filter-collapsed > :not(.members-aff-filter-panel-toggle):not(.login-history-topbar-title):not(.login-history-topbar-title-active),
.daily-betting-aff-form.subordinate-aff-form.is-aff-filter-collapsed > :not(.members-aff-filter-panel-toggle):not(.login-history-topbar-title):not(.login-history-topbar-title-active),
#subordinate-aff-form.subordinate-aff-form.is-aff-filter-collapsed > :not(.members-aff-filter-panel-toggle):not(.login-history-topbar-title):not(.login-history-topbar-title-active),
.members-aff-form.subordinate-aff-form.is-aff-filter-collapsed > :not(.members-aff-filter-panel-toggle):not(.login-history-topbar-title):not(.login-history-topbar-title-active) {
    display: none !important;
}

#subordinate-aff-form > .members-aff-filter-panel-toggle {
    height: 40px;
}

html.admin-theme-light .members-aff-filter-panel-toggle {
    border-color: rgba(5, 150, 105, 0.35);
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

html.admin-theme-light .members-aff-filter-panel-toggle:hover,
html.admin-theme-light .members-aff-filter-panel-toggle:focus-visible {
    border-color: #059669;
    background: rgba(16, 185, 129, 0.18);
    color: #065f46;
}

.money-log-standalone-aff-form .money-log-standalone-date-group,
.money-log-standalone-aff-form .money-log-standalone-date-actions {
    flex: 0 0 auto;
}

.money-log-standalone-aff-form .user-detail-money-log-search-row {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    width: auto;
}

.money-log-standalone-aff-form .user-detail-money-log-search-row .inquiry-all-search-wrap {
    flex: 0 0 120px;
    min-width: 120px;
    max-width: 120px;
    margin-left: 0;
}

.money-log-standalone-aff-form .user-detail-money-log-search-row .inquiry-search-field-select {
    flex: 0 0 132px;
    min-width: 132px;
    max-width: 132px;
}

.user-management-detail-page.is-money-log-standalone:not(.is-money-log-store-viewer) .money-log-standalone-main .user-detail-tab-card .user-detail-tab-filter {
    display: none;
}

.user-management-detail-page.is-money-log-standalone .money-log-standalone-layout.partners-list-layout {
    margin-top: 4px;
    gap: 8px;
}

.money-log-standalone-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

.money-log-standalone-tree-section {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}

.user-management-detail-page.is-money-log-standalone .money-log-standalone-tree-section .partners-tree-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.money-log-standalone-tree-section #money-log-standalone-tree .tree {
    margin: 0;
    padding: 0;
}

.money-log-standalone-tree-section #money-log-standalone-tree .node-content {
    padding-right: 0;
    min-height: 22px;
}

.money-log-standalone-tree-section #money-log-standalone-tree .toggle-icon,
.money-log-standalone-tree-section #money-log-standalone-tree .tree-node-toggle,
.money-log-standalone-tree-section #money-log-standalone-tree .toggle-placeholder {
    width: 14px;
    font-size: 10px;
}

.money-log-standalone-tree-section #money-log-standalone-tree .node-icon {
    width: 20px;
    height: 20px;
    margin: 0 2px 0 0;
}

.money-log-standalone-tree-section #money-log-standalone-tree .node-label {
    padding: 2px 4px;
    font-size: 12px;
    line-height: 1.25;
}

.store-viewer-members-tree-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.store-viewer-members-tree-section .partners-tree-card {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    padding: 4px 4px 4px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.store-viewer-members-tree-section .tree-container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.store-viewer-members-tree-section .bg-tree[data-mode="store-members"] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.store-viewer-members-tree-section .bg-tree[data-mode="store-members"] .search-container {
    margin-left: 0;
    padding-left: 0;
}

.store-viewer-members-tree-section .bg-tree[data-mode="store-members"] .tree {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.store-viewer-members-tree-section .bg-tree[data-mode="store-members"] .node-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-right: 2px;
    padding-left: 0;
}

.store-viewer-members-tree-section .bg-tree[data-mode="store-members"] .node-icon {
    margin-left: 0;
    margin-right: 2px;
}

.store-viewer-members-tree-section .bg-tree[data-mode="store-members"] .node-label {
    flex: 1 1 auto;
    min-width: 0;
}

.user-management-detail-page.is-money-log-standalone .money-log-standalone-main .user-management-detail-panels {
    gap: 0;
}

.user-management-detail-page.is-money-log-standalone .money-log-standalone-main .user-management-detail-panel {
    margin: 0;
}

.user-management-detail-page.is-money-log-standalone .money-log-standalone-main .user-detail-tab-card {
    margin: 0;
}

.money-log-standalone-member-node-icon {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    font-size: 20px;
}

.money-log-standalone-member-node-icon .mdi {
    font-size: 20px;
}

body.has-partner-tree-shop-command #members-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content,
body.has-partner-tree-shop-command #partners-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content,
body.has-partner-tree-shop-command #customtree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content,
body.has-partner-tree-shop-command #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content,
body.has-partner-tree-shop-command #cash-deposit-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content,
body.has-partner-tree-shop-command #betting-list-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content,
body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content,
.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-member-user-id] > .node-content,
.has-money-log-tree-contextmenu #cash-deposit-tree .tree-node[data-member-user-id] > .node-content,
.has-money-log-tree-contextmenu #betting-list-tree .tree-node[data-member-user-id] > .node-content {
    position: relative;
    cursor: context-menu;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.07) 0%, transparent 36%);
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

body.has-partner-tree-shop-command #members-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .node-icon,
body.has-partner-tree-shop-command #members-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .node-label,
body.has-partner-tree-shop-command #partners-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .node-icon,
body.has-partner-tree-shop-command #partners-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .node-label,
body.has-partner-tree-shop-command #customtree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .node-icon,
body.has-partner-tree-shop-command #customtree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .node-label,
body.has-partner-tree-shop-command #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .node-icon,
body.has-partner-tree-shop-command #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .node-label,
body.has-partner-tree-shop-command #cash-deposit-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .node-icon,
body.has-partner-tree-shop-command #cash-deposit-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .node-label,
body.has-partner-tree-shop-command #betting-list-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .node-icon,
body.has-partner-tree-shop-command #betting-list-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .node-label,
body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .node-icon,
body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .node-label {
    cursor: context-menu;
}

body.has-partner-tree-shop-command .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content .tree-node-toggle {
    cursor: pointer;
}

body.has-partner-tree-shop-command #members-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
body.has-partner-tree-shop-command #partners-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
body.has-partner-tree-shop-command #customtree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
body.has-partner-tree-shop-command #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
body.has-partner-tree-shop-command #cash-deposit-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
body.has-partner-tree-shop-command #betting-list-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-member-user-id] > .node-content::before,
.has-money-log-tree-contextmenu #cash-deposit-tree .tree-node[data-member-user-id] > .node-content::before,
.has-money-log-tree-contextmenu #betting-list-tree .tree-node[data-member-user-id] > .node-content::before {
    content: "";
    position: absolute;
    inset: 3px 2px;
    border: 1px dashed rgba(52, 211, 153, 0.22);
    border-radius: 6px;
    pointer-events: none;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

body.has-partner-tree-shop-command #members-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after,
body.has-partner-tree-shop-command #partners-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after,
body.has-partner-tree-shop-command #customtree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after,
body.has-partner-tree-shop-command #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after,
body.has-partner-tree-shop-command #cash-deposit-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after,
body.has-partner-tree-shop-command #betting-list-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after,
body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after,
.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-member-user-id] > .node-content::after,
.has-money-log-tree-contextmenu #cash-deposit-tree .tree-node[data-member-user-id] > .node-content::after,
.has-money-log-tree-contextmenu #betting-list-tree .tree-node[data-member-user-id] > .node-content::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 3px;
    width: 14px;
    height: 14px;
    z-index: 3;
    opacity: 0.42;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4a5.5 5.5 0 0 1 5.5 5.5V16a5.5 5.5 0 1 1-11 0V9.5A5.5 5.5 0 0 1 12 4z' stroke='%2334d399' stroke-width='1.75'/%3E%3Cpath d='M12 4v8.25' stroke='%2334d399' stroke-width='1.35' stroke-linecap='round'/%3E%3Cpath d='M12 4h5.5a5.5 5.5 0 0 1 5.5 5.5V12H12V4z' fill='%2334d399' fill-opacity='0.52'/%3E%3Ccircle cx='12' cy='15.25' r='1.15' fill='%2334d399' fill-opacity='0.85'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body.has-partner-tree-shop-command #members-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover,
body.has-partner-tree-shop-command #partners-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover,
body.has-partner-tree-shop-command #customtree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover,
body.has-partner-tree-shop-command #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover,
body.has-partner-tree-shop-command #cash-deposit-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover,
body.has-partner-tree-shop-command #betting-list-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover,
body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover,
.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-member-user-id] > .node-content:hover,
.has-money-log-tree-contextmenu #cash-deposit-tree .tree-node[data-member-user-id] > .node-content:hover,
.has-money-log-tree-contextmenu #betting-list-tree .tree-node[data-member-user-id] > .node-content:hover {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0.04) 100%);
    box-shadow: inset 3px 0 0 #34d399;
}

body.has-partner-tree-shop-command #members-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::before,
body.has-partner-tree-shop-command #partners-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::before,
body.has-partner-tree-shop-command #customtree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::before,
body.has-partner-tree-shop-command #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::before,
body.has-partner-tree-shop-command #cash-deposit-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::before,
body.has-partner-tree-shop-command #betting-list-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::before,
body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::before,
.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-member-user-id] > .node-content:hover::before,
.has-money-log-tree-contextmenu #cash-deposit-tree .tree-node[data-member-user-id] > .node-content:hover::before,
.has-money-log-tree-contextmenu #betting-list-tree .tree-node[data-member-user-id] > .node-content:hover::before {
    border-color: rgba(110, 231, 183, 0.55);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.12);
}

body.has-partner-tree-shop-command #members-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::after,
body.has-partner-tree-shop-command #partners-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::after,
body.has-partner-tree-shop-command #customtree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::after,
body.has-partner-tree-shop-command #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::after,
body.has-partner-tree-shop-command #cash-deposit-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::after,
body.has-partner-tree-shop-command #betting-list-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::after,
body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::after,
.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-member-user-id] > .node-content:hover::after,
.has-money-log-tree-contextmenu #cash-deposit-tree .tree-node[data-member-user-id] > .node-content:hover::after,
.has-money-log-tree-contextmenu #betting-list-tree .tree-node[data-member-user-id] > .node-content:hover::after {
    opacity: 0.95;
    transform: scale(1.06);
}

body.has-partner-tree-shop-command .members-tree-section .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content.is-selected,
body.has-partner-tree-shop-command .members-tree-section .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]).is-selected > .node-content {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.07) 0%, transparent 36%);
    box-shadow: none;
    border-bottom-color: transparent;
}

body.has-partner-tree-shop-command .members-tree-section .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]).is-selected > .node-content::before,
body.has-partner-tree-shop-command .members-tree-section .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content.is-selected::before {
    inset: 0;
    border: none;
    background-color: transparent;
    box-shadow: none;
    border-radius: 4px;
    z-index: 2;
    background-image:
        linear-gradient(#fff8d0, #ffd24a),
        linear-gradient(#ffd24a, #ff9f1a),
        linear-gradient(#ffd24a, #fff8d0),
        linear-gradient(#ff9f1a, #ffd24a);
    background-repeat: no-repeat;
    background-position: left top, right top, right bottom, left bottom;
    animation: members-tree-selected-frame 2.2s linear infinite;
}

html.admin-theme-light body.has-partner-tree-shop-command .members-tree-section .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content.is-selected,
html.admin-theme-light body.has-partner-tree-shop-command .members-tree-section .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]).is-selected > .node-content {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.07) 0%, transparent 36%);
    box-shadow: none;
}

html.admin-theme-light body.has-partner-tree-shop-command .members-tree-section .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]).is-selected > .node-content::before,
html.admin-theme-light body.has-partner-tree-shop-command .members-tree-section .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content.is-selected::before {
    background-image:
        linear-gradient(#fef3c7, #f59e0b),
        linear-gradient(#f59e0b, #d97706),
        linear-gradient(#f59e0b, #fef3c7),
        linear-gradient(#d97706, #f59e0b);
}

body.has-partner-tree-shop-command .subordinate-id-chip:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger,
body.has-partner-tree-shop-command .partner-transfer-hierarchy-chip[data-partner-id]:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger,
body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-login-id,
body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-nickname {
    position: relative;
    cursor: context-menu;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.07) 0%, transparent 36%);
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

body.has-partner-tree-shop-command .subordinate-id-chip:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger > *,
body.has-partner-tree-shop-command .partner-transfer-hierarchy-chip[data-partner-id]:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger > * {
    position: relative;
    z-index: 2;
}

body.has-partner-tree-shop-command .subordinate-id-chip:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger::before,
body.has-partner-tree-shop-command .partner-transfer-hierarchy-chip[data-partner-id]:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger::before,
body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-login-id::before,
body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-nickname::before {
    content: "";
    position: absolute;
    inset: 5px 4px;
    border: 1px dashed rgba(52, 211, 153, 0.22);
    border-radius: 8px;
    pointer-events: none;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

body.has-partner-tree-shop-command .subordinate-id-chip:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger::after,
body.has-partner-tree-shop-command .partner-transfer-hierarchy-chip[data-partner-id]:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger::after,
body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-login-id::after,
body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-nickname::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 5px;
    width: 16px;
    height: 16px;
    z-index: 1;
    opacity: 0.42;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4a5.5 5.5 0 0 1 5.5 5.5V16a5.5 5.5 0 1 1-11 0V9.5A5.5 5.5 0 0 1 12 4z' stroke='%2334d399' stroke-width='1.75'/%3E%3Cpath d='M12 4v8.25' stroke='%2334d399' stroke-width='1.35' stroke-linecap='round'/%3E%3Cpath d='M12 4h5.5a5.5 5.5 0 0 1 5.5 5.5V12H12V4z' fill='%2334d399' fill-opacity='0.52'/%3E%3Ccircle cx='12' cy='15.25' r='1.15' fill='%2334d399' fill-opacity='0.85'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

body.has-partner-tree-shop-command .subordinate-id-chip:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger:hover,
body.has-partner-tree-shop-command .partner-transfer-hierarchy-chip[data-partner-id]:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger:hover,
body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-login-id:hover,
body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-nickname:hover {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0.04) 100%);
    box-shadow: inset 3px 0 0 #34d399;
}

body.has-partner-tree-shop-command .subordinate-id-chip:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger:hover::before,
body.has-partner-tree-shop-command .partner-transfer-hierarchy-chip[data-partner-id]:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger:hover::before,
body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-login-id:hover::before,
body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-nickname:hover::before {
    border-color: rgba(110, 231, 183, 0.55);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.12);
}

body.has-partner-tree-shop-command .subordinate-id-chip:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger:hover::after,
body.has-partner-tree-shop-command .partner-transfer-hierarchy-chip[data-partner-id]:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger:hover::after,
body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-login-id:hover::after,
body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-nickname:hover::after {
    opacity: 0.95;
    transform: scale(1.06);
}

.is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .money-log-standalone-store-node,
.is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content,
.cash-deposit-page.is-store-viewer.has-money-log-tree-contextmenu #cash-deposit-tree .money-log-standalone-store-node,
.cash-deposit-page.is-store-viewer.has-money-log-tree-contextmenu #cash-deposit-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content,
.date-filter-page.is-store-viewer.has-money-log-tree-contextmenu #betting-list-tree .money-log-standalone-store-node,
.date-filter-page.is-store-viewer.has-money-log-tree-contextmenu #betting-list-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content {
    cursor: pointer;
    background: transparent;
    box-shadow: none;
}

.is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .money-log-standalone-store-node:not(.is-selected)::before,
.is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .money-log-standalone-store-node:not(.is-selected)::after,
.is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
.is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after,
.cash-deposit-page.is-store-viewer.has-money-log-tree-contextmenu #cash-deposit-tree .money-log-standalone-store-node:not(.is-selected)::before,
.cash-deposit-page.is-store-viewer.has-money-log-tree-contextmenu #cash-deposit-tree .money-log-standalone-store-node:not(.is-selected)::after,
.cash-deposit-page.is-store-viewer.has-money-log-tree-contextmenu #cash-deposit-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
.cash-deposit-page.is-store-viewer.has-money-log-tree-contextmenu #cash-deposit-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after,
.date-filter-page.is-store-viewer.has-money-log-tree-contextmenu #betting-list-tree .money-log-standalone-store-node:not(.is-selected)::before,
.date-filter-page.is-store-viewer.has-money-log-tree-contextmenu #betting-list-tree .money-log-standalone-store-node:not(.is-selected)::after,
.date-filter-page.is-store-viewer.has-money-log-tree-contextmenu #betting-list-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
.date-filter-page.is-store-viewer.has-money-log-tree-contextmenu #betting-list-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after {
    content: none;
    display: none;
}

.is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .money-log-standalone-store-node:hover:not(.is-selected),
.is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover:not(.is-selected),
.cash-deposit-page.is-store-viewer.has-money-log-tree-contextmenu #cash-deposit-tree .money-log-standalone-store-node:hover:not(.is-selected),
.cash-deposit-page.is-store-viewer.has-money-log-tree-contextmenu #cash-deposit-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover:not(.is-selected),
.date-filter-page.is-store-viewer.has-money-log-tree-contextmenu #betting-list-tree .money-log-standalone-store-node:hover:not(.is-selected),
.date-filter-page.is-store-viewer.has-money-log-tree-contextmenu #betting-list-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover:not(.is-selected) {
    background: rgba(93, 214, 255, 0.12);
    box-shadow: none;
}

.is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .money-log-standalone-store-node.is-selected,
.cash-deposit-page.is-store-viewer.has-money-log-tree-contextmenu #cash-deposit-tree .money-log-standalone-store-node.is-selected,
.date-filter-page.is-store-viewer.has-money-log-tree-contextmenu #betting-list-tree .money-log-standalone-store-node.is-selected {
    background: rgba(49, 93, 255, 0.16);
    border-bottom-color: transparent;
    box-shadow: none;
}

.is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .money-log-standalone-store-node:hover:not(.is-selected)::before,
.is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .money-log-standalone-store-node:hover:not(.is-selected)::after,
.is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover:not(.is-selected)::before,
.is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover:not(.is-selected)::after,
.cash-deposit-page.is-store-viewer.has-money-log-tree-contextmenu #cash-deposit-tree .money-log-standalone-store-node:hover:not(.is-selected)::before,
.cash-deposit-page.is-store-viewer.has-money-log-tree-contextmenu #cash-deposit-tree .money-log-standalone-store-node:hover:not(.is-selected)::after,
.cash-deposit-page.is-store-viewer.has-money-log-tree-contextmenu #cash-deposit-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover:not(.is-selected)::before,
.cash-deposit-page.is-store-viewer.has-money-log-tree-contextmenu #cash-deposit-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover:not(.is-selected)::after,
.date-filter-page.is-store-viewer.has-money-log-tree-contextmenu #betting-list-tree .money-log-standalone-store-node:hover:not(.is-selected)::before,
.date-filter-page.is-store-viewer.has-money-log-tree-contextmenu #betting-list-tree .money-log-standalone-store-node:hover:not(.is-selected)::after,
.date-filter-page.is-store-viewer.has-money-log-tree-contextmenu #betting-list-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover:not(.is-selected)::before,
.date-filter-page.is-store-viewer.has-money-log-tree-contextmenu #betting-list-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover:not(.is-selected)::after {
    content: none;
    display: none;
}

.money-log-standalone-main {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.money-log-standalone-main .user-management-detail-panel {
    margin: 0;
    min-width: 0;
    max-width: 100%;
}

.money-log-standalone-main .user-detail-tab-card {
    border: 0;
    box-shadow: none;
    background: transparent;
    min-width: 0;
    max-width: 100%;
}

.money-log-standalone-main .user-detail-tab-card .page-card-body {
    padding: 0;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.user-management-detail-page.is-money-log-standalone .money-log-standalone-main .user-management-detail-panels,
.user-management-detail-page.is-money-log-standalone .money-log-standalone-main .user-management-detail-panel,
.user-management-detail-page.is-money-log-standalone .money-log-standalone-main .user-detail-tab-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.user-management-detail-page.is-money-log-standalone .money-log-standalone-main .user-detail-tab-card .user-detail-tab-filter {
    flex: 0 0 auto;
    margin-bottom: 6px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.user-management-detail-page.is-money-log-standalone .money-log-standalone-main .page-table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.user-management-detail-page.is-money-log-standalone #user-detail-money-log-table-footer {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 4px 8px;
    gap: 6px 10px;
}

.user-management-detail-page.is-money-log-standalone #user-detail-money-log-table-footer .members-data-table-footer-controls {
    gap: 6px 10px;
}

.user-management-detail-page.is-money-log-standalone #user-detail-money-log-table-footer .members-data-table-total {
    font-size: 13px;
}

.user-management-detail-page.is-money-log-standalone #user-detail-money-log-table-footer .members-data-table-pages .pagination-page,
.user-management-detail-page.is-money-log-standalone #user-detail-money-log-table-footer .members-data-table-page-ellipsis {
    width: 26px;
    height: 26px;
    min-width: 26px;
}

.user-management-detail-page.is-money-log-standalone .money-log-standalone-main .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] {
    width: max-content;
    min-width: 1100px;
    max-width: none;
}

.user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    min-width: 0;
    padding: 4px 6px;
    border-bottom: 1px solid #293241;
    background: #151b25;
    color: #aeb8cc;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    vertical-align: middle;
    text-align: center;
}

.user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] tbody td {
    padding: 3px 6px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td[data-col="delta"] {
    font-size: 13px;
}

.user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td[data-col="created_at"] .user-detail-money-log-partner-cash-dates {
    font-size: 11px;
    line-height: 1.2;
}

.user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] .money-log-affiliation-chip {
    min-height: 30px;
    padding: 1px 5px 1px 3px;
    gap: 4px;
    font-size: 11px;
}

.user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] .money-log-affiliation-chip .members-affiliation-label {
    font-size: 11px;
}

.user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] thead th.is-num {
    text-align: center;
}

.user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] thead th.partners-table-login-id-head {
    padding-top: 4px;
    padding-bottom: 4px;
}

.user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] .partners-table-login-id-head-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

.user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] .partners-table-login-id-head .partners-table-th-label {
    display: block;
    line-height: 1.25;
    color: #aeb8cc;
    font-size: 12px;
    font-weight: 700;
}

.user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] .partners-table-login-id-head .partners-column-hide-btn {
    display: flex;
    width: 100%;
    min-height: 22px;
    margin: 0;
    padding: 0 6px;
    justify-content: center;
    font-size: 11px;
    line-height: 1.2;
    box-sizing: border-box;
}

.user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] thead th[data-col="before"],
.user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] thead th[data-col="delta"] {
    color: #aeb8cc;
    font-weight: 700;
    font-size: 12px;
}

.user-management-detail-backbar {
    justify-content: flex-start;
    margin-bottom: 12px;
}

.user-management-detail-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid #315dff;
    background: #315dff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(49, 93, 255, 0.32);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.user-management-detail-back-link:hover {
    background: #4a72ff;
    border-color: #4a72ff;
    color: #fff;
    box-shadow: 0 4px 14px rgba(49, 93, 255, 0.4);
}

.user-management-detail-back-link .mdi {
    font-size: 18px;
    line-height: 1;
}

.user-management-detail-summary {
    padding: 20px 24px;
    border: 1px solid #293241;
    border-radius: 12px;
    background: #171d27;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.user-management-detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 16px 24px;
}

.user-management-detail-summary-affiliation .members-affiliation-combobox,
.user-management-detail-affiliation-combobox {
    width: 100%;
    max-width: 11.5rem;
}

.user-management-detail-summary-affiliation .members-affiliation-trigger {
    width: 100%;
    min-height: 30px;
    height: 30px;
    padding: 0 8px;
    font-size: 13px;
}

.user-management-detail-summary-item--affiliation .user-management-detail-summary-label {
    margin-bottom: 0;
}

.user-management-detail-summary-item {
    display: grid;
    gap: 6px;
}

.user-management-detail-summary-label {
    color: #8590a6;
    font-size: 12px;
}

.user-management-detail-summary-value {
    color: #e8edf8;
    font-size: 15px;
    font-weight: 600;
}

.user-management-detail-summary-inline-edit {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.user-management-detail-summary-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #0f141c;
    color: #e8edf8;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.user-management-detail-summary-save-btn {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #1a8ff7 0%, #137fec 48%, #0f6fd4 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.user-management-detail-summary-save-btn:hover:not(:disabled) {
    filter: brightness(1.08);
}

.user-management-detail-summary-save-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

html.admin-theme-light .user-management-detail-summary-input {
    border-color: #cbd5e1;
    background: #fff;
    color: #0f172a;
}

.user-management-detail-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.user-management-detail-join-auth-code {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
}

.user-management-detail-tabs-shell {
    overflow: visible;
}

.user-management-detail-tabs {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.user-management-detail-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #293241;
    border-radius: 8px;
    background: #151b25;
    color: #aeb8cc;
    font: inherit;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.user-management-detail-tab:hover {
    color: #f4f6fc;
    border-color: #3a465c;
}

.user-management-detail-tab.is-active {
    border-color: #2f9e6a;
    background: #2f9e6a;
    color: #f7f8fc;
    font-weight: 600;
    animation: userDetailActiveTabBorderBlink 1.2s ease-in-out infinite;
}

.user-management-detail-tab.is-active:hover {
    color: #fff;
    border-color: #27875a;
    background: #27875a;
}

@keyframes userDetailActiveTabBorderBlink {
    0%,
    100% {
        border-color: #2f9e6a;
        box-shadow: 0 0 0 2px rgba(47, 158, 106, 0.35);
    }

    50% {
        border-color: #9eecc4;
        box-shadow: 0 0 0 3px rgba(158, 236, 196, 0.7);
    }
}

.user-management-detail-panels {
    display: grid;
    gap: 16px;
}

.user-management-detail-panel[hidden] {
    display: none !important;
}

.user-management-detail-info-shell {
    padding: 0;
}

.user-detail-info-panels {
    display: grid;
    gap: 16px;
}

.user-detail-info-panels-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.user-detail-info-column {
    display: grid;
    gap: 16px;
    align-content: start;
}

.user-detail-info-panels-grid .user-detail-game-grid {
    grid-template-columns: minmax(0, 1fr);
}

.user-detail-expansion-panel {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #171d27;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.user-detail-expansion-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 16px 24px;
    border-bottom: 0;
    background: #6e88ce;
    color: #f7f8fc;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease;
}

.user-detail-expansion-title:hover {
    background: #5d77c2;
}

.user-detail-expansion-panel.is-danger .user-detail-expansion-title {
    background: #c47f7f;
}

.user-detail-expansion-panel.is-danger .user-detail-expansion-title:hover {
    background: #b56f6f;
}

.user-detail-delete-account-field {
    display: block;
}

.user-detail-delete-account-row {
    flex-wrap: nowrap;
    width: 100%;
    align-items: center;
}

.user-detail-delete-account-row .user-detail-field-label {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.user-detail-delete-account-row .user-detail-field-input {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 280px;
}

.user-detail-delete-account-row .user-detail-field-inline-btn {
    flex: 0 0 auto;
}

.user-detail-field-label-inline {
    display: block;
}

.user-detail-field-label-inline-row {
    flex-wrap: nowrap;
    width: 100%;
    align-items: center;
}

.user-detail-field-label-inline-row .user-detail-field-label {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.user-detail-private-settings-panel .user-detail-field-label-inline-row .user-detail-field-label {
    min-width: 4.5em;
}

.user-detail-field-label-inline-row .user-detail-field-input {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

.user-detail-field-label-inline-row .user-detail-field-inline-btn,
.user-detail-field-label-inline-row > .user-detail-action-btn {
    flex: 0 0 auto;
}

.user-detail-private-bank-grid.user-detail-fields-grid-single {
    max-width: none;
}

.user-detail-expansion-title::-webkit-details-marker {
    display: none;
}

.user-detail-expansion-title::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    opacity: 0.9;
}

.user-detail-expansion-panel[open] .user-detail-expansion-title::after {
    transform: rotate(-135deg);
}

.user-detail-expansion-title-label {
    flex: 0 0 auto;
}

.user-detail-expansion-title-trailing {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 14px;
    display: flex;
    align-items: center;
    min-width: 0;
}

.user-detail-expansion-joined-at {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(247, 248, 252, 0.94);
    white-space: nowrap;
}

.user-detail-expansion-joined-at-label {
    font-weight: 500;
    opacity: 0.88;
}

.user-detail-expansion-joined-at-value {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.user-detail-expansion-body {
    padding: 20px 24px 24px;
    background: #171d27;
}

.user-detail-fields-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 20px;
}

.user-detail-fields-grid-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
}

.user-detail-basic-fields-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
}

.user-detail-basic-fields-grid .user-detail-field {
    gap: 4px;
}

.user-detail-basic-fields-grid .user-detail-field-inline {
    gap: 6px;
}

.user-detail-basic-fields-grid .user-detail-action-btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
}

.user-detail-basic-field-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 10px;
    padding: 6px 8px;
    border: 1px solid #293241;
    border-radius: 8px;
    background: rgba(21, 27, 37, 0.65);
}

.user-detail-joined-at-field {
    gap: 0;
}

.user-detail-joined-at-composite {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    min-height: 40px;
    height: auto;
    padding-top: 6px;
    padding-bottom: 6px;
    cursor: default;
}

.user-detail-joined-at-composite .user-detail-joined-at-label {
    flex: 0 0 auto;
    color: #8590a6;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.user-detail-joined-at-composite .user-detail-joined-at-value {
    flex: 0 0 auto;
    min-width: 0;
    color: #e8edf8;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}

.user-detail-basic-fields-grid .user-detail-join-auth-field .user-detail-field-inline {
    max-width: none;
    flex-wrap: nowrap;
}

.user-detail-basic-fields-grid .user-detail-join-auth-field .user-detail-field-input {
    flex: 0 1 72px;
    width: 72px;
    max-width: 72px;
}

.user-detail-join-auth-field .join-auth-check-btn {
    padding-left: 8px;
    padding-right: 8px;
}

.user-detail-basic-fields-grid .user-detail-nickname-field .user-detail-field-inline {
    max-width: 220px;
}

.user-detail-basic-fields-grid .user-detail-nickname-field .user-detail-field-input {
    flex: 0 1 108px;
    width: 108px;
    max-width: 108px;
}

.user-detail-basic-fields-grid .user-detail-password-change-field .user-detail-field-inline {
    max-width: 220px;
}

.user-detail-basic-fields-grid .user-detail-password-current-field .user-detail-field-input {
    max-width: 108px;
}

.user-detail-basic-fields-grid .user-detail-password-change-field .user-detail-field-input {
    flex: 0 1 108px;
    width: 108px;
    max-width: 108px;
}


.user-detail-basic-fields-grid .user-detail-nickname-field .user-detail-field-inline-btn,
.user-detail-basic-fields-grid .user-detail-password-field .user-detail-field-inline-btn,
.user-detail-basic-fields-grid .user-detail-join-auth-field .user-detail-field-inline-btn {
    padding-left: 8px;
    padding-right: 8px;
}

.user-detail-field {
    display: grid;
    gap: 8px;
}

.user-detail-field-grow {
    flex: 1 1 auto;
}

.user-detail-field-span-2 {
    grid-column: span 2;
}

.user-detail-field-span-full {
    grid-column: 1 / -1;
}

.user-detail-field-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-detail-field-inline .user-detail-field-input {
    flex: 1 1 auto;
    min-width: 0;
}

.user-detail-field-inline-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.user-detail-field-label {
    color: #8590a6;
    font-size: 13px;
    font-weight: 500;
}

.user-detail-field-hint {
    margin-left: 6px;
    color: #7d8798;
    font-weight: 400;
}

.user-detail-basic-field-group--duplicate-login {
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px 8px;
    align-self: stretch;
    min-height: 75px;
    box-sizing: border-box;
}

.user-detail-basic-field-group--duplicate-login .user-detail-duplicate-login-field,
.user-detail-basic-field-group--admin-chat .user-detail-admin-chat-field {
    flex: 1 1 100%;
    width: 100%;
    gap: 0;
    margin: 0;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
}

.user-detail-basic-field-group--duplicate-login .user-detail-permission-status,
.user-detail-basic-field-group--admin-chat .user-detail-permission-status {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 4px;
    width: 100%;
    min-height: 0;
    align-content: end;
    align-items: center;
}

.user-detail-basic-field-group--duplicate-login .user-detail-permission-status > .user-detail-field-label,
.user-detail-basic-field-group--admin-chat .user-detail-permission-status > .user-detail-field-label {
    grid-column: 1 / -1;
    grid-row: 1;
    line-height: 1.2;
}

.user-detail-basic-field-group--duplicate-login .user-detail-permission-status > .user-detail-permission-badge,
.user-detail-basic-field-group--admin-chat .user-detail-permission-status > .user-detail-permission-badge {
    grid-row: 2;
    grid-column: 1;
}

.user-detail-basic-field-group--duplicate-login .user-detail-permission-status > .user-detail-permission-switch,
.user-detail-basic-field-group--admin-chat .user-detail-permission-status > .user-detail-permission-switch {
    grid-row: 2;
    grid-column: 2;
}

.user-detail-basic-field-group--admin-chat {
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px 8px;
    align-self: stretch;
    min-height: 75px;
    box-sizing: border-box;
}

.user-detail-basic-field-group--password {
    align-self: stretch;
    min-height: 75px;
    box-sizing: border-box;
}

.user-detail-field-label--grid-spacer {
    visibility: hidden;
    user-select: none;
    line-height: 1.25;
    min-height: 1.25em;
}

.user-detail-basic-field-group--duplicate-login .user-detail-field-inline {
    flex-wrap: nowrap;
    min-height: 34px;
    align-items: center;
    gap: 6px;
}

.user-detail-basic-field-group--duplicate-login .user-detail-field-inline-btn {
    min-height: 34px;
    padding-left: 10px;
    padding-right: 10px;
}

.user-detail-basic-field-group--duplicate-login .user-detail-joined-at-field {
    flex: 0 0 auto;
    width: 128px;
}

.user-detail-basic-field-group--joined-at {
    flex: 0 0 auto;
}

.user-detail-duplicate-login-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #e8edf8;
    cursor: pointer;
}

.user-detail-duplicate-login-label span {
    font-weight: 700;
}

.user-detail-duplicate-login-field.is-focus-highlight {
    border-radius: 8px;
    outline: 2px solid #137fec;
    outline-offset: 4px;
    background: rgba(19, 127, 236, 0.08);
}

.user-detail-field-input {
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #151b25;
    color: #e8edf8;
    font: inherit;
    font-size: 14px;
}

.user-detail-field-input.is-readonly {
    background: #121821;
    color: #c8d0df;
}

.user-detail-field-input:focus {
    outline: 0;
    border-color: #6e88ce;
}

.user-detail-textarea {
    min-height: 112px;
    padding: 12px 14px;
    resize: vertical;
}

.user-detail-subsection + .user-detail-subsection {
    margin-top: 20px;
}

.user-detail-permission-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.user-detail-permission-status-aside {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.user-detail-permission-control-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.user-detail-permission-switch {
    width: 52px;
    height: 40px;
    flex: 0 0 auto;
}

.user-detail-permission-switch .table-switch-track {
    width: 52px;
    height: 22px;
}

.user-detail-permission-switch input:checked + .table-switch-track::after {
    transform: translateX(30px);
}

.user-detail-permission-badge {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.user-detail-permission-badge.is-off {
    color: #ff8a80;
}

.user-detail-permission-badge.is-on {
    color: #69f0ae;
}

.user-detail-permission-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.user-detail-permission-control-row .user-detail-permission-badge {
    margin-top: 0;
}

.user-detail-block-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-detail-block-status-badge {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.user-detail-block-status-badge.is-off {
    color: #ff8a80;
}

.user-detail-block-status-badge.is-on {
    color: #69f0ae;
}

.user-detail-private-bank-grid {
    margin-top: 16px;
}

.user-detail-rate-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.user-detail-rate-table th,
.user-detail-rate-table td {
    padding: 10px 12px;
    border: 1px solid #323b49;
    vertical-align: middle;
    overflow: hidden;
}

.user-detail-rate-table td {
    min-width: 0;
    padding: 8px 4px;
}

.user-detail-rate-table thead th:not(:first-child) {
    padding-left: 4px;
    padding-right: 4px;
}

.user-detail-rate-table .user-detail-rate-col-type,
.user-detail-rate-table thead th:first-child,
.user-detail-rate-table tbody th {
    width: 48px;
    padding-left: 6px;
    padding-right: 6px;
}

.user-detail-rate-table thead th {
    background: #151b25;
    color: #e8edf8;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.user-detail-rate-table tbody th {
    background: #151b25;
    color: #e8edf8;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.user-detail-rate-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.user-detail-rate-field {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.user-detail-rate-field .user-detail-rate-max,
.user-detail-rate-field .user-detail-rate-bounds {
    flex: 0 0 auto;
    margin: 0;
}

.user-detail-rate-field .partner-rate-bounds.user-detail-rate-bounds {
    flex-shrink: 0;
    padding: 4px 6px;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.75);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(245, 158, 11, 0.12));
    box-shadow: 0 0 0 1px rgba(254, 243, 199, 0.08), 0 4px 14px rgba(245, 158, 11, 0.22);
    color: #fef08a;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.user-detail-rate-field .user-detail-field-input {
    flex: 1 1 72px;
    min-width: 0;
    width: 72px;
    max-width: 100%;
    box-sizing: border-box;
}

.user-detail-rate-max {
    color: #c8d0df;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.user-detail-subsection > .user-detail-field-label + .user-detail-color-options,
.user-detail-subsection > .user-detail-field-label:first-child + .user-detail-color-options {
    margin-top: 6px;
}

.user-detail-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.user-detail-color-option {
    cursor: pointer;
    margin: 0;
}

.user-detail-color-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.user-detail-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid #3a4558;
    border-radius: 999px;
    background: #151b25;
    color: #e8edf8;
    font-size: 13px;
    line-height: 1.2;
}

.user-detail-color-dot {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.user-detail-color-option input:checked + .user-detail-color-chip {
    border-color: #6e88ce;
    box-shadow: inset 0 0 0 1px #6e88ce;
}

.user-detail-action-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.user-detail-action-btn {
    min-height: 36px;
    padding: 0 18px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: transparent;
    color: #e8edf8;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.user-detail-action-btn-primary {
    border-color: #6e88ce;
    background: #6e88ce;
    color: #fff;
}

.user-detail-action-btn-primary:hover {
    background: #5d77c2;
    border-color: #5d77c2;
}

.user-detail-action-btn-success {
    border-color: #74b88c;
    background: #74b88c;
    color: #fff;
}

.user-detail-action-btn-success:hover {
    background: #64a97d;
    border-color: #64a97d;
}

.user-detail-action-btn-danger {
    border-color: #7a2e2e;
    background: rgba(244, 67, 54, 0.12);
    color: #ff8a80;
}

.user-detail-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.user-detail-inline-action {
    margin-bottom: 2px;
}

.user-detail-game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.user-detail-game-block {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #232b39;
    border-radius: 10px;
    background: #151b25;
}

.user-detail-game-heading {
    margin: 0;
    color: #8590a6;
    font-size: 13px;
}

.user-detail-game-current {
    margin: 0;
    color: #e8edf8;
    font-size: 22px;
    font-weight: 700;
}

.user-management-detail-card .page-card-body {
    padding: 24px;
}

.user-management-detail-section-title {
    margin: 0 0 16px;
    color: #e8edf8;
    font-size: 16px;
    font-weight: 600;
}

.user-detail-login-log-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 12px;
}

.user-detail-login-log-title {
    margin: 0;
    flex: 0 0 auto;
}

.user-detail-inquiry-log-head {
    align-items: center;
}

.user-detail-inquiry-type-filters {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.user-detail-inquiry-type-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid #3b4554;
    border-radius: 8px;
    background: #1b222d;
    color: #c8d0df;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.user-detail-inquiry-type-filter:hover {
    border-color: #137fec;
    color: #e8edf8;
}

.user-detail-inquiry-type-filter.is-active {
    border-color: #137fec;
    background: rgba(19, 127, 236, 0.18);
    color: #fff;
}

.user-detail-login-log-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.user-detail-login-log-hint {
    margin: 0;
}

.user-detail-login-log-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

.user-detail-login-log-btn {
    min-height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #1867c0;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.user-detail-login-log-btn.is-danger {
    background: #e53935;
}

.user-detail-login-log-btn:hover {
    filter: brightness(1.08);
}

.user-detail-login-log-actions .user-detail-login-log-column-hide-btn {
    margin: 0;
}

.user-detail-login-log-table {
    width: 100%;
}

.user-detail-login-log-pager {
    margin: 16px 0 0;
    color: #8590a6;
    font-size: 13px;
    text-align: right;
}

.user-detail-tab-pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.user-detail-tab-pagination-wrap .user-detail-login-log-pager {
    margin: 0;
}

.user-detail-tab-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.user-detail-tab-filter {
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.user-detail-tab-filter .user-detail-login-log-title {
    margin-right: 8px;
}

.user-detail-tab-filter .user-detail-money-log-search-row {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    width: auto;
}

.date-filter-action-group--money-log-search {
    flex-wrap: nowrap;
    gap: 8px;
}

.user-detail-tab-filter .user-detail-money-log-search-row .inquiry-all-search-wrap {
    flex: 0 0 120px;
    min-width: 120px;
    max-width: 120px;
    margin-left: 0;
}

.user-detail-tab-filter .user-detail-money-log-search-row .inquiry-search-field-select {
    flex: 0 0 132px;
    min-width: 132px;
    max-width: 132px;
}

.user-detail-tab-table td.is-num,
.user-detail-tab-table th.is-num {
    text-align: right;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] {
    min-width: 1100px;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] col[data-col="before"],
.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] col[data-col="after"],
.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] col[data-col="rolling_before"],
.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] col[data-col="rolling_after"] {
    width: 104px;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] col[data-col="delta"] {
    width: 92px;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] col[data-col="from"],
.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] col[data-col="to"] {
    width: 108px;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] col[data-col="reason"] {
    width: 148px;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] col[data-col="note"] {
    width: 140px;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] col[data-col="created_at"] {
    width: 152px;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] thead th[data-col] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] thead th .partners-table-th-label,
.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] thead th .user-detail-tab-th-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] thead th .partners-column-hide-btn,
.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] thead th .user-detail-tab-column-hide-btn-in-th {
    font-size: 10px;
    min-height: 22px;
    padding: 0 6px;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] th[data-col="before"],
.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td[data-col="before"] {
    color: #8d98b3;
    font-weight: 500;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] th[data-col="delta"] {
    color: #eef3fc;
    font-weight: 700;
    font-size: 12px;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td[data-col="delta"] {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td[data-col="delta"] .user-detail-money-log-delta.is-plus {
    color: #34d399;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td[data-col="delta"] .user-detail-money-log-delta.is-minus {
    color: #f87171;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td[data-col="delta"] .user-detail-money-log-delta.is-zero {
    color: #b8c4d9;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td.is-money-log-viewer-actor {
    color: #e8edf8;
    font-weight: 700;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td[data-col="from"],
.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td[data-col="to"] {
    vertical-align: middle;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] .money-log-affiliation-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    max-width: 100%;
    min-height: 30px;
    height: auto;
    margin: 0;
    padding: 2px 6px 2px 4px;
    border: 1px solid #3a4558;
    border-radius: 8px;
    background: #121722;
    color: #e8edf8;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] .money-log-affiliation-combobox {
    position: relative;
    display: inline-block;
    width: max-content;
    max-width: 100%;
    margin: 0;
    vertical-align: middle;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] .money-log-affiliation-combobox .members-affiliation-trigger {
    width: auto;
    min-height: 30px;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] span.money-log-affiliation-chip.is-static {
    cursor: default;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] .money-log-affiliation-chip.money-log-affiliation-head-text {
    padding: 2px 8px 2px 4px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    cursor: default;
    box-shadow: none;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] .money-log-affiliation-chip .members-affiliation-label {
    font-size: 12px;
    font-weight: 700;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td.is-money-log-viewer-actor .money-log-affiliation-chip:not(.money-log-affiliation-head-text) {
    border-color: rgba(126, 200, 255, 0.85);
    background: rgba(19, 127, 236, 0.18);
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td.is-money-log-viewer-actor[data-col="to"] .money-log-affiliation-chip:not(.money-log-affiliation-head-text) {
    border-color: rgba(255, 215, 106, 0.9);
    background: rgba(255, 215, 106, 0.16);
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td.is-money-log-viewer-actor .money-log-affiliation-chip.money-log-affiliation-head-text {
    border-color: rgba(126, 200, 255, 0.85);
    background: rgba(19, 127, 236, 0.18);
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td.is-money-log-viewer-actor[data-col="to"] .money-log-affiliation-chip.money-log-affiliation-head-text {
    border-color: rgba(255, 215, 106, 0.9);
    background: rgba(255, 215, 106, 0.16);
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td[data-col="created_at"] .user-detail-money-log-partner-cash-dates {
    display: inline-block;
    white-space: pre-line;
    line-height: 1.35;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.user-detail-tab-table th .user-detail-tab-th-column-hide {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 0;
}

.user-detail-tab-column-hide-btn-in-th {
    min-height: 28px;
    margin: 0;
    padding: 0 10px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

.user-detail-tab-th-column-hide .user-detail-tab-th-label {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

.user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] th[data-col="before"] .user-detail-tab-th-label {
    color: #aeb8cc;
}

.user-detail-tab-total-row td {
    font-weight: 700;
    background: #151b25;
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] thead th,
.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody td {
    min-width: 0;
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] [data-col="no"] {
    width: 44px;
    max-width: 44px;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] [data-col="read"] {
    width: 96px;
    max-width: 108px;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
    white-space: nowrap;
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody td {
    transition: background-color 0.15s ease;
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody tr.user-detail-memo-row-clickable {
    cursor: pointer;
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody tr.user-detail-memo-row-clickable > td {
    background-color: #1b222d;
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody tr.user-detail-memo-row-clickable:hover > td,
.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody tr.user-detail-memo-row-clickable:focus-within > td {
    background-color: rgba(255, 255, 255, 0.08);
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody tr.user-detail-memo-row-unread > td {
    background-color: rgba(251, 191, 36, 0.12);
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody tr.user-detail-memo-row-unread:hover > td,
.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody tr.user-detail-memo-row-unread:focus-within > td {
    background-color: rgba(251, 191, 36, 0.2);
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] td.user-detail-inquiry-status-cell {
    vertical-align: middle;
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] .gsb-inquiry-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] .gsb-inquiry-status.is-pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
    animation: user-detail-inquiry-status-pending-blink 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] .gsb-inquiry-status.is-complete {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

@media (prefers-reduced-motion: reduce) {
    .user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] .gsb-inquiry-status.is-pending {
        animation: none;
    }
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] [data-col="created_at"] {
    width: 152px;
    max-width: 152px;
    white-space: nowrap;
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] [data-col="title"] {
    width: 24%;
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] [data-col="content"] {
    width: 46%;
}

.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] td[data-col="title"],
.user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] td[data-col="content"] {
    white-space: normal;
    text-align: left;
    word-break: break-word;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] thead th,
.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody td {
    min-width: 0;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] [data-col="no"] {
    width: 44px;
    max-width: 44px;
    text-align: center;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] [data-col="type"] {
    width: 88px;
    max-width: 96px;
    white-space: nowrap;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] [data-col="status"] {
    width: 96px;
    max-width: 108px;
    white-space: nowrap;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] [data-col="title"] {
    width: 18%;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] [data-col="content"],
.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] [data-col="answer"] {
    width: 22%;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] td[data-col="title"],
.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] td[data-col="content"],
.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] td[data-col="answer"] {
    white-space: normal;
    text-align: left;
    word-break: break-word;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody td {
    transition: background-color 0.15s ease;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody tr.user-detail-inquiry-row-clickable {
    cursor: pointer;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody tr.user-detail-inquiry-row-clickable > td {
    background-color: #1b222d;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody tr.user-detail-inquiry-row-clickable:hover > td,
.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody tr.user-detail-inquiry-row-clickable:focus-within > td {
    background-color: rgba(255, 255, 255, 0.08);
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody tr.user-detail-inquiry-row-pending > td {
    background-color: rgba(251, 191, 36, 0.12);
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody tr.user-detail-inquiry-row-pending:hover > td,
.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody tr.user-detail-inquiry-row-pending:focus-within > td {
    background-color: rgba(251, 191, 36, 0.2);
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] td.user-detail-inquiry-type-cell,
.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] td.user-detail-inquiry-status-cell {
    vertical-align: middle;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] .gsb-inquiry-type {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] .gsb-inquiry-type--general {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] .gsb-inquiry-type--deposit_account {
    background: rgba(249, 115, 22, 0.18);
    color: #fdba74;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] .gsb-inquiry-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] .gsb-inquiry-status.is-pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
    animation: user-detail-inquiry-status-pending-blink 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] .gsb-inquiry-status.is-complete {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

@keyframes user-detail-inquiry-status-pending-blink {
    0%,
    35% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }

    65%,
    100% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] .gsb-inquiry-status.is-pending {
        animation: none;
    }
}

.user-detail-login-log-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

@media (max-width: 1280px) {
    .user-management-detail-tabs {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .user-detail-tab-filter {
        flex-wrap: wrap;
    }

    .user-detail-fields-grid:not(.user-detail-fields-grid-single):not(.user-detail-basic-fields-grid) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .user-detail-basic-fields-grid {
        width: 100%;
    }

    .user-detail-basic-field-group {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .user-detail-basic-field-group--duplicate-login {
        flex-wrap: wrap;
    }

    .user-detail-basic-field-group--duplicate-login .user-detail-joined-at-field {
        margin-left: 0;
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 960px) {
    .user-detail-info-panels-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .user-detail-fields-grid:not(.user-detail-fields-grid-single):not(.user-detail-basic-fields-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-detail-basic-fields-grid {
        width: 100%;
    }

    .user-detail-basic-field-group {
        flex-direction: column;
        align-items: stretch;
    }

    .user-detail-game-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .user-detail-field-span-2 {
        grid-column: span 2;
    }

    .user-detail-inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .user-detail-inline-action {
        width: 100%;
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .user-detail-fields-grid:not(.user-detail-fields-grid-single):not(.user-detail-basic-fields-grid) {
        grid-template-columns: minmax(0, 1fr);
    }

    .user-detail-field-span-2 {
        grid-column: auto;
    }

    .user-detail-field-inline:not(.user-detail-delete-account-row):not(.user-detail-field-label-inline-row) {
        flex-direction: column;
        align-items: stretch;
    }

    .user-detail-field-inline:not(.user-detail-delete-account-row):not(.user-detail-field-label-inline-row) .user-detail-field-inline-btn {
        width: 100%;
    }
}

.user-management-detail-empty {
    margin: 0;
    padding: 32px 16px;
    border: 1px dashed #293241;
    border-radius: 10px;
    color: #8590a6;
    text-align: center;
}

.partners-tree-empty {
    margin: 0;
    color: #8590a6;
    font-size: 13px;
    text-align: center;
}

.partners-tree {
    display: grid;
    gap: 12px;
}

.partners-tree-empty {
    margin: 0;
    padding: 32px 14px;
    border: 1px solid #293241;
    border-radius: 8px;
    background: #171d27;
    color: #8590a6;
    text-align: center;
    font-size: 13px;
}

html.admin-theme-light .partners-tree-card {
    background: var(--panel);
    border-color: var(--line);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light .partners-tree-empty {
    background: var(--panel-soft);
    border-color: var(--line);
    color: #475569;
}

html.admin-theme-light .members-tree-section .bg-tree .search-input,
html.admin-theme-light .members-tree-section .bg-tree .members-tree-search-input,
html.admin-theme-light #members-tree .search-input,
html.admin-theme-light #betting-list-tree .search-input,
html.admin-theme-light #rolling-convert-tree .search-input,
html.admin-theme-light #login-history-tree .search-input,
html.admin-theme-light #money-log-standalone-tree .search-input,
html.admin-theme-light #cash-deposit-tree .search-input,
html.admin-theme-light #cash-withdraw-tree .search-input,
html.admin-theme-light #settlement-tree .search-input {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light .members-tree-section .bg-tree .search-input::placeholder,
html.admin-theme-light .members-tree-section .bg-tree .members-tree-search-input::placeholder,
html.admin-theme-light #members-tree .search-input::placeholder,
html.admin-theme-light #betting-list-tree .search-input::placeholder,
html.admin-theme-light #rolling-convert-tree .search-input::placeholder,
html.admin-theme-light #login-history-tree .search-input::placeholder,
html.admin-theme-light #money-log-standalone-tree .search-input::placeholder,
html.admin-theme-light #cash-deposit-tree .search-input::placeholder,
html.admin-theme-light #cash-withdraw-tree .search-input::placeholder,
html.admin-theme-light #settlement-tree .search-input::placeholder {
    color: var(--muted);
}

html.admin-theme-light .members-tree-section .bg-tree .search-input:focus,
html.admin-theme-light .members-tree-section .bg-tree .members-tree-search-input:focus,
html.admin-theme-light #members-tree .search-input:focus,
html.admin-theme-light #betting-list-tree .search-input:focus,
html.admin-theme-light #rolling-convert-tree .search-input:focus,
html.admin-theme-light #login-history-tree .search-input:focus,
html.admin-theme-light #money-log-standalone-tree .search-input:focus,
html.admin-theme-light #cash-deposit-tree .search-input:focus,
html.admin-theme-light #cash-withdraw-tree .search-input:focus,
html.admin-theme-light #settlement-tree .search-input:focus {
    border-color: #10b981;
    background: var(--panel);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

html.admin-theme-light .members-tree-section .members-tree-panel-toggle {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

html.admin-theme-light .members-tree-section .members-tree-panel-toggle:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

html.admin-theme-light .members-tree-section .node-content {
    border-bottom-color: var(--line);
}

html.admin-theme-light .members-tree-section .node-content:hover {
    background: rgba(49, 93, 255, 0.07);
}

html.admin-theme-light .members-tree-section .tree-node.is-selected > .node-content,
html.admin-theme-light .members-tree-section .node-content.is-selected {
    background: transparent;
    box-shadow: none;
}

.partner-tree-node {
    display: grid;
    gap: 10px;
}

.partner-tree-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.partner-tree-toggle,
.partner-tree-spacer {
    width: 28px;
    height: 28px;
    margin-top: 14px;
}

.partner-tree-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #323b49;
    border-radius: 6px;
    background: #121722;
    color: #c8d0df;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.partner-tree-toggle:hover {
    border-color: #315dff;
    color: #fff;
}

.partner-tree-spacer {
    display: block;
}

.partner-tree-card {
    border: 1px solid #293241;
    border-radius: 8px;
    background: #171d27;
    overflow: hidden;
}

.partner-tree-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #293241;
    background: #1a2130;
}

.partner-tree-label {
    color: #e8edf8;
    font-size: 14px;
    font-weight: 600;
}

.partner-tree-name {
    color: #8590a6;
    font-size: 13px;
}

.partner-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: #293241;
}

.partner-stat {
    display: grid;
    gap: 6px;
    min-height: 68px;
    padding: 12px 14px;
    background: #171d27;
}

.partner-stat-wide {
    grid-column: span 2;
}

.partner-stat-label {
    color: #8590a6;
    font-size: 11px;
    line-height: 1.3;
}

.partner-stat-value {
    color: #e8edf8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    word-break: break-all;
}

.partner-tree-children {
    display: grid;
    gap: 10px;
    margin-left: 14px;
    padding-left: 18px;
    border-left: 1px solid #293241;
}

.mobile-topbar,
.sidebar-backdrop {
    display: none;
}

@media (min-width: 961px) {
    html.app-sidebar-minified .sidebar {
        width: 70px;
        overflow: visible;
    }

    html.app-sidebar-minified .sidebar-scroll {
        overflow-x: visible;
        overflow-y: auto;
    }

    html.app-sidebar-minified .brand {
        gap: 4px;
        padding: 12px 0;
        margin-bottom: 6px;
    }

    html.app-sidebar-minified .brand-top {
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    html.app-sidebar-minified .brand-copy {
        display: flex;
        justify-content: center;
        flex: 0 0 auto;
    }

    html.app-sidebar-minified .brand-actions {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        width: 100%;
    }

    html.app-sidebar-minified .app-sidebar-minify-btn {
        order: 1;
    }

    html.app-sidebar-minified .app-sidebar-refresh-btn {
        order: 2;
        display: inline-flex;
    }

    html.app-sidebar-minified .brand-mark,
    html.app-sidebar-minified .brand small,
    html.app-sidebar-minified .user-info-container,
    html.app-sidebar-minified .sound-toggle,
    html.app-sidebar-minified .menu-group > summary span,
    html.app-sidebar-minified .menu-group > summary::after,
    html.app-sidebar-minified .standalone-nav-link span,
    html.app-sidebar-minified .sidebar-logout span {
        display: none !important;
    }

    html.app-sidebar-minified .standalone-nav-link {
        justify-content: center;
        min-height: 44px;
        margin: 4px 8px;
        padding: 0;
    }

    html.app-sidebar-minified .menu-group-items {
        display: none;
    }

    html.app-sidebar-minified .menu-group-items.is-flyout {
        display: block;
        position: fixed;
        z-index: 1300;
        width: 220px;
        max-height: calc(100vh - 16px);
        overflow-y: auto;
        padding: 6px 0 8px;
        border: 1px solid #2e3852;
        border-radius: 6px;
        background: #171d2e;
        box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.38);
    }

    html.app-sidebar-minified .menu-group-flyout-title {
        display: block;
        padding: 8px 14px 10px;
        margin-bottom: 4px;
        border-bottom: 1px solid rgba(132, 144, 170, 0.22);
        color: #fff;
        font-size: 13px;
        font-weight: 800;
    }

    html.app-sidebar-minified .menu-group summary,
    html.app-sidebar-minified .sidebar-logout {
        justify-content: center;
        gap: 0;
        padding: 0;
        min-height: 44px;
    }

    html.app-sidebar-minified .nav a {
        justify-content: flex-start;
        min-height: 40px;
        padding: 8px 14px;
        gap: 10px;
    }

    html.app-sidebar-minified .menu-divider {
        margin: 6px 12px;
    }

    html.app-sidebar-minified .app-sidebar-minify-btn {
        margin: 0;
    }
}

@media (max-width: 960px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1190;
        border: 0;
        background: rgba(8, 12, 20, 0.62);
        cursor: pointer;
    }

    .sidebar-backdrop[hidden] {
        display: none;
    }

    .shell,
    body.admin-body .shell {
        flex-direction: column;
    }

    /* body.admin-body .sidebar { position:sticky } 보다 우선 — 모바일에서 sticky면 main 높이 0 */
    .sidebar,
    body.admin-body .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1200;
        flex: 0 0 auto;
        width: min(270px, 88vw);
        max-height: none;
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.24s ease;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.35);
    }

    .app-sidebar-minify-btn,
    .app-sidebar-refresh-btn {
        display: none;
    }

    body.sidebar-open .sidebar,
    body.admin-body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    /* 모바일 전 페이지: 내부 스크롤 컨테이너 제거 → body만 스크롤 (휠/터치 가능) */
    html {
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: auto;
    }

    body.admin-body:not(.sidebar-open) {
        height: auto !important;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible !important;
        overscroll-behavior: auto !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }

    body.admin-body:not(.sidebar-open) .shell {
        height: auto !important;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible !important;
    }

    .main,
    body.admin-body .main {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto !important;
        max-height: none !important;
        align-self: stretch;
        overflow: visible !important;
        overscroll-behavior: auto !important;
        touch-action: pan-x pan-y;
    }

    body.admin-body .admin-page-shell,
    body.admin-body .dash-sticky-head {
        flex: 0 0 auto;
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto;
        backdrop-filter: none;
    }

    body.admin-body .admin-main-scroll,
    body.admin-body .admin-main-scroll:has(*) {
        flex: 0 0 auto !important;
        display: block !important;
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overscroll-behavior: auto !important;
    }

    body.admin-body .admin-main-scroll > .page-card,
    body.admin-body .admin-main-scroll > .page-container,
    body.admin-body .admin-main-scroll > .members-page-container,
    body.admin-body .admin-main-scroll > .members-page-container > .page-card,
    body.admin-body .admin-main-scroll > .page-card > .page-card-body,
    .subordinate-list-body,
    .members-list-body,
    .partners-list-body,
    .settlement-body,
    .partners-table-shell,
    .date-filter-table-shell,
    .cash-deposit-table-shell,
    .betting-list-table-shell,
    .partner-money-transfer-table-shell,
    .partner-member-transfer-table-shell,
    .page-card-body,
    .page-container.list-tracking-page,
    .page-container.date-filter-page.list-tracking-page,
    .cash-deposit-table-main,
    .settlement-table-main,
    .partner-money-transfer-main,
    .al-transfer-tree-section .partners-tree-card,
    .partner-money-transfer-tree-section .partners-tree-card {
        flex: none !important;
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overscroll-behavior: auto !important;
    }

    /*
     * overflow-x:auto + overflow-y:visible 는 스펙상 overflow-y가 auto로 계산되어
     * 휠/터치 스크롤을 가로채고 body로 전달되지 않음 → 내부는 전부 visible
     */
    body.admin-body .main .page-table-scroll,
    body.admin-body .main .members-table-scroll,
    body.admin-body .main .subordinate-table-scroll,
    body.admin-body .main .betting-list-table-scroll,
    body.admin-body .main .partners-table-scroll,
    body.admin-body .main .coin-charge-tron-table-scroll,
    body.admin-body .main .send-message-table-scroll,
    body.admin-body .main [id$="-table-scroll"],
    body.admin-body .main .overflow-x-auto,
    body.admin-body .main .overflow-auto,
    body.admin-body .main .overflow-y-auto,
    body.admin-body .main .flex-grow-1.overflow-x-auto,
    body.admin-body .main .partners-table-shell > .flex-grow-1.overflow-x-auto,
    body.admin-body .main .date-filter-table-shell .flex-grow-1.overflow-x-auto,
    body.admin-body .main .partner-money-transfer-table-shell > .flex-grow-1.overflow-x-auto,
    body.admin-body .main .partner-member-transfer-table-shell > .flex-grow-1.overflow-x-auto,
    body.admin-body .main .settlement-body .date-filter-table-shell .flex-grow-1.overflow-x-auto,
    body.admin-body .main #user-detail-tab-game-bet-log .page-table-scroll,
    body.admin-body .main .user-management-detail-page.is-money-log-standalone .money-log-standalone-main .page-table-scroll,
    body.admin-body .main .custom-data-table {
        flex: none !important;
        min-height: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        overscroll-behavior: auto !important;
        touch-action: pan-x pan-y;
    }

    body.admin-body .main thead th,
    body.admin-body .main thead td,
    body.admin-body .main tfoot th,
    body.admin-body .main tfoot td,
    body.admin-body .main .gpl-order-head,
    body.admin-body .main .auto-card-header.sticky-header:not(.is-dialog-drag-handle) {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        box-shadow: none !important;
    }

    .mobile-topbar {
        position: static;
        top: auto;
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 1;
        min-height: 52px;
        padding: 6px 10px;
        border-bottom: 1px solid #293241;
        background: rgba(18, 23, 34, 0.96);
        backdrop-filter: none;
    }

    html.admin-theme-light .mobile-topbar {
        border-bottom-color: #dbe2ee;
        background: rgba(255, 255, 255, 0.96);
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: #20283b;
        color: #e8edf8;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-menu-btn:hover {
        background: #2a3347;
    }

    .mobile-topbar-title {
        flex: 0 1 auto;
        overflow: hidden;
        min-width: 0;
        max-width: 42%;
        color: #e8edf8;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html.admin-theme-light .mobile-topbar-title {
        color: #0f172a;
    }

    .mobile-topbar-metrics-slot:not([hidden]) {
        display: inline-flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: flex-end;
        min-width: 0;
    }

    .mobile-topbar .top-metrics-head-leading {
        flex-wrap: nowrap;
        gap: 6px;
        max-width: 100%;
        min-width: 0;
    }

    .mobile-topbar .top-metrics-menu-title {
        min-height: 32px;
        max-width: 100%;
        padding: 4px 8px;
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-topbar .top-line-realtime {
        flex-shrink: 0;
        padding: 0 6px;
        font-size: 11px;
    }

    .main {
        width: 100%;
        padding: 0;
    }

    body.admin-body .admin-main-scroll > .notice {
        margin: 0 0 12px;
    }

    .top-shell,
    body.admin-body .admin-page-shell {
        margin-bottom: 0;
        padding: 0 12px;
    }

    body.admin-body .admin-main-scroll {
        padding: 10px 12px 12px;
    }

    .top-line {
        flex-wrap: wrap;
        gap: 10px;
    }

    .top-line-left,
    .top-line-actions {
        width: 100%;
    }

    .top-line-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .top-line-alert-panel,
    .top-line-sound-panel {
        position: fixed;
        top: 64px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: 384px;
        margin-left: auto;
        margin-right: auto;
    }

    .top-line-sound-panel {
        max-width: 320px;
    }

    .search-box,
    .quick-button {
        width: 100%;
        max-width: none;
    }

    .quick-button {
        height: 40px;
    }

    /* 데스크탑 grid(3열)에 head+actions 2자식만 있으면 actions가 1칸(≈118px)에
       세로 스택되어 상단이 화면을 다 먹음 → 모바일은 세로 섹션 + 버튼 3열 */
    .top-metrics,
    body.admin-body .dash-sticky-metrics.top-metrics {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        min-height: auto;
        margin-left: 0;
        gap: 8px;
    }

    .top-metrics-head-leading,
    body.admin-body .top-metrics-head-leading,
    .top-metrics-actions-cluster,
    body.admin-body .top-metrics-actions-cluster {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .top-metrics-actions,
    body.admin-body .top-metrics-actions {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-end;
        align-items: center;
        gap: 6px;
        overflow: visible;
    }

    .top-metrics-actions-panel,
    body.admin-body .top-metrics-actions-panel {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        flex: 1 1 100%;
        width: 100%;
        justify-content: stretch;
        gap: 6px;
    }

    .top-metrics-actions.is-collapsed .top-metrics-actions-panel,
    .top-metrics-actions-panel[hidden],
    body.admin-body .top-metrics-actions.is-collapsed .top-metrics-actions-panel,
    body.admin-body .top-metrics-actions-panel[hidden] {
        display: none;
    }

    .metric-button,
    body.admin-body .top-metrics-actions .metric-button {
        flex: unset;
        min-width: 0;
        width: 100%;
        max-width: none;
        justify-content: center;
        padding: 0 6px;
        font-size: 10px;
    }

    .metric-button strong {
        margin: 0 3px;
        font-size: 12px;
    }

    .metric-button [data-topbar-count="pending"] {
        margin: 0 1px 0 3px;
    }

    .metric-button [data-topbar-count="hold"] {
        margin: 0 3px 0 1px;
    }

    .summary-cards {
        grid-column: 1 / -1;
        flex-wrap: wrap;
        justify-content: stretch;
        gap: 8px;
    }

    .summary-card {
        flex: 1 1 calc(50% - 4px);
        width: auto;
        min-width: calc(50% - 4px);
        height: auto;
        min-height: 72px;
        padding: 10px 8px;
        font-size: 13px;
    }

    .summary-card strong {
        font-size: 15px;
    }

    .page-container {
        padding: 8px 0 16px;
    }

    .page-status-notice {
        margin-left: 12px;
        margin-right: 12px;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        padding: 0 12px;
    }

    .page-btn-primary {
        width: 100%;
    }

    .page-card {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .page-card-body,
    .ip-block-body,
    .login-history-body,
    .blocked-users-partners-body,
    .partners-list-body,
    .deposit-account-body {
        padding: 16px 12px 20px;
    }

    .partners-list-topbar {
        margin: 0 0 16px;
        padding: 14px 12px;
    }

    .partners-list-sort {
        gap: 6px;
    }

    .partners-list-sort-btn {
        flex: 1 1 calc(50% - 3px);
    }

    .partners-list-layout {
        flex-direction: column;
    }

    .partners-tree-section {
        flex: 1 1 auto;
        width: 100%;
    }

    .cardview-item {
        flex: 1 1 calc(50% - 8px);
        min-width: calc(50% - 8px);
    }

    .partner-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partner-stat-wide {
        grid-column: span 2;
    }

    #partner-edit-form,
    #partner-create-form,
    #member-create-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .login-history-ip-block-controls {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .login-history-ip-block-input-wrap {
        width: 100%;
    }

    .login-history-ip-block-btn {
        width: 100%;
    }

    .login-history-ip-block-hint {
        flex: 1 1 auto;
    }

    .page-table-scroll {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .ip-block-pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .ip-block-per-page-form {
        justify-content: space-between;
        width: 100%;
    }

    .ip-block-page-summary {
        text-align: right;
    }

    .user-info-container {
        width: calc(100% - 32px);
    }

    .nav a {
        padding-left: 18px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .hierarchy-strip,
    .flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-list {
        grid-template-columns: 1fr;
    }

    .login-panel {
        grid-template-columns: 1fr;
    }

    .login-wrap {
        padding: 16px;
    }

    .login-copy {
        padding: 24px;
    }

    .head-login .login-logo-image {
        display: none;
    }

    .today-chart-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px 12px;
    }

    .today-module .today-chart-grid {
        min-height: auto;
        padding: 16px 12px;
    }

    .monthly-card-text {
        min-height: auto;
        padding: 12px;
    }

    .chart-tools {
        flex-wrap: wrap;
        gap: 6px;
    }

    .daily-chart {
        padding: 28px 8px 20px 36px;
    }

    .bar-stage {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .header h1 {
        font-size: 22px;
    }

    .notice-overlay {
        padding: 12px;
    }

    .notice-edit-overlay {
        align-items: stretch;
        padding: 12px;
    }

    .notice-edit-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }

    .notice-edit-form {
        padding: 16px 12px;
    }

    .notice-edit-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .notice-edit-btn {
        flex: 1 1 calc(50% - 4px);
    }

    .editor-link-dialog {
        width: 100%;
    }

    .dashboard-footer {
        padding: 12px;
    }
}

.online-members-topbar {
    align-items: center;
    gap: 10px 14px;
}

.online-members-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-members-title-sep {
    color: #8590a6;
    font-size: 12px;
}

.members-page-container.online-members-page .partners-list-body.members-list-body {
    padding: 6px 4px 8px;
}

.online-members-page .members-aff-form.login-history-topbar.subordinate-aff-form {
    margin-bottom: 6px;
}

.online-members-page .partners-list-topbar.online-members-topbar {
    padding: 8px 12px;
}

.online-members-page .online-members-filter-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 auto;
}

.online-members-page .partners-list-layout.online-members-layout {
    margin-top: 8px;
    gap: 8px;
}

.online-members-page .partners-tree-card {
    padding: 8px 10px;
    min-height: 240px;
}

.online-members-page #members-tree .search-container {
    margin-bottom: 6px;
}

.members-page-container.online-members-page {
    padding-top: 0;
    padding-bottom: 8px;
}

.members-page-container.online-partners-page {
    padding-top: 0;
    padding-bottom: 8px;
}

.members-page-container.online-partners-page .partners-list-body.members-list-body {
    padding: 6px 4px 8px;
}

.online-partners-page .online-partners-topbar.login-history-topbar {
    display: block;
    margin-bottom: 4px;
    padding: 0 6px;
}

.online-partners-page .partners-table-shell .custom-data-table {
    margin-top: 0;
    padding-top: 0;
}

.online-partners-page .online-partners-table.partners-data-table thead th {
    padding: 5px 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
}

.online-partners-page .online-partners-table.partners-data-table tbody td {
    padding: 6px 4px;
    font-size: 13px;
    line-height: 1.25;
}

.online-partners-page .online-partners-table td[data-col="partner_type"] {
    white-space: nowrap;
    width: 72px;
    min-width: 72px;
}

.online-partners-page .members-data-table-wrap {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
}

.online-partners-page .online-partners-table.partners-data-table {
    width: auto;
    max-width: 100%;
    table-layout: fixed;
}

.online-partners-page .online-partners-table th.partners-table-login-id-head,
.online-partners-page .online-partners-table th[data-col="login_id"],
.online-partners-page .online-partners-table td[data-col="login_id"] {
    width: 188px;
    max-width: 188px;
    min-width: 160px;
}

.online-partners-page .online-partners-table td[data-col="login_id"] .members-affiliation-combobox,
.online-partners-page .online-partners-table td[data-col="login_id"] .members-affiliation-trigger {
    max-width: 100%;
}

.online-partners-page .online-partners-table th[data-col="ip_address"],
.online-partners-page .online-partners-table td[data-col="ip_address"] {
    width: 118px;
    max-width: 118px;
    white-space: nowrap;
}

.online-partners-page .online-partners-table th[data-col="logged_at"],
.online-partners-page .online-partners-table td[data-col="logged_at"] {
    width: 108px;
    max-width: 108px;
    white-space: nowrap;
}

.online-members-page .online-members-table.partners-data-table thead th {
    padding: 5px 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
}

.online-members-topbar {
    align-items: center;
    gap: 6px 10px;
}

.online-members-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-members-title-sep {
    color: #8590a6;
    font-size: 12px;
}

.online-members-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    color: #e8edf8;
    font-size: 13px;
}

.online-members-summary strong {
    color: #ffd76a;
}

.online-members-hint {
    flex: 1 1 100%;
    max-width: none;
    margin: 0;
    color: #ff5c5c;
    font-size: 11px;
    line-height: 1.3;
}

.online-members-last-game,
.online-members-last-game-name {
    display: block;
}

.online-members-last-game {
    color: #9aa6bc;
    font-size: 12px;
}

.online-members-last-game-name {
    color: #e8edf8;
}

.members-page-container.online-members-page .partners-table-login-id-head {
    padding-top: 4px;
    padding-bottom: 4px;
}

.members-page-container.online-members-page .partners-table-login-id-head-inner {
    gap: 2px;
}

.members-page-container.online-members-page .partners-table-login-id-head .partners-table-th-label {
    font-size: 12px;
    line-height: 1.15;
}

.members-page-container.online-members-page .partners-table-login-id-head .partners-column-hide-btn {
    min-height: 20px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 1.15;
}

.members-page-container.online-members-page .online-members-table thead th .members-head-money-label,
.members-page-container.online-members-page .online-members-table thead th .members-head-point-label {
    font-size: 12px;
    line-height: 1.15;
}

.online-members-table [data-col][hidden] {
    display: none;
}

.online-members-page .partners-table-shell .custom-data-table {
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

.members-page-container.online-members-page .members-list-body .partners-table-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.members-page-container.online-members-page .partners-list-main.listview-container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.members-page-container.online-members-page .members-list-body .members-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.members-page-container.online-members-page #online-members-table-footer {
    flex: 0 0 auto;
    padding: 4px 10px;
    gap: 6px 10px;
    margin-top: 0;
}

.members-page-container.online-members-page #online-members-table-footer .members-data-table-footer-controls {
    gap: 6px 10px;
}

.members-page-container.online-members-page #online-members-table-footer .members-data-table-pages .pagination-page,
.members-page-container.online-members-page #online-members-table-footer .members-data-table-page-ellipsis {
    width: 26px;
    height: 26px;
    min-width: 26px;
}

/* 접속자 목록: 행 상·하 여백 축소 */
.members-page-container.online-members-page .online-members-table.partners-data-table tbody td {
    padding: 3px 4px;
    line-height: 1.12;
    vertical-align: middle;
}

.members-page-container.online-members-page .online-members-table td[data-col="block"],
.members-page-container.online-members-page .online-members-table td[data-col="admin_chat"] {
    padding: 2px 3px;
}

.members-page-container.online-members-page .online-members-table .subordinate-flag-cell-stack {
    gap: 1px;
    min-height: 0;
}

.members-page-container.online-members-page .members-data-table thead th.members-flag-col-head,
.members-page-container.online-members-page .members-data-table thead th[data-col="admin_chat"].subordinate-flag-head {
    padding: 3px 3px;
    font-size: 12px;
    line-height: 1.1;
}

.members-page-container.online-members-page .online-members-table .members-money-row {
    gap: 0;
    line-height: 1.05;
}

.members-page-container.online-members-page .online-members-table .members-money-row.is-point.is-compact {
    margin-top: 0;
}

.members-page-container.online-members-page .online-members-table .members-money-row.is-main,
.members-page-container.online-members-page .online-members-table .members-money-row.is-mato {
    line-height: 1.05;
}

.members-page-container.online-members-page .online-members-table .members-money-row.is-total.is-compact .members-money-value {
    font-size: 14px;
}

.members-page-container.online-members-page .online-members-table .members-money-cell .members-point-value {
    font-size: 12px;
    line-height: 1.05;
}

.members-page-container.online-members-page .online-members-table .members-money-action-stack,
.members-page-container.online-members-page .online-members-table .members-detail-action-stack {
    gap: 1px;
}

.members-page-container.online-members-page .online-members-table .members-money-action-btn.members-al-deposit-btn,
.members-page-container.online-members-page .online-members-table .members-money-action-btn.members-al-withdraw-btn {
    min-height: 18px;
    padding: 0 3px;
    font-size: 10px;
    line-height: 1;
}

.members-page-container.online-members-page .online-members-table .members-detail-btn,
.members-page-container.online-members-page .online-members-table .members-detail-new-window-btn {
    min-height: 18px;
    min-width: 76px;
    padding: 0 3px;
    font-size: 10px;
    line-height: 1;
}

.members-page-container.online-members-page .online-members-table .subordinate-flag-open-btn {
    min-height: 18px;
    min-width: 40px;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.1;
}

.members-page-container.online-members-page .online-members-table .members-affiliation-trigger {
    min-height: 0;
    padding: 1px 3px;
}

.members-page-container.online-members-page .online-members-table .partners-menu-login-id {
    font-size: 13px;
    line-height: 1.12;
}

.members-page-container.online-members-page.has-member-identity-contextmenu .online-members-table .members-identity-cell::before {
    inset: 3px 2px;
    border-radius: 6px;
}

.members-page-container.online-members-page.has-member-identity-contextmenu .online-members-table .members-identity-cell::after {
    top: 4px;
    right: 3px;
    width: 14px;
    height: 14px;
}

.members-page-container.online-members-page .online-members-table .online-members-last-game {
    font-size: 11px;
    line-height: 1.1;
}

.members-page-container.online-members-page .online-members-table .online-members-last-game-name {
    font-size: 12px;
    line-height: 1.1;
}

.members-page-container.online-members-page .online-members-table td[data-col="deposit_withdraw"],
.members-page-container.online-members-page .online-members-table td[data-col="slot"],
.members-page-container.online-members-page .online-members-table td[data-col="casino"] {
    font-size: 12px;
    line-height: 1.12;
}

.betting-detail-card > .inquiry-answer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 0;
    padding: 10px 16px;
}

.betting-detail-card > .inquiry-answer-header .auto-card-title {
    flex: 1 1 auto;
    min-width: 0;
}

.betting-detail-card > .inquiry-answer-header .auto-card-close {
    flex: 0 0 auto;
    margin-left: auto;
}

.betting-detail-card .auto-card-footer {
    background: #1c2433;
}

.betting-detail-card .auto-card-btn-primary {
    min-width: 88px;
    border-color: #4d78ff;
    background: #315dff;
    color: #fff;
    font-weight: 800;
}

.betting-detail-card .auto-card-btn-primary:hover {
    filter: none;
    background: #4a72ff;
    color: #fff;
}

.betting-detail-body {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    padding: 4px 16px 16px;
}

.betting-detail-note {
    margin: 0 0 6px;
    color: #9aa6bc;
    font-size: 12px;
    font-style: italic;
}

.betting-detail-tabs {
    display: flex;
    gap: 0;
    margin: 0 0 16px;
    border-bottom: 1px solid #323b49;
}

.betting-detail-tab {
    margin: 0;
    padding: 10px 16px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #9aa6bc;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.betting-detail-tab.is-active {
    color: #e8edf8;
    border-bottom-color: #315dff;
}

.betting-detail-section {
    margin: 0 0 12px;
}

.betting-detail-section h3 {
    margin: 0 0 6px;
    color: #e8edf8;
    font-size: 16px;
    font-weight: 800;
}

.betting-detail-table-wrap {
    overflow-x: auto;
    border: 1px solid #323b49;
    border-radius: 8px;
}

.betting-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.betting-detail-table th,
.betting-detail-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #293241;
    text-align: center;
    color: #e8edf8;
}

.betting-detail-table th {
    background: #121722;
    color: #d7b37a;
    font-weight: 800;
}

.betting-detail-table td.is-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.betting-detail-table tbody tr:last-child td {
    border-bottom: 0;
}

.betting-detail-game-card {
    width: 100%;
    overflow: visible;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #171d27;
    box-sizing: border-box;
}

.betting-detail-game-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid #323b49;
    background: #121722;
    color: #e8edf8;
    font-size: 16px;
    font-weight: 800;
}

.betting-detail-baccarat {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    min-height: 143px;
    padding: 16px 20px;
    background: #171d27;
}

.betting-detail-side p {
    margin: 0 0 10px;
    color: #e8edf8;
    font-size: 14px;
}

.betting-detail-side.is-player {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.betting-detail-side.is-banker {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.betting-detail-cards {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.betting-detail-side.is-player .betting-detail-cards {
    flex-direction: row-reverse;
}

.betting-detail-cards img,
.betting-detail-cards img.cardV {
    height: 86px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.betting-detail-cards img.is-drawn {
    transform: rotate(90deg);
    margin: 0 8px;
}

#betting-detail-slot .betting-detail-game-card {
    background: #fff;
    border-color: #e2e8f0;
}

#betting-detail-slot .betting-detail-game-card-header {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
    color: #1e293b;
}

.betting-detail-slot {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    background: #fff;
    overflow: visible;
    box-sizing: border-box;
}

.betting-detail-slot-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.betting-detail-slot-media img.betting-detail-slot-image {
    display: block;
    box-sizing: border-box;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 420px;
    border-radius: 8px;
}

.betting-detail-slot-media iframe {
    display: block;
    width: 100%;
    height: 850px;
    max-width: none;
    border: 0;
    border-radius: 8px;
    background: #fff;
}

.betting-detail-info-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #323b49;
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
}

.betting-detail-info-table th,
.betting-detail-info-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #293241;
    text-align: left;
}

.betting-detail-info-table th {
    width: 160px;
    color: #d7b37a;
    background: #121722;
    font-weight: 800;
}

.betting-detail-info-table td {
    color: #e8edf8;
    background: #171d27;
    word-break: break-word;
}

.betting-detail-info-table tr:last-child th,
.betting-detail-info-table tr:last-child td {
    border-bottom: 0;
}

.betting-detail-json {
    margin: 0;
    padding: 12px;
    border: 1px solid #323b49;
    border-radius: 8px;
    background: #121722;
    color: #e8edf8;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 520px;
    overflow: auto;
}

.gpl-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gpl-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gpl-header .login-history-topbar {
    margin-bottom: 0;
}

.gpl-header .login-history-topbar .login-history-search-wrap {
    flex: 0 0 280px;
    min-width: 240px;
    max-width: 320px;
}

.gpl-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.gpl-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.gpl-api-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gpl-api-logo {
    display: block;
    object-fit: contain;
    object-position: left center;
    flex: 0 0 auto;
    width: 40px;
    height: 24px;
}

.gpl-api-logo.is-mega {
    width: 120px;
    height: 36px;
}

.gpl-api-logo.is-friends {
    width: 96px;
    height: 28px;
}

.gpl-api-logo.is-sd2 {
    width: 72px;
    height: 28px;
}

.gpl-api-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(19, 127, 236, 0.15);
    color: #137fec;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.gpl-api-note {
    margin: 8px 0 0;
    max-width: 720px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

.gpl-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: fit-content;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: #315dff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.gpl-back:hover {
    background: #2548d6;
    color: #fff;
}

.gpl-tabs {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.gpl-tab {
    padding: 10px 2px 12px;
    color: var(--muted);
    font-weight: 700;
}

.gpl-tab.is-active {
    color: var(--text);
    box-shadow: inset 0 -2px 0 var(--accent);
}

.gpl-category-tabs {
    display: flex;
    gap: 10px;
}

.gpl-category-tab {
    min-width: 88px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.gpl-category-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.gpl-category-toolbar .gpl-category-tabs {
    flex: 1 1 auto;
    min-width: 0;
}

.gpl-vendor-combobox {
    display: inline-flex;
    align-items: stretch;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.gpl-vendor-search-label {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0 12px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    font-weight: 800;
    color: #e2e8f0;
    white-space: nowrap;
    cursor: default;
}

.gpl-vendor-search-wrap,
.gpl-vendor-combobox-field {
    display: inline-flex;
    align-items: center;
    flex: 1 1 240px;
    min-width: 200px;
    max-width: 280px;
    min-height: 40px;
    padding: 0 4px 0 12px;
    border: 1px solid rgba(93, 214, 255, 0.42);
    border-radius: 10px;
    background: #151d2e;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.25);
}

.gpl-vendor-combobox-field:focus-within {
    border-color: #4a72ff;
    background: #182236;
    box-shadow:
        0 0 0 2px rgba(49, 93, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.gpl-vendor-search-wrap .login-history-search-input {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
}

.gpl-vendor-search-wrap .login-history-search-input::placeholder {
    color: #64748b;
    font-weight: 500;
}

.gpl-vendor-combobox-control {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.gpl-vendor-combobox-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-right: 2px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.gpl-vendor-combobox-toggle:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

.gpl-vendor-combobox.is-open .gpl-vendor-combobox-toggle {
    color: #93c5fd;
}

.gpl-vendor-combobox.is-open .gpl-vendor-combobox-toggle .mdi {
    transform: rotate(180deg);
}

.gpl-vendor-combobox-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 120;
    max-height: 280px;
    margin: 0;
    padding: 6px 0;
    overflow: auto;
    list-style: none;
    border: 1px solid rgba(93, 214, 255, 0.35);
    border-radius: 10px;
    background: #151d2e;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.gpl-vendor-combobox-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.3;
}

.gpl-vendor-combobox-option-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    color: #f1f5f9;
}

.gpl-vendor-combobox-option.is-active,
.gpl-vendor-combobox-option:hover {
    background: rgba(49, 93, 255, 0.18);
}

.gpl-vendor-combobox-empty {
    padding: 10px 12px;
    font-size: 13px;
    color: #94a3b8;
}

.gpl-vendor-search-hint {
    flex: 1 1 100%;
    margin: 0;
}

.gpl-category-tabs {
    display: flex;
    gap: 10px;
}

.gpl-category-tab {
    min-width: 88px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.gpl-category-tab.is-active {
    border-width: 2px;
    border-color: var(--accent);
    background: rgba(93, 214, 255, 0.14);
    color: var(--text);
}

.gpl-category-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 4px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 13px;
    color: var(--muted);
}

.gpl-category-stats-kind {
    font-weight: 800;
    color: var(--text);
    margin-right: 2px;
}

.gpl-category-stat strong {
    margin-left: 4px;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.gpl-category-stat.is-service strong {
    color: #6ee7a8;
}

.gpl-category-stat.is-maintenance strong {
    color: #fbbf24;
}

.gpl-category-stat.is-hidden strong {
    color: #f87171;
}

.gpl-category-stat.is-hot strong {
    color: #fb923c;
}

.gpl-game-category-stats {
    justify-content: space-between;
    row-gap: 10px;
}

.gpl-category-stats-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    min-width: 0;
}

.gpl-game-status-filters {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
    padding-left: 12px;
    border-left: 1px solid var(--line);
    flex-shrink: 0;
}

.gpl-game-status-filter {
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gpl-game-status-filter:hover {
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--text);
}

.gpl-game-status-filter.is-active {
    color: var(--text);
    border-color: rgba(93, 214, 255, 0.45);
    background: rgba(93, 214, 255, 0.12);
}

.gpl-game-status-filter.is-service.is-active {
    border-color: rgba(110, 231, 168, 0.45);
    background: rgba(110, 231, 168, 0.12);
}

.gpl-game-status-filter.is-maintenance.is-active {
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.12);
}

.gpl-game-status-filter.is-hidden.is-active {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.12);
}

.gpl-game-status-filter.is-hot.is-active {
    border-color: rgba(251, 146, 60, 0.45);
    background: rgba(251, 146, 60, 0.12);
}

.gpl-category-stats-bulk {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-left: auto;
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

.gpl-category-stats-bulk-label {
    font-weight: 800;
    color: var(--text);
    font-size: 12px;
    white-space: nowrap;
}

.gpl-category-stats-field {
    font-size: 12px;
}

.gpl-category-bulk-apply-btn {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #315dff;
    border-radius: 8px;
    background: rgba(49, 93, 255, 0.18);
    color: var(--text);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.gpl-category-bulk-apply-btn:hover:not(:disabled) {
    background: rgba(49, 93, 255, 0.28);
}

.gpl-category-bulk-apply-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.gpl-confirm-dialog .gpl-dialog-card {
    max-width: 420px;
}

.gpl-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.gpl-dialog-btn-muted {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
}

.gpl-friends-sync {
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.gpl-friends-sync-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.gpl-friends-sync-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

/* GPL API 갱신 — 상단 1:1 채팅(admin-chat-launcher)과 동일 마크업/스타일 */
.gpl-api-brand .metric-button-stacked {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 46px;
    min-width: 72px;
    padding: 5px 6px 6px;
    line-height: 1.2;
}

.gpl-api-brand .metric-button-stacked .metric-button-line {
    display: block;
    width: 100%;
    text-align: center;
}

.gpl-api-brand .metric-button-stacked .metric-button-line-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    color: #ecfdf5;
}

.gpl-api-brand .metric-button-stacked .metric-button-line-value {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
    opacity: 0.95;
}

.gpl-api-brand .admin-chat-launcher {
    min-width: 72px;
    padding-left: 4px;
    padding-right: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.gpl-api-brand .admin-chat-launcher:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.gpl-api-brand .admin-chat-launcher:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
    transform: none;
}

.gpl-friends-table-wrap {
    overflow-x: auto;
}

.gpl-friends-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.gpl-friends-table thead th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 16px;
    font-weight: 700;
}

.gpl-friends-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.gpl-friends-table code {
    font-size: 12px;
}

.gpl-friends-ok {
    color: #6ee7a0;
    font-weight: 700;
}

.gpl-friends-miss {
    color: #f87171;
    font-weight: 700;
}

.gpl-card-list,
.gpl-order-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gpl-card-list {
    gap: 0;
}

.gpl-card-list > .gpl-card {
    gap: 0;
    padding: 6px 14px;
    border-radius: 12px;
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

@media (hover: hover) {
    .gpl-card-list > .gpl-card:hover {
        border-color: rgba(74, 114, 255, 0.42);
        background: #161e2e;
        box-shadow:
            0 0 0 1px rgba(49, 93, 255, 0.1),
            0 4px 14px rgba(0, 0, 0, 0.18);
    }
}

.gpl-game-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.gpl-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 8px;
}

.gpl-game-grid > .gpl-empty,
.gpl-game-list > .gpl-empty {
    grid-column: 1 / -1;
}

.gpl-game-group-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 2px;
}

button.gpl-category-tab {
    font: inherit;
    background: transparent;
    cursor: pointer;
}

.gpl-game-section-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
}

.gpl-game-section-count {
    margin-left: 6px;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

.gpl-game-section[hidden] {
    display: none !important;
}

.gpl-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #121826;
}

.gpl-card-top,
.gpl-game-info,
.gpl-card-actions,
.gpl-order-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gpl-order-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gpl-order-head,
.gpl-order-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
}

.gpl-order-card {
    flex-direction: row;
    justify-content: space-between;
}

.gpl-order-head {
    padding: 0 20px 6px;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
}

.gpl-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.gpl-type-slot {
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.16);
}

.gpl-type-live {
    color: #fdba74;
    background: rgba(251, 146, 60, 0.16);
}

.gpl-type-other {
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.16);
}

.gpl-name {
    font-size: 16px;
}

.gpl-card-top {
    flex-wrap: wrap;
}

.gpl-card-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    line-height: 1.25;
}

.gpl-card-identity-head {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    min-width: 0;
    max-width: 100%;
    line-height: 1.2;
}

.gpl-card-identity-logo-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    flex-shrink: 0;
}

.gpl-game-list-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

/* 제한 관리 · 제공사 카드 — identity → 점검/숨김 → 알림 한도 */
.gpl-card-list .gpl-card > .gpl-card-top {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr auto;
    align-items: center;
    column-gap: 0;
    row-gap: 4px;
    flex-wrap: nowrap;
}

.gpl-card-list .gpl-card-top:has(.gpl-limit-wrap) {
    grid-template-columns: minmax(220px, 280px) minmax(180px, 220px) 1fr auto;
}

.gpl-card-list .gpl-card-identity {
    grid-column: 1;
    min-width: 0;
    max-width: none;
}

.gpl-card-list .gpl-limit-wrap {
    grid-column: 2;
    margin-left: 0;
    padding-left: 18px;
    border-left: 1px solid var(--line);
    gap: 8px 12px;
}

.gpl-card-list .gpl-card-top-right-cluster {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
}

.gpl-card-list .gpl-card-top:has(.gpl-limit-wrap) .gpl-card-top-right-cluster {
    grid-column: 4;
}

.gpl-card-list .gpl-card-top-right-cluster .gpl-game-list-row {
    margin-right: 50px;
    flex-shrink: 0;
}

.gpl-card-list .gpl-card-top-right-cluster .gpl-card-actions {
    justify-content: flex-start;
    width: max-content;
    max-width: max-content;
    flex-shrink: 0;
    gap: 10px;
    margin: 0;
    padding: 0 10px;
    border-left: 1px solid var(--line);
}

.gpl-card-list .gpl-card-top-right-cluster .gpl-alert-limits-wrap {
    margin: 0 0 0 20px;
    padding: 0 0 0 8px;
    border-left: 1px solid var(--line);
    gap: 8px 10px;
    width: max-content;
    max-width: max-content;
    flex-shrink: 0;
}

.gpl-card-list .gpl-vendor-brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 8px;
}

.gpl-card-list .gpl-alert-limit-input {
    width: 96px;
    height: 28px;
    padding: 0 6px;
    font-size: 12px;
}

.gpl-card-list .gpl-limit-field {
    gap: 4px;
    font-size: 12px;
}

.gpl-card-list .gpl-alert-limits-hint {
    font-size: 11px;
}

.gpl-card-list .gpl-name {
    font-size: 15px;
}

.gpl-card-list .gpl-type {
    min-width: 48px;
    padding: 2px 7px;
    font-size: 11px;
}

.gpl-card-list .gpl-game-list-link {
    height: 26px;
    padding: 0 10px;
    font-size: 11px;
}

.gpl-card-list .gpl-game-count-badge {
    min-width: 26px;
    height: 20px;
    padding: 0 6px;
    font-size: 10px;
}

.gpl-card-list .gpl-switch {
    height: 26px;
    gap: 6px;
}

.gpl-card-list .gpl-switch-label {
    font-size: 12px;
}

.gpl-card-list .gpl-card-identity .gpl-name {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gpl-vendor-brand-logo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 라이트: 로고가 밝은 카드에 묻히지 않도록 다크모드와 같은 어두운 받침 */
html.admin-theme-light .gpl-vendor-brand-logo {
    background: #0b1220;
    border-color: rgba(15, 23, 42, 0.55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.gpl-game-list-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 28px;
    padding: 0 12px;
    border: 1px solid #4a72ff;
    border-radius: 999px;
    background: #315dff;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.gpl-game-list-link:hover {
    border-color: #6b92ff;
    background: #3d6aff;
    color: #fff;
}

.gpl-game-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.32);
}

.gpl-game-count-badge.is-empty {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
}

.gpl-game-count-badge.is-unknown {
    color: #64748b;
    font-weight: 600;
}

.gpl-game-count-badge.is-loading {
    opacity: 0.55;
}

.gpl-game-order-wrap .gpl-order-head .gpl-order-actions {
    grid-template-columns: 158px;
}

.gpl-game-order-card .gpl-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.gpl-game-order-wrap.gpl-vendor-order-wrap .gpl-game-order-card .gpl-game-info {
    flex: 1;
    min-width: 0;
}

.gpl-game-order-card .gpl-order-actions {
    flex-shrink: 0;
}

.gpl-limit-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-left: 40px;
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.gpl-limit-wrap.is-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.gpl-limit-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.gpl-limit-select {
    height: 32px;
    min-width: 196px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1a2233;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.gpl-limit-select:focus {
    outline: 0;
    border-color: #315dff;
}

.gpl-alert-limits-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-left: 24px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

.gpl-alert-limits-wrap.is-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.gpl-alert-limit-input {
    width: 108px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1a2233;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.gpl-alert-limit-input:focus {
    outline: 0;
    border-color: #315dff;
}

.gpl-alert-limits-hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.gpl-card-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.gpl-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    cursor: pointer;
}

.gpl-switch.is-disabled {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

.gpl-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gpl-switch-ui {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 28px;
}

.gpl-switch-ui::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 36px;
    height: 14px;
    margin-top: -7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    transition: background 0.15s ease;
}

.gpl-switch-ui::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border-radius: 50%;
    background: #cfd8dc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, background 0.15s ease;
}

.gpl-switch input:checked + .gpl-switch-ui::before {
    background: rgba(33, 150, 243, 0.5);
}

.gpl-switch input:checked + .gpl-switch-ui::after {
    transform: translateX(16px);
    background: #2196f3;
}

.gpl-switch-danger input:checked + .gpl-switch-ui::before {
    background: rgba(244, 67, 54, 0.5);
}

.gpl-switch-danger input:checked + .gpl-switch-ui::after {
    background: #f44336;
}

.gpl-switch-warn input:checked + .gpl-switch-ui::before {
    background: rgba(245, 158, 11, 0.5);
}

.gpl-switch-warn input:checked + .gpl-switch-ui::after {
    background: #f59e0b;
}

.gpl-switch-hot input:checked + .gpl-switch-ui::before {
    background: rgba(251, 146, 60, 0.35);
}

.gpl-switch-hot input:checked + .gpl-switch-ui::after {
    background: #fb923c;
}

.gpl-switch-label {
    color: var(--muted);
    font-size: 14px;
}

.gpl-game-btn,
.gpl-dialog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: #315dff;
    color: #fff;
    font-weight: 700;
}

.gpl-order-actions {
    display: grid;
    grid-template-columns: 158px 112px;
    align-items: center;
}

.gpl-order-col {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    border-radius: 8px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.gpl-order-wrap .gpl-order-card.is-order-selected {
    border-color: rgba(93, 214, 255, 0.4);
    background: rgba(49, 93, 255, 0.04);
}

.gpl-order-wrap .gpl-order-card.is-order-selected > .gpl-order-cell,
.gpl-order-wrap .gpl-order-card.is-order-selected .gpl-order-actions .gpl-order-cell {
    background: rgba(49, 93, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(93, 214, 255, 0.22);
}

.gpl-order-wrap .gpl-order-card.is-order-selected > .gpl-card-top.gpl-order-cell {
    margin: 2px 0;
    padding: 6px 10px;
    border-radius: 8px;
}

.gpl-order-wrap .gpl-order-card.is-order-selected .gpl-order-actions {
    column-gap: 6px;
}

.gpl-order-wrap .gpl-order-card.is-order-selected .gpl-order-col + .gpl-order-col {
    border-left: none;
}

.gpl-order-wrap .gpl-order-cell.is-last-active {
    background: rgba(49, 93, 255, 0.16);
    box-shadow: inset 0 0 0 2px rgba(93, 214, 255, 0.45);
}

.gpl-vendor-order-wrap .gpl-order-row-check-label {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.gpl-vendor-order-wrap .gpl-order-head .gpl-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}

.gpl-vendor-order-wrap .gpl-order-head-title {
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}

.gpl-vendor-order-wrap .gpl-order-status-filters {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-left: 4px;
    min-width: 0;
}

.gpl-vendor-order-wrap .gpl-order-status-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    color: #c8d0df;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.gpl-vendor-order-wrap .gpl-order-status-filter input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #315dff;
    cursor: pointer;
}

.gpl-vendor-order-wrap .gpl-order-status-filter.is-service span {
    color: #7ec8ff;
}

.gpl-vendor-order-wrap .gpl-order-status-filter.is-maintenance span {
    color: #ffb347;
}

.gpl-vendor-order-wrap .gpl-order-status-filter.is-hidden span {
    color: #ff8fa3;
}

html.admin-theme-light .gpl-vendor-order-wrap .gpl-order-status-filter {
    color: #475569;
}

html.admin-theme-light .gpl-vendor-order-wrap .gpl-order-status-filter.is-service span {
    color: #2563eb;
}

html.admin-theme-light .gpl-vendor-order-wrap .gpl-order-status-filter.is-maintenance span {
    color: #d97706;
}

html.admin-theme-light .gpl-vendor-order-wrap .gpl-order-status-filter.is-hidden span {
    color: #e11d48;
}

.gpl-vendor-order-wrap .gpl-order-check-all {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #315dff;
    cursor: pointer;
}

.gpl-vendor-order-wrap .gpl-order-row-check {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #315dff;
    cursor: pointer;
}

.gpl-vendor-order-wrap .gpl-order-col--sort-spacer {
    pointer-events: none;
    visibility: hidden;
}

.gpl-vendor-order-wrap .gpl-order-list > .gpl-card.gpl-order-card {
    padding: 4px 14px;
    gap: 0;
}

.gpl-vendor-order-wrap .gpl-order-card .gpl-card-top {
    flex-wrap: nowrap;
    min-width: 0;
}

.gpl-vendor-order-wrap .gpl-order-card .gpl-card-identity {
    gap: 0;
}

.gpl-vendor-order-wrap .gpl-order-card .gpl-vendor-brand-logo {
    width: 64px;
    height: 64px;
}

.gpl-vendor-order-wrap .gpl-order-actions:has(.gpl-order-col--game-list) {
    grid-template-columns: auto 158px 112px;
    column-gap: 0;
}

.gpl-vendor-order-wrap .gpl-order-col--game-list {
    justify-content: flex-end;
    min-width: 0;
    padding-right: 10px;
    min-height: 0;
    border-left: none;
}

.gpl-vendor-order-wrap .gpl-order-col--game-list + .gpl-order-col {
    border-left: 1px solid var(--line);
}

.gpl-vendor-order-wrap .gpl-order-card .gpl-order-col {
    min-height: 32px;
}

.gpl-vendor-order-wrap .gpl-order-head .gpl-order-col--sort {
    flex-wrap: nowrap;
    gap: 4px;
}

/* 순서 설정: 목록 스크롤 시 컬럼 헤더·이동 버튼 고정 (page-card overflow:hidden 해제) */
body.admin-body .page-card:has(> .page-card-body.gpl-body .gpl-vendor-order-wrap) {
    overflow: visible;
}

.gpl-vendor-order-wrap .gpl-order-head {
    position: sticky;
    top: 0;
    z-index: 16;
    padding: 10px 20px 8px;
    background: #171d27;
    box-shadow: 0 1px 0 #293241;
}

.gpl-vendor-order-wrap .gpl-order-card.is-order-checked {
    border-color: rgba(93, 214, 255, 0.55);
    background: rgba(49, 93, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(93, 214, 255, 0.22);
}

.gpl-order-col--sort {
    flex-wrap: nowrap;
    gap: 4px;
}

.gpl-order-btn--compact {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.gpl-order-btn--compact i {
    font-size: 18px;
}

.gpl-order-col + .gpl-order-col {
    border-left: 1px solid var(--line);
}

.gpl-badge-btn,
.gpl-order-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1a2233;
    color: var(--text);
}

.gpl-order-btn {
    color: #fff;
}

.gpl-order-btn i {
    display: block;
    font-size: 24px;
    line-height: 1;
    color: #fff;
    -webkit-text-stroke: 0.4px #fff;
}

.gpl-order-btn.is-edge {
    visibility: hidden;
    pointer-events: none;
}

.gpl-badge-btn {
    opacity: 0.72;
    border-color: #4b5563;
    background: #243044;
}

.gpl-badge-btn:hover:not(.is-active) {
    opacity: 0.9;
    border-color: #64748b;
    background: #2d3a50;
}

.gpl-badge-btn.is-active {
    opacity: 1;
    border-width: 2px;
    border-color: rgba(251, 191, 36, 0.9);
    background: rgba(251, 191, 36, 0.22);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.12);
}

.gpl-badge-btn img {
    display: block;
    width: 22px;
    height: auto;
    margin: 0 auto;
}

.gpl-empty {
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.gpl-game-card[hidden],
.gpl-empty[hidden],
.gpl-game-section[hidden],
.gpl-vendor-order-wrap .gpl-order-card[hidden],
.gpl-vendor-order-wrap .gpl-order-card.is-order-filter-hidden {
    display: none !important;
}

.gpl-game-card {
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
}

.gpl-game-card .gpl-card-actions {
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.gpl-game-card .gpl-switch {
    gap: 4px;
    flex-shrink: 0;
}

.gpl-game-card .gpl-switch-label {
    font-size: 12px;
    white-space: nowrap;
}

.gpl-game-card .gpl-game-info {
    min-width: 0;
    gap: 8px;
}

.gpl-game-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.gpl-game-card .gpl-name {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gpl-game-code {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(148, 163, 184, 0.85);
}

.gpl-game-thumb {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    background: #1a2233;
}

.gpl-game-thumb-empty {
    flex-shrink: 0;
}

.gpl-dialog[hidden] {
    display: none;
}

.gpl-dialog {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.gpl-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.gpl-dialog-card {
    position: relative;
    z-index: 1;
    width: min(360px, calc(100% - 32px));
    margin: 20vh auto 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.gpl-dialog-title {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
}

.gpl-dialog-message {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-line;
}

.gpl-dialog-btn {
    width: 100%;
    margin-left: 0;
}

.gpl-dialog-btn:hover {
    background: #2548d6;
}

/* —— 게임사/게임리스트 제한 (GPL) · 라이트 모드 —— */
html.admin-theme-light .gpl-api-note {
    color: var(--muted);
}

html.admin-theme-light .gpl-category-stats {
    background: var(--panel-soft);
    border-color: var(--line);
}

html.admin-theme-light .gpl-category-stat.is-service strong {
    color: #059669;
}

html.admin-theme-light .gpl-category-stat.is-maintenance strong {
    color: #d97706;
}

html.admin-theme-light .gpl-category-stat.is-hidden strong {
    color: #dc2626;
}

html.admin-theme-light .gpl-category-stat.is-hot strong {
    color: #ea580c;
}

html.admin-theme-light .gpl-category-tab.is-active {
    background: rgba(49, 93, 255, 0.1);
    border-color: #315dff;
    color: #1e40af;
}

html.admin-theme-light .gpl-category-bulk-apply-btn {
    background: rgba(49, 93, 255, 0.08);
    color: #1e40af;
    border-color: #315dff;
}

html.admin-theme-light .gpl-category-bulk-apply-btn:hover:not(:disabled) {
    background: rgba(49, 93, 255, 0.16);
}

html.admin-theme-light .gpl-friends-sync {
    background: var(--panel-soft);
    border-color: var(--line);
}

html.admin-theme-light .gpl-api-brand .admin-chat-launcher {
    border-color: rgba(5, 150, 105, 0.35);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light .gpl-friends-table tbody td {
    border-bottom-color: var(--line);
}

html.admin-theme-light .gpl-friends-ok {
    color: #059669;
}

html.admin-theme-light .gpl-friends-miss {
    color: #dc2626;
}

html.admin-theme-light .gpl-card {
    background: var(--panel);
    border-color: var(--line);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

@media (hover: hover) {
    html.admin-theme-light .gpl-card-list > .gpl-card:hover {
        border-color: rgba(49, 93, 255, 0.38);
        background: #f8fafc;
        box-shadow:
            0 0 0 1px rgba(49, 93, 255, 0.12),
            0 4px 12px rgba(15, 23, 42, 0.08);
    }
}

html.admin-theme-light .gpl-type-slot {
    color: #0369a1;
    background: #e0f2fe;
}

html.admin-theme-light .gpl-type-live {
    color: #c2410c;
    background: #ffedd5;
}

html.admin-theme-light .gpl-type-other {
    color: #6d28d9;
    background: #ede9fe;
}

html.admin-theme-light .gpl-limit-select,
html.admin-theme-light .gpl-alert-limit-input {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
}

html.admin-theme-light .gpl-limit-select:focus,
html.admin-theme-light .gpl-alert-limit-input:focus {
    border-color: #315dff;
    box-shadow: 0 0 0 2px rgba(49, 93, 255, 0.15);
}

html.admin-theme-light .gpl-badge-btn,
html.admin-theme-light .gpl-order-btn {
    background: var(--panel-soft);
    border-color: var(--line);
    color: var(--text);
}

html.admin-theme-light .gpl-badge-btn {
    opacity: 0.55;
}

html.admin-theme-light .gpl-badge-btn:hover:not(.is-active) {
    opacity: 0.78;
}

html.admin-theme-light .gpl-order-btn i {
    color: var(--text);
    -webkit-text-stroke: 0;
}

html.admin-theme-light .gpl-badge-btn.is-active {
    border-width: 2px;
    border-color: #f59e0b;
    background: #fffbeb;
}

html.admin-theme-light .gpl-switch-ui::before {
    background: rgba(15, 23, 42, 0.18);
}

html.admin-theme-light .gpl-switch-ui::after {
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

html.admin-theme-light .gpl-game-code {
    color: rgba(100, 116, 139, 0.9);
}

html.admin-theme-light .gpl-game-thumb {
    background: var(--panel-soft);
    border: 1px solid var(--line);
}

html.admin-theme-light .gpl-dialog-backdrop {
    background: rgba(15, 23, 42, 0.35);
}

html.admin-theme-light .gpl-dialog-card {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light .gpl-dialog-btn-muted {
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light .gpl-game-list-link {
    border: 1px solid #2563eb;
    background: #315dff;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html.admin-theme-light .gpl-game-list-link:hover {
    border-color: #1d4ed8;
    background: #2563eb;
    color: #fff;
}

html.admin-theme-light .gpl-vendor-search-label {
    color: #334155;
    background: #f1f5f9;
    border-color: rgba(100, 116, 139, 0.35);
}

html.admin-theme-light .gpl-vendor-search-wrap,
html.admin-theme-light .gpl-vendor-combobox-field {
    border-color: rgba(49, 93, 255, 0.45);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(49, 93, 255, 0.08);
}

html.admin-theme-light .gpl-vendor-combobox-field:focus-within {
    border-color: #315dff;
    box-shadow: 0 0 0 2px rgba(49, 93, 255, 0.18);
}

html.admin-theme-light .gpl-vendor-search-wrap .login-history-search-input {
    color: #0f172a;
}

html.admin-theme-light .gpl-vendor-search-wrap .login-history-search-input::placeholder {
    color: #94a3b8;
}

html.admin-theme-light .gpl-vendor-combobox-list {
    border-color: rgba(49, 93, 255, 0.35);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light .gpl-vendor-combobox-option-name {
    color: #0f172a;
}

html.admin-theme-light .gpl-vendor-combobox-option.is-active,
html.admin-theme-light .gpl-vendor-combobox-option:hover {
    background: rgba(49, 93, 255, 0.1);
}

html.admin-theme-light .gpl-game-count-badge {
    color: #475569;
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.28);
}

html.admin-theme-light .gpl-game-count-badge.is-empty {
    color: #64748b;
}

html.admin-theme-light .gpl-vendor-order-wrap .gpl-order-card.is-order-checked {
    border-color: rgba(49, 93, 255, 0.45);
    background: rgba(49, 93, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(49, 93, 255, 0.2);
}

html.admin-theme-light .gpl-vendor-order-wrap .gpl-order-head {
    background: var(--panel, #f8fafc);
    box-shadow: 0 1px 0 var(--line);
}

.dash-page {
    display: grid;
    gap: 16px;
    padding: 8px 10px 24px;
    color: var(--text);
}

body.admin-body .dash-sticky-head {
    position: relative;
    z-index: 24;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
    margin: 0;
    padding: 6px 0 6px;
    overflow: visible;
    background: rgba(13, 17, 26, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #252d3c;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

html.admin-theme-light body.admin-body .dash-sticky-head {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: #dbe2ee;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

body.admin-body .dash-sticky-head > .dash-sticky-metrics.top-metrics {
    flex: 1 1 280px;
    width: auto;
    min-width: 0;
    margin-left: 0;
}

body.admin-body .dash-sticky-metrics.top-metrics {
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    max-width: 100%;
    min-height: 0;
    row-gap: 8px;
}

body.admin-body .dash-sticky-head .dash-top-bar {
    flex-shrink: 0;
}

body.admin-body .dash-sticky-head > .dash-top-bar {
    flex: 0 0 auto;
    width: auto;
    margin-bottom: 0;
    margin-left: auto;
}

body.admin-body .dash-sticky-head > .dash-top-bar .dash-top-bar-right {
    margin-left: 0;
    flex-wrap: nowrap;
}

body.admin-body .dash-sticky-head > .dash-today {
    flex: 0 0 100%;
    width: 100%;
}

body.admin-body .dash-sticky-metrics .top-metrics-menu-title {
    min-height: 46px;
    padding: 8px 12px;
}

body.admin-body.is-store-admin .dash-sticky-head .dash-top-bar-summary {
    padding-left: 0;
    border-left: 0;
}

.dash-top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: auto;
    min-width: 0;
}

.dash-top-bar-right .app-sidebar-watcher-status {
    flex-shrink: 0;
    align-self: center;
}

.dash-top-bar-right .summary-cards {
    width: auto;
    flex: 0 1 auto;
    align-items: center;
    gap: 4px;
}

.summary-cards-panel {
    display: flex;
    align-items: center;
    gap: 4px;
}

.summary-cards.is-collapsed {
    gap: 0;
}

.summary-cards.is-collapsed .summary-cards-panel,
.summary-cards-panel[hidden] {
    display: none !important;
}

.dash-top-bar-actions {
    flex-shrink: 0;
}

.is-dashboard-page .dash-page {
    gap: 0;
    padding-top: 0;
}

body.admin-body .dash-sticky-head .dash-top-bar {
    margin-bottom: 0;
}

.is-dashboard-page .dash-scroll-body {
    display: grid;
    gap: 16px;
    padding-top: 16px;
}

.dash-card {
    background: #151b27;
    border: 1px solid #252d3c;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.dash-top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 10px;
}

.dash-top-bar-left {
    flex: 0 0 auto;
}

.dash-top-bar-left .search-box {
    width: 140px;
}

.dash-top-bar-summary {
    display: flex;
    justify-content: flex-start;
    flex: 0 1 auto;
    width: auto;
    margin-top: 0;
    padding-left: 8px;
    border-left: 1px solid rgba(46, 56, 82, 0.65);
}

html.admin-theme-light .dash-top-bar-summary {
    border-left-color: #dbe2ee;
}

.dash-top-bar-summary .summary-card {
    width: auto;
    min-width: 0;
    height: 60px;
    padding: 5px 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.dash-top-bar-summary .summary-card span,
.dash-top-bar-summary .summary-card strong {
    width: auto;
    min-height: 0;
    white-space: nowrap;
}

.dash-top-bar-summary .summary-card strong {
    font-size: 14px;
    font-weight: 600;
}

.dash-top-bar-summary .summary-card-partner-rolling .summary-card-value-label {
    font-size: 12px;
}

.dash-top-bar-summary .summary-card-partner-rolling .summary-card-value-line {
    margin-top: 1px;
    gap: 4px;
}

.dash-top-bar-summary .summary-card-partner-rolling .summary-card-value-line strong {
    font-size: 14px;
}

.dash-top-bar-summary .summary-money-label {
    font-size: 11px;
}

.dash-top-bar-summary .summary-money-value {
    font-size: 13px !important;
}

.dash-top-bar-summary .summary-card-money {
    width: auto;
    min-width: 0;
    padding: 4px 6px;
}

.dash-top-bar-summary .summary-money-stack {
    width: auto;
}

.dash-top-bar-summary .summary-money-row {
    white-space: nowrap;
}

.dash-today {
    overflow: visible;
    background: rgba(21, 27, 39, 0.72);
    border: 1px solid #252d3c;
    border-radius: 16px;
}

.dash-today-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 14px;
    border-bottom: 1px solid rgba(46, 56, 82, 0.5);
    position: relative;
    z-index: 3;
}

.dash-today-head-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.dash-today-head .dash-today-actions.top-line-actions {
    min-height: 36px;
    gap: 8px;
}

.dash-today-coin-rates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 12px;
    line-height: 1.3;
    color: #9da8b9;
}

.dash-today-coin-rate-group-usdt,
.dash-today-coin-rate-group-trx {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 3px;
    border-radius: 12px;
}

.dash-today-coin-rate-group-usdt {
    border: 1px solid rgba(14, 165, 233, 0.35);
    background: rgba(14, 165, 233, 0.06);
}

.dash-today-coin-rate-group-trx {
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.06);
}

.dash-today-coin-rate-row {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(59, 69, 84, 0.65);
    background: rgba(15, 23, 42, 0.55);
}

.dash-today-coin-rate-group-usdt .dash-today-coin-rate-row {
    border-color: rgba(14, 165, 233, 0.25);
    background: rgba(14, 165, 233, 0.12);
}

.dash-today-coin-rate-group-trx .dash-today-coin-rate-row {
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.12);
}

.dash-today-coin-rate-label {
    color: #9da8b9;
}

.dash-today-coin-rate-arrow {
    color: #6b7280;
    font-weight: 400;
}

.dash-today-coin-rate-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dash-today-coin-rate-value-usdt-krw {
    color: #4ade80;
}

.dash-today-coin-rate-value-usdt {
    color: #38bdf8;
}

.dash-today-coin-rate-value-trx-krw {
    color: #4ade80;
}

.dash-today-coin-rate-value-trx-amt {
    color: #a78bfa;
}

.dash-today-coin-rate-unit {
    font-weight: 500;
    color: #9da8b9;
}

/* 사이드바 시세는 오늘의 통계 헤더로 이동 (레거시 sidebar_usdt_rate.inc.php) */
.sidebar-coin-rates,
#app-sidebar p:has(+ div #sidebarUsdtPer10k),
#sidebar p:has(+ div #sidebarUsdtPer10k),
#app-sidebar div:has(#sidebarUsdtPer10k),
#sidebar div:has(#sidebarUsdtPer10k),
#app-sidebar div:has(#sidebarTrxPerOne),
#sidebar div:has(#sidebarTrxPerOne) {
    display: none !important;
}

.dash-today-actions {
    position: relative;
    z-index: 12;
    flex-shrink: 0;
    margin-left: auto;
    pointer-events: auto;
}

.dash-today-actions .top-line-icon-btn,
.dash-today-actions .top-line-theme-btn,
.dash-today-actions .top-line-realtime {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.dash-today-detail-panel {
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}

.dash-today-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.dash-today-grid-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(52, 211, 153, 0.42);
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.dash-today-grid-toggle:hover,
.dash-today-grid-toggle:focus-visible {
    border-color: #34d399;
    background: rgba(16, 185, 129, 0.28);
    color: #ecfdf5;
    outline: none;
}

.dash-today-grid-toggle-icon {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.18s ease;
}

.dash-today-grid-toggle.is-collapsed .dash-today-grid-toggle-icon {
    transform: rotate(180deg);
}

.dash-today.is-grid-collapsed .dash-today-head {
    border-bottom-color: transparent;
}

.dash-today.is-grid-collapsed {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.dash-today-title > .mdi-trending-up {
    color: #00d9ff;
    font-size: 16px;
}

.dash-today-elapsed {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #878792;
    font-size: 13px;
}

.dash-today-elapsed em {
    font-style: normal;
}

.dash-empty,
.dash-game-meta,
.dash-activity-list em,
.dash-pending-list em {
    color: var(--muted);
    font-size: 12px;
}

body.admin-body .dash-today-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 0 0 16px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

body.admin-body .dash-today-grid article {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 8px;
    border-right: 1px solid rgba(46, 56, 82, 0.5);
}

body.admin-body .dash-today-grid article.dash-today-wide {
    flex: 1.25 1 0;
}

body.admin-body .dash-today-grid article.dash-today-stat-slim {
    flex: 0.82 1 0;
    padding-left: 8px;
    padding-right: 8px;
}

body.admin-body .dash-today-grid article.dash-today-wide.dash-today-stat-slim {
    flex: 1.02 1 0;
}

body.admin-body .dash-today-grid article:last-child {
    border-right: 0;
}

body.admin-body .dash-today-grid em {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
    color: #878792;
    font-size: 11px;
    font-style: normal;
    white-space: nowrap;
}

body.admin-body .dash-today-grid em .mdi {
    font-size: 14px;
}

body.admin-body .dash-today-grid b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

body.admin-body .dash-today-grid .c-split {
    margin: 0 4px;
    color: #878792;
    font-weight: 400;
}

.dash-today-grid .c-cyan { color: #00d9ff; }
.dash-today-grid .c-purple,
.dash-kpi-change.c-purple { color: #bd00ff; }
.dash-today-grid .c-orange { color: #ff6b00; }
.dash-today-grid .c-green { color: #22c55e; }

.dash-today-more {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 88px;
    min-width: 88px;
    padding: 4px 6px;
}

.dash-today-detail-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #878792;
    font-size: 11px;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    transition: color 0.15s ease;
}

.dash-today-detail-btn-grid-icon {
    font-size: 14px;
    line-height: 1;
}

.dash-today-detail-btn-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    white-space: nowrap;
}

.dash-today-detail-btn:hover,
.dash-today-detail-btn.is-open {
    color: #e8edf8;
}

.dash-today-detail-chevron {
    font-size: 14px;
    transition: transform 0.15s ease;
}

.dash-today-detail-btn.is-open .dash-today-detail-chevron {
    transform: rotate(180deg);
}

.dash-today-detail-panel {
    border-top: 1px solid rgba(46, 56, 82, 0.5);
}

.dash-today-detail-scroll {
    overflow-x: auto;
}

.dash-today-detail-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.dash-today-detail-table th,
.dash-today-detail-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(46, 56, 82, 0.35);
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

.dash-today-detail-table th:first-child,
.dash-today-detail-table td:first-child {
    text-align: left;
}

.dash-today-detail-table thead th {
    color: #878792;
    font-size: 12px;
    font-weight: 600;
    background: rgba(21, 27, 39, 0.45);
}

.dash-today-detail-table tbody td {
    color: #d7deee;
}

.dash-today-detail-table tbody tr:last-child td {
    border-bottom: 0;
}

.dash-today-detail-table .is-plus {
    color: #22c55e;
}

.dash-today-detail-table .is-minus {
    color: #ef4444;
}

.dash-kpi em,
.dash-online-total em,
.dash-online-kinds span {
    display: block;
    color: #8b95ab;
    font-size: 11px;
    font-style: normal;
}

.dash-kpi strong,
.dash-online-total strong {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    letter-spacing: -0.03em;
}

.dash-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.dash-hero h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.dash-hero p {
    margin: 4px 0 0;
    color: var(--muted);
}

.dash-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #334056;
    border-radius: 12px;
    background: #1a2231;
    color: #d7deee;
    cursor: pointer;
}

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.dash-kpi {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.dash-kpi strong {
    margin-top: 18px;
    font-size: 26px;
}

.dash-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 20px;
}

.dash-kpi-change {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 700;
}

.dash-kpi-change.is-up { color: #4ade80; }
.dash-kpi-change.is-down { color: #fb7185; }
.is-plus { color: #4ade80; }
.is-minus { color: #fb7185; }
.is-gold { color: #fbbf24; }
.is-rolling { color: #fb923c; }

.dash-kpi.tone-cyan { background: linear-gradient(180deg, #12363c 0%, #10242d 100%); }
.dash-kpi.tone-green { background: linear-gradient(180deg, #123a2c 0%, #10261f 100%); }
.dash-kpi.tone-pink { background: linear-gradient(180deg, #3a1830 0%, #26101d 100%); }
.dash-kpi.tone-purple { background: linear-gradient(180deg, #2b1a44 0%, #1b1230 100%); }
.dash-kpi.tone-orange { background: linear-gradient(180deg, #3a2614 0%, #26180f 100%); }

.dash-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 12px;
}

.dash-main-left,
.dash-main-right,
.dash-game-list,
.dash-pending-grid {
    display: grid;
    gap: 12px;
}

.dash-card {
    padding: 16px;
}

.dash-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 16px;
}

.dash-count {
    margin-left: auto;
    min-width: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #16a34a;
    color: #052e16;
    font-size: 12px;
    text-align: center;
}

.dash-count.is-pink {
    background: #fb7185;
    color: #4c0519;
}

.dash-game-row + .dash-game-row {
    margin-top: 16px;
}

.dash-game-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-game-head strong {
    margin-left: auto;
}

.dash-game-dot,
.dash-activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fb923c;
}

.dash-game-dot.tone-purple,
.dash-activity-dot.tone-purple { background: #c084fc; }
.dash-game-dot.tone-green,
.dash-activity-dot.tone-green { background: #4ade80; }
.dash-activity-dot.tone-gold { background: #fbbf24; }

.dash-game-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin: 4px 0 8px;
    text-align: right;
}

.dash-game-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #223044;
}

.dash-game-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.dash-pending-grid {
    grid-template-columns: 1fr 1fr;
}

.dash-empty {
    margin: 18px 0 8px;
    text-align: center;
}

.dash-pending-list,
.dash-activity-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash-pending-list li,
.dash-activity-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.dash-pending-list b {
    min-width: 72px;
}

.dash-pending-list span {
    margin-left: auto;
    font-weight: 700;
}

.dash-online-card {
    text-align: center;
}

.dash-live-dot {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.dash-online-total strong {
    font-size: 42px;
    line-height: 1;
}

.dash-online-kinds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.dash-online-kinds div {
    padding: 10px 8px;
    border-radius: 12px;
    background: #10151f;
}

.dash-online-kinds b {
    display: block;
    font-size: 18px;
}

.dash-activity-list p {
    margin: 0;
    font-size: 13px;
}

.admin-alert-list-control-buttons {
    margin-top: 4px;
}

.admin-alert-list-filter.date-filter-form {
    margin-bottom: 0;
}

.admin-alert-list-filter .admin-alert-list-search-field {
    flex: 0 1 auto;
    width: auto;
    min-width: 200px;
    max-width: 260px;
}

.admin-alert-list-filter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 100%;
    gap: 8px 10px;
    width: 100%;
    min-width: 0;
}

.admin-alert-list-filter-top .login-history-topbar-title {
    margin: 0;
    flex: 0 0 auto;
}

/* date-filter-form + search-wrap 공통 규칙(100%·flex-start)보다 우선 */
.admin-alert-list-filter.date-filter-form:has(.date-filter-search-wrap):not(:has(.date-filter-vendor-kind--inline))
    .admin-alert-list-filter-top
    .date-filter-primary-controls {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-end;
}

.admin-alert-list-filter-top .date-filter-primary-controls {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-end;
}

.admin-alert-list-page-summary {
    margin: 0;
    color: #878792;
    font-size: 12px;
    text-align: right;
}

.admin-alert-list-table.partners-data-table thead th {
    padding: 8px 10px;
    line-height: 1.15;
    font-size: 12px;
}

.admin-alert-list-table tbody td {
    padding: 6px 10px;
    line-height: 1.15;
    vertical-align: middle;
}

.admin-alert-list-col-check {
    width: 44px;
    text-align: center;
}

.admin-alert-list-type {
    display: block;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
}

.admin-alert-list-text strong {
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
    line-height: 1.15;
}

.admin-alert-list-text span {
    display: block;
    color: #878792;
    font-size: 12px;
    line-height: 1.15;
}

.admin-alert-list-at {
    white-space: nowrap;
    vertical-align: top;
}

.admin-alert-list-at-relative {
    display: block;
    color: #e8edf8;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
}

.admin-alert-list-at-exact {
    display: block;
    margin-top: 2px;
    color: #878792;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
}

.admin-alert-list-table .top-line-alert-read-status {
    min-height: 16px;
    padding: 0 5px;
    font-size: 10px;
    line-height: 1.1;
}

.admin-alert-list-row-read,
.admin-alert-list-row-delete,
.admin-alert-list-row-detail {
    min-height: 30px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.admin-alert-list-row-read {
    border: 1px solid rgba(251, 146, 60, 0.75);
    background: rgba(249, 115, 22, 0.22);
    color: #fed7aa;
}

.admin-alert-list-row-read:hover {
    border-color: rgba(253, 186, 116, 0.95);
    background: rgba(249, 115, 22, 0.34);
    color: #ffedd5;
}

.admin-alert-list-row-delete {
    border: 1px solid rgba(248, 113, 113, 0.75);
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.admin-alert-list-row-delete:hover {
    border-color: rgba(252, 165, 165, 0.95);
    background: rgba(239, 68, 68, 0.32);
    color: #fee2e2;
}

.admin-alert-list-row-detail {
    border: 1px solid rgba(34, 211, 238, 0.75);
    background: rgba(6, 182, 212, 0.22);
    color: #a5f3fc;
    white-space: nowrap;
}

.admin-alert-list-row-detail:hover {
    border-color: rgba(103, 232, 249, 0.95);
    background: rgba(6, 182, 212, 0.34);
    color: #cffafe;
}

.admin-alert-list-detail-empty {
    text-align: center;
    color: rgba(148, 163, 184, 0.85);
}

.admin-alert-list-table tbody tr.is-badge-count {
    border-left: 3px solid #f97316;
}

.admin-alert-list-table tbody tr.is-badge-metric {
    border-left: 3px solid #00d9ff;
}

.dash-profit-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin: 16px 0;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    font-size: 13px;
    line-height: 1.35;
    color: var(--text);
}

.dash-profit-summary-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.dash-profit-summary-title {
    color: var(--muted);
    font-weight: 600;
}

.dash-profit-metric {
    color: var(--text);
}

.dash-profit-metric strong.is-plus {
    color: #4ade80;
}

.dash-profit-metric strong.is-minus {
    color: #f87171;
}

.dash-profit-period-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-left: auto;
}

.dash-profit-period-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dash-profit-period-radio {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text);
    font-size: 12px;
}

.dash-profit-period-submit {
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
}

.dash-profit-period-submit:hover {
    filter: brightness(1.08);
}

.dash-profit-charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
}

@media (min-width: 1280px) {
    .dash-profit-charts-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .dash-profit-card--trend {
        grid-column: span 3;
    }

    .dash-profit-card--compare {
        grid-column: span 2;
    }
}

.dash-profit-trend-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 12px;
}

.dash-profit-period-form--compact {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.dash-profit-period-sep {
    color: var(--muted);
    font-size: 12px;
}

.dash-profit-line-chart-wrap {
    min-height: 240px;
    padding-top: 4px;
}

.dash-profit-line-chart {
    display: block;
    width: 100%;
    height: 220px;
}

.dash-profit-line-zero {
    stroke: color-mix(in srgb, var(--line) 85%, transparent);
    stroke-width: 1;
}

.dash-profit-line-series {
    stroke: #4ade80;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

html.admin-theme-light .dash-profit-line-series {
    stroke: #16a34a;
}

.dash-profit-line-labels {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-top: 8px;
    overflow-x: auto;
}

.dash-profit-line-label {
    flex: 1 0 auto;
    min-width: 0;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
    white-space: nowrap;
}

.dash-profit-card--compare .dash-profit-dual-chart {
    margin-top: 8px;
}

.dash-profit-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    padding: 16px;
}

@media (min-width: 640px) {
    .dash-profit-charts-grid .dash-profit-card {
        padding: 24px;
    }
}

.dash-profit-card-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.dash-profit-chart-caption {
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 12px;
}

.dash-profit-dual-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    min-height: 220px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.dash-profit-chart-col {
    display: flex;
    flex: 1 0 28px;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 28px;
}

.dash-profit-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 180px;
}

.dash-profit-bar {
    width: 10px;
    min-height: 2px;
    border-radius: 4px 4px 2px 2px;
    transition: height 0.2s ease;
}

.dash-profit-bar--bet {
    background: #60a5fa;
}

.dash-profit-bar--profit.is-plus {
    background: #4ade80;
}

.dash-profit-bar--profit.is-minus {
    background: #f87171;
}

.dash-profit-bar--profit.is-zero {
    background: #64748b;
}

.dash-profit-chart-label {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.dash-profit-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.dash-profit-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 4px;
    border-radius: 2px;
    vertical-align: middle;
}

.dash-profit-swatch--bet {
    background: #60a5fa;
}

.dash-profit-swatch--profit {
    background: #4ade80;
}

.dash-profit-dist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.dash-profit-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    min-height: 140px;
    margin-top: 12px;
    overflow-x: auto;
}

.dash-profit-mini-col {
    display: flex;
    flex: 1 0 20px;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 20px;
}

.dash-profit-mini-bar {
    width: 100%;
    max-width: 18px;
    min-height: 2px;
    border-radius: 3px;
    background: #a78bfa;
}

.dash-profit-mini-chart--weekday .dash-profit-mini-bar {
    background: #fbbf24;
}

.dash-profit-mini-label {
    color: var(--muted);
    font-size: 10px;
}

.dash-profit-daily-table-wrap {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.dash-profit-daily-head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.dash-profit-daily-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.dash-profit-daily-scroll {
    overflow-x: auto;
}

.dash-profit-daily-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 13px;
}

.dash-profit-daily-table thead {
    background: var(--panel-soft);
}

.dash-profit-daily-table th,
.dash-profit-daily-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.dash-profit-daily-table th {
    font-weight: 600;
    color: var(--muted);
    text-align: center;
}

.dash-profit-daily-table th.is-bet,
.dash-profit-daily-table td.is-bet {
    text-align: right;
    color: #93c5fd;
}

.dash-profit-daily-table th.is-losing,
.dash-profit-daily-table td.is-losing {
    text-align: right;
    color: #4ade80;
}

.dash-profit-daily-table td.is-losing.is-minus,
.dash-profit-daily-table th.is-losing {
    color: #4ade80;
}

.dash-profit-daily-table th.is-mine,
.dash-profit-daily-table td.is-mine {
    text-align: right;
    color: #facc15;
}

.dash-profit-daily-table td.is-mine.is-minus {
    color: #f87171;
}

.dash-profit-daily-table td.is-losing.is-minus {
    color: #f87171;
}

.dash-profit-daily-table tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--panel-soft) 65%, transparent);
}

.dash-profit-daily-table tbody tr:hover {
    background: color-mix(in srgb, var(--panel-soft) 90%, var(--line));
}

.dash-profit-empty {
    margin: 0;
    padding: 16px;
    color: var(--muted);
    text-align: center;
}

html.admin-theme-light .dash-profit-summary,
html.admin-theme-light .dash-profit-card,
html.admin-theme-light .dash-profit-daily-table-wrap {
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light .dash-profit-daily-table th.is-bet,
html.admin-theme-light .dash-profit-daily-table td.is-bet {
    color: #2563eb;
}

html.admin-theme-light .dash-profit-daily-table th.is-losing,
html.admin-theme-light .dash-profit-daily-table td.is-losing:not(.is-minus) {
    color: #15803d;
}

html.admin-theme-light .dash-profit-daily-table th.is-mine,
html.admin-theme-light .dash-profit-daily-table td.is-mine:not(.is-minus) {
    color: #a16207;
}

html.admin-theme-light .dash-profit-metric strong.is-plus {
    color: #15803d;
}

html.admin-theme-light .dash-profit-metric strong.is-minus,
html.admin-theme-light .dash-profit-daily-table td.is-losing.is-minus,
html.admin-theme-light .dash-profit-daily-table td.is-mine.is-minus {
    color: #dc2626;
}

html.admin-theme-light .dash-profit-bar--bet {
    background: #3b82f6;
}

html.admin-theme-light .dash-profit-bar--profit.is-plus {
    background: #22c55e;
}

html.admin-theme-light .dash-profit-bar--profit.is-minus {
    background: #ef4444;
}

html.admin-theme-light .dash-profit-bar--profit.is-zero {
    background: #94a3b8;
}

html.admin-theme-light .dash-refresh {
    background: var(--panel);
    border-color: var(--line);
    color: var(--text);
}

html.admin-theme-light .dash-refresh:hover {
    background: var(--panel-soft);
}

html.admin-theme-light .dash-hero h1 {
    color: var(--text);
}

/* 본사 대시보드 — 마토 bonsa_dashboard.php 동일 구조 */
.is-dashboard-page .dash-scroll-body {
    gap: 0;
    padding-top: 0;
}

.bdash-root {
    color: var(--text);
}

.bdash-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 24px;
}

.bdash-post-login-landing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 10px;
}

.bdash-post-login-landing-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.bdash-post-login-landing .bdash-period-btns {
    gap: 4px;
}

.bdash-post-login-landing .bdash-period-btn {
    height: 26px;
    padding: 0 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--muted);
    font-family: inherit;
}

.bdash-post-login-landing .bdash-period-btn.is-active {
    border-color: #137fec;
    background: color-mix(in srgb, #137fec 20%, transparent);
    color: #7ec8ff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #137fec 50%, transparent);
}

html.admin-theme-light .bdash-post-login-landing .bdash-period-btn.is-active {
    color: #137fec;
}

.bdash-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text);
}

.bdash-summary {
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 0 12px;
    font-size: 14px;
    line-height: 1.35;
}

.bdash-summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 8px 0;
}

.bdash-summary-row--today {
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.bdash-summary-label {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--muted);
}

.bdash-summary-label--period {
    color: color-mix(in srgb, #67e8f9 90%, var(--text));
}

.bdash-summary-metric {
    color: var(--muted);
}

.bdash-summary-metric strong {
    font-weight: 700;
}

.bdash-tone-bet {
    color: #60a5fa;
}

.bdash-tone-losing.bdash-amount-pos {
    color: #4ade80;
}

.bdash-tone-mine.bdash-amount-pos {
    color: #facc15;
}

.bdash-amount-neg {
    color: #f87171 !important;
}

.bdash-charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

@media (min-width: 1280px) {
    .bdash-charts-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .bdash-panel--trend {
        grid-column: span 3;
    }

    .bdash-panel--bar {
        grid-column: span 2;
    }
}

.bdash-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    padding: 16px;
}

@media (min-width: 640px) {
    .bdash-panel {
        padding: 24px;
    }
}

.bdash-panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.bdash-panel-title--bar {
    margin-bottom: 16px;
}

.bdash-panel-sub {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
}

.bdash-trend-head {
    margin-bottom: 12px;
}

.bdash-trend-head-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.bdash-period-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bdash-period-btn {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.bdash-period-btn:hover {
    color: var(--text);
    filter: brightness(1.06);
}

.bdash-period-btn.is-active {
    border-color: #137fec;
    background: color-mix(in srgb, #137fec 20%, transparent);
    color: #7ec8ff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #137fec 50%, transparent);
}

.bdash-date-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bdash-date-input {
    height: 36px;
    width: 8rem;
    max-width: 8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 14px;
    padding: 0 6px;
}

.bdash-date-input:focus {
    outline: none;
    border-color: #137fec;
    box-shadow: 0 0 0 2px color-mix(in srgb, #137fec 35%, transparent);
}

.bdash-date-sep {
    color: var(--muted);
    font-size: 14px;
}

.bdash-date-submit {
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #137fec;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.bdash-date-submit:hover {
    background: color-mix(in srgb, #137fec 90%, #000);
}

.bdash-chart-wrap {
    position: relative;
    width: 100%;
}

.bdash-chart-wrap--trend,
.bdash-chart-wrap--bar {
    height: 280px;
}

.bdash-chart-wrap--dist {
    height: 240px;
}

.bdash-dist-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
}

@media (min-width: 1024px) {
    .bdash-dist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bdash-daily-wrap {
    margin-top: 24px;
    width: min(100%, 55%);
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.bdash-daily-head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
    .bdash-daily-head {
        padding: 12px 24px;
    }
}

.bdash-daily-scroll {
    overflow: visible;
}

.bdash-daily-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
}

.bdash-daily-table thead th.settlement-head-group {
    font-size: 12px;
    font-weight: 600;
}

.bdash-daily-table thead th.settlement-head-group-slot {
    background-color: rgba(18, 52, 120, 0.82);
    color: #93c5fd;
}

.bdash-daily-table thead th.settlement-head-group-casino {
    background-color: rgba(95, 35, 115, 0.82);
    color: #f0abfc;
}

.bdash-daily-table thead tr:nth-child(2) th.settlement-head-bet,
.bdash-daily-table thead tr:nth-child(2) th.settlement-head-win:not(.settlement-head-win-casino) {
    background-color: rgba(18, 52, 120, 0.78);
    color: #93c5fd;
}

.bdash-daily-table thead tr:nth-child(2) th.settlement-head-bet-casino,
.bdash-daily-table thead tr:nth-child(2) th.settlement-head-win-casino {
    background-color: rgba(95, 35, 115, 0.78);
    color: #f0abfc;
}

.bdash-daily-table .bdash-daily-bet-slot,
.bdash-daily-table .settlement-num-win:not(.settlement-num-win-casino) {
    background: rgba(59, 130, 246, 0.16);
}

.bdash-daily-table .bdash-daily-bet-casino,
.bdash-daily-table .settlement-num-win-casino {
    background: rgba(192, 38, 211, 0.16);
}

.bdash-daily-table .bdash-daily-bet-slot,
.bdash-daily-table .bdash-daily-bet-casino,
.bdash-daily-table .settlement-num-win {
    text-align: right;
    vertical-align: middle;
}

.bdash-daily-table .settlement-num-bet-total {
    color: #e0f2fe;
    font-weight: 700;
    line-height: 1.25;
}

.bdash-daily-table .settlement-num-bet-valid {
    color: #7dd3fc;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
}

.bdash-daily-table .settlement-num-bet-casino.settlement-num-bet-total {
    color: #fae8ff;
    font-weight: 700;
}

.bdash-daily-table .settlement-num-bet-casino.settlement-num-bet-valid {
    color: #e9d5ff;
    font-weight: 600;
}

.bdash-daily-table .settlement-num-win:not(.settlement-num-win-casino) {
    color: #f8fafc;
    font-weight: 700;
}

.bdash-daily-table .settlement-num-win-casino {
    color: #fdf4ff;
    font-weight: 700;
}

.bdash-daily-date-head,
.bdash-daily-metric-head {
    vertical-align: middle;
}

.bdash-daily-table .bdash-daily-date-head {
    width: 11%;
}

.bdash-daily-table thead th.settlement-head-group-slot {
    width: 20%;
}

.bdash-daily-table thead th.settlement-head-group-casino {
    width: 20%;
}

.bdash-daily-table thead th.settlement-head-bet,
.bdash-daily-table thead th.settlement-head-win {
    width: 10%;
    font-size: 11px;
    line-height: 1.2;
    padding: 6px 4px;
    white-space: normal;
    word-break: keep-all;
}

.bdash-daily-table th.is-losing.bdash-daily-metric-head {
    width: 13%;
    font-size: 11px;
    line-height: 1.25;
    padding: 6px 4px;
    white-space: normal;
    background-color: rgba(20, 83, 45, 0.82);
    color: #bbf7d0;
    font-weight: 600;
}

.bdash-daily-table thead th.is-mine.bdash-daily-metric-head {
    background-color: rgba(120, 53, 15, 0.88);
    color: #fef08a;
    font-weight: 600;
}

.bdash-daily-table th.is-mine.bdash-daily-metric-head,
.bdash-daily-table td.is-mine {
    width: 15%;
    max-width: 9.5rem;
    font-size: 11px;
    line-height: 1.25;
    padding: 6px 4px;
}

.bdash-head-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.bdash-mine-main {
    font-weight: 600;
}

.bdash-daily-table td.is-mine .bdash-profit-sub {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
    word-break: break-all;
    color: #cbd5e1;
    font-weight: 500;
}

.bdash-daily-table tbody td.is-losing {
    background: rgba(34, 197, 94, 0.1);
    font-weight: 700;
}

.bdash-daily-table tbody td.is-losing.bdash-amount-pos {
    color: #bbf7d0 !important;
}

.bdash-daily-table tbody td.is-losing.bdash-amount-neg {
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca !important;
}

.bdash-daily-table tbody td.is-mine {
    background: rgba(250, 204, 21, 0.08);
}

.bdash-daily-table tbody td.is-mine.bdash-amount-pos .bdash-mine-main {
    color: #fde047 !important;
    font-weight: 700;
}

.bdash-daily-table tbody td.is-mine.bdash-amount-neg {
    background: rgba(239, 68, 68, 0.12);
}

.bdash-daily-table tbody td.is-mine.bdash-amount-neg .bdash-mine-main {
    color: #fca5a5 !important;
    font-weight: 700;
}

html.admin-theme-light .bdash-daily-table thead th.settlement-head-group-slot,
html.admin-theme-light .bdash-daily-table thead tr:nth-child(2) th.settlement-head-bet:not(.settlement-head-bet-casino),
html.admin-theme-light .bdash-daily-table thead tr:nth-child(2) th.settlement-head-win:not(.settlement-head-win-casino) {
    background-color: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

html.admin-theme-light .bdash-daily-table thead th.settlement-head-group-casino,
html.admin-theme-light .bdash-daily-table thead tr:nth-child(2) th.settlement-head-bet-casino,
html.admin-theme-light .bdash-daily-table thead tr:nth-child(2) th.settlement-head-win-casino {
    background-color: rgba(192, 38, 211, 0.1);
    color: #a21caf;
}

html.admin-theme-light .bdash-daily-table .bdash-daily-bet-slot,
html.admin-theme-light .bdash-daily-table .settlement-num-win:not(.settlement-num-win-casino) {
    background: rgba(37, 99, 235, 0.1);
}

html.admin-theme-light .bdash-daily-table .bdash-daily-bet-casino,
html.admin-theme-light .bdash-daily-table .settlement-num-win-casino {
    background: rgba(192, 38, 211, 0.1);
}

html.admin-theme-light .bdash-daily-table .settlement-num-bet-total {
    color: #1e40af;
}

html.admin-theme-light .bdash-daily-table .settlement-num-bet-valid {
    color: #1d4ed8;
}

html.admin-theme-light .bdash-daily-table .settlement-num-bet-casino.settlement-num-bet-total {
    color: #86198f;
}

html.admin-theme-light .bdash-daily-table .settlement-num-bet-casino.settlement-num-bet-valid {
    color: #a21caf;
}

html.admin-theme-light .bdash-daily-table .settlement-num-win:not(.settlement-num-win-casino) {
    color: #0f172a;
}

html.admin-theme-light .bdash-daily-table .settlement-num-win-casino {
    color: #3b0764;
}

html.admin-theme-light .bdash-daily-table tbody td.is-losing.bdash-amount-pos {
    color: #166534 !important;
    background: rgba(34, 197, 94, 0.12);
}

html.admin-theme-light .bdash-daily-table tbody td.is-losing.bdash-amount-neg {
    color: #b91c1c !important;
    background: rgba(239, 68, 68, 0.1);
}

html.admin-theme-light .bdash-daily-table tbody td.is-mine.bdash-amount-pos .bdash-mine-main {
    color: #a16207 !important;
}

html.admin-theme-light .bdash-daily-table tbody td.is-mine.bdash-amount-neg .bdash-mine-main {
    color: #b91c1c !important;
}

html.admin-theme-light .bdash-daily-table td.is-mine .bdash-profit-sub {
    color: #475569;
}

html.admin-theme-light .bdash-daily-table th.is-losing.bdash-daily-metric-head {
    background-color: rgba(187, 247, 208, 0.65);
    color: #166534;
}

html.admin-theme-light .bdash-daily-table thead th.is-mine.bdash-daily-metric-head {
    background-color: rgba(254, 240, 138, 0.75);
    color: #92400e;
}

.bdash-daily-table thead {
    background: color-mix(in srgb, var(--panel-soft) 55%, transparent);
}

.bdash-daily-table th,
.bdash-daily-table td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--line);
    overflow: visible;
}

.bdash-daily-table .bdash-daily-bet-slot,
.bdash-daily-table .bdash-daily-bet-casino,
.bdash-daily-table .settlement-num-win,
.bdash-daily-table td.is-losing {
    white-space: nowrap;
}

.bdash-daily-table .bdash-mine-main {
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.3;
}

.bdash-daily-table th {
    font-weight: 500;
    color: var(--muted);
    text-align: center;
}

.bdash-daily-table th.is-bet,
.bdash-daily-table td.is-bet {
    text-align: right;
    color: #93c5fd;
}

.bdash-daily-table th.is-losing,
.bdash-daily-table td.is-losing {
    text-align: right;
    color: #4ade80;
}

.bdash-daily-table th.is-mine,
.bdash-daily-table td.is-mine {
    text-align: right;
    color: #facc15;
}

.bdash-daily-table td.is-date {
    text-align: center;
    color: var(--text);
    white-space: nowrap;
    font-size: 11px;
    padding: 8px 4px;
}

.bdash-daily-table td.is-mine {
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
    vertical-align: top;
}

.bdash-daily-table tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--panel-soft) 35%, transparent);
}

.bdash-daily-table tbody tr:hover {
    background: color-mix(in srgb, var(--panel-soft) 65%, var(--line));
}

.bdash-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--muted);
}

html.admin-theme-light .bdash-summary,
html.admin-theme-light .bdash-panel,
html.admin-theme-light .bdash-daily-wrap {
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light .bdash-tone-bet {
    color: #2563eb;
}

html.admin-theme-light .bdash-tone-losing.bdash-amount-pos {
    color: #15803d;
}

html.admin-theme-light .bdash-tone-mine.bdash-amount-pos {
    color: #a16207;
}

html.admin-theme-light .bdash-amount-neg {
    color: #dc2626 !important;
}

html.admin-theme-light .bdash-period-btn.is-active {
    color: #0369a1;
}

html.admin-theme-light .bdash-daily-table th.is-bet,
html.admin-theme-light .bdash-daily-table td.is-bet {
    color: #2563eb;
}

html.admin-theme-light .bdash-daily-table th.is-losing,
html.admin-theme-light .bdash-daily-table td.is-losing.bdash-amount-pos {
    color: #15803d;
}

html.admin-theme-light .bdash-daily-table th.is-mine,
html.admin-theme-light .bdash-daily-table td.is-mine.bdash-amount-pos {
    color: #a16207;
}

html.admin-theme-light .bdash-daily-table td.is-losing.bdash-amount-neg,
html.admin-theme-light .bdash-daily-table td.is-mine.bdash-amount-neg {
    color: #dc2626;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
    .dash-profit-dist-grid {
        grid-template-columns: 1fr;
    }

    .dash-profit-period-form {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 1280px) {
    .dash-kpis,
    .dash-main-grid,
    .dash-pending-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .dash-kpis,
    .dash-main-grid,
    .dash-pending-grid,
    .dash-hero {
        grid-template-columns: 1fr;
        display: grid;
    }
}

.notice-edit-popup-preview-stack {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    pointer-events: auto;
}

.notice-edit-popup-preview-stack[hidden] {
    display: none !important;
}

.notice-edit-popup-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 20, 0.52);
}

.notice-edit-popup-preview-pop.main_notice_pop.notice-popup {
    position: relative;
    left: auto;
    top: auto;
    z-index: 1;
    margin: 0;
    pointer-events: auto;
}

.notice-popup-layer {
    position: relative;
    z-index: 1200;
    pointer-events: none;
}

.main_notice_pop.notice-popup {
    position: fixed;
    left: var(--notice-pop-left, 20px);
    top: var(--notice-pop-top, 140px);
    z-index: 1201;
    width: min(var(--notice-pop-width, 400px), calc(100vw - 32px));
    pointer-events: auto;
    color: #e8edf8;
    font-family: "Noto Sans KR", sans-serif;
}

.main_notice_pop.notice-popup.is-hidden {
    display: none;
}

.notice-popup-frame.w350.h500 {
    position: relative;
    width: 100%;
    max-height: min(var(--notice-pop-max-height, 500px), 85vh);
}

.main_notice_pop.notice-popup.is-image-popup .notice-popup-frame.w350.h500 {
    max-height: none;
}

.notice-popup-shell {
    box-sizing: border-box;
    padding: 10px 10px 12px;
    border-radius: 12px;
    border: 3px solid rgba(120, 140, 165, 0.55);
    background: #1a2332;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.main_notice_pop.notice-popup.is-image-popup .notice-popup-shell {
    padding: 0 0 12px;
}

.main_notice_pop.notice-popup.is-image-popup .notice-popup-head.notice-popup-caption {
    margin: 0;
}

html.admin-theme-light .notice-popup-shell {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.65);
}

.notice-popup-head {
    margin: 0 0 8px;
    padding: 2px 6px 0;
    text-align: center;
    color: #ffdd57;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
    word-break: keep-all;
}

html.admin-theme-light .notice-popup-head {
    color: #b45309;
}

.notice-popup-head p {
    margin: 0;
}

.notice-popup-body.h100.radius10 {
    box-sizing: border-box;
    max-height: none;
    padding: 12px 14px 14px;
    overflow: visible;
    border-radius: 10px;
    border: none;
    background: rgba(0, 0, 0, 0.22);
    line-height: 1.55;
    word-break: keep-all;
    text-align: center;
}

.main_notice_pop.notice-popup.is-image-popup .notice-popup-body.h100.radius10 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    line-height: 0;
    text-align: center;
}

.main_notice_pop.notice-popup.is-image-popup .notice-popup-body.notice-popup-rich :where(p, div, li) {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    line-height: 0;
    text-align: center;
}

.main_notice_pop.notice-popup.is-image-popup .notice-popup-body.notice-popup-rich :where(p, div, li) > :not(img) {
    line-height: 1.55;
}

.main_notice_pop.notice-popup.is-image-popup .notice-popup-body img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(75vh, 900px);
    margin: 0 auto;
    object-fit: contain;
    vertical-align: top;
}

.main_notice_pop.notice-popup.is-image-popup .notice-popup-footer {
    margin: 10px 12px 0;
    width: auto;
}

html.admin-theme-light .notice-popup-body.h100.radius10 {
    background: #fff;
    color: #1f2937;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

html.admin-theme-light .main_notice_pop.notice-popup.is-image-popup .notice-popup-body.h100.radius10 {
    background: transparent;
    border: none;
}

.notice-popup-body p {
    margin: 0 0 0.65em;
}

.notice-popup-body.notice-popup-rich {
    line-height: 1.75;
}

.notice-popup-body.notice-popup-rich :where(p, div, li) {
    margin: 0 0 0.85em;
}

.notice-popup-body.notice-popup-rich :where(p, div, li):last-child {
    margin-bottom: 0;
}

.notice-popup-body.notice-popup-rich :where(ul, ol) {
    display: inline-block;
    margin: 0 0 0.85em;
    padding-left: 1.35em;
    text-align: left;
}

.notice-popup-body.notice-popup-rich a {
    color: #5dd6ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.notice-popup-head.notice-popup-rich :where(p, h1, h2, h3) {
    margin: 0;
    line-height: 1.45;
}

html.admin-theme-light .notice-popup-body.notice-popup-rich :where(p, div, span, li, strong, em, td, th) {
    color: inherit;
}

html.admin-theme-light .notice-popup-body.notice-popup-rich a {
    color: #2563eb;
}

html.admin-theme-light .notice-popup-head.notice-popup-rich :where(span, strong, em) {
    color: inherit;
}

.notice-popup-fallback-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.notice-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 14px 0 0;
    padding-top: 4px;
}

.notice-popup-footer .notice-popup-today {
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding-top: 0;
}

.notice-popup-close-footer {
    flex-shrink: 0;
    min-height: 32px;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    background: #315dff;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(49, 93, 255, 0.35);
}

.notice-popup-close-footer:hover {
    filter: brightness(1.08);
}

html.admin-theme-light .notice-popup-close-footer {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.notice-popup-frame .notice-popup-close-corner.btn_close {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

html.admin-theme-light .notice-popup-close-corner.btn_close {
    background: rgba(51, 65, 85, 0.92);
}

.notice-popup-shell .notice-popup-today {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(232, 237, 248, 0.92);
    cursor: pointer;
    user-select: none;
}

html.admin-theme-light .notice-popup-today {
    color: rgba(31, 41, 55, 0.88);
}

.notice-popup-today-input {
    width: 15px;
    height: 15px;
    margin: 0;
}

/* 모바일: sticky head·트리 압축 — 첫 화면에서 본문이 보이도록 */
@media (max-width: 960px) {
    body.admin-body .dash-sticky-head {
        position: static !important;
        flex-direction: column;
        align-items: stretch;
        column-gap: 0;
        row-gap: 6px;
        padding: 4px 0 6px;
    }

    body.admin-body .dash-sticky-head > .dash-sticky-metrics.top-metrics,
    body.admin-body .dash-sticky-head > .dash-top-bar,
    body.admin-body .dash-sticky-head > .dash-today {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    body.admin-body .dash-sticky-head > .dash-top-bar .dash-top-bar-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: stretch;
        gap: 6px;
    }

    body.admin-body .dash-top-bar-right .summary-cards,
    body.admin-body .dash-top-bar-summary.summary-cards {
        width: 100%;
        gap: 6px;
    }

    body.admin-body .dash-top-bar-summary .summary-card,
    .summary-card {
        min-height: 52px;
        height: auto;
        padding: 6px 8px;
        font-size: 11px;
    }

    body.admin-body .dash-top-bar-summary .summary-card strong,
    .summary-card strong {
        font-size: 13px;
    }

    body.admin-body .dash-sticky-metrics .top-metrics-menu-title {
        min-height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }

    body.admin-body .top-metrics-actions .metric-button {
        min-height: 40px;
        height: auto;
        padding: 4px 6px;
        font-size: 10px;
    }

    .dash-today-head {
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        padding: 4px 8px;
        min-height: 40px;
    }

    .dash-today-head-main {
        flex-wrap: nowrap;
        flex: 1 1 auto;
        min-width: 0;
        gap: 6px;
        overflow: hidden;
    }

    .dash-today-title {
        flex: 0 1 auto;
        min-width: 0;
        gap: 4px;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dash-today-elapsed {
        font-size: 11px;
    }

    .dash-today-coin-rates {
        display: none;
    }

    .dash-today-actions {
        flex: 0 0 auto;
        margin-left: 0;
    }

    .dash-today-head .dash-today-actions.top-line-actions {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        min-height: 32px;
        gap: 4px;
        width: auto;
        max-width: none;
    }

    .dash-today-actions .top-line-icon-btn,
    .dash-today-actions .top-line-theme-btn {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    .dash-today.is-grid-collapsed {
        min-height: 0;
    }

    .partners-tree-section,
    .members-page-container .members-tree-section {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    /* 정산: 모바일에서도 트리·표 가로 병치 (트리 ≈ 1/3) */
    body.admin-body.is-settlement-page #settlement-list-main {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
    }

    body.admin-body.is-settlement-page .settlement-tree-section.partners-tree-section.members-tree-section:not(.is-tree-panel-collapsed) {
        flex: 0 0 33.333%;
        width: 33.333%;
        max-width: 33.333%;
        min-width: 0;
    }

    body.admin-body.is-settlement-page .settlement-table-main {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
    }

    .partners-tree-card,
    .members-page-container .members-tree-section .partners-tree-card,
    .online-members-page .partners-tree-card {
        width: 100%;
        max-height: min(280px, 42vh);
        min-height: 160px;
    }

    body.admin-body.is-settlement-page .settlement-tree-section.members-tree-section:not(.is-tree-panel-collapsed) .partners-tree-card {
        width: 100%;
        max-height: none;
        min-height: 0;
    }

    /* 소속 필터: column + flex-basis 130px 가 높이로 적용되어 ~700px 됨 → 2열 래핑 */
    .login-history-topbar.subordinate-aff-form,
    .members-aff-form.login-history-topbar.subordinate-aff-form,
    .online-members-page .members-aff-form.login-history-topbar.subordinate-aff-form {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        margin-bottom: 8px;
        padding: 8px 10px;
    }

    .subordinate-aff-form .login-history-topbar-title,
    .subordinate-aff-form .login-history-topbar-title-active {
        flex: 1 1 100%;
        width: 100%;
        margin: 0 0 2px;
    }

    .subordinate-aff-form .subordinate-aff-select-wrap,
    .subordinate-aff-form .subordinate-aff-select-wrap:has(select[name="filter_sub_head"]),
    .subordinate-aff-form .subordinate-aff-id-search-wrap,
    .date-filter-form.subordinate-aff-form .subordinate-aff-select-wrap,
    .date-filter-form.subordinate-aff-form .subordinate-aff-select-wrap:has(select[name="filter_sub_head"]) {
        flex: 1 1 calc(50% - 6px);
        width: auto;
        min-width: 0;
        max-width: none;
    }

    /* date-filter-search-select 의 모바일 120px 고정을 소속 필터에서는 래퍼 전체 폭으로 */
    .subordinate-aff-form .subordinate-aff-select,
    .subordinate-aff-form .subordinate-aff-select.date-filter-search-select,
    .date-filter-form.subordinate-aff-form .subordinate-aff-select.date-filter-search-select,
    .subordinate-aff-form .subordinate-aff-id-search {
        flex: none;
        width: 100%;
        max-width: none;
        height: 36px;
        min-height: 36px;
        font-size: 12px;
    }

    .subordinate-aff-form .subordinate-aff-search-btn,
    .subordinate-aff-form .subordinate-root-create-btn,
    .subordinate-aff-form .members-user-create-btn,
    .subordinate-aff-form .members-user-create-btn--aff {
        flex: 1 1 calc(50% - 6px);
        width: auto;
        min-width: 0;
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .subordinate-aff-form .subordinate-aff-create-wrap {
        flex: 1 1 calc(50% - 6px);
        margin-left: 0;
        width: auto;
    }
}

/* max-win-alarm status panel */
.max-win-alarm-page .max-win-alarm-status-panel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    margin: 6px 0 12px;
    overflow-x: auto;
}

.max-win-alarm-page .max-win-alarm-status-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    width: max-content;
    max-width: none;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
    box-sizing: border-box;
}

.max-win-alarm-page .max-win-alarm-status-icon {
    font-size: 18px;
    line-height: 1;
}

.max-win-alarm-page .max-win-alarm-status-item.is-casino {
    border-color: rgba(244, 114, 182, 0.65);
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.32) 0%, rgba(251, 113, 133, 0.14) 55%, rgba(18, 24, 33, 0.96) 100%);
    box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.22), 0 10px 24px rgba(244, 114, 182, 0.22);
}

.max-win-alarm-page .max-win-alarm-status-item.is-casino .max-win-alarm-status-icon,
.max-win-alarm-page .max-win-alarm-status-item.is-casino .max-win-alarm-status-kind {
    color: #fda4d4;
}

.max-win-alarm-page .max-win-alarm-status-item.is-slot {
    border-color: rgba(96, 165, 250, 0.65);
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.32) 0%, rgba(129, 140, 248, 0.14) 55%, rgba(18, 24, 33, 0.96) 100%);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.22), 0 10px 24px rgba(96, 165, 250, 0.22);
}

.max-win-alarm-page .max-win-alarm-status-item.is-slot .max-win-alarm-status-icon,
.max-win-alarm-page .max-win-alarm-status-item.is-slot .max-win-alarm-status-kind {
    color: #93c5fd;
}

.max-win-alarm-page .max-win-alarm-status-kind {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.max-win-alarm-page .max-win-alarm-status-amount {
    color: #e8edf8;
    font-variant-numeric: tabular-nums;
}

.max-win-alarm-page .max-win-alarm-status-amount strong {
    color: #fff7d6;
    font-size: 14px;
    text-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

.max-win-alarm-page .max-win-alarm-status-flag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.max-win-alarm-page .max-win-alarm-status-flag.is-on {
    color: #052e16;
    background: linear-gradient(135deg, #86efac 0%, #34d399 100%);
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.55);
}

.max-win-alarm-page .max-win-alarm-status-flag.is-off {
    color: #e2e8f0;
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.max-win-alarm-page .max-win-alarm-status-item.is-enabled {
    animation: max-win-alarm-pulse 2.2s ease-in-out infinite;
}

@keyframes max-win-alarm-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.12); }
}

.max-win-alarm-page .max-win-alarm-desc {
    margin: 0 0 10px;
    color: #9aa8bc;
    font-size: 12px;
}

.max-win-alarm-page .max-win-alarm-table {
    font-size: 12px;
}

.max-win-alarm-page .max-win-alarm-table thead th {
    font-size: 12px !important;
    font-weight: 700;
}

.max-win-alarm-page .max-win-alarm-table td {
    font-size: 12px;
}

.max-win-alarm-page .max-win-alarm-table td.is-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.max-win-alarm-page .max-win-alarm-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.max-win-alarm-page .max-win-alarm-status.is-success {
    background: rgba(46, 204, 113, 0.16);
    color: #7dffb2;
}

.max-win-alarm-page .max-win-alarm-status.is-partial {
    background: rgba(241, 196, 15, 0.16);
    color: #ffe08a;
}

.max-win-alarm-page .max-win-alarm-status.is-failed {
    background: rgba(231, 76, 60, 0.16);
    color: #ff9b90;
}

.max-win-alarm-page .max-win-alarm-message {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
