/* build 구성 */
*, ::before, ::after {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x:  ;
    --tw-pan-y:  ;
    --tw-pinch-zoom:  ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position:  ;
    --tw-gradient-via-position:  ;
    --tw-gradient-to-position:  ;
    --tw-ordinal:  ;
    --tw-slashed-zero:  ;
    --tw-numeric-figure:  ;
    --tw-numeric-spacing:  ;
    --tw-numeric-fraction:  ;
    --tw-ring-inset:  ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur:  ;
    --tw-brightness:  ;
    --tw-contrast:  ;
    --tw-grayscale:  ;
    --tw-hue-rotate:  ;
    --tw-invert:  ;
    --tw-saturate:  ;
    --tw-sepia:  ;
    --tw-drop-shadow:  ;
    --tw-backdrop-blur:  ;
    --tw-backdrop-brightness:  ;
    --tw-backdrop-contrast:  ;
    --tw-backdrop-grayscale:  ;
    --tw-backdrop-hue-rotate:  ;
    --tw-backdrop-invert:  ;
    --tw-backdrop-opacity:  ;
    --tw-backdrop-saturate:  ;
    --tw-backdrop-sepia:  ;
    --tw-contain-size:  ;
    --tw-contain-layout:  ;
    --tw-contain-paint:  ;
    --tw-contain-style:  ;
}
::backdrop {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x:  ;
    --tw-pan-y:  ;
    --tw-pinch-zoom:  ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position:  ;
    --tw-gradient-via-position:  ;
    --tw-gradient-to-position:  ;
    --tw-ordinal:  ;
    --tw-slashed-zero:  ;
    --tw-numeric-figure:  ;
    --tw-numeric-spacing:  ;
    --tw-numeric-fraction:  ;
    --tw-ring-inset:  ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur:  ;
    --tw-brightness:  ;
    --tw-contrast:  ;
    --tw-grayscale:  ;
    --tw-hue-rotate:  ;
    --tw-invert:  ;
    --tw-saturate:  ;
    --tw-sepia:  ;
    --tw-drop-shadow:  ;
    --tw-backdrop-blur:  ;
    --tw-backdrop-brightness:  ;
    --tw-backdrop-contrast:  ;
    --tw-backdrop-grayscale:  ;
    --tw-backdrop-hue-rotate:  ;
    --tw-backdrop-invert:  ;
    --tw-backdrop-opacity:  ;
    --tw-backdrop-saturate:  ;
    --tw-backdrop-sepia:  ;
    --tw-contain-size:  ;
    --tw-contain-layout:  ;
    --tw-contain-paint:  ;
    --tw-contain-style:  ;
}/* ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com *//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}/* 상태 배지 (StatusBadge.razor) */
.status-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 0.25rem;
    padding: 3px 7px;
    background: #eef1f6;
    color: #607086;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.2;
}

.status-badge--success {
    background: #eaf5ee;
    color: #247653;
}

.status-badge--warning {
    background: #fff3df;
    color: #986113;
}

.status-badge--danger {
    background: #fdeceb;
    color: #b0433a;
}

.status-badge--info {
    background: #eaf0ff;
    color: #3355b4;
}

/* 위젯 카드 (PanelCard.razor) */
.panel-card {
    display: flex;
    min-width: 0px;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.5rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    border: 1px solid #d5deeb;
    box-shadow: 0 1px 2px #24365404;
    -moz-column-break-inside: avoid;
         break-inside: avoid;
}

.panel-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    min-height: 39px;
    border-bottom: 1px solid #e3eaf3;
    background: #f8faff;
}

.panel-heading-wrap {
    display: flex;
    min-width: 0px;
    align-items: center;
    gap: 7px;
}

.panel-marker {
    display: inline-block;
    height: 0.75rem;
    width: 0.25rem;
    flex-shrink: 0;
    border-radius: 0.125rem;
    background: var(--widget-marker, #8682cb);
}

.panel-card h3 {
    margin: 0px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #25344c;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.panel-eyebrow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #8893a5;
    font-size: 10px;
    font-weight: 400;
}

.panel-tools {
    display: flex;
    flex: none;
    align-items: center;
    gap: 0.25rem;
}

.panel-body {
    min-height: 0px;
    min-width: 0px;
    flex: 1 1 auto;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #b4c0d2 transparent;
}

/* 보드 열 안의 위젯 묶음 (DashboardSection.razor) */
.dashboard-section {
    margin-bottom: 0.875rem;
    --section-accent: #6691bc;
    --widget-marker: var(--section-accent);
}

.dashboard-section--purple {
    --section-accent: #9187ba;
}

.dashboard-section--green {
    --section-accent: #55a290;
}

.dashboard-section--orange {
    --section-accent: #c9924a;
}

.section-heading {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 27px;
    padding-top: 5px;
    border-top: 3px solid var(--section-accent);
    -moz-column-break-inside: avoid;
         break-inside: avoid;
    -moz-column-break-after: avoid;
         break-after: avoid;
}

.section-title-row {
    display: flex;
    min-width: 0px;
    align-items: baseline;
    gap: 0.5rem;
}

.section-heading h2 {
    margin: 0px;
    flex: none;
    font-size: 12px;
    font-weight: 700;
    color: #526584;
    line-height: 1.35;
}

.section-heading p {
    margin: 0px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #8893a5;
    font-size: 10px;
}

.section-actions {
    flex: none;
}

.section-content > * {
    -moz-column-break-inside: avoid;
         break-inside: avoid;
}

.section-content > * + * {
    margin-top: 0.625rem;
}

/* 고객검색 (CustomerSearchWidget.razor) */
.customer-search-widget {
    position: relative;
    flex: none;
    z-index: 60;
}

.customer-search-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-icon {
    line-height: 1;
    color: #63768f;
    font-size: 15px;
}

.customer-search-form input {
    min-width: 0px;
    border-radius: 0.25rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    width: 220px;
    height: 26px;
    padding: 0 8px;
    border: 1px solid #cfd8e7;
    color: #25344c;
    font-size: 11px;
}

.customer-search-form input::-moz-placeholder {
    color: #8b96a9;
}

.customer-search-form input::placeholder {
    color: #8b96a9;
}

.customer-search-form input:focus {
    border-color: #435bcc;
}

.customer-search-form button {
    cursor: pointer;
    white-space: nowrap;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    height: 26px;
    padding: 0 10px;
    border: 1px solid #d6dfee;
    border-radius: 5px;
    color: #25344c;
    font-size: 11px;
}

.customer-search-form button:hover:not(:disabled) {
    border-color: #9eaee3;
    color: #435bcc;
}

.customer-search-form .search-clear {
    color: #69788f;
}

.customer-search-form button:disabled,
.customer-search-form input:disabled {
    cursor: wait;
    opacity: 0.45;
}

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

.customer-search-results {
    position: absolute;
    right: 0px;
    overflow: hidden;
    border-radius: 0.375rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    top: 32px;
    width: 440px;
    max-width: 92vw;
    border: 1px solid #b6c4da;
    box-shadow: 0 14px 34px #1d2f4a33;
    color: #25344c;
}

.search-result-summary {
    display: flex;
    align-items: center;
    font-weight: 700;
    gap: 6px;
    padding: 5px 9px;
    border-bottom: 1px solid #c7d3e4;
    background: #e9eff8;
    color: #334761;
    font-size: 11px;
}

.customer-search-results ul {
    margin: 0px;
    list-style-type: none;
    overflow: auto;
    padding: 0px;
    max-height: 198px;
}

.customer-search-results li + li {
    border-top: 1px solid #eff3f9;
}

.customer-search-results li button {
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: baseline;
    gap: 0.5rem;
    border-width: 0px;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    text-align: left;
    padding: 5px 8px;
    color: #4c5a70;
    font-size: 11px;
}

.customer-search-results li button:hover,
.customer-search-results li button:focus-visible {
    background: #eaf1ff;
}

.result-name {
    font-weight: 600;
    color: #2b4ed4;
    overflow-wrap: anywhere;
}

.result-meta {
    min-width: 0px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #78849a;
    font-size: 10px;
}

.search-message,
.search-limit {
    margin: 0px;
    text-align: center;
    padding: 16px 10px;
    color: #78849a;
    font-size: 11px;
}

.search-message--error {
    color: #b0433a;
}

.search-limit {
    display: flex;
    align-items: center;
    padding: 6px 9px;
    border-top: 1px solid #e6ecf5;
    background: #fafbfe;
    color: #77839a;
    font-size: 10px;
    text-align: left;
}

@media (max-width: 900px) {
    .customer-search-form input {
        width: 120px;
    }
}

@media (max-width: 800px) {
    .customer-search-widget {
        width: 100%;
    }

    .customer-search-form input {
        flex: 1 1 0%;
        width: auto;
    }

    .customer-search-results {
        width: 100%;
    }
}

/* 고객 상세 화면 셸 (CustomerDashboard.razor)
   컴팩트 헤더 + 화면 높이에 맞춘 420px 열 가로 스크롤 보드 */
.customer-detail {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    background: #f2f4f9;
    color: #25344c;
    font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

/* ── 헤더 ── */
.detail-header {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.75rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    font-size: 12px;
    z-index: 30;
    height: 42px;
    min-height: 42px;
    padding: 0 15px;
    border-bottom: 1px solid #dce3ee;
}

.detail-header h1 {
    margin: 0px;
    flex: none;
    font-weight: 700;
    color: #8391a8;
    font-size: 11.5px;
    letter-spacing: 0.2px;
}

.detail-customer {
    min-width: 0px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 38vw;
    color: #1c2a42;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.45px;
    line-height: 1.1;
}

.detail-customer small {
    color: #7a879c;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    margin-left: 7px;
}

.detail-search {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.detail-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 6px;
}

.fixture-label {
    white-space: nowrap;
    border-radius: 0.25rem;
    padding: 3px 7px;
    background: #eef1f6;
    color: #607086;
    font-size: 10px;
    font-weight: 650;
}

.refreshed-at {
    white-space: nowrap;
    color: #758299;
    font-size: 11px;
}

.login-button {
    cursor: pointer;
    white-space: nowrap;
    font-weight: 700;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    height: 26px;
    padding: 0 12px;
    border: 1px solid #344c91;
    border-radius: 5px;
    background: #344c91;
    font-size: 11px;
}

.login-button:hover {
    background: #2b3f7a;
}

.icon-button {
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding: 0px;
    line-height: 1;
    text-decoration-line: none;
    width: 26px;
    height: 26px;
    border: 1px solid #d6dfee;
    border-radius: 5px;
    color: #25344c;
    font-size: 13px;
}

.icon-button:hover:not(:disabled) {
    border-color: #9eaee3;
    color: #435bcc;
}

.icon-button:disabled {
    cursor: wait;
    opacity: 0.45;
}

/* ── 작업 영역 / 보드 ── */
.dashboard-page {
    position: relative;
    display: flex;
    min-height: 0px;
    flex: 1 1 0%;
    flex-direction: column;
    overflow: auto;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    overscroll-behavior-x: contain;
    scrollbar-color: #a6b5ce #e2e8f1;
}

/* 한 열(420px)만 차지하고, 넘치는 위젯은 오른쪽 열로 이어진다. */
.dashboard-board {
    min-height: 0px;
    flex: 1 1 0%;
    width: 420px;
    -moz-column-width: 420px;
         column-width: 420px;
    -moz-column-gap: 12px;
         column-gap: 12px;
    -moz-column-fill: auto;
         column-fill: auto;
}

/* 한 위젯이 열 높이를 넘으면 열 사이로 쪼개지지 않도록 카드 내부 스크롤로 제한한다. */
.dashboard-board .panel-card {
    max-height: calc(100dvh - 150px);
}

/* 420px 열에서는 위젯 안의 2열 정의 목록을 1열로 표시한다. */
.customer-detail .dashboard-board .panel-body .definition-grid--two {
    grid-template-columns: 1fr;
}

.customer-detail .dashboard-board .panel-body .definition-grid > div {
    border-bottom: 1px solid var(--line-soft);
}

.customer-detail .dashboard-board .panel-body .definition-grid > div:last-child {
    border-bottom: 0;
}

.customer-detail .dashboard-board .panel-body .definition-grid .definition-span {
    grid-column: auto;
    border-top: 0;
}

/* ── 안내 / 오류 (보드 위 한 줄 배너, 가로 스크롤 시에도 왼쪽에 고정) ── */
.preview-notice,
.refresh-error {
    position: sticky;
    left: 0px;
    margin-bottom: 0.5rem;
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 0.375rem;
    gap: 2px 9px;
    padding: 5px 10px;
    border: 1px solid #e1e7f0;
    background: #f4f7fc;
    color: #586d86;
    font-size: 11px;
}

.preview-notice strong {
    font-weight: 800;
    color: #3355b4;
}

.api-notice code {
    border-radius: 0.125rem;
    padding: 1px 4px;
    background: #eaf0ff;
    color: #3355b4;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
}

.refresh-error {
    justify-content: space-between;
    border-color: #f0ddb8;
    background: #fff6e6;
    color: #83560a;
}

.refresh-error button,
.empty-state button {
    cursor: pointer;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding: 5px 12px;
    border: 1px solid #d6dfee;
    border-radius: 5px;
    color: #25344c;
    font-size: 12px;
}

.refresh-error button:hover,
.empty-state button:hover {
    border-color: #9eaee3;
    color: #435bcc;
}

.empty-actions {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* ── 검색 전 / 로딩 / 빈 상태 ── */
.loading-state,
.landing-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border-radius: 0.5rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    text-align: center;
    font-size: 12px;
    width: 520px;
    max-width: 96vw;
    margin: 40px auto;
    padding: 26px 22px;
    border: 1px solid #dce3ee;
    box-shadow: 0 2px 6px #1c2b4510;
    color: #6b788d;
    line-height: 1.8;
}

.loading-state strong,
.landing-state strong,
.empty-state strong {
    color: #25344c;
    font-size: 15px;
    letter-spacing: -0.3px;
}

.landing-symbol {
    margin-bottom: 0.375rem;
    display: grid;
    place-items: center;
    border-radius: 0.5rem;
    line-height: 1;
    width: 42px;
    height: 42px;
    background: #eff1fa;
    color: #5262b5;
    font-size: 24px;
    font-weight: 700;
}

.spinner {
    margin-bottom: 0.375rem;
}

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

.spinner {
    animation: hc-spin 1s linear infinite;
    border-radius: 9999px;
    width: 30px;
    height: 30px;
    border: 3px solid #dce3ee;
    border-top-color: #435bcc;
}

/* ── 반응형 ── */
@media (max-width: 1100px) {
    .fixture-label,
    .refreshed-at {
        display: none;
    }
}

@media (max-width: 900px) {
    .detail-customer {
        max-width: 44vw;
        font-size: 15px;
    }
}

/* 좁은 화면은 가로 보드 대신 한 열 세로 스크롤로 전환한다. */
@media (max-width: 800px) {
    .customer-detail {
        height: auto;
        overflow: visible;
        min-height: 100dvh;
    }

    .detail-header {
        height: auto;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 8px 12px;
    }

    .detail-search {
        margin-left: 0px;
        width: 100%;
        order: 3;
    }

    .detail-actions {
        margin-left: auto;
    }

    .dashboard-page {
        overflow: visible;
        padding: 0.75rem;
    }

    .dashboard-board {
        height: auto;
        width: 100%;
        -moz-column-width: auto;
             column-width: auto;
    }

    .dashboard-board .panel-card {
        max-height: none;
    }
}
