@import url("/assets/font/SpoqaHanSansNeo.css");

.border-surface-container {
    border-color: #5f6363;
}

.first-login-password-input::placeholder {
    font-size: 14px;
}

@font-face {
    font-family: "Material Symbols Outlined";
    src: url("/assets/font/MaterialSymbolsOutlined.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

.text-thin {
    font-weight: 100 !important;
}

.text-light {
    font-weight: 300 !important;
}

.text-regular {
    font-weight: 400 !important;
}

.text-medium {
    font-weight: 500 !important;
}

.text-bold {
    font-weight: 700 !important;
}

[data-screen-lock][open] {
    display: flex;
}

[data-screen-lock]:not([open]) {
    display: none;
}

#app-sidebar[data-sidebar-initializing],
#app-sidebar[data-sidebar-initializing] * {
    transition: none !important;
    animation: none !important;
}

/* Legacy bars in protected design templates are superseded by the shared frame. */
#app-main [data-recent-visits-section]:not([data-recent-pages-bar]),
[data-recent-pages-bar][hidden] {
    display: none;
}

[data-recent-pages-bar] .tx-recent-visit-item.is-active {
    border-bottom: 2px solid #000 !important;
    font-weight: 500;
}

[data-screen-lock] {
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    background: #111827;
    color: #fff;
    box-sizing: border-box;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    cursor: pointer;
    touch-action: manipulation;
    outline: none;
}

[data-screen-lock]::backdrop {
    background: #111827;
}

/* HUB_ADM 잠금 화면: SVC에서 생성되지 않은 유틸리티의 동일한 표시값을 보완한다. */
[data-screen-lock] > div { max-width: 28rem; }
[data-screen-lock] img { height: 3rem; width: auto; filter: brightness(0) invert(1); }
[data-screen-lock] .material-symbols-outlined { font-size: 52px; }
[data-screen-lock] .text-slate-200 { color: #e2e8f0; }
[data-screen-lock-remaining] {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-variant-numeric: tabular-nums;
}

[data-screen-lock][aria-busy="true"] {
    cursor: wait;
}

.flatpickr-calendar.open,
.toastify {
    z-index: 9999 !important;
}

.toastify[popover] {
    inset: auto;
    margin: 0;
    border: 0;
    overflow: visible;
}

.toastify[popover].toastify-right {
    right: 15px;
}

.toastify[popover].toastify-left {
    left: 15px;
}

.toastify[popover].toastify-center {
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.toastify[popover]::backdrop {
    background: transparent;
    pointer-events: none;
}

html.tx-screen-locked,
html.tx-screen-locked body {
    overflow: hidden;
}

:root {
    --background: oklch(1 0 0);
    --foreground: oklch(0.147 0.004 49.25);
    --card: oklch(1 0 0);
    --card-foreground: oklch(0.147 0.004 49.25);
    --popover: oklch(1 0 0);
    --popover-foreground: oklch(0.147 0.004 49.25);
    --primary: oklch(0.216 0.006 56.043);
    --primary-foreground: oklch(0.985 0.001 106.423);
    --secondary: oklch(0.97 0.001 106.424);
    --secondary-foreground: oklch(0.216 0.006 56.043);
    --muted: oklch(0.97 0.001 106.424);
    --muted-foreground: oklch(0.553 0.013 58.071);
    --accent: oklch(0.97 0.001 106.424);
    --accent-foreground: oklch(0.216 0.006 56.043);
    --destructive: oklch(0.577 0.245 27.325);
    --border: oklch(0.923 0.003 48.717);
    --input: oklch(0.923 0.003 48.717);
    --ring: oklch(0.709 0.01 56.259);
    --radius: 0.365rem;
    --sidebar: oklch(0.985 0.001 106.423);
    --sidebar-foreground: oklch(0.147 0.004 49.25);
    --sidebar-primary: oklch(0.216 0.006 56.043);
    --sidebar-primary-foreground: oklch(0.985 0.001 106.423);
    --sidebar-accent: oklch(0.97 0.001 106.424);
    --sidebar-accent-foreground: oklch(0.216 0.006 56.043);
    --sidebar-border: oklch(0.923 0.003 48.717);
    --tx-sidebar-width: 14rem;
    --tx-topbar-height: 4rem;
    --tx-side-panel-width: 720px;

    --tx-color-primary: var(--primary);
    --tx-color-primary-strong: oklch(0.147 0.004 49.25);
    --tx-color-primary-deep: oklch(0.108 0.003 49.1);
    --tx-color-primary-hover: oklch(0.374 0.01 67.558);
    --tx-color-primary-soft: color-mix(in oklch, var(--primary) 9%, white);
    --tx-color-primary-soft-2: color-mix(in oklch, var(--primary) 6%, white);
    --tx-color-primary-soft-hover: color-mix(in oklch, var(--primary) 12%, white);
    --tx-color-primary-soft-hover-2: color-mix(in oklch, var(--primary) 16%, white);
    --tx-color-primary-border: color-mix(in oklch, var(--primary) 24%, white);
    --tx-color-primary-border-hover: color-mix(in oklch, var(--primary) 42%, white);
    --tx-color-primary-muted: var(--muted-foreground);
    --tx-color-primary-muted-2: color-mix(in oklch, var(--primary) 55%, white);
    --tx-color-primary-muted-3: color-mix(in oklch, var(--primary) 45%, white);
    --tx-color-shell: var(--background);
    --tx-color-panel-muted: var(--muted);
    --tx-color-primary-tint: color-mix(in oklch, var(--primary) 10%, white);
    --tx-color-primary-tint-2: color-mix(in oklch, var(--primary) 7%, white);
    --tx-color-sidebar-text: var(--sidebar-foreground);
    --tx-color-heading: var(--foreground);
    --tx-color-secondary: var(--muted-foreground);
    --tx-color-primary-focus: color-mix(in oklch, var(--primary) 28%, transparent);
    --tx-color-primary-focus-strong: color-mix(in oklch, var(--primary) 35%, transparent);
    --tx-color-primary-alpha-5: color-mix(in oklch, var(--primary) 5%, transparent);
    --tx-color-primary-alpha-8: color-mix(in oklch, var(--primary) 8%, transparent);
    --tx-color-primary-alpha-10: color-mix(in oklch, var(--primary) 10%, transparent);
    --tx-color-primary-alpha-12: color-mix(in oklch, var(--primary) 12%, transparent);
    --tx-color-primary-alpha-18: color-mix(in oklch, var(--primary) 18%, transparent);
    --tx-color-primary-alpha-20: color-mix(in oklch, var(--primary) 20%, transparent);
    --tx-color-primary-alpha-22: color-mix(in oklch, var(--primary) 22%, transparent);
    --tx-color-primary-alpha-42: color-mix(in oklch, var(--primary) 42%, transparent);
}

.app-shell-body,
#app-main,
.tx-topbar {
    color: var(--foreground);
}

.app-shell-body:has(.tx-auth-background) {
    background-color: #ffffff;
    background-image: url("/assets/img/bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.app-shell-body .text-on-surface,
.app-shell-body .text-on-secondary-fixed-variant,
.tx-topbar .text-on-surface {
    color: var(--foreground) !important;
}

.app-shell-body .text-secondary,
.app-shell-body .text-on-surface-variant,
.tx-topbar .text-secondary {
    color: var(--muted-foreground) !important;
}

.tx-bg-primary {
    background-color: var(--tx-color-primary) !important;
}

.tx-bg-primary-accessible {
    background-color: var(--tx-color-primary-deep) !important;
}

.tx-bg-primary-alpha-5 {
    background-color: var(--tx-color-primary-alpha-5) !important;
}

.tx-bg-primary-alpha-10 {
    background-color: var(--tx-color-primary-alpha-10) !important;
}

.tx-bg-primary-soft {
    background-color: var(--tx-color-primary-soft) !important;
}

.tx-bg-primary-soft-2 {
    background-color: var(--tx-color-primary-soft-2) !important;
}

.tx-bg-primary-tint {
    background-color: var(--tx-color-primary-tint) !important;
}

.tx-bg-primary-tint-2 {
    background-color: var(--tx-color-primary-tint-2) !important;
}

.tx-bg-shell {
    background-color: var(--tx-color-shell) !important;
}

.tx-bg-panel-muted {
    background-color: var(--tx-color-panel-muted) !important;
}

.tx-text-primary {
    color: var(--tx-color-primary) !important;
    accent-color: var(--tx-color-primary);
}

.tx-text-primary-strong {
    color: var(--tx-color-primary-strong) !important;
}

.tx-text-primary-deep {
    color: var(--tx-color-primary-deep) !important;
}

.tx-hover-text-primary:hover {
    color: var(--tx-color-primary) !important;
}

.tx-text-sidebar {
    color: var(--tx-color-sidebar-text) !important;
}

.tx-text-heading {
    color: var(--tx-color-heading) !important;
}

.tx-border-primary {
    border-color: var(--tx-color-primary) !important;
}

.tx-border-primary-alpha-20 {
    border-color: var(--tx-color-primary-alpha-20) !important;
}

.tx-focus-ring-primary:focus,
.tx-focus-ring-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--tx-color-primary-alpha-20) !important;
}

.tx-focus-ring-stone:hover {
    outline: 2px solid var(--tx-tone-solid, #57534e);
    outline-offset: 2px;
    border-color: var(--tx-tone-solid, #57534e) !important;
    background-color: var(--tx-tone-solid, #57534e) !important;
    color: var(--tx-tone-solid-fg, #fff) !important;
}

.tx-focus-ring-stone:focus,
.tx-focus-ring-stone:focus-visible {
    outline: none;
    border: 1px solid currentColor !important;
    background-color: transparent !important;
    color: var(--tx-tone-fg, #57534e) !important;
}

.tx-focus-border-primary:focus,
.tx-focus-border-primary:focus-within {
    border-color: var(--tx-color-primary) !important;
}

.tx-focus-border-primary-strong:focus,
.tx-focus-border-primary-strong:focus-within {
    border-color: var(--tx-color-primary-strong) !important;
}

.tx-accent-primary {
    accent-color: var(--tx-color-primary);
    color: var(--tx-color-primary) !important;
}

.tx-selection-primary::selection,
.tx-selection-primary ::selection {
    background-color: var(--tx-color-primary);
    color: #fff;
}

.tx-badge-primary {
    background-color: var(--tx-color-primary-soft) !important;
    color: var(--tx-color-primary) !important;
}

.tx-badge-primary-strong {
    background-color: var(--tx-color-primary-soft-2) !important;
    color: var(--tx-color-primary-strong) !important;
}

.tx-tab-active-primary {
    border-bottom: 2px solid var(--tx-color-primary) !important;
    color: var(--tx-color-primary) !important;
    font-weight: 700 !important;
}

.tx-loading-spinner-primary {
    border-top-color: var(--tx-color-primary) !important;
}

.tx-recent-visit-item {
    position: relative;
    padding-right: 28px;
    font-size: 11px;
    border-color: var(--tx-color-primary-border) !important;
    color: #292524 !important;
    font-weight: 400;
}

.tx-recent-visit-item:hover {
    border-color: var(--tx-color-primary-border-hover) !important;
    background-color: var(--tx-color-primary-soft-hover) !important;
    color: #1c1917 !important;
}

.tx-recent-visit-icon {
    color: var(--tx-color-primary-muted-2) !important;
}

.tx-recent-visit-remove {
    color: var(--tx-color-primary-muted-3) !important;
}

.tx-recent-visit-item > .tx-recent-visit-remove {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.tx-recent-visit-remove .material-symbols-outlined {
    font-size: 13px;
}

.tx-recent-visit-remove:hover {
    background-color: var(--tx-color-primary-soft-hover-2) !important;
    color: var(--tx-color-primary-hover) !important;
}

.tx-service-card-row {
    border-color: var(--tx-color-primary-border);
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tx-service-card-row:hover,
.tx-service-card-row:focus-visible {
    border-color: var(--tx-color-primary-border-hover);
    background-color: var(--tx-color-primary-soft-hover);
    box-shadow: 0 0 0 3px var(--tx-color-primary-alpha-10);
    outline: none;
}

.tx-service-card-row:active {
    transform: scale(0.99);
}

.tx-service-card-row[data-service-selected="true"] {
    border-color: var(--tx-color-primary) !important;
    background-color: var(--tx-color-primary-tint) !important;
    box-shadow: 0 0 0 3px var(--tx-color-primary-alpha-18), 0 4px 12px rgb(9 156 152 / 0.16) !important;
}

.tx-service-card-row[data-service-selected="true"] strong {
    color: var(--tx-color-primary-deep) !important;
}

@media (prefers-reduced-motion: reduce) {
    .tx-service-card-row {
        transition: none;
    }

    .tx-service-card-row:active {
        transform: none;
    }
}

html,
body {
    min-height: 100%;
    font-family: "Spoqa Han Sans Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.app-shell-body {
    min-height: 100dvh;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
select,
textarea {
    border-radius: var(--radius) !important;
}

input[type="checkbox"] {
    accent-color: #57534e;
}

html.tx-scroll-locked,
body.tx-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.modal-container {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.modal-container .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s ease-in-out;
}

.modal-container .modal-wrapper {
    background: #fff;
    z-index: 101;
}

.modal-container .modal-wrapper.translate-x-full,
.modal-container .modal-wrapper.translate-x-0 {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(680px, calc(100vw - 16px));
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#global-side-panel .modal-wrapper {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

#global-center-modal {
    padding-top: max(1rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

.modal-container .modal-wrapper.translate-x-0 {
    transform: translateX(0);
}

.modal-container .modal-wrapper.scale-95,
.modal-container .modal-wrapper.scale-100 {
    position: relative;
    width: min(100%, 36rem);
    border-radius: var(--radius);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.modal-container .modal-wrapper.scale-100 {
    opacity: 1;
    transform: scale(1);
}

#global-side-panel .modal-backdrop {
    background: rgba(15, 23, 42, 0.32);
}

.modal-container .modal-wrapper.w-\[520px\] {
    width: min(520px, calc(100vw - 16px));
}

.modal-container .modal-wrapper.w-\[600px\] {
    width: min(600px, 92vw);
}

.modal-container .modal-wrapper.w-\[680px\] {
    width: min(680px, calc(100vw - 16px));
}

.modal-container .modal-wrapper.w-\[900px\] {
    width: min(900px, 92vw);
}

.modal-container .modal-wrapper.w-\[560px\] {
    width: min(560px, calc(100vw - 16px));
}

.w-16 {
    width: 4rem;
}

.notice-drawer-root {
    position: fixed;
    inset: 0;
    z-index: 110;
}

.notice-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    transition: opacity 0.2s ease;
}

.notice-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    width: min(600px, 92vw);
    height: 100dvh;
    flex-direction: column;
    border-left: 1px solid #E5E7EB;
    background: #fff;
    box-shadow: 0 0 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.notice-drawer-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #E5E7EB;
    background: #fff;
    padding: 0 1.5rem;
}

.notice-drawer-heading {
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.35;
    color: #111827;
}

.notice-drawer-heading:focus {
    outline: none;
}

.notice-drawer-close {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #5f646f;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.notice-drawer-close:hover {
    border-color: #D1D5DB;
    background: #F9FAFB;
    color: #111827;
}

.notice-drawer-close:focus-visible {
    outline: 2px solid var(--tx-color-primary-focus);
    outline-offset: 2px;
}

.notice-drawer-body {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.notice-drawer-title-area {
    display: flex;
    max-width: 36rem;
    flex-direction: column;
    gap: 0.75rem;
}

.notice-drawer-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.notice-status-badge,
.notice-unit-badge {
    min-height: 1.5rem;
    padding: 0 0.625rem;
    font-size: 0.75rem;
}

.notice-status-badge--waiting {
    background: #F1F5F9;
    color: #475569;
}

.notice-status-badge--open {
    background: var(--tx-color-primary-soft);
    color: var(--tx-color-primary);
}

.notice-status-badge--expired {
    background: #F3F4F6;
    color: #6B7280;
}

.notice-unit-badge {
    background: #F4F4F5;
    color: #5F646F;
}

.notice-detail-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
    color: #111827;
    overflow-wrap: anywhere;
}

.notice-detail-meta {
    display: grid;
    max-width: 36rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
    margin-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #E5E7EB;
}

.notice-detail-meta dt {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6B7280;
}

.notice-detail-meta dd {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.notice-detail-content {
    max-width: 36rem;
    padding-top: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #374151;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.notice-detail-content > * + * {
    margin-top: 0.875rem;
}

.notice-detail-content a {
    color: var(--tx-color-primary-strong);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notice-detail-content a:focus-visible {
    outline: 2px solid var(--tx-color-primary-focus);
    outline-offset: 2px;
    border-radius: var(--radius);
}

.notice-detail-content ul,
.notice-detail-content ol {
    padding-left: 1.25rem;
}

.notice-detail-content ul {
    list-style: disc;
}

.notice-detail-content ol {
    list-style: decimal;
}

.notice-detail-content table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.notice-detail-content th,
.notice-detail-content td {
    border: 1px solid #E5E7EB;
    padding: 0.5rem 0.625rem;
    text-align: left;
    vertical-align: top;
}

.notice-detail-content th {
    background: #F9FAFB;
    font-weight: 700;
    color: #111827;
}

.notice-detail-table-wrap {
    overflow-x: auto;
}

[data-notice-detail-open].is-notice-selected {
    background: #F0FBFA;
}

@media (max-width: 600px) {
    .notice-drawer-panel {
        width: min(100vw, 92vw);
    }

    .notice-drawer-header,
    .notice-drawer-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .notice-detail-meta {
        grid-template-columns: 1fr;
    }
}


.bg-surface {
    --tw-bg-opacity: 1;
    background-color: rgb(248 250 249 / var(--tw-bg-opacity, 1));
}

.mt-3{
    margin-top: 0.75rem;
}

.tx-dashboard-panel {
    border: 1px solid rgb(225 227 226 / 1);
border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 4px 14px rgba(20, 27, 47, 0.04);
}

.tx-dashboard-section-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: rgb(25 28 28 / 1);
}

.tx-dashboard-section-title::before {
    content: "";
    width: 0.4rem;
    height: 1rem;
border-radius: var(--radius);
    background: var(--tx-color-primary);
}

.tx-dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tx-dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.tx-dashboard-section-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(0 103 100 / 1);
}

.tx-dashboard-page-intro {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tx-dashboard-page-intro h1 {
    font-family: "Spoqa Han Sans Neo", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: rgb(25 28 28 / 1);
}

.tx-dashboard-page-intro p {
    max-width: 32rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgb(87 93 118 / 1);
}

.tx-dashboard-mobile-summary {
    overflow: hidden;
    border: 1px solid rgb(225 227 226 / 1);
border-radius: var(--radius);
    background: #fff;
}

.tx-dashboard-mobile-summary-item {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgb(225 227 226 / 1);
}

.tx-dashboard-mobile-summary-item:last-child {
    border-bottom: none;
}

.tx-dashboard-mobile-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.tx-dashboard-mobile-summary-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(87 93 118 / 1);
}

.tx-dashboard-mobile-summary-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.375rem;
    padding: 0 0.5rem;
border-radius: var(--radius);
    background: rgb(248 250 249 / 1);
    font-size: 0.625rem;
    font-weight: 700;
    color: rgb(87 93 118 / 1);
}

.tx-dashboard-mobile-summary-value {
    margin-top: 0.375rem;
    font-family: "Spoqa Han Sans Neo", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #3E445B;
}

.tx-dashboard-mobile-summary-note {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: rgb(87 93 118 / 1);
}

.tx-ptn-stats-kpi {
    display: flex;
    min-height: 7.25rem;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 1rem 1rem;
}

.tx-ptn-stats-kpi__amount {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.125rem;
    min-height: 2.25rem;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #191c1c;
}

.tx-ptn-stats-kpi__amount--accent {
    color: var(--tx-color-primary);
}

.tx-ptn-stats-kpi__unit {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgb(61 73 72 / 1);
}

.tx-ptn-stats-kpi__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    border-top: 1px solid rgb(188 201 200 / 0.45);
    padding-top: 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.tx-ptn-stats-kpi__meta-label {
    min-width: 0;
    color: rgb(61 73 72 / 1);
    white-space: nowrap;
}

.tx-ptn-stats-kpi__meta-value {
    flex: none;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: rgb(61 73 72 / 1);
}

@media (width < 600px) {
    .tx-ptn-stats-kpi {
        min-height: 6.75rem;
        padding-inline: 0.875rem;
    }

    .tx-ptn-stats-kpi__meta {
        gap: 0.375rem;
    }

    .tx-ptn-stats-kpi__meta-label {
        font-size: 0.75rem;
    }

    .tx-ptn-stats-kpi__amount {
        font-size: 1rem;
    }
}

@media (min-width: 1280px) {
    .tx-ptn-stats-kpi {
        min-height: 7.5rem;
    }

    .tx-ptn-stats-kpi__amount {
        font-size: 1.25rem;
    }
}

.tx-ptn-stats-facts {
    display: grid;
    grid-template-columns: minmax(3.25rem, auto) minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid rgb(188 201 200 / 0.35);
    padding-top: 0.75rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgb(61 73 72 / 1);
}

.tx-ptn-stats-facts__head {
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgb(61 73 72 / 1);
    text-transform: none;
}

.tx-ptn-stats-facts__head--value {
    text-align: right;
}

.tx-ptn-stats-facts__label {
    font-weight: 700;
    color: rgb(61 73 72 / 1);
    white-space: nowrap;
}

.tx-ptn-stats-facts__value {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: rgb(25 28 28 / 1);
}

.tx-chart-panel {
    border: 1px solid rgb(225 227 226 / 1);
border-radius: var(--radius);
    background: #fff;
    padding: 1rem;
}

.tx-chart-meta {
    margin-bottom: 0.875rem;
}

.tx-chart-caption {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgb(87 93 118 / 1);
}

.tx-ptn-stats-chart-panel .tx-chart-meta {
    margin-bottom: 1rem;
}

.tx-ptn-stats-chart-panel .tx-chart-caption {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgb(61 73 72 / 1);
}

.tx-ptn-stats-chart-panel .tx-dashboard-chart {
    gap: 0.875rem;
}

.tx-ptn-stats-chart-panel .tx-chart-row {
    gap: 0.75rem;
}

.tx-ptn-stats-chart-panel .tx-chart-label,
.tx-ptn-stats-chart-panel .tx-chart-value {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgb(61 73 72 / 1);
}

.tx-ptn-stats-chart-panel .tx-chart-value {
    font-weight: 700;
    color: rgb(25 28 28 / 1);
}

.tx-dashboard-chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 840px) {
    .tx-dashboard-chart {
        max-height: 16rem;
        overflow-y: auto;
        padding-right: 0.25rem;
    }
}

@media (min-width: 840px) and (max-height: 900px) {
    .tx-dashboard-chart {
        max-height: 8.5rem;
    }
}

.tx-chart-row {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) minmax(4.75rem, auto);
    align-items: center;
    gap: 0.625rem;
}

.tx-chart-label,
.tx-chart-value {
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgb(87 93 118 / 1);
}

.tx-chart-value {
    text-align: right;
    white-space: nowrap;
    color: rgb(25 28 28 / 1);
}

.tx-chart-bars {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tx-chart-bar {
    height: 0.375rem;
border-radius: var(--radius);
    background: var(--tx-color-primary);
}

.tx-chart-bar.is-muted {
    background: #c9d1cf;
}

@media (width < 840px) {
    [data-recent-visits-section]:not([data-recent-pages-bar]) {
        display: none !important;
    }
}

@media (width < 840px) {
    .tx-chart-row {
        grid-template-columns: 5rem minmax(0, 1fr) minmax(4.75rem, auto);
        gap: 0.5rem;
    }

    .tx-chart-label {
        position: static;
        white-space: nowrap;
    }

    .tx-chart-bars {
        min-width: 0;
    }
}

.tx-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.875rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgb(225 227 226 / 1);
}

.tx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.tx-page-btn {
    display: inline-flex;
    min-width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(225 227 226 / 1);
    border-radius: var(--radius);
    background: #fff;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(87 93 118 / 1);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tx-page-btn:hover:not(:disabled):not(.is-active) {
    background: rgb(243 244 243 / 1);
}

.tx-page-btn.is-active {
    border-color: var(--tx-color-primary);
    background: var(--tx-color-primary);
    color: #fff;
}

.tx-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tx-inline-field {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    height: 2.375rem;
    padding: 0 0.625rem 0 0.875rem;
    border: 1px solid rgb(188 201 200 / 0.3);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 249, 1) 100%);
    box-shadow: 0 6px 16px rgba(20, 27, 47, 0.04);
}

.tx-inline-field__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(87 93 118 / 1);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.tx-inline-field__reset {
    display: inline-flex;
    width: 1.5rem;
    height: 2rem;
    flex: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.tx-inline-field__reset .material-symbols-outlined {
    font-weight: 600;
    font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 100, "opsz" 24;
}

.tx-inline-field__reset:hover {
    background: rgb(237 238 237 / 1);
    color: var(--tx-color-primary);
}

.tx-inline-field__reset:active {
    transform: scale(0.95);
}

.tx-select-wrap {
    position: relative;
    min-width: 4.5rem;
    padding-left: 0.625rem;
    border-left: 1px solid rgb(188 201 200 / 0.28);
}

.tx-select-wrap--field {
    width: 100%;
    min-width: 0;
    padding-left: 0;
    border: 1px solid rgb(188 201 200 / 0.3);
    border-radius: var(--radius);
    background: #fff;
}

.tx-select-wrap--field.is-open,
.tx-select-wrap--field:focus-within {
    border-color: rgb(0 103 100 / 1);
    box-shadow: 0 0 0 2px var(--tx-color-primary-alpha-20);
}

.tx-select-wrap.is-invalid,
.tx-select-wrap--field.is-invalid,
.tx-select-wrap--line.is-invalid {
    border-color: #ba1a1a !important;
    box-shadow: 0 0 0 2px rgba(186, 26, 26, 0.12) !important;
}

.tx-select-wrap--line {
    width: 100%;
    min-width: 0;
    padding-left: 0;
    border-left: 0;
    border-bottom: 1px solid #edf2f2;
    background: transparent;
}

.tx-select-wrap--line.is-open,
.tx-select-wrap--line:focus-within {
    border-bottom-color: var(--tx-color-primary);
}

.tx-select {
    width: 100%;
}

.tx-select:focus {
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
}

.tx-select-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.tx-select-wrap::after {
    content: "";
}

.tx-select-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-width: 3.5rem;
    height: 2rem;
    padding: 0 1.5rem 0 0;
    border: 0;
    background: transparent;
    color: #3E445B;
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1;
    text-align: right;
    cursor: pointer;
}

.tx-select-wrap--field .tx-select-trigger {
    justify-content: flex-start;
    min-width: 0;
    height: 2.5rem;
    padding: 0 2.5rem 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: left;
}

.tx-floating-field {
    position: relative;
}

.tx-floating-input {
    height: 44px;
    width: 100%;
    border: 1px solid rgb(188 201 200 / 0.3);
    border-radius: var(--radius);
    background: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 13px;
    color: #3e445b;
    transition: border-color 0.2s ease;
}

.tx-floating-input::placeholder {
    color: var(--tx-color-secondary);
    font-size: 11px;
    opacity: 0.7;
}

.tx-floating-input:focus {
    border-color: var(--tx-color-primary);
    outline: none;
    box-shadow: none;
}

.tx-floating-field:has(.tx-floating-input:not([type="hidden"]):not(:placeholder-shown)) .tx-floating-input {
    border-color: var(--tx-color-primary-strong);
}

.tx-floating-select {
    height: 44px !important;
    border-color: rgb(188 201 200 / 0.3) !important;
    border-radius: var(--radius) !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease;
}

.tx-floating-select:focus-within,
.tx-floating-select.is-open {
    border-color: var(--tx-color-primary) !important;
    box-shadow: none !important;
}

.tx-floating-field:has(option:checked:not([value=""])) .tx-floating-select {
    border-color: var(--tx-color-primary-strong) !important;
}

.tx-floating-select .tx-select-trigger {
    align-items: center !important;
    height: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

.tx-floating-label {
    pointer-events: none;
    position: absolute;
    top: -7px;
    left: 0.75rem;
    z-index: 10;
    background: #fff;
    padding: 0 0.25rem;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #535353;
    transition: top 0.2s ease, color 0.2s ease, font-size 0.2s ease, font-weight 0.2s ease;
}

.tx-floating-field:focus-within > .tx-floating-label,
.tx-floating-field:has(.tx-floating-input:not([type="hidden"]):not(:placeholder-shown)) > .tx-floating-label,
.tx-floating-field:has(option:checked:not([value=""])) > .tx-floating-label,
.tx-floating-field:has(.tx-select-wrap.is-open) > .tx-floating-label {
    top: -12px;
    color: var(--tx-color-primary-strong);
}

.tx-floating-field:focus-within > .tx-floating-label {
    font-size: 12px;
    font-weight: 800;
}

.tx-select-wrap--line .tx-select-trigger {
    justify-content: flex-start;
    min-width: 0;
    height: auto;
    padding: 0 2rem 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    color: #3e445b;
}

.tx-select-trigger:focus {
    outline: none;
}

.tx-select-trigger::after {
    content: "expand_more";
    position: absolute;
    right: -0.125rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Material Symbols Outlined";
    font-size: 1.125rem;
    line-height: 1;
    color: #575d76;
    pointer-events: none;
}

.tx-select-wrap.is-open .tx-select-trigger::after {
    content: "expand_less";
}

.tx-select-wrap--field .tx-select-trigger::after {
    right: 0.75rem;
}

.tx-select-wrap--line .tx-select-trigger::after {
    right: 0;
}

.tx-select-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    min-width: 0;
    max-height: 15rem;
    overflow-y: auto;
    padding: 0.375rem;
    border: 1px solid rgb(188 201 200 / 0.3);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 24px rgba(20, 27, 47, 0.14);
    overscroll-behavior: contain;
}

.tx-select-menu--portal {
    right: auto;
    bottom: auto;
}

.tx-select-menu[hidden] {
    display: none;
}

.tx-select-option {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: #3E445B;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.tx-select-wrap--field .tx-select-option {
    justify-content: flex-start;
}

.tx-select-option:hover {
    background: rgb(243 244 243 / 1);
}

.tx-select-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tx-select-option.is-selected {
    background: var(--tx-color-primary-alpha-10);
    font-weight : 700;
}

.tx-suggest-menu {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    right: 0;
    z-index: 45;
    max-height: 15rem;
    overflow-y: auto;
    padding: 0.375rem;
    border: 1px solid rgb(188 201 200 / 0.3);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 24px rgba(20, 27, 47, 0.14);
}

.tx-suggest-menu[hidden] {
    display: none;
}

.tx-suggest-option {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    padding: 0.5rem 0.625rem;
    color: #3E445B;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.tx-suggest-option:hover,
.tx-suggest-option:focus-visible,
.tx-suggest-option.is-active {
    background: var(--tx-color-primary-alpha-10);
    color: #0050ff;
}

.tx-suggest-empty {
    padding: 0.625rem;
    color: #575d76;
    font-size: 0.75rem;
    line-height: 1.45;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.trx-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 1280px) {
    .lg\:grid-cols-8 {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .lg\:items-end {
        align-items: end;
    }

    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .lg\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .lg\:col-span-4 {
        grid-column: span 4 / span 4;
    }

    .lg\:col-span-5 {
        grid-column: span 5 / span 5;
    }

    .lg\:col-span-6 {
        grid-column: span 6 / span 6;
    }
}

.trx-search-desktop-field,
.trx-search-chipbar {
    display: none;
}

:is([data-ops-screen], [data-modal-page]) .card-wrapper.search .trx-search-chipbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

#trx-search-form,
.trx-search-chipbar {
    border-radius: var(--radius);
}

.search-reset-btn {
    border-radius: var(--radius);
}

.search-submit-btn {
    border-radius: var(--radius);
    background-color: #57534e;
    color: #fff;
}

.search-submit-btn:hover {
    background-color: #44403c;
}

.trx-search-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.trx-search-mobile-actions .search-submit-btn {
    flex: 1;
}

.trx-empty-frame {
    display: flex;
    min-height: 18rem;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgb(225 227 226 / 1);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(248, 250, 249, 0.55) 0%, rgba(255, 255, 255, 1) 100%);
}

/* ===== 공통 조회 상태 (loading / empty / error) ===== */
.page-container[aria-busy="true"] {
    opacity: 0.55;
    pointer-events: none;
}

.tx-view-state {
    display: flex;
    min-height: 8rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 1px dashed rgb(207 214 213 / 1);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(248, 250, 249, 0.92) 0%, #fff 100%);
    padding: 1.5rem;
    color: var(--tx-color-secondary);
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.tx-view-state--error {
    border-color: #f0b8b8;
    background: #fffafa;
    color: #93000a;
}

.tx-view-state__spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgb(207 214 213 / 1);
    border-top-color: var(--tx-color-primary);
    border-radius: 999px;
    animation: tx-spin 0.8s linear infinite;
}

.tx-view-state__action {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: var(--radius);
    padding: 0.5rem 0.875rem;
    color: inherit;
    font-weight: 700;
}

/* ===== 모바일 공통 헤더 (브랜드바 / 컨텍스트바) ===== */
.tx-topbar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    height: 3.25rem;
    padding: 0 0.75rem 0 1rem;
}

.tx-topbar {
    padding-top: env(safe-area-inset-top, 0px);
}

.tx-topbar-brand__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

.tx-topbar-brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tx-topbar-brand__logo-fallback {
    font-size: 1.125rem;
    color: var(--tx-color-primary);
}

.tx-topbar-brand__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: rgb(25 28 28 / 1);
}

.tx-topbar-refresh {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex: none;
    margin-left: 0.25rem;
    min-height: 2.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: rgb(243 244 243 / 1);
    color: rgb(87 93 118 / 1);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.tx-topbar-refresh:active {
    transform: scale(0.95);
    background: rgb(237 238 237 / 1);
}

.tx-topbar-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: none;
    border: 1px solid rgb(237 238 237 / 1);
    border-radius: 999px;
    background: #fff;
    color: rgb(25 28 28 / 1);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: background-color 0.15s ease;
}

.tx-topbar-menu:active {
    background: rgb(243 244 243 / 1);
}

.tx-topbar-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.375rem;
    padding: 0 0.75rem 0.375rem 1rem;
}

.tx-topbar-context[hidden],
.tx-topbar-back[hidden] {
    display: none;
}

.tx-topbar-back {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    margin-left: -0.25rem;
    min-height: 2.75rem;
    border-radius: var(--radius);
    color: rgb(87 93 118 / 1);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
}

.tx-topbar-back:active {
    background: rgb(243 244 243 / 1);
}

.tx-topbar-context__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tx-color-secondary);
}

/* ===== 모바일 거래내역 : 조회 조건 ===== */
.trx-date-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    flex: 1 1 0;
    min-width: 0;
    padding: 0.625rem 0.75rem;
    border: 1px solid rgb(188 201 200 / 0.3);
    border-radius: var(--radius);
    background: #fff;
    color: rgb(87 93 118 / 1);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
}

.trx-date-field:active {
    border-color: var(--tx-color-primary);
}

.trx-date-field__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trx-date-field__icon {
    flex: none;
    font-size: 1rem;
    color: rgb(109 122 120 / 1);
}

.trx-quick-chip {
    flex: none;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgb(188 201 200 / 0.2);
    border-radius: 999px;
    background: #fff;
    color: rgb(87 93 118 / 1);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.trx-quick-chip[aria-pressed="true"] {
    border-color: var(--tx-color-primary-deep);
    background: var(--tx-color-primary-deep);
    color: #fff;
}

.trx-search-submit {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    height: 2.75rem;
    border-radius: var(--radius);
    background: var(--tx-color-primary-deep);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.trx-search-submit:hover {
    filter: brightness(1.1);
}

.trx-search-submit:active {
    transform: scale(0.99);
}

.trx-filter-disclosure {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.25rem 0;
    color: rgb(87 93 118 / 1);
    font-size: 0.8125rem;
    font-weight: 600;
}

.trx-filter-disclosure__icon {
    font-size: 1.125rem;
    transition: transform 0.2s ease;
}

.trx-filter-disclosure[aria-expanded="true"] .trx-filter-disclosure__icon {
    transform: rotate(180deg);
}

.trx-filter-sheet {
    display: grid;
    gap: 0.625rem;
    padding-top: 0.75rem;
}

.trx-filter-sheet.hidden,
.trx-filter-sheet[hidden] {
    display: none;
}

.trx-filter-sheet__label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgb(61 73 72 / 1);
}

.trx-filter-sheet__input {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgb(188 201 200 / 1) !important;
    border-radius: var(--radius) !important;
    background: transparent !important;
    color: rgb(87 93 118 / 1);
    font-size: 0.8125rem;
    font-weight: 500;
    box-shadow: none !important;
}

.trx-filter-sheet__input::placeholder {
    color: var(--tx-color-secondary);
}

.trx-filter-sheet__input:focus {
    border-bottom-width: 2px !important;
    border-bottom-color: var(--tx-color-primary) !important;
    box-shadow: none !important;
    outline: none;
}

/* ===== 모바일 거래내역 : 요약 카드 ===== */
.trx-summary-card__period {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgb(61 73 72 / 1);
}

.trx-summary-card__count {
    flex: none;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(61 73 72 / 1);
}

.trx-summary-card__amount {
    display: block;
    margin-top: 0.5rem;
    color: var(--tx-color-primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.trx-summary-card__sub {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgb(61 73 72 / 1);
}

/* ===== 모바일 거래내역 : 거래 카드 ===== */
.trx-card-daygroup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgb(243 244 243 / 1);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--tx-color-secondary);
}

.trx-card {
    border-bottom: 1px solid rgb(188 201 200 / 0.1);
    background: #fff;
}

.trx-card:last-child {
    border-bottom: 0;
}

.trx-card__row {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.trx-card__open {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1rem 0 1rem 1rem;
    text-align: left;
}

/* 상세 진입이 없는 카드(비클릭)용 본문 — trx-card__open 과 동일한 여백 */
.trx-card__body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1rem 0 1rem 1rem;
}

/* 카드 내 보조 수치 목록 (수수료 내역 등) */
.trx-card__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.125rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.6875rem;
    color: rgb(61 73 72 / 1);
}

.trx-card__facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}

.trx-card__facts dt {
    color: rgb(109 122 120 / 1);
    white-space: nowrap;
}

.trx-card__facts dd {
    font-weight: 600;
    white-space: nowrap;
}

.trx-card__side {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1rem 1rem 0;
}

.trx-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.trx-card__who {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.trx-card__mcht {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(87 93 118 / 1);
}

.trx-card__sep {
    font-size: 0.6875rem;
    color: rgb(188 201 200 / 1);
}

.trx-card__payer {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgb(87 93 118 / 1);
}

.trx-card__method {
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgb(61 73 72 / 1);
}

.trx-card__time {
    flex: none;
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgb(61 73 72 / 1);
}

.trx-card__amountline {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 0.375rem;
    margin-top: 0.25rem;
}

.trx-card__amount {
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgb(87 93 118 / 1);
}

.trx-card__stl {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--tx-color-primary);
}

.trx-card__product {
    margin-top: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(25 28 28 / 1);
}

.trx-card__error {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #ba1a1a;
}

.trx-card__errmsg {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    line-height: 1.5;
    color: #ba1a1a;
    word-break: break-all;
}

.trx-card__meta {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    line-height: 1.5;
    color: rgb(61 73 72 / 1);
    word-break: break-all;
}

.trx-card__meta + .trx-card__meta {
    margin-top: 0.0625rem;
}

.trx-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.trx-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.1875rem;
    min-width: 4.25rem;
    min-height: 2.75rem;
    padding: 0.375rem 0.5rem;
    border: 1px solid rgb(188 201 200 / 0.3);
    border-radius: var(--radius);
    background: #fff;
    color: rgb(87 93 118 / 1);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.trx-card__action:active {
    transform: scale(0.96);
    background: rgb(243 244 243 / 1);
}

.trx-card__action .material-symbols-outlined {
    font-size: 0.875rem;
}

.trx-mobile-summary-panel {
    padding: 1.25rem;
    border: 1px solid #d6ebe5;
    border-radius: var(--radius);
    background: #edf6f2;
    box-shadow: 0 12px 28px rgba(35, 74, 72, 0.06);
}

.trx-mobile-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.trx-mobile-summary-card {
    padding: 1rem;
    border: 1px solid #dbe8e2;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 14px rgba(62, 68, 91, 0.04);
}

.trx-mobile-summary-card-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--tx-color-secondary);
}

.trx-mobile-summary-card-value {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    margin-top: 0.5rem;
    text-align: left;
}

.tx-infinite-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #5c627a;
}

.tx-infinite-status.hidden {
    display: none;
}

.tx-infinite-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--tx-color-primary-alpha-18);
    border-top-color: var(--tx-color-primary);
    border-radius: 999px;
    animation: tx-spin 0.7s linear infinite;
}

@keyframes tx-spin {
    to {
        transform: rotate(360deg);
    }
}

.trx-mobile-select-wrap {
    position: relative;
}

.trx-mobile-select {
    min-width: 4.5rem;
    height: 2.75rem;
    padding: 0 2rem 0 0.75rem !important;
    border: 1px solid rgb(188 201 200 / 0.3) !important;
    border-radius: var(--radius) !important;
    background: #edf1f0 !important;
    color: #3E445B;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none !important;
    outline: none;
}

.trx-mobile-select:focus {
    border-color: rgb(0 103 100 / 1) !important;
    box-shadow: none !important;
}

.trx-mobile-select-icon {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgb(87 93 118 / 1);
}

.trx-mobile-input-wrap {
    border-bottom: 1px solid rgb(188 201 200 / 0.45);
    transition: border-color 0.15s ease;
}

.trx-mobile-input-wrap:focus-within {
    border-bottom-color: rgb(0 103 100 / 1);
}

.trx-mobile-input {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    border: 0 !important;
    border-radius: var(--radius) !important;
    background: transparent !important;
    color: #3E445B;
    font-size: 0.9375rem;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    outline: none;
}

.trx-mobile-input::placeholder {
    color: var(--tx-color-secondary);
}

.trx-mobile-input:focus {
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
}

.tx-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid rgb(188 201 200 / 0.2);
    border-radius: 10px;
    background: #fff;
    padding: 0.375rem 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(25 28 28 / 1);
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tx-filter-chip.is-removable {
    color: rgb(25 28 28 / 1);
}

.tx-filter-chip:hover {
    transform: scale(0.98);
}

.tx-filter-chip.is-removable:hover {
    background: rgb(248 250 249 / 1);
    border-color: rgb(188 201 200 / 0.35);
    box-shadow: 0 8px 18px rgba(20, 27, 47, 0.06);
}

.tx-filter-chip__label {
    white-space: nowrap;
    color: rgb(87 93 118 / 1);
    font-weight: 500;
}

.tx-filter-chip__value {
    color: rgb(25 28 28 / 1);
    font-weight: 500;
}

.tx-filter-chip__close {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: inherit;
    opacity: 0;
    transform: translateX(2px) scale(0.92);
    transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.tx-filter-chip.is-removable:hover .tx-filter-chip__close {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.tx-filter-chip__close:hover {
    background: #fff;
}

@media (min-width: 1280px) {
    .trx-search-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) auto;
        align-items: end;
        gap: 1.5rem;
    }

    .trx-search-desktop-field,
    .trx-search-chipbar {
        display: block;
    }

    .trx-search-chipbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .trx-search-mobile-actions {
        display: none;
    }
}

.tx-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: rgb(87 93 118 / 1);
}

.tx-chart-dot {
    width: 0.5rem;
    height: 0.5rem;
border-radius: var(--radius);
    background: var(--tx-color-primary);
}

.tx-chart-dot.is-previous {
    background: #c9d1cf;
}

.tx-notice-list {
    overflow: hidden;
    border-top: 1px solid rgb(225 227 226 / 1);
    border-bottom: 1px solid rgb(225 227 226 / 1);
    background: #fff;
}

.tx-notice-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 0.125rem;
    border-bottom: 1px solid rgb(225 227 226 / 1);
}

.tx-notice-item:last-child {
    border-bottom: none;
}

.tx-notice-title {
    flex: 1;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgb(25 28 28 / 1);
}

.tx-notice-date {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgb(109 122 120 / 1);
}

.tx-dashboard-page {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    background: #fafbfa;
    padding: 1rem;
}

.tx-dashboard-inner {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
}
.tx-dashboard-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    border: 1px solid var(--tx-color-primary-border);
border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, var(--tx-color-primary-alpha-18), transparent 34%),
        linear-gradient(135deg, #fff 0%, var(--muted) 100%);
    padding: 1.25rem;
    box-shadow: 0 18px 40px rgba(20, 27, 47, 0.08);
}

.tx-dashboard-eyebrow {
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--tx-color-primary-deep);
}

.tx-dashboard-title {
    font-size: 1.375rem;
    line-height: 1.25;
    font-weight: 800;
    color: #191c1c;
}

.tx-dashboard-subtitle {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #575d76;
}
.tx-dashboard-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tx-dashboard-quick-link {
    display: inline-flex;
    min-height: 2.375rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: 1px solid var(--tx-color-primary-border);
border-radius: var(--radius);
    background: #fff;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--tx-color-primary-deep);
    box-shadow: 0 8px 20px rgba(20, 27, 47, 0.06);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tx-dashboard-quick-link:hover {
    border-color: var(--tx-color-primary-border-hover);
    box-shadow: 0 12px 26px rgba(20, 27, 47, 0.1);
    transform: translateY(-1px);
}

.tx-dashboard-quick-link .material-symbols-outlined {
    font-size: 17px;
}

.tx-kpi-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.875rem;
    margin-top: 1rem;
}

.tx-kpi-card {
    min-height: 124px;
    border: 1px solid #e5e7eb;
border-radius: var(--radius);
    background: #fff;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(20, 27, 47, 0.04);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tx-kpi-card:hover {
    border-color: var(--tx-color-primary-border-hover);
    box-shadow: 0 16px 32px rgba(20, 27, 47, 0.09);
    transform: translateY(-2px);
}

.tx-kpi-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #575d76;
}

.tx-kpi-icon {
    flex: 0 0 auto;
    font-size: 17px;
    line-height: 1;
    color: #6d7a78;
}

.tx-kpi-card.is-settlement .tx-kpi-icon,
.tx-kpi-card.is-settlement .tx-kpi-value,
.tx-kpi-card.is-payout .tx-kpi-icon,
.tx-kpi-card.is-payout .tx-kpi-value,
.tx-kpi-card.is-wallet .tx-kpi-icon,
.tx-kpi-card.is-wallet .tx-kpi-value {
    color: var(--tx-color-primary);
}

.tx-kpi-card.is-failure .tx-kpi-icon,
.tx-kpi-card.is-failure .tx-kpi-value,
.tx-kpi-card.is-cancel .tx-kpi-icon,
.tx-kpi-card.is-cancel .tx-kpi-value {
    color: #ba1a1a;
}

.tx-kpi-value {
    margin-top: 0.625rem;
    font-size: 1.625rem;
    line-height: 1.15;
    font-weight: 800;
    color: #3e445b;
}

.tx-kpi-note {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    font-weight: 600;
    color: #575d76;
}

.tx-kpi-note.is-accent {
    color: var(--tx-color-primary-deep);
}

.tx-kpi-note.is-muted {
    color: #6d7285;
    font-size: 0.75rem;
}

.tx-dashboard-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.tx-dashboard-card {
    border: 1px solid #e5e7eb;
border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 27, 47, 0.04);
    overflow: hidden;
}

@media (width < 1280px) {
    .tx-dashboard-page.tx-bg-shell {
        background-color: var(--tx-color-shell) !important;
    }

    .tx-dashboard-page .tx-dashboard-inner {
        max-width: 28rem;
    }

    .tx-dashboard-page .tx-kpi-card,
    .tx-dashboard-page .tx-dashboard-card {
        border-color: rgb(188 201 200 / 0.1);
border-radius: var(--radius);
        background: #fff;
        box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    }
}

@media (min-width: 1280px) {
    .tx-dashboard-page.tx-bg-shell {
        background-color: #fafbfa !important;
    }
}

.tx-dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
}

.tx-dashboard-card-title {
    font-size: 0.9375rem;
    line-height: 1.35;
    font-weight: 800;
    color: #191c1c;
}

.tx-dashboard-link {
    flex: 0 0 auto;
    font-size: 0.75rem;
    line-height: 1.4;
    font-weight: 800;
    color: var(--tx-color-primary-deep);
}

.tx-dashboard-link:hover {
    text-decoration: underline;
}

.tx-calendar-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1rem;
}

.tx-calendar-tabs {
    display: inline-flex;
    width: fit-content;
    border: 1px solid #dce3e2;
border-radius: var(--radius);
    background: #f8faf9;
    padding: 0.1875rem;
}

.tx-calendar-tab {
border-radius: var(--radius);
    padding: 0.4375rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.2;
    font-weight: 800;
    color: #575d76;
}

.tx-calendar-tab[aria-selected="true"] {
    background: #fff;
    color: var(--tx-color-primary-deep);
    box-shadow: 0 1px 2px rgba(20, 27, 47, 0.08);
}

.tx-calendar-tab:focus-visible,
.tx-calendar-button:focus-visible,
.tx-calendar-cell:focus-visible,
.tx-notice-link:focus-visible,
.tx-notice-button:focus-visible,
.tx-dashboard-link:focus-visible {
    outline: 2px solid var(--tx-color-primary);
    outline-offset: 2px;
}

.tx-calendar-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tx-calendar-title {
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 800;
    color: #3e445b;
}

.tx-calendar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.tx-calendar-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 2rem;
    border: 1px solid #e5e7eb;
border-radius: var(--radius);
    background: #fff;
    padding: 0 0.625rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #40465d;
}

.tx-calendar-button:hover {
    background: #f8fbfa;
}

.tx-calendar-button .material-symbols-outlined {
    font-size: 16px;
}

.tx-calendar-description {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #575d76;
}

.tx-calendar-scroll {
    overflow-x: auto;
    border-top: 1px solid #e5e7eb;
}

.tx-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-width: 760px;
    border-left: 1px solid #e5e7eb;
}

.tx-calendar-weekday {
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #f8faf9;
    padding: 0.625rem 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #575d76;
}

.tx-calendar-weekday.is-sunday {
    color: #ba1a1a;
}

.tx-calendar-cell {
    display: flex;
    min-height: 94px;
    width: 100%;
    flex-direction: column;
    gap: 0.375rem;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    padding: 0.5rem;
    text-align: left;
}

.tx-calendar-cell:hover {
    background: #fbfdfc;
}

.tx-calendar-cell.is-muted {
    background: #fbfbfb;
    color: #9ca3af;
}

.tx-calendar-cell.is-selected {
    background: #eefaf8;
}

.tx-calendar-cell.is-today {
    box-shadow: inset 0 0 0 1px var(--tx-color-primary);
}

.tx-calendar-cell.is-sunday .tx-calendar-date {
    color: #ba1a1a;
}

.tx-calendar-date {
    font-size: 0.8125rem;
    line-height: 1.2;
    font-weight: 800;
    color: #3e445b;
}

.tx-calendar-metrics {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.1875rem;
}

.tx-calendar-entry {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.71875rem;
    line-height: 1.25;
    color: #575d76;
}

.tx-calendar-entry-label {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.25rem;
    font-weight: 800;
}

.tx-calendar-entry-label::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
border-radius: var(--radius);
    background: currentColor;
}

.tx-calendar-entry-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    color: #3e445b;
}

.tx-calendar-entry.is-approval .tx-calendar-entry-label,
.tx-calendar-entry.is-confirmed .tx-calendar-entry-label {
    color: var(--tx-color-primary);
}

.tx-calendar-entry.is-cancel .tx-calendar-entry-label {
    color: #ba1a1a;
}

.tx-calendar-entry.is-scheduled .tx-calendar-entry-label {
    color: #2563eb;
}

.tx-calendar-panel[hidden] {
    display: none !important;
}

.tx-notice-list {
    display: flex;
    flex-direction: column;
}

.tx-notice-link {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) 1.25rem;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.875rem 1rem;
}

.tx-notice-link:hover {
    background: #f8fbfa;
}

.tx-notice-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6d7a78;
}

.tx-notice-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
    line-height: 1.45;
    font-weight: 700;
    color: #191c1c;
}

.tx-notice-chevron {
    font-size: 18px;
    color: #9ca3af;
}

.tx-notice-footer {
    padding: 1rem;
}

.tx-notice-button {
    display: flex;
    width: 100%;
    min-height: 2.375rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce3e2;
border-radius: var(--radius);
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #40465d;
}

.tx-notice-button:hover {
    background: #f8fbfa;
    color: var(--tx-color-primary-deep);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.status-pill.critical {
    background: #ffdad6;
    color: #93000a;
}

.status-pill.warning {
    background: #ffdbcc;
    color: #77320c;
}

.status-pill.normal {
    background: #d9defb;
    color: #5c627a;
}

.state-card {
    border: 1px dashed rgb(207 214 213 / 1);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(248, 250, 249, 0.92) 0%, rgba(255, 255, 255, 1) 100%);
    padding: 1rem;
}

.notification-panel-item {
    display: block;
    border-bottom: 1px solid rgb(225 227 226 / 1);
    background: #fff;
    padding: 1rem 0.875rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.notification-panel-item:hover {
    background: rgb(248 250 249 / 1);
}

.notification-panel-item.critical {
    border-bottom-color: #f0b8b8;
    background: #fffafa;
}

.notification-panel-item.warning {
    border-bottom-color: #ffd8c2;
    background: #fffaf4;
}

.notification-wrap {
    position: relative;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 80;
    width: min(92vw, 23.75rem);
    overflow: hidden;
    border: 1px solid rgb(225 227 226 / 1);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 20px 48px rgba(20, 27, 47, 0.18);
}

#notification-list {
    max-height: min(26rem, calc(100vh - 8rem));
    overflow-y: auto;
    overscroll-behavior: contain;
}

#notification-list > * + * {
    margin-top: 0.5rem;
}

#notification-list > :last-child {
    margin-bottom: 0;
}

.tx-notification-close {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--tx-color-secondary);
}

.tx-notification-close:hover {
    background: rgb(237 238 237 / 1);
}

.notification-panel-item:last-child {
    border-bottom: none;
}

#app-main {
    margin-left: 0;
    min-width: 0;
}

#sidebar-backdrop {
    display: block;
}

#app-sidebar {
    --tx-sidebar-bg: #292524;
    --tx-sidebar-surface: #302e2b;
    --tx-sidebar-border: #44403c;
    --tx-sidebar-muted: #a8a29e;
    --tx-sidebar-accent: #44403c;
    --tx-sidebar-hover: #262626;
    width: min(20rem, 90vw);
    max-width: 20rem;
    height: 100dvh;
    border-color: var(--tx-sidebar-border);
    background: var(--tx-sidebar-bg) !important;
    color: #fafaf9;
    padding-top: max(1rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    translate: none;
    transform: translateX(-100%);
}

#app-sidebar .text-on-surface,
#app-sidebar .text-on-secondary-fixed-variant {
    color: #fafaf9 !important;
}

#app-sidebar .text-secondary,
#app-sidebar .text-on-surface-variant {
    color: var(--tx-sidebar-muted) !important;
}

#app-sidebar.is-open {
    transform: translateX(0);
}

.tx-sidebar-tree-wrap {
    background: transparent;
    color: #fff;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

/* Keep the menu's vertical scrollbar and result tables' horizontal scrollbar consistent. */
.tx-sidebar-tree-wrap,
.tx-table-wrap {
    scrollbar-width: thin;
    scrollbar-color: #9ca3af transparent;
}

.tx-sidebar-tree-wrap::-webkit-scrollbar,
.tx-table-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.tx-sidebar-tree-wrap::-webkit-scrollbar-track,
.tx-sidebar-tree-wrap::-webkit-scrollbar-corner,
.tx-table-wrap::-webkit-scrollbar-track,
.tx-table-wrap::-webkit-scrollbar-corner {
    background: transparent;
}

.tx-sidebar-tree-wrap::-webkit-scrollbar-thumb,
.tx-table-wrap::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #9ca3af;
}

.tx-sidebar-tree-wrap::-webkit-scrollbar-thumb:hover,
.tx-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

#app-sidebar > div:first-of-type h1 {
    color: #fafaf9;
}

#app-sidebar > div:first-of-type p {
    color: var(--tx-sidebar-muted);
}

#app-sidebar > div:last-of-type {
    border-color: var(--tx-sidebar-border);
}

.tx-sidebar-session {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius);
    background: var(--tx-sidebar-surface);
    padding: 0.625rem 0.75rem;
}

.tx-session-indicator {
    width: 0.5rem;
    height: 0.5rem;
    flex: none;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.18);
}

.tx-topbar .tx-session-indicator {
    border-color: #fff;
}

.tx-sidebar-session__name,
.tx-sidebar-session__role {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tx-sidebar-session__name {
    color: #fafaf9;
    font-size: 0.75rem;
    font-weight: 700;
}

.tx-sidebar-session__role,
.tx-sidebar-session__state {
    color: var(--tx-sidebar-muted);
    font-size: 0.6875rem;
}

.tx-sidebar-session__state {
    flex: none;
}

#app-sidebar .tx-sidebar-account-actions {
    border-color: var(--tx-sidebar-border);
    background: #292524 !important;
    box-shadow: none;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

#app-sidebar .tx-sidebar-account-actions:focus-within {
    border-color: var(--tx-sidebar-accent);
    background: var(--tx-sidebar-accent) !important;
    box-shadow: 0 0 0 2px rgba(168, 162, 158, 0.2);
}

#app-sidebar .tx-sidebar-account-actions a,
#app-sidebar .tx-sidebar-account-actions button {
    color: #ffffff !important;
}

#app-sidebar .tx-sidebar-account-actions a:hover,
#app-sidebar .tx-sidebar-account-actions button:hover,
#app-sidebar .tx-sidebar-account-actions a:focus-visible,
#app-sidebar .tx-sidebar-account-actions button:focus-visible {
    background: var(--tx-sidebar-accent);
}

#app-sidebar > div:last-of-type > div:first-child p:first-child {
    color: #fafaf9;
}

#app-sidebar > div:last-of-type > div:first-child p:last-child {
    color: var(--tx-sidebar-muted);
}

#app-sidebar > div:last-of-type > a,
#app-sidebar > div:last-of-type > form button {
    color: #fff !important;
}

#app-sidebar > div:last-of-type > a:hover,
#app-sidebar > div:last-of-type > form button:hover {
    background: var(--tx-sidebar-hover);
}

.tx-sidebar-tree-wrap .tx-sidebar-link,
.tx-sidebar-tree-wrap .tx-sidebar-group-trigger {
    color: inherit;
}

.tx-sidebar-tree-wrap .tx-sidebar-sublink {
    color: #fff;
}

.tx-sidebar-tree-wrap .tx-sidebar-link:hover,
.tx-sidebar-tree-wrap .tx-sidebar-group-trigger:hover,
.tx-sidebar-tree-wrap .tx-sidebar-sublink:hover {
    background: var(--tx-sidebar-hover);
}

.tx-sidebar-tree-wrap .tx-sidebar-sublink.is-active {
    color: #fff;
}

.tx-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: var(--radius);
    padding: 0.625rem 0.75rem;
    color: #40465d;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tx-sidebar-link > span:not(.material-symbols-outlined),
.tx-sidebar-group-trigger > span:first-child > span:not(.material-symbols-outlined) {
    font-size: 12px !important;
    font-weight: 500 !important;
}

.tx-sidebar-sublink > span:not(.material-symbols-outlined) {
    font-size: 12px !important;
    font-weight: 200 !important;
}

.tx-sidebar-sublink.is-active > span:last-child {
    font-weight: 600 !important;
}

.tx-sidebar-link:hover {
    background: var(--tx-color-primary-alpha-8);
}

.tx-sidebar-link.is-active {
    background: var(--tx-sidebar-accent);
    color: #fafaf9;
    box-shadow: inset 0 0 0 1px #57534e;
    font-weight: 400;
}

.tx-sidebar-group-trigger {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius);
    padding: 0.625rem 0.75rem;
    color: #40465d;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#app-sidebar [data-sidebar-group-trigger] > .material-symbols-outlined:last-child {
    font-size: 12px;
}

.tx-sidebar-group-trigger::marker,
[data-sidebar-subgroup-trigger]::marker {
    content: "";
}

.tx-sidebar-group-trigger::-webkit-details-marker,
[data-sidebar-subgroup-trigger]::-webkit-details-marker {
    display: none;
}

.tx-sidebar-group-trigger *:not(.material-symbols-outlined) {
    font-size: 12px;
}

.tx-sidebar-group-trigger:hover {
    background: var(--tx-color-primary-alpha-8);
}

.tx-sidebar-group-trigger.is-active {
    background: var(--tx-sidebar-accent);
    color: #fafaf9;
    box-shadow: inset 0 0 0 1px #57534e;
    font-weight: 400;
}

.tx-sidebar-children {
    position: relative;
    margin-top: 0.25rem;
    margin-left: 0.75rem;
    padding-left: 1rem;
}

.tx-sidebar-children > * + * {
    margin-top: 0.25rem;
}

.tx-sidebar-children [role="group"] > * + * {
    margin-top: 0.25rem;
}

.tx-sidebar-sublink {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem 0.5rem 0.125rem;
    color: var(--tx-sidebar-muted);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tx-sidebar-sublink *:not(.material-symbols-outlined) {
    font-size: 12px;
}
.tx-sidebar-sublink:hover {
    background: var(--tx-color-primary-alpha-8);
}

.tx-sidebar-sublink.is-active {
    background: var(--tx-sidebar-surface);
    color: #fafaf9;
    font-weight: 600;
}

.material-symbols-outlined.tx-sidebar-sublink-icon {
    flex: none;
    font-size: 14px;
    opacity: 0.55;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.tx-sidebar-sublink:hover .tx-sidebar-sublink-icon,
.tx-sidebar-sublink.is-active .tx-sidebar-sublink-icon {
    opacity: 1;
    transform: translateX(1px);
}

.topbar-desktop-search {
    display: none;
}

.topbar-mobile-copy,
.topbar-mobile-toggle,
.topbar-mobile-search {
    display: flex;
}

.tx-admin-hero-grid,
.tx-admin-kpi-grid,
.tx-admin-content-grid,
.tx-admin-priority-stats,
.tx-admin-status-grid {
    grid-template-columns: minmax(0, 1fr);
}

:where(.tx-admin-desktop-only) {
    display: block;
}

:where(.admin-mobile-only) {
    display: none;
}

@media (width < 1280px) {
    .tx-admin-desktop-only {
        display: none !important;
    }

    .admin-mobile-only {
        display: block;
    }

    body.app-shell-body {
        min-height: 100dvh;
        overflow-x: clip;
        overflow-y: auto;
    }

    #app-shell,
    #app-main,
    #app-content,
    #app-main > [data-page-menu] {
        min-height: 0;
        overflow: visible !important;
    }

    #app-shell,
    #app-main {
        min-height: 100dvh;
    }

    .admin-mobile-only[class~="-mx-8"][class~="-my-8"] {
        width: 100%;
        min-height: 100%;
        margin: 0 !important;
    }

    #app-sidebar a[href],
    #app-sidebar button,
    #app-sidebar summary,
    [data-mobile-search-reset],
    .tx-notice-button,
    .tx-detail-button,
    .tx-detail-link-action,
    .tx-service-disclosure-btn {
        min-height: 2.75rem;
    }

    [data-mobile-search-reset] {
        height: 2.75rem !important;
    }

    .app-shell-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .app-shell-body select,
    .app-shell-body textarea {
        font-size: 16px !important;
    }
}

.tx-admin-desktop-kpi {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.tx-admin-desktop-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.tx-admin-desktop-status {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 600px) {
    .tx-dashboard-page {
        padding: 1.5rem;
    }
    .tx-dashboard-hero {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        padding: 1.5rem;
    }

    .tx-dashboard-quick-actions {
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    .tx-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tx-calendar-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .tx-admin-priority-stats,
    .tx-admin-status-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tx-admin-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tx-dashboard-mobile-summary {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tx-dashboard-mobile-summary-item {
        border-bottom: none;
        border-right: 1px solid rgb(225 227 226 / 1);
    }

    .tx-dashboard-mobile-summary-item:last-child {
        border-right: none;
    }
}

@media (min-width: 1280px) {
    .tx-topbar-brand,
    .tx-topbar-context {
        display: none;
    }

    body.app-shell-body,
    #app-shell,
    #app-main {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .tx-dashboard-page {
        padding: 2rem;
    }

    .tx-dashboard-content {
        grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    }

    #sidebar-backdrop {
        display: none !important;
    }

    #app-sidebar {
        width: var(--tx-sidebar-width);
        max-width: none;
        transform: translateX(0) !important;
        box-shadow: none;
    }

    #app-sidebar .tx-sidebar-brand {
        padding-inline: 4px;
        margin-bottom: 16px;
    }

    #app-sidebar .tx-sidebar-brand > a { min-width: 0; gap: 8px; }
    #app-sidebar .tx-sidebar-brand > a > div:first-child,
    #app-sidebar .tx-sidebar-brand img { width: 96px; height: 32px; flex-shrink: 0; }
    #app-sidebar .tx-sidebar-brand > a > div:last-child { min-width: 0; margin-right: 0; }
    #app-sidebar .tx-sidebar-brand h1 { font-size: 12px; overflow-wrap: anywhere; }
    #app-sidebar > div:last-child { padding-top: 12px; }
    #app-sidebar .tx-sidebar-account-actions { padding: 4px; gap: 4px; }
    #app-sidebar .tx-sidebar-account-actions :is(a, button) { min-height: 48px; padding: 6px 4px; }
    #app-sidebar .tx-sidebar-account-actions :is(a, button) > span { gap: 4px; }
    #app-sidebar .tx-sidebar-account-actions .material-symbols-outlined { font-size: 18px; }
    #app-sidebar .tx-sidebar-account-actions span:not(.material-symbols-outlined) { font-size: 12px; }

    #app-sidebar ~ #app-main {
        margin-left: var(--tx-sidebar-width);
    }

    .topbar-mobile-copy,
    .topbar-mobile-toggle,
    .topbar-mobile-search,
    [data-sidebar-close] {
        display: none !important;
    }

    .topbar-desktop-search {
        display: block;
    }

    :where(.tx-admin-desktop-only) {
        display: block;
    }

    :where(.admin-mobile-only) {
        display: none;
    }

    .tx-admin-desktop-kpi {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
    }

    .tx-admin-desktop-main {
        grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
    }

    .tx-admin-desktop-status {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .tx-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tx-admin-hero-grid,
    .tx-admin-content-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.9fr);
    }

    .tx-admin-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tx-admin-priority-stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (width < 600px) {
    .notification-panel {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        left: max(0.75rem, env(safe-area-inset-left, 0px));
        width: auto;
    }
}

.app-shell-body .text-outline,
.app-shell-body input::placeholder,
.app-shell-body textarea::placeholder {
    color: var(--tx-color-secondary) !important;
    opacity: 1;
}

.border-outline-variant\/10 {
    border-color: rgb(188 201 200 / 0.1);
}

.rounded-\[10px\] {
    border-radius: var(--radius);
}

.flatpickr-calendar {
    border: 1px solid rgba(188, 201, 200, 0.3);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(20, 27, 47, 0.12);
}

/* 뒤에 로드되는 Flatpickr 기본 폭보다 우선하여 공통 입력 달력을 줄인다. */
body .flatpickr-calendar {
    width: 280px;
}

.flatpickr-calendar .flatpickr-rContainer,
.flatpickr-calendar .flatpickr-days,
.flatpickr-calendar .dayContainer {
    width: 100%;
    min-width: 0;
    max-width: none;
}

/* 날짜 칸을 줄여도 일~토의 7열을 유지하여 요일과 날짜가 어긋나지 않게 한다. */
.flatpickr-calendar .dayContainer {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.flatpickr-calendar .flatpickr-day {
    width: 100%;
    max-width: none;
    height: 34px;
    line-height: 34px;
}

.flatpickr-calendar .flatpickr-months {
    padding: 0.35rem 0.35rem 0;
}

.flatpickr-calendar .flatpickr-month {
    height: 40px;
}

.flatpickr-calendar .flatpickr-current-month {
    padding-top: 0.35rem;
}

.flatpickr-calendar .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-next-month {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: #5c627a;
}

.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-day.endRange {
    background: var(--tx-color-primary);
    border-color: var(--tx-color-primary);
}

.flatpickr-calendar .flatpickr-day.inRange {
    background: var(--tx-color-primary-alpha-12);
    border-color: var(--tx-color-primary-alpha-12);
    box-shadow: none;
}

.tx-date-shortcuts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    border-top: 1px solid rgba(188, 201, 200, 0.25);
    padding: 0.75rem 1rem 0.8rem;
    background: #fafcfb;
}

.tx-date-shortcuts__button {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    color: #5c627a;
    cursor: pointer;
}

.tx-date-shortcuts__button:hover {
    color: var(--tx-color-primary);
}

.tx-date-shortcuts__divider {
    font-size: 11px;
    color: rgba(92, 98, 122, 0.45);
}

.tx-table-wrap {
    border-radius: 0;
    box-shadow: none;
    overflow-x: auto;
}

[data-cn-tabs].tabs-card-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: visible;
    border: 0;
    background: transparent;
}
[data-cn-tabs].tabs-card-view > .modal-tab-list {
    display: none;
}
[data-cn-tabs].tabs-card-view > [data-cn-tab-panel] {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}
[data-tabs-expand] .material-symbols-outlined {
    font-size: 16px;
}

.tx-table {
    width: max-content;
    min-width: 100%;
    border-spacing: 0;
    border-collapse: separate;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    color: #1f2937;
}

.tx-table thead {
    top: 0;
    z-index: 30;
}

.tx-table th,
.tx-table td {
    padding: 0.5rem 0.75rem; /* 9px 12px */
    white-space: nowrap;
}

.tx-table th {
    position: sticky;
    top: 0;
    background: #f7f7f7;
    color: #171717;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.tx-table td {
    font-size: 12px;
    font-weight: 400;
    background: #fff;
}

.tx-table td.font-semibold {
    font-weight: 600;
}

.tx-table th {
    border-bottom: 1px solid #d1d5db;
}

.tx-table td {
    border-bottom: 1px solid #e5e7eb;
}

.tx-table th:not(:last-child):not(.tx-table-sticky-left):not(.tx-table-sticky-right):not(.tx-sticky-col):not(.tx-table-group-head):not(.tx-table-group-end),
.tx-table td:not(:last-child):not(.tx-table-sticky-left):not(.tx-table-sticky-right):not(.tx-sticky-col) {
    border-right: 1px solid #e5e7eb;
}

.tx-table .tx-table-select-cell {
    position: sticky;
    left: 0;
    z-index: 20;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    text-align: center;
}

.tx-table th.tx-table-select-cell {
    z-index: 36;
    background: #f7f7f7;
}

.tx-table td.tx-table-select-cell {
    background: #ffffff;
}

.tx-table .tx-table-select-cell > input[type="checkbox"] {
    width: 0.8rem;
    height: 0.8rem;
}

.tx-table input[data-work-row-select],
.tx-table input[data-work-select-all] {
    accent-color: var(--tx-color-primary);
    cursor: pointer;
}

.tx-table input[data-work-row-select]:focus-visible,
.tx-table input[data-work-select-all]:focus-visible {
    outline: 2px solid var(--tx-color-primary);
    outline-offset: 2px;
}

.tx-table tr[data-work-bulk-selected="true"] td {
    background: #edf7f6;
}

.tx-work-selection-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.375rem;
}

.tx-work-selection-amounts[hidden] {
    display: none;
}

.tx-work-selection-amount {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #b9cecb;
    border-radius: 999px;
    background: #fff;
    padding: 0.2rem 0.5rem;
    color: #3d4948;
    font-size: 11px;
    font-weight: 600;
}

.tx-work-selection-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

@media (width < 840px) {
    .tx-work-selection-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .tx-work-selection-actions [data-work-bulk-preview] {
        grid-column: 1 / -1;
    }
}

/* 검색 결과 Action은 고정 테이블 헤더(90) 위, 업무 모달(100) 아래에 표시한다. */
[data-business-actions] {
    position: relative;
    z-index: 95;
}

.tx-bulk-action-menu {
    position: relative;
}

.tx-bulk-action-control {
    display: inline-flex;
    align-items: stretch;
}

.tx-bulk-action-control .tx-bulk-action-menu > summary {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.tx-bulk-action-control > [data-bulk-action-submit] {
    position: relative;
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

[data-bulk-action-submit]:enabled .material-symbols-outlined {
    color: #0050ff;
}

.tx-bulk-action-control > [data-bulk-action-submit]:hover,
.tx-bulk-action-control > [data-bulk-action-submit]:focus-visible {
    z-index: 1;
}

.tx-bulk-action-menu > summary {
    width: 160px;
    list-style: none;
}

.tx-bulk-action-menu > summary::-webkit-details-marker {
    display: none;
}

.tx-bulk-action-menu > summary .material-symbols-outlined {
    transition: transform 150ms ease;
}

.tx-bulk-action-menu[open] > summary .material-symbols-outlined {
    transform: rotate(180deg);
}

.tx-bulk-action-menu-list {
    position: absolute;
    z-index: 95;
    top: calc(100% + 0.25rem);
    right: 0;
    width: 160px;
    overflow: hidden;
    padding: 0.375rem;
    border: 1px solid #d6d3d1;
    border-radius: 0.375rem;
    background: #fff;
    box-shadow: 0 10px 24px rgb(28 25 23 / 14%);
}

.tx-bulk-action-menu-group {
    padding: 0.375rem 0.5rem 0.25rem;
    color: #78716c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.tx-bulk-action-menu-list button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
}

.tx-bulk-action-menu-list button::before {
    content: "";
    flex: 0 0 6px;
    height: 1px;
    background-color: currentColor;
}

.tx-bulk-action-menu-list button:hover,
.tx-bulk-action-menu-list button.is-active {
    background: #f5f5f4;
}

.tx-bulk-action-menu-divider {
    height: 1px;
    margin: 0.25rem;
    background: #e7e5e4;
}

.tx-table tbody tr:nth-child(even) td:not(.tx-table-select-cell) {
    background: #ffffff;
}

.tx-table tbody tr:hover td {
    background: #fcfcfb;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

.tx-table tbody tr[data-modal-selected="true"] td {
    background: #edf7f6;
}

.tx-table.tx-table--stone > tbody > tr > td:not(.text-left):not(.text-right):not(.text-justify) {
    text-align: center;
}

.tx-table--stone tbody tr:nth-child(even) td:not(.tx-table-select-cell) {
    background: #ffffff;
}

.tx-table--stone tbody tr:hover td {
    background: #fcfcfb;
}

.tx-table--stone tbody tr[data-modal-selected="true"] td {
    background: #e7e5e4;
}

.tx-table td[data-modal-url],
.tx-table td [data-modal-url] {
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s ease;
}

.tx-table td[data-modal-url]:hover,
.tx-table td [data-modal-url]:hover {
    text-decoration-color: rgba(87, 83, 78, 0.38);
}

.tx-table tbody tr:last-child td {
    border-bottom: 0;
}

.tx-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 0.2rem;
    padding: 0.1875rem 0.5rem;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid var(--border);
    background: var(--muted);
    color: var(--foreground);
}

.tx-badge--primary {
    border-color: var(--tx-color-primary-border);
    background: var(--tx-color-primary-soft);
    color: var(--tx-color-primary-strong);
}

.tx-badge--primary-strong {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-foreground);
}

.tx-badge--blue {
    border-color: #c7cddd;
    background: #eef0f6;
    color: #405189;
}

.tx-badge--indigo {
    border-color: #c7cadb;
    background: #f1f2f6;
    color: #4f536b;
}

.tx-badge--indigo-light {
    border-color: #cbd2ee;
    background: #f4f5fc;
    color: #58639a;
}

.tx-badge--secondary {
    border-color: var(--border);
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.tx-badge--purple {
    border-color: #d4c9d7;
    background: #f4f1f5;
    color: #67566d;
}

.tx-badge--purple-light {
    border-color: #dac7e2;
    background: #f8f3fa;
    color: #80618b;
}

.tx-badge--success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.tx-badge--info {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #475569;
}

.tx-badge--warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.tx-badge--danger {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.tx-badge--neutral {
    border-color: #d6d3d1;
    background: #f5f5f4;
    color: #57534e;
}

.tx-badge--gray {
    border-color: #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
}

.tx-badge--compact {
    min-height: 1.25rem;
    padding: 0 0.4375rem;
    font-size: 10px;
    line-height: 1;
}

.tx-badge--large {
    min-height: 1.75rem;
    padding: 0.25rem 0.6875rem;
    font-size: 12px;
}

.tx-badge--fixed-sm,
.tx-badge--fixed-md,
.tx-badge--fixed-lg {
    justify-content: center;
    white-space: nowrap;
}

.tx-badge--fixed-sm {
    width: 3rem;
}

.tx-badge--fixed-md {
    width: 4rem;
}

.tx-badge--fixed-lg {
    width: 5rem;
}

.tx-badge--square {
    min-width: 1.75rem;
    min-height: 1.75rem;
    justify-content: center;
    padding: 0.25rem;
}

.tx-badge--dot::before {
    width: 0.375rem;
    height: 0.375rem;
    flex: 0 0 auto;
    border-radius: 9999px;
    background: currentColor;
    content: "";
}

.tx-badge--icon {
    gap: 0.25rem;
}

.tx-badge--icon .material-symbols-outlined {
    font-size: 14px;
    line-height: 1;
}

.tx-badge--solid-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff !important;
}

.tx-badge--solid-blue {
    border-color: #405189;
    background: #405189;
    color: #fff;
}

.tx-badge--solid-indigo {
    border-color: #5c627a;
    background: #5c627a;
    color: #fff;
}

.tx-badge--solid-indigo-light {
    border-color: #6f79ad;
    background: #6f79ad;
    color: #fff;
}

.tx-badge--solid-secondary {
    border-color: #78716c;
    background: #78716c;
    color: #fff;
}

.tx-badge--solid-purple {
    border-color: #75627b;
    background: #75627b;
    color: #fff;
}

.tx-badge--solid-purple-light {
    border-color: #9475a0;
    background: #9475a0;
    color: #fff;
}

.tx-badge--solid-success {
    border-color: #15803d;
    background: #15803d;
    color: #fff;
}

.tx-badge--solid-info {
    border-color: #475569;
    background: #475569;
    color: #fff;
}

.tx-badge--solid-warning {
    border-color: #b45309;
    background: #b45309;
    color: #fff;
}

.tx-badge--solid-danger {
    border-color: #be123c;
    background: #be123c;
    color: #fff;
}

.tx-badge--solid-black {
    border-color: #000;
    background: #000;
    color: #fff;
}

.tx-badge--solid-neutral {
    border-color: #57534e;
    background: #57534e;
    color: #fff;
}

.tx-badge--solid-gray {
    border-color: #6b7280;
    background: #6b7280;
    color: #fff;
}

/* Shared design-reference palette */
.tx-tone--primary {
    --tx-tone-border: var(--tx-color-primary-border);
    --tx-tone-bg: var(--tx-color-primary-soft);
    --tx-tone-fg: var(--tx-color-primary-strong);
    --tx-tone-solid: var(--primary);
    --tx-tone-solid-fg: var(--primary-foreground);
}

.tx-tone--secondary {
    --tx-tone-border: var(--border);
    --tx-tone-bg: var(--secondary);
    --tx-tone-fg: var(--secondary-foreground);
    --tx-tone-solid: #78716c;
    --tx-tone-solid-fg: #fff;
}

.tx-tone--indigo {
    --tx-tone-border: #c7cadb;
    --tx-tone-bg: #f1f2f6;
    --tx-tone-fg: #4f536b;
    --tx-tone-solid: #5c627a;
    --tx-tone-solid-fg: #fff;
}

.tx-tone--indigo-light {
    --tx-tone-border: #cbd2ee;
    --tx-tone-bg: #f4f5fc;
    --tx-tone-fg: #58639a;
    --tx-tone-solid: #6f79ad;
    --tx-tone-solid-fg: #fff;
}

.tx-tone--purple {
    --tx-tone-border: #d4c9d7;
    --tx-tone-bg: #f4f1f5;
    --tx-tone-fg: #67566d;
    --tx-tone-solid: #75627b;
    --tx-tone-solid-fg: #fff;
}

.tx-tone--purple-light {
    --tx-tone-border: #dac7e2;
    --tx-tone-bg: #f8f3fa;
    --tx-tone-fg: #80618b;
    --tx-tone-solid: #9475a0;
    --tx-tone-solid-fg: #fff;
}

.tx-tone--success {
    --tx-tone-border: #bbf7d0;
    --tx-tone-bg: #f0fdf4;
    --tx-tone-fg: #166534;
    --tx-tone-solid: #15803d;
    --tx-tone-solid-fg: #fff;
}

.tx-tone--info {
    --tx-tone-border: #cbd5e1;
    --tx-tone-bg: #f1f5f9;
    --tx-tone-fg: #475569;
    --tx-tone-solid: #475569;
    --tx-tone-solid-fg: #fff;
}

.tx-tone--warning {
    --tx-tone-border: #fde68a;
    --tx-tone-bg: #fffbeb;
    --tx-tone-fg: #b45309;
    --tx-tone-solid: #d97706;
    --tx-tone-solid-fg: #fff;
}

.tx-tone--danger {
    --tx-tone-border: #fecdd3;
    --tx-tone-bg: #fff1f2;
    --tx-tone-fg: #be123c;
    --tx-tone-solid: #e11d48;
    --tx-tone-solid-fg: #fff;
}

.tx-tone--neutral {
    --tx-tone-border: #d6d3d1;
    --tx-tone-bg: #f5f5f4;
    --tx-tone-fg: #57534e;
    --tx-tone-solid: #57534e;
    --tx-tone-solid-fg: #fff;
}

.tx-tone--gray {
    --tx-tone-border: #e5e7eb;
    --tx-tone-bg: #f9fafb;
    --tx-tone-fg: #6b7280;
    --tx-tone-solid: #6b7280;
    --tx-tone-solid-fg: #fff;
}

.tx-text-tone {
    color: var(--tx-tone-fg);
}

.tx-surface-tone {
    border: 1px solid var(--tx-tone-border);
    background: var(--tx-tone-bg);
    color: var(--tx-tone-fg);
}

.tx-solid-tone {
    border: 1px solid var(--tx-tone-solid);
    background: var(--tx-tone-solid);
    color: var(--tx-tone-solid-fg);
}

.tx-component-button {
    display: inline-flex;
    min-height: 2.375rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-size: 13px;
    font-weight: 600;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.tx-component-button:hover {
    filter: brightness(0.97);
}

.tx-component-button:active {
    transform: scale(0.98);
}

.tx-component-progress {
    height: 0.5rem;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--tx-tone-bg);
}

.tx-component-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--tx-tone-solid);
}

.tx-badge--solid2-success {
    border-color: #466252;
    background: #466252;
    color: #fff;
}

.tx-badge--solid2-warning {
    border-color: #7c5b36;
    background: #7c5b36;
    color: #fff;
}

.tx-badge--solid2-danger {
    border-color: #7f4b4b;
    background: #7f4b4b;
    color: #fff;
}

.tx-badge--outline-primary {
    border-color: var(--tx-color-primary-border);
    background: transparent;
    color: var(--tx-color-primary-strong);
}

.tx-badge--outline-blue {
    border-color: #405189;
    background: transparent;
    color: #405189;
}

.tx-badge--outline-indigo {
    border-color: #969bb2;
    background: transparent;
    color: #555a72;
}

.tx-badge--outline-indigo-light {
    border-color: #aab2d5;
    background: transparent;
    color: #59649a;
}

.tx-badge--outline-secondary {
    border-color: #a8a29e;
    background: transparent;
    color: #57534e;
}

.tx-badge--outline-purple {
    border-color: #a896ad;
    background: transparent;
    color: #67566d;
}

.tx-badge--outline-purple-light {
    border-color: #bca2c5;
    background: transparent;
    color: #80618b;
}

.tx-badge--outline-success {
    border-color: #4ade80;
    background: transparent;
    color: #166534;
}

.tx-badge--outline-info {
    border-color: #94a3b8;
    background: transparent;
    color: #475569;
}

.tx-badge--outline-warning {
    border-color: #fbbf24;
    background: transparent;
    color: #b45309;
}

.tx-badge--outline-danger {
    border-color: #fb7185;
    background: transparent;
    color: #be123c;
}

.tx-badge--outline-neutral {
    border-color: #a8a29e;
    background: transparent;
    color: #57534e;
}

.tx-badge--outline-gray {
    border-color: #d1d5db;
    background: transparent;
    color: #6b7280;
}

.tx-badge-sample-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

[data-badge-copy-page] .tx-badge[data-badge-copy] {
    cursor: copy;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

[data-badge-copy-page] .tx-badge[data-badge-copy]:hover {
    box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 20%, transparent);
    transform: translateY(-1px);
}

[data-badge-copy-page] .tx-badge[data-badge-copy]:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

[data-badge-copy-page] .tx-badge[data-badge-copy].is-copied {
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 32%, transparent);
}

.tx-table-cell--muted {
    color: #78716c;
    font-weight: 500;
}

.tx-table-cell--strong {
    color: #292524;
    font-weight: 600;
}

.tx-table-cell--primary {
    background: #fafaf9;
    color: #57534e;
    font-weight: 600;
}

.tx-table-cell--secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    font-weight: 600;
}

.tx-table-cell--indigo {
    background: #f1f2f6;
    color: #4f536b;
    font-weight: 600;
}

.tx-table-cell--indigo-light {
    background: #f4f5fc;
    color: #58639a;
    font-weight: 600;
}

.tx-table-cell--purple {
    background: #f4f1f5;
    color: #67566d;
    font-weight: 600;
}

.tx-table-cell--purple-light {
    background: #f8f3fa;
    color: #80618b;
    font-weight: 600;
}

.tx-table-cell--success {
    background: #f0fdf4;
    color: #166534;
    font-weight: 600;
}

.tx-table-cell--info {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
}

.tx-table-cell--warning {
    background: #fffbeb;
    color: #b45309;
    font-weight: 600;
}

.tx-table-cell--danger {
    background: #fff1f2;
    color: #be123c;
    font-weight: 600;
}

.tx-table-cell--neutral {
    background: #f5f5f4;
    color: #57534e;
    font-weight: 600;
}

.tx-table-cell--gray {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
}

.tx-table-cell--solid-primary,
.tx-table-cell--solid-indigo,
.tx-table-cell--solid-indigo-light,
.tx-table-cell--solid-secondary,
.tx-table-cell--solid-purple,
.tx-table-cell--solid-purple-light,
.tx-table-cell--solid-success,
.tx-table-cell--solid-info,
.tx-table-cell--solid-warning,
.tx-table-cell--solid-danger,
.tx-table-cell--solid-neutral,
.tx-table-cell--solid-gray {
    color: #fff;
    font-weight: 600;
}

.tx-table-cell--solid-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.tx-table-cell--solid-secondary {
    background: #78716c;
}

.tx-table-cell--solid-indigo {
    background: #5c627a;
}

.tx-table-cell--solid-indigo-light {
    background: #6f79ad;
}

.tx-table-cell--solid-purple {
    background: #75627b;
}

.tx-table-cell--solid-purple-light {
    background: #9475a0;
}

.tx-table-cell--solid-success {
    background: #15803d;
}

.tx-table-cell--solid-info {
    background: #475569;
}

.tx-table-cell--solid-warning {
    background: #b45309;
}

.tx-table-cell--solid-danger {
    background: #be123c;
}

.tx-table-cell--solid-neutral {
    background: #57534e;
}

.tx-table-cell--solid-gray {
    background: #6b7280;
}

.tx-table-cell--accent-left {
    box-shadow: inset 3px 0 0 currentColor;
}

.tx-table-cell--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    letter-spacing: -0.01em;
}

.tx-table-cell--link {
    color: var(--tx-color-primary-strong);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: color-mix(in oklch, var(--primary) 28%, transparent);
    text-underline-offset: 3px;
}

[data-table-copy-page] .tx-table td[data-table-cell-copy] {
    cursor: copy;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

[data-table-copy-page] .tx-table td[data-table-cell-copy]:hover {
    box-shadow: inset 0 0 0 2px color-mix(in oklch, var(--primary) 24%, transparent);
}

[data-table-copy-page] .tx-table td[data-table-cell-copy]:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: -3px;
}

[data-table-copy-page] .tx-table td[data-table-cell-copy].is-copied {
    box-shadow: inset 0 0 0 3px color-mix(in oklch, var(--primary) 38%, transparent);
}

.tx-table__empty-row td {
    padding: 0;
    background: #fff;
}

.tx-table__empty {
    display: flex;
    min-height: 16rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    text-align: center;
}

.tx-table__empty-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.tx-table__empty-desc {
    font-size: 12px;
    color: #6b7280;
}

.w-180 {
    width: 180px;
    min-width: 180px;
}

.w-140 {
    width: 140px;
    min-width: 140px;
}

.w-120 {
    width: 120px;
    min-width: 120px;
}

.w-100 {
    width: 100px;
    min-width: 100px;
}

.w-110 {
    width: 110px;
    min-width: 110px;
}

.w-130 {
    width: 130px;
    min-width: 130px;
}

.w-150 {
    width: 150px;
    min-width: 150px;
}

.w-160 {
    width: 160px;
    min-width: 160px;
}

.w-170 {
    width: 170px;
    min-width: 170px;
}

.w-210 {
    width: 210px;
    min-width: 210px;
}
.w-200 {
    width: 200px;
    min-width: 200px;
}

.w-220 {
    width: 220px;
    min-width: 220px;
}

.w-240 {
    width: 240px;
    min-width: 240px;
}

.w-260 {
    width: 260px;
    min-width: 260px;
}

.tx-sticky-col {
    position: sticky;
    left: var(--sticky-left, 0);
    width: var(--sticky-width, auto);
    min-width: var(--sticky-width, auto);
    z-index: var(--sticky-z, 1);
}

.tx-sticky-col-header {
    top: 0;
    background: #f9fafb;
    background-clip: padding-box;
}

/* 메인 조회 목록: 다단 헤더 전체를 고정하고 가로 고정 셀보다 위에 표시한다. */
.tx-table--sticky-head > thead {
    position: relative;
    z-index: 90;
    transform: translateY(var(--table-head-offset, 0px));
    background: #f9fafb;
}
.tx-table--sticky-head > thead .tx-sticky-col-header { top: auto; }
@media print {
    .tx-table--sticky-head > thead { transform: none !important; position: static !important; }
}

.tx-sticky-col-body {
    background: #fff;
    background-clip: padding-box;
}

.tx-sticky-col:not(.tx-sticky-col-last) {
    box-shadow: inset -1px 0 0 #e5e7eb;
}

.tx-sticky-col-last.tx-sticky-col-header {
    box-shadow: inset -1px 0 0 #636363;
}

.tx-sticky-col-last.tx-sticky-col-body {
    box-shadow: inset -1px 0 0 #636363;
}

.tx-table--grouped thead tr:first-child th {
    height: 34px;
    text-align: center;
    background: #f7f7f7;
    border-bottom: 1px solid #d1d5db;
}

.tx-table--grouped thead tr:first-child th[rowspan].text-right {
    text-align: right;
}

.tx-table--grouped thead tr:first-child th.tx-table-group-head {
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-size: 13px;
    letter-spacing: 0;
}

.tx-table--grouped thead tr:nth-child(2) th {
    top: 34px;
}

.tx-grouped-table th,
.tx-grouped-table td {
    vertical-align: middle;
}

.tx-table-group-start {
    border-left: 1px solid #e5e7eb;
}

.tx-table-group-end {
    border-right: 1px solid #e5e7eb;
}

.tx-table-sticky-right.tx-table-group-start {
    box-shadow: none;
}

.tx-table-sticky-left {
    position: sticky !important;
    left: 0;
    z-index: 35;
    background-clip: padding-box;
    box-shadow: inset -1px 0 0 #636363;
}

.tx-table-sticky-left + .tx-table-group-start {
    border-left: 0;
}

.tx-table-sticky-right {
    position: sticky !important;
    right: 0;
    z-index: 35;
    background-clip: padding-box;
    box-shadow: inset 1px 0 0 #e5e7eb;
}

td.tx-table-sticky-left,
td.tx-table-sticky-right {
    background: #fff;
}

.tx-table tbody tr:nth-child(even) td.tx-table-sticky-left,
.tx-table tbody tr:nth-child(even) td.tx-table-sticky-right {
    background: #ffffff;
}

.tx-table tbody tr:hover td.tx-table-sticky-left,
.tx-table tbody tr:hover td.tx-table-sticky-right {
    background: #fcfcfb;
}

.tx-table tbody tr[data-modal-selected="true"] td.tx-table-sticky-left,
.tx-table tbody tr[data-modal-selected="true"] td.tx-table-sticky-right {
    background: #edf7f6;
}

.tx-table--stone tbody tr[data-modal-selected="true"] td.tx-table-sticky-left,
.tx-table--stone tbody tr[data-modal-selected="true"] td.tx-table-sticky-right {
    background: #e7e5e4;
}

th.tx-table-sticky-left,
th.tx-table-sticky-right {
    z-index: 45;
}

.tx-detail-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #fff;
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
}

.tx-detail-line span {
    color: #575d76;
}

.tx-detail-line strong {
    color: #3e445b;
    font-weight: 700;
}

.tx-detail-line--strong {
    border-color: #c9e8e5;
    background: #f3fbfa;
}

.tx-detail-line--strong strong {
    color: var(--tx-color-primary-strong);
}

.tx-detail-line--muted {
    background: #fafbfa;
}

.tx-detail-line--muted span,
.tx-detail-line--muted strong {
    color: #9ca3af;
}

.tx-calc-sheet {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #fff;
}

.tx-calc-section {
    border-bottom: 1px solid #edf2f2;
    padding: 0.875rem 1rem;
}

.tx-calc-section-title {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #7c8299;
}

.tx-calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2rem;
    font-size: 0.8125rem;
    color: #575d76;
}

.tx-calc-row + .tx-calc-row {
    border-top: 1px solid #f3f5f5;
}

.tx-calc-row > span:first-child {
    min-width: 0;
}

.tx-calc-row strong {
    flex: none;
    color: #3e445b;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tx-calc-row--muted,
.tx-calc-row--muted strong {
    color: #9ca3af;
}

.tx-calc-row--subtotal {
    margin: 0.5rem -1rem -0.875rem;
    min-height: 2.5rem;
    padding: 0 1rem;
    background: #fafbfa;
    color: #3e445b;
}

.tx-calc-row--total {
    margin: 0;
    min-height: 3.25rem;
    border-top: 1px solid #c9e8e5;
    background: #f3fbfa;
    padding: 0 1rem;
    color: var(--tx-color-primary-strong);
}

.tx-calc-row--total strong {
    color: var(--tx-color-primary-strong);
    font-size: 1.0625rem;
}

.tx-calc-sign {
    display: inline-block;
    min-width: 0.875rem;
    color: inherit;
    text-align: left;
}

.tx-compact-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #fafbfa;
    padding: 0.75rem 0.875rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #575d76;
}

.tx-compact-summary b {
    color: #3e445b;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tx-compact-list {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #fff;
}

.tx-compact-list-item {
    border-bottom: 1px solid #edf2f2;
}

.tx-compact-list-item:last-child {
    border-bottom: 0;
}

.tx-compact-list-button {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    text-align: left;
    transition: background-color 0.2s ease;
}

.tx-compact-list-button:hover {
    background: #f8fafa;
}

.tx-compact-list-button:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--tx-color-primary-alpha-22);
}

.tx-compact-list-button[aria-expanded="true"] {
    background: #f8fbfa;
}

.tx-compact-list-button[aria-expanded="true"] .tx-compact-list-expand .material-symbols-outlined {
    transform: rotate(180deg);
}

.tx-compact-list-main {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.375rem;
}

.tx-compact-list-top {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.tx-compact-list-title {
    min-width: 0;
    overflow: hidden;
    color: var(--tx-color-primary-strong);
    font-size: 0.8125rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tx-compact-list-meta,
.tx-compact-list-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.625rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #7c8299;
}

.tx-compact-list-amounts b {
    color: #575d76;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.tx-compact-list-amount--primary,
.tx-compact-list-amount--primary b {
    color: var(--tx-color-primary-strong);
    font-weight: 700;
}

.tx-compact-list-expand {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.125rem;
    padding-top: 0.125rem;
    color: #7c8299;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.tx-compact-list-expand .material-symbols-outlined {
    transition: transform 0.2s ease;
}

.tx-compact-list-detail {
    border-top: 1px solid #edf2f2;
    background: #fafbfa;
    padding: 0.875rem 1rem;
}

.tx-compact-dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    font-size: 0.75rem;
}

.tx-compact-dl dt {
    color: #7c8299;
}

.tx-compact-dl dd {
    margin: 0.125rem 0 0;
    color: #3e445b;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.tx-compact-dl-total {
    grid-column: 1 / -1;
}

.tx-compact-dl-total dd {
    color: var(--tx-color-primary-strong);
    font-weight: 700;
}

@media (max-width: 520px) {
    .tx-compact-list-button {
        flex-direction: column;
    }

    .tx-compact-list-expand {
        align-self: flex-start;
    }

    .tx-compact-dl {
        grid-template-columns: 1fr;
    }
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga";
}

.bg-\[\#2196F3\] {
    background: #2196F3;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.w-\[560px\] {
    width: 560px;
}

.max-w-5xl {
    max-width: 64rem;
}

.tx-detail-shell {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.tx-detail-sidebar {
    min-width: 0;
}

.tx-detail-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.tx-detail-main > .tx-detail-card {
    width: 100%;
}

.tx-detail-card {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #fff;
}

.tx-detail-tab-btn {
    border-radius: var(--radius);
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #575d76;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tx-detail-tab-btn:hover {
    background: #f3f6f6;
    color: var(--tx-color-primary);
}

.tx-detail-tab-btn.is-active {
    background: var(--tx-color-primary-soft);
    color: var(--tx-color-primary);
}

.tx-detail-header-card {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #fff;
}

.tx-detail-header-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem;
}

.tx-detail-header-copy {
    min-width: 0;
}

.tx-detail-header-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.tx-detail-header-title h1 {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #3e445b;
}

.tx-detail-header-meta {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    color: #7c8299;
}

.tx-detail-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tx-detail-button {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    padding: 0 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.tx-detail-button--ghost {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #575d76;
}

.tx-detail-button--ghost:hover {
    background: #f7f9f9;
}

.tx-detail-button--primary {
    background: var(--tx-color-primary);
    color: #fff;
}

.tx-detail-button--primary:hover {
    filter: brightness(1.05);
}

.tx-detail-button--block {
    width: 100%;
}

.tx-detail-link-action {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #575d76;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.tx-detail-link-action:hover {
    color: var(--tx-color-primary);
}

.tx-detail-summary-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
}

.tx-detail-summary-top {
    padding-bottom: 1rem;
    border-bottom: 1px solid #edf2f2;
}

.tx-detail-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c8299;
}

.tx-detail-summary-top h2 {
    margin-top: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #3e445b;
}

.tx-detail-summary-top p:last-child {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #7c8299;
}

.tx-detail-summary-links {
    display: grid;
    gap: 0;
}

.tx-detail-summary-link {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #edf2f2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tx-detail-summary-link__label {
    font-size: 0.75rem;
    font-weight: 700;
}

.tx-detail-summary-link__value {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2f3a4f;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.tx-detail-summary-link:hover .tx-detail-summary-link__value,
.tx-detail-summary-link:focus-visible .tx-detail-summary-link__value {
    color: var(--tx-color-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.tx-detail-summary-link:focus-visible {
    outline: 2px solid var(--tx-color-primary-alpha-18);
    outline-offset: 3px;
    border-radius: var(--radius);
}

.tx-detail-summary-link--accent .tx-detail-summary-link__value {
    color: var(--tx-color-primary);
}

.tx-detail-summary-list {
    display: grid;
    gap: 0;
}

.tx-detail-summary-list div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #edf2f2;
    font-size: 0.75rem;
}

.tx-detail-summary-list dt {
    font-size: 0.75rem;
    font-weight: 700;
}

.tx-detail-summary-list dd {
    text-align: right;
    font-weight: 600;
    color: #3e445b;
}

.tx-detail-quick-actions {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.tx-detail-quick-actions .tx-detail-eyebrow {
    margin-bottom: 0.5rem;
}

.tx-detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfa;
    padding: 0.5rem 1rem;
}

.tx-detail-panel-body {
    padding: 1.25rem;
}

.tx-detail-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tx-detail-panel.hidden {
    display: none;
}

.tx-detail-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.tx-detail-panel-head h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #3e445b;
}

.tx-detail-panel-head p {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #7c8299;
}

.tx-detail-panel-head--sub {
    align-items: center;
}

.tx-detail-form-grid {
    display: grid;
    gap: 1rem;
}

.tx-detail-form-grid--compact {
    gap: 0.875rem;
}

.tx-detail-form-grid--line {
    gap: 1rem 1.5rem;
}

.tx-detail-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.5rem;
}

.tx-detail-field label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3e445b;
}

.tx-detail-field input,
.tx-detail-field select,
.tx-detail-field textarea {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(109, 122, 120, 0.3);
    border-radius: var(--radius);
    background: #fff;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #334155;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tx-detail-field input:focus,
.tx-detail-field select:focus,
.tx-detail-field textarea:focus {
    outline: none;
    border-color: rgb(0 103 100 / 1);
    box-shadow: 0 0 0 2px rgba(0, 103, 100, 0.2);
}

.tx-detail-field input.is-invalid,
.tx-detail-field select.is-invalid,
.tx-detail-field textarea.is-invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid,
[data-field-group].is-invalid {
    border-color: #ba1a1a !important;
    box-shadow: 0 0 0 2px rgba(186, 26, 26, 0.12) !important;
}

.tx-detail-field input[readonly],
.tx-detail-field textarea[readonly] {
    background: #fff;
    color: #3e445b;
    cursor: default;
}

.tx-detail-field input[readonly]:hover,
.tx-detail-field textarea[readonly]:hover {
    border-color: rgba(0, 103, 100, 0.35);
}

.tx-detail-field input[readonly]:focus,
.tx-detail-field textarea[readonly]:focus {
    border-color: rgb(0 103 100 / 1);
    box-shadow: 0 0 0 2px rgba(0, 103, 100, 0.2);
}

.tx-detail-field textarea {
    min-height: 5rem;
    resize: vertical;
}

.tx-detail-field--line {
    gap: 0.25rem;
}

.tx-detail-field--line label {
    font-size: 0.7rem;
    font-weight: 500;
}

.tx-detail-field--line input,
.tx-detail-field--line select,
.tx-detail-field--line textarea {
    border: 0;
    border-bottom: 1px solid #edf2f2;
    border-radius: var(--radius);
    background: transparent;
    box-shadow: none;
    padding: 0 0 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #3e445b;
}

.tx-detail-field--line input:hover,
.tx-detail-field--line select:hover,
.tx-detail-field--line textarea:hover {
    border-bottom-color: var(--tx-color-primary-alpha-42);
}

.tx-detail-field--line input:focus,
.tx-detail-field--line select:focus,
.tx-detail-field--line textarea:focus {
    border: 0;
    border-bottom: 1px solid var(--tx-color-primary);
    box-shadow: none;
}

.tx-detail-field--line input.is-invalid,
.tx-detail-field--line select.is-invalid,
.tx-detail-field--line textarea.is-invalid {
    border: 0 !important;
    border-bottom: 1px solid #ba1a1a !important;
    box-shadow: none !important;
}

.tx-detail-list {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}

.tx-detail-list-item {
    display: grid;
    gap: 0.375rem;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.125rem;
}

.tx-detail-list-item:last-child {
    border-bottom: 0;
}

.tx-detail-list-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tx-detail-list-value {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #3e445b;
}

.tx-detail-note {
    border: 1px solid #d7e9e6;
    border-radius: var(--radius);
    background: #f7fbfb;
    padding: 0.875rem 1rem;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #575d76;
}

.tx-detail-subsection {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tx-detail-kv-grid {
    display: grid;
    gap: 1rem 1.5rem;
}

.tx-detail-kv-item {
    display: block;
    min-height: auto;
    padding: 0 0 0.875rem;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #edf2f2;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tx-detail-kv-item dt {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.tx-detail-kv-item dd {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 500;
    color: #3e445b;
    word-break: break-word;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.tx-service-settle,
.tx-service-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tx-service-panel.hidden {
    display: none;
}

.tx-service-table-wrap,
.tx-service-mini-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #fff;
}

.tx-service-list-table-wrap {
    display: none;
}

.tx-manager-list-table-wrap {
    display: block;
}

.tx-service-mini-table {
    min-width: 360px;
}

.tx-service-row {
    cursor: pointer;
}

.tx-table tbody tr[data-service-selected="true"] td {
    background: #edf7f6;
}

.tx-table tbody tr[data-service-selected="true"] td:first-child {
    box-shadow: inset 3px 0 0 var(--tx-color-primary);
}

.tx-service-row:focus-visible td {
    outline: 2px solid var(--tx-color-primary-focus-strong);
    outline-offset: -2px;
}

.tx-service-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tx-color-primary-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tx-service-link:focus-visible {
    outline: 2px solid var(--tx-color-primary-focus-strong);
    outline-offset: 2px;
    border-radius: var(--radius);
}

.tx-service-reserve-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    margin-left: 0.375rem;
    padding: 0.125rem 0.4375rem;
    border: 1px solid rgba(75, 95, 122, 0.16);
    background: #f1f5fb;
    color: #4b5f7a;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.2;
}

.tx-service-card-list {
    display: grid;
    gap: 0.75rem;
}

.tx-service-card-row {
    display: grid;
    gap: 0.625rem;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #fff;
    padding: 0.875rem;
    text-align: left;
}

@media (width < 1280px) {
    [data-page-menu="payment-create"] > div.tx-bg-shell {
        background-color: var(--tx-color-shell) !important;
    }

    [data-page-menu="payment-create"] > div > section {
        border-color: rgb(188 201 200 / 0.1);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    }

    [data-page-menu="payment-create"] .tx-select-wrap--field,
    [data-page-menu="payment-create"] .tx-select-wrap--field .tx-select-trigger {
        min-height: 2.75rem;
    }

    [data-page-menu="payment-create"] [data-payment-service-card-list] .tx-service-card-row {
        border-color: rgb(188 201 200 / 0.1);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    }
}

@media (min-width: 1280px) {
    [data-page-menu="payment-create"] > div.tx-bg-shell {
        max-width: none;
        background-color: transparent !important;
    }

    [data-page-menu="payment-create"] > div > section {
        border-color: #e5e7eb;
        border-radius: var(--radius);
        background: #fff;
        box-shadow: none;
    }

    [data-page-menu="payment-create"] .tx-select {
        border: 0;
        border-radius: var(--radius);
        background: transparent;
    }
}

.tx-service-card-row[data-service-selected="true"] {
    border-color: var(--tx-color-primary-focus-strong);
    background: #edf7f6;
}

.tx-service-card-row:focus-visible {
    outline: 2px solid var(--tx-color-primary-focus-strong);
    outline-offset: 2px;
}

.tx-service-card-row__top,
.tx-service-card-row__meta,
.tx-service-card-row__badges {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.625rem;
}

.tx-service-card-row__top {
    justify-content: space-between;
}

.tx-service-card-row__top strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--tx-color-primary-strong);
}

.tx-service-card-row__top em {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    font-style: normal;
    color: #575d76;
}

.tx-service-card-row__meta {
    font-size: 0.75rem;
    color: #3e445b;
}

.tx-service-card-row__meta > span,
.tx-service-card-row__badges > span:not(.tx-service-reserve-badge) {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tx-service-card-row__meta em,
.tx-service-card-row__badges em {
    font-size: 0.6875rem;
    font-style: normal;
    font-weight: 600;
    color: #575d76;
}

.tx-service-detail-grid,
.tx-service-fee-grid {
    display: grid;
    gap: 1rem;
}

.tx-service-info-card {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #fff;
    padding: 1rem;
}

.tx-service-card-head {
    margin-bottom: 1rem;
}

.tx-service-card-head h4,
.tx-service-fee-grid h5 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #3e445b;
}

.tx-service-card-head p {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #7c8299;
}

.tx-service-current-summary {
    margin-bottom: 1rem;
    border-bottom: 1px solid #edf2f2;
    padding-bottom: 1rem;
}

.tx-service-current-summary h4 {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.tx-service-current-summary p {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #7c8299;
}

.tx-service-disclosure-btn {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7e9e6;
    border-radius: var(--radius);
    background: #f7fbfb;
    padding: 0 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tx-color-primary-strong);
}

.tx-service-disclosure-btn--wide {
    width: 100%;
    justify-content: space-between;
}

.tx-service-disclosure-btn:focus-visible {
    outline: 2px solid var(--tx-color-primary-focus-strong);
    outline-offset: 2px;
}

.tx-service-disclosure-panel {
    margin-top: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #fff;
    padding: 1rem;
}

.tx-service-section-desc {
    margin-bottom: 1rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #7c8299;
}

.tx-service-note {
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #f9fafb;
    padding: 0.75rem 0.875rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #6b7280;
}

.tx-service-key-value {
    overflow: hidden;
    max-width: 100%;
    font-family: tx-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tx-service-key-muted {
    color: #7c8299;
}

.tx-service-error {
    margin-bottom: 1rem;
    border: 1px solid #f6d2d6;
    border-radius: var(--radius);
    background: #fff8f8;
    padding: 0.75rem 0.875rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #be4458;
}

.tx-service-empty {
    display: flex;
    min-height: 12rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: 1px dashed #d1d5db;
    border-radius: var(--radius);
    background: #fff;
    padding: 1rem;
    text-align: center;
}

.tx-service-empty--compact {
    min-height: 5.5rem;
    padding: 0.875rem;
}

.tx-service-empty__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #3e445b;
}

.tx-service-empty__desc {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #7c8299;
}

@media (min-width: 840px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:p-6 {
        padding: 1.5rem;
    }

    .tx-detail-header-main {
        padding: 1.5rem;
    }

    .tx-detail-panel-body {
        padding: 1.5rem;
    }

    .tx-detail-kv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tx-detail-kv-item--wide {
        grid-column: span 2 / span 2;
    }

    .tx-detail-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tx-detail-field--wide {
        grid-column: span 2 / span 2;
    }

    .tx-detail-list-item {
        grid-template-columns: 180px minmax(0, 1fr);
        align-items: center;
        gap: 1rem;
    }

    .tx-service-card-list {
        display: none;
    }

    .tx-service-list-table-wrap {
        display: block;
    }
}

@media (min-width: 1280px) {
    .lg\:grid-cols-\[220px_minmax\(0\,1fr\)\] {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .tx-service-detail-grid,
    .tx-service-fee-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tx-detail-shell {
        grid-template-columns: 340px minmax(0, 1fr);
        align-items: start;
    }

    .tx-detail-sidebar {
        position: sticky;
        top: 1.5rem;
    }
}

.text-blue {
    color: #0050ff !important;
}
.file-view-icon { display: inline-flex; align-items: center; justify-content: center; padding: 3px; vertical-align: middle; border-radius: 4px; }
.file-view-icon .material-symbols-outlined { font-size: 18px; }
.file-view-icon:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.text-red {
    color: #ff0000 !important;
}

.text-deposit {
    color: #1d4ed8 !important;
}

.text-withdraw {
    color: #b91c1c !important;
}


#global-side-panel .modal-wrapper {
    bottom: auto;
    height: 100vh;
    height: 100dvh;
}

#global-center-modal .modal-wrapper {
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
}

#global-center-modal .modal-content {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.pr-14 {
    padding-right: 3.5rem;
}

.material-symbols-outlined {
    visibility: hidden;
}

:root[data-material-symbols="ready"] .material-symbols-outlined {
    visibility: visible;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: 0.75rem;
    z-index: 200;
    border-radius: var(--radius);
    background: var(--tx-color-primary-deep);
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 0.15s ease-in-out;
}

.skip-link:focus {
    transform: translateY(0);
}

@media (pointer: coarse) {
    .tx-page-btn,
    .tx-detail-button,
    .tx-floating-input,
    .tx-floating-select,
    .tx-select,
    .search-submit-btn,
    .trx-search-submit,
    .trx-quick-chip,
    .topbar-mobile-toggle,
    .trx-mobile-input,
    .trx-mobile-select,
    .tx-sidebar-link,
    .tx-sidebar-group-trigger,
    .tx-sidebar-sublink {
        min-height: 2.75rem;
    }
}

.tx-sidebar-link:focus-visible,
.tx-sidebar-group-trigger:focus-visible,
.tx-sidebar-sublink:focus-visible,
.tx-topbar-refresh:focus-visible,
.tx-topbar-menu:focus-visible,
.tx-topbar-back:focus-visible,
.tx-notification-close:focus-visible,
[data-wide-view-toggle]:focus-visible,
[data-app-logout]:focus-visible,
.topbar-mobile-toggle:focus-visible,
.search-submit-btn:focus-visible,
.trx-search-submit:focus-visible,
.tx-page-btn:focus-visible,
.tx-detail-button:focus-visible,
.trx-quick-chip:focus-visible {
    outline: 2px solid var(--tx-color-primary);
    outline-offset: 2px;
}

#app-sidebar .tx-sidebar-link:focus-visible,
#app-sidebar .tx-sidebar-group-trigger:focus-visible,
#app-sidebar .tx-sidebar-sublink:focus-visible,
#app-sidebar .tx-sidebar-account-actions a:focus-visible,
#app-sidebar .tx-sidebar-account-actions button:focus-visible {
    outline-color: #5eead4;
}

@media (prefers-reduced-motion: reduce) {
    #app-sidebar,
    #sidebar-backdrop,
    .tx-sidebar-group-trigger .material-symbols-outlined,
    .tx-sidebar-sublink .material-symbols-outlined {
        transition-duration: 0.01ms !important;
    }

    .tx-view-state__spinner {
        animation-duration: 1.6s;
    }
}
/* 업무 폼의 선택 열·상세 입력·작업 확인창 */
[data-business-page] [hidden] { display: none !important; }
[data-business-page] .tx-table-select-cell + .tx-table-sticky-left { left: 40px; }
[data-business-page] button:disabled { cursor: not-allowed; opacity: .45; }
.business-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.business-fields label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted-foreground); }
.business-fields input, .business-fields select, .business-fields textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--card, white); color: inherit; }
.business-fields input[readonly] { background: var(--muted); }
.business-fields textarea { min-height: 100px; }
[data-page-menu="accounting-data"] .tx-table thead th,
[data-page-menu="accounting-data"] .tx-table tbody td { font-size: 11px; }

/* PC 메뉴 접기는 모바일 레이어 메뉴 및 그룹 펼침과 독립적으로 표시한다. */
.tx-sidebar-collapse { display:none; }
@media (min-width:1280px) {
    #app-sidebar .tx-sidebar-brand { padding-top:0; padding-right:0; margin-right:-8px; gap:6px; }
    #app-sidebar .tx-sidebar-brand > a { gap:6px; }
    #app-sidebar .tx-sidebar-brand > a > div:first-child,
    #app-sidebar .tx-sidebar-brand img { width:76px; height:30px; }
    #app-sidebar .tx-sidebar-collapse {
        display:flex; flex-shrink:0; align-items:center; justify-content:center;
        width:28px; height:28px; margin-left:auto; padding:0; border:0;
        background:transparent; color:#d6d3d1; cursor:pointer;
    }
    #app-sidebar .tx-sidebar-collapse:hover { background:transparent; color:#fafaf9; }
    #app-sidebar .tx-sidebar-collapse:focus-visible { outline:2px solid #a8a29e; outline-offset:2px; }
    #app-sidebar .tx-sidebar-collapse svg { flex:none; width:14px; height:14px; }

}

.tx-topbar-desktop { height:52px; }
.tx-topbar-desktop > div { gap:8px; }
.tx-topbar-desktop :is(a, button).rounded-full { width:32px; height:32px; border-color:#d6d3d1; }
.tx-topbar-desktop .material-symbols-outlined { font-size:16px; }
.tx-topbar [data-notification-toggle] > .material-symbols-outlined { color:#292524; font-size:16px; }
.tx-topbar [data-notification-toggle].has-notifications > .material-symbols-outlined { color:#dc2626; }
.tx-topbar [data-notification-dot] { background:#dc2626 !important; }
.tx-topbar-desktop > div > .w-px { height:24px; }
.tx-topbar-desktop section { gap:8px; padding-left:4px; }
.tx-topbar-desktop section > div:last-child { width:28px; height:28px; font-size:12px; }
.tx-topbar-desktop section p { line-height:16px; }

/* 고객사 ID와 중복조회 버튼을 하나의 입력 그룹으로 표시한다. */
.tx-review-id-field {
    display: flex; align-items: stretch; min-width: 0;
    border: 1px solid #d6d3d1; border-radius: 6px; background: #fff;
}
.tx-review-id-field:focus-within { border-color: #57534e; box-shadow: 0 0 0 3px #a8a29e33; }
.tx-review-id-field > #review-mchtId {
    width: 0; min-width: 0; flex: 1; border: 0; border-radius: 6px 0 0 6px !important;
    background: transparent; outline: none; box-shadow: none;
}
.tx-review-id-field > [data-review-id-check] {
    flex: none; margin: 0; height: auto; border: 0; border-left: 1px solid #d6d3d1;
    border-radius: 0 6px 6px 0 !important; background: #f5f5f4; color: #292524;
    padding: 0 12px; white-space: nowrap;
}
.tx-review-id-field > [data-review-id-check]:hover { background: #e7e5e4; }
.tx-review-id-field > [data-review-id-check]:focus-visible { outline: 2px solid #57534e; outline-offset: -3px; }

/* 파트너 월 정산 생성은 화면 중앙의 일반 업무 모달로 표시한다. */
dialog[data-business-modal].modal-dialog.ptn-generate-dialog {
    inset: 0; width: min(520px, calc(100vw - 32px)); height: max-content !important; min-height: 0;
    max-height: calc(100dvh - 32px); margin: auto; overflow: hidden; background: #fff;
}
.ptn-generate-dialog > form { display: flex; min-height: 0; flex: 0 0 auto; flex-direction: column; overflow: visible; }
dialog[data-business-modal].ptn-generate-dialog > .business-dialog-header { padding: 14px 18px; }
dialog[data-business-modal].ptn-generate-dialog > .business-dialog-header .business-dialog-title { font-size: 15px; }
.ptn-generate-dialog .business-dialog-body { flex: 0 0 auto; padding: 16px 18px; background: #fafaf9; }
.ptn-generate-dialog > form > .business-dialog-footer {
    position: static; flex: 0 0 auto; margin: 0; padding: 9px 18px; border-top: 1px solid #e7e5e4;
}

/* 파트너 정산서는 A4 세로 용지 비율을 유지한 우측 상세 패널로 표시한다. */
.ptn-invoice-dialog {
    inset: var(--business-dialog-top, 0px) 0 0 auto;
    width: min(720px, 100vw); max-width: 100vw;
    height: calc(100dvh - var(--business-dialog-top, 0px)); max-height: none;
    margin: 0; padding: 0; overflow: hidden; border: 0; border-left: 1px solid #d6d3d1; border-radius: 0;
    background: #e7e5e4; box-shadow: -12px 0 40px #1c191729;
}
.ptn-invoice-dialog::backdrop { background: #1c191799; backdrop-filter: blur(2px); }
.ptn-invoice-toolbar {
    display: flex; height: 50px; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #d6d3d1; background: #fff; padding: 0 14px;
}
.ptn-invoice-toolbar p { font-size: 9px; font-weight: 700; letter-spacing: .12em; color: #78716c; }
.ptn-invoice-toolbar h2 { margin-top: 1px; font-size: 13px; font-weight: 700; color: #1c1917; }
.ptn-invoice-toolbar .ptn-invoice-print-button { min-height: 24px; padding: 3px 7px; gap: 3px; border-radius: 4px; font-size: 10px; }
.ptn-invoice-toolbar .ptn-invoice-print-button .material-symbols-outlined { font-size: 13px; }
.ptn-invoice-scroll { height: calc(100% - 50px); overflow: auto; padding: 10px; }
.ptn-invoice-dialog [data-ptn-print-document] {
    width: 100%; min-height: 0; margin: 0 auto; overflow: hidden;
    border: 1px solid #d6d3d1; border-radius: 3px; background: #fff; color: #292524;
    box-shadow: 0 8px 24px #1c19171a;
}
.ptn-invoice-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    border-bottom: 1px solid #d6d3d1; padding: 18px 22px 15px;
}
.ptn-invoice-kicker { font-size: 9px; font-weight: 800; letter-spacing: .18em; color: #2563eb; }
.ptn-invoice-head h1 { margin-top: 3px; font-size: 21px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: #1c1917; }
.ptn-invoice-head-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; text-align: right; }
.ptn-invoice-number { font-size: 10px; color: #78716c; }
.ptn-invoice-number strong { margin-left: 6px; color: #292524; }
.ptn-invoice-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid #d6d3d1; }
.ptn-invoice-info { min-width: 0; padding: 13px 15px; border-right: 1px solid #e7e5e4; }
.ptn-invoice-info:nth-child(2) { border-right: 0; }
.ptn-invoice-info h3 { font-size: 9px; font-weight: 800; letter-spacing: .12em; color: #78716c; }
.ptn-invoice-section-title span { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #292524; }
.ptn-invoice-partner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 5px; }
.ptn-invoice-partner strong { font-size: 13px; color: #1c1917; }
.ptn-invoice-partner span { font-size: 10px; color: #78716c; }
.ptn-invoice-info dl { margin-top: 4px; }
.ptn-invoice-info dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 1px 0; font-size: 10px; }
.ptn-invoice-info dt { color: #78716c; }
.ptn-invoice-info dd { max-width: 68%; text-align: right; font-weight: 600; color: #292524; overflow-wrap: anywhere; }
.ptn-invoice-account-block { margin-top: 11px; border-top: 1px solid #e7e5e4; padding-top: 8px; }
.ptn-invoice-account { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px; margin-top: 5px; font-size: 10px; color: #57534e; }
.ptn-invoice-account strong { font-weight: 700; color: #292524; }
.ptn-invoice-account > span[aria-hidden="true"] { color: #d6d3d1; }
.ptn-invoice-block { padding: 13px 15px; border-bottom: 1px solid #d6d3d1; }
.ptn-invoice-section-title { display: flex; align-items: baseline; gap: 7px; margin-bottom: 6px; }
.ptn-invoice-section-title h2 { margin: 0; font-size: 11px; font-weight: 500; color: #78716c; }
.ptn-invoice-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #d6d3d1; border-left: 1px solid #d6d3d1; }
.ptn-invoice-amounts > div { display: flex; align-items: center; justify-content: space-between; min-height: 29px; border-right: 1px solid #d6d3d1; border-bottom: 1px solid #e7e5e4; padding: 4px 8px; }
.ptn-invoice-amounts dt { font-size: 10px; color: #78716c; }
.ptn-invoice-amounts dd { font-size: 11px; font-weight: 650; color: #292524; }
.ptn-invoice-amounts .ptn-invoice-total { grid-column: 1 / -1; min-height: 34px; border-bottom: 0; background: #292524; padding-inline: 9px; }
.ptn-invoice-amounts .ptn-invoice-total dt { font-weight: 700; color: #d6d3d1; }
.ptn-invoice-amounts .ptn-invoice-total dd { font-size: 13px; font-weight: 800; color: #fff; }
.ptn-invoice-dialog .tx-table { font-size: 9px; }
.ptn-invoice-dialog .tx-table th,
.ptn-invoice-dialog .tx-table td { height: auto; padding: 4px 6px; }
.ptn-invoice-dialog .tx-table th { background: #f5f5f4; color: #57534e; }
.ptn-invoice-transactions td { vertical-align: top; }
.ptn-invoice-controls { padding: 8px 15px; border-bottom: 1px solid #d6d3d1; background: #fafaf9; }
.ptn-invoice-operations { display: grid; grid-template-columns: 1fr; gap: 9px; padding: 11px 15px 14px; background: #fafaf9; }
.ptn-invoice-operations > section { border: 1px solid #e7e5e4; border-radius: 6px; background: #fff; padding: 10px; }
.ptn-adjust-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.ptn-adjust-editor fieldset { width: 66.6667%; min-width: 0; justify-self: start; }
.ptn-invoice-operations [data-ptn-adjust-row] { grid-template-columns: minmax(0, 1fr) 140px; gap: 8px; }
.ptn-invoice-operations .tx-floating-field { min-height: 32px; }
.ptn-invoice-operations .tx-floating-input {
    height: 32px; min-height: 32px; padding: 11px 8px 2px; border-radius: 4px; font-size: 13px;
}
.ptn-invoice-operations .tx-floating-label { top: 2px; left: 8px; font-size: 9px; line-height: 10px; }
.ptn-invoice-operations .tx-badge { min-width: 42px; min-height: 24px; padding: 3px 8px; font-size: 10px; }
.ptn-adjust-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; min-height: 32px; }
@media (max-width: 480px) {
    .ptn-adjust-editor { grid-template-columns: minmax(0, 1fr); }
    .ptn-adjust-editor fieldset { width: 100%; }
    .ptn-invoice-operations [data-ptn-adjust-row] { grid-template-columns: minmax(0, 1fr); }
}

/* 파트너 정산 상세는 인쇄 시 INVOICE와 산출내역만 출력한다. */
@media print {
    @page { size: A4 portrait; margin: 10mm; }
    body:has([data-ptn-print-document]) { background: #fff !important; }
    body:has([data-ptn-print-document]) *,
    body:has([data-ptn-print-document]) *::before,
    body:has([data-ptn-print-document]) *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body:has([data-ptn-print-document]) #app-sidebar,
    body:has([data-ptn-print-document]) #sidebar-backdrop,
    body:has([data-ptn-print-document]) #app-main > header,
    body:has([data-ptn-print-document]) #app-main > [data-recent-visits-section],
    body:has([data-ptn-print-document]) #global-business-actions,
    [data-ptn-print-hidden] { display: none !important; }
    body:has([data-ptn-print-document]) #app-shell,
    body:has([data-ptn-print-document]) #app-main,
    body:has([data-ptn-print-document]) #app-content { display: block; min-height: 0; overflow: visible; }
    [data-ptn-print-document] {
        width: 100% !important; max-width: none !important;
        gap: 20px !important; padding: 0 !important; color: #292524 !important;
    }
    [data-ptn-invoice] { break-inside: avoid; border-radius: 12px !important; box-shadow: 0 1px 2px #0000000d !important; }
    [data-ptn-invoice] > header {
        display: flex !important; flex-direction: row !important; align-items: flex-start !important;
        justify-content: space-between !important; padding: 28px 32px !important;
    }
    [data-ptn-invoice] > header > :last-child { align-items: flex-end !important; }
    [data-ptn-invoice] > div.grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    [data-ptn-invoice] > div.grid > section { padding: 32px !important; border-bottom: 0 !important; }
    [data-ptn-invoice] > section.grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
    [data-ptn-invoice] > section.grid > div { grid-column: span 1 / span 1 !important; border-bottom: 0 !important; }
    [data-ptn-print-document] > section:not([data-ptn-invoice]) { break-inside: auto; }
    [data-ptn-print-document] .tx-table-wrap { overflow: visible !important; }
    [data-ptn-print-document] .tx-table { width: 100% !important; table-layout: auto; }
    [data-ptn-print-document] .tx-table thead { display: table-header-group; position: static !important; }
    [data-ptn-print-document] .tx-table tr { break-inside: avoid; }
    body:has(dialog[data-ptn-invoice-modal][open]) * { visibility: hidden !important; }
    body:has(dialog[data-ptn-invoice-modal][open]) dialog[data-ptn-invoice-modal],
    body:has(dialog[data-ptn-invoice-modal][open]) dialog[data-ptn-invoice-modal] * { visibility: visible !important; }
    body:has(dialog[data-ptn-invoice-modal][open]) [data-ptn-page] > :not(dialog[data-ptn-invoice-modal]) { display: none !important; }
    body:has(dialog[data-ptn-invoice-modal][open]) [data-ptn-page] { display: block !important; padding: 0 !important; }
    dialog[data-ptn-invoice-modal][open] {
        display: block !important; position: static !important; inset: auto !important;
        width: 190mm !important; height: auto !important; max-width: none !important; max-height: none !important;
        margin: 0 auto !important; padding: 0 !important; overflow: visible !important;
        border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important;
    }
    dialog[data-ptn-invoice-modal]::backdrop { display: none !important; }
    .ptn-invoice-scroll { height: auto !important; overflow: visible !important; padding: 0 !important; }
    .ptn-invoice-dialog [data-ptn-print-document] {
        width: 190mm !important; min-height: 0 !important; border: 0 !important;
        border-radius: 0 !important; box-shadow: none !important;
    }
    .ptn-invoice-head { padding: 12mm 10mm 8mm !important; }
    .ptn-invoice-info { padding: 6mm 7mm !important; }
    .ptn-invoice-block { padding: 6mm 7mm !important; }
    .ptn-invoice-dialog .tx-table { font-size: 8.5px !important; }
    .ptn-invoice-dialog .tx-table th,
    .ptn-invoice-dialog .tx-table td { padding: 5px 6px !important; }
}
