// ── 지갑 공통 ────────────────────────────────────── .wallet { max-width: 960px; // ── Summary Cards ── &__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; } &__card { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 20px; background: hsl(var(--background)); } &__card-label { display: block; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-bottom: 6px; } &__card-value { font-size: 1.5rem; font-weight: 700; color: hsl(var(--foreground)); &--money { color: hsl(var(--primary)); } &--danger { color: var(--color-danger); } } // ── Actions ── &__actions { display: flex; gap: 8px; margin-bottom: 32px; } &__action-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); font-size: 0.875rem; font-weight: 500; cursor: pointer; background: hsl(var(--background)); color: hsl(var(--foreground)); transition: background-color 0.15s; text-decoration: none; &:hover { background: hsl(var(--accent)); } &--primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); &:hover { background: hsl(var(--primary) / 0.9); } } } // ── Section Title ── &__section-title { font-size: 1rem; font-weight: 600; margin-bottom: 12px; color: hsl(var(--foreground)); } // ── Header (filter area) ── &__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 0.5rem; } &__summary { font-size: 0.9375rem; color: hsl(var(--muted-foreground)); } &__tabs { display: flex; button { padding: 0.5rem 1rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; background: none; cursor: pointer; &:hover { color: hsl(var(--primary)); border-bottom-color: hsl(var(--primary)); } &.active { color: hsl(var(--primary)); font-weight: 600; border-bottom-color: hsl(var(--primary)); } } } // ── Chart ── &__chart-wrap { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 20px 16px 12px; margin-bottom: 24px; background: hsl(var(--background)); } &__chart-empty { display: flex; align-items: center; justify-content: center; height: 200px; color: hsl(var(--muted-foreground)); font-size: 0.875rem; } // ── Table ── &__table-wrap { border: 1px solid hsl(var(--border)); border-radius: 8px; overflow: hidden; } &__table { width: 100%; border-collapse: collapse; th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid hsl(var(--border)); font-size: 0.875rem; } th { background-color: hsl(var(--muted)); font-weight: 600; color: hsl(var(--muted-foreground)); white-space: nowrap; } tr:last-child td { border-bottom: none; } tr:hover td { background-color: hsl(var(--accent)); } td[colspan] { text-align: center; } } &__amount { &--plus { color: var(--color-success); font-weight: 600; } &--minus { color: var(--color-danger); font-weight: 600; } } &__empty { padding: 40px; text-align: center; color: hsl(var(--muted-foreground)); } // ── Mobile row (dl) ── &__mobile-row { display: none; padding: 12px 16px; border-bottom: 1px solid hsl(var(--border)); } &__mobile-title { display: flex; justify-content: space-between; align-items: center; font-size: 0.9375rem; margin-bottom: 4px; } &__mobile-detail { display: flex; gap: 12px; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); } // ── Status Badges ── &__status { font-weight: 600; font-size: 0.8125rem; &--pending { color: var(--color-warning); } &--processing { color: hsl(var(--primary)); } &--completed { color: var(--color-success); } &--rejected { color: var(--color-danger); } } // ── Withdraw Form ── &__withdraw-form { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 24px; margin-bottom: 32px; max-width: 560px; } &__withdraw-balance { font-size: 1.25rem; font-weight: 600; color: hsl(var(--primary)); margin-bottom: 20px; small { font-size: 0.8125rem; font-weight: 400; color: hsl(var(--muted-foreground)); margin-left: 4px; } } &__withdraw-field { margin-bottom: 16px; label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 6px; color: hsl(var(--foreground)); } } &__withdraw-select { width: 100%; padding: 8px 32px 8px 12px; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); background: hsl(var(--background)); color: hsl(var(--foreground)); font-size: 0.875rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; margin-bottom: 8px; } &__withdraw-account-link { font-size: 0.8125rem; color: hsl(var(--primary)); text-decoration: none; &:hover { text-decoration: underline; } } &__withdraw-input { width: 100%; padding: 8px 12px; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); background: hsl(var(--background)); color: hsl(var(--foreground)); font-size: 0.875rem; &::placeholder { color: hsl(var(--muted-foreground)); } &:disabled { opacity: 0.5; cursor: not-allowed; } } &__withdraw-preview { background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); border-radius: 6px; padding: 16px; margin-bottom: 16px; } &__withdraw-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 0.875rem; color: hsl(var(--foreground)); } &__withdraw-total { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; margin-top: 8px; border-top: 1px solid hsl(var(--border)); font-size: 0.9375rem; font-weight: 700; color: hsl(var(--foreground)); } &__withdraw-account { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid hsl(var(--border)); border-radius: 6px; margin-bottom: 16px; font-size: 0.875rem; a { margin-left: auto; font-size: 0.8125rem; color: hsl(var(--primary)); text-decoration: none; &:hover { text-decoration: underline; } } } &__withdraw-info { margin-bottom: 20px; li { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); padding: 2px 0; &::before { content: '※ '; } } } &__withdraw-warning { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--color-warning); border-radius: 6px; background: hsl(48 96% 89% / 0.3); margin-bottom: 16px; font-size: 0.875rem; color: var(--color-warning); a { font-weight: 600; color: hsl(var(--primary)); text-decoration: none; &:hover { text-decoration: underline; } } } &__withdraw-submit { display: inline-flex; align-items: center; justify-content: center; padding: 10px 32px; border: none; border-radius: calc(var(--radius) - 2px); font-size: 0.9375rem; font-weight: 600; cursor: pointer; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); transition: background-color 0.15s; &:hover:not(:disabled) { background: hsl(var(--primary) / 0.9); } &:disabled { opacity: 0.5; cursor: not-allowed; } } // ── Responsive ── @media (max-width: 768px) { &__cards { grid-template-columns: 1fr 1fr; } &__card { padding: 14px; } &__card-value { font-size: 1.25rem; } &__chart-wrap { padding: 12px 8px 8px; } &__table-wrap { overflow-x: auto; } &__table { min-width: 640px; th, td { padding: 10px 12px; font-size: 0.8125rem; } } // PC table 숨기고 mobile row 표시 &__table--responsive { thead, tbody tr td { display: none; } } &__mobile-row { display: block; } &__withdraw-form { max-width: none; } } }