        .aws-cost-card {
            position: relative;
            grid-column: 1 / -1;
            min-width: 0;
            box-sizing: border-box;
            container-type: inline-size;
            min-height: 62px;
            padding: 9px 14px;
            border: 1px solid rgba(255, 153, 0, 0.55);
            background: linear-gradient(135deg, rgba(35, 47, 62, 0.96), rgba(20, 30, 45, 0.96));
            color: #f4f7fb;
        }
        .aws-cost-card:hover { transform: none; }
        .aws-cost-card .card-text {
            width: 100%;
            min-width: 0;
            display: grid;
            grid-template-columns: max-content max-content max-content;
            grid-template-areas:
                "title month total"
                "button button status";
            align-items: center;
            justify-content: start;
            column-gap: 16px;
            row-gap: 2px;
        }
        .aws-cost-card h3 {
            grid-area: title;
            display: flex;
            align-items: center;
            gap: 5px;
            margin: 0;
            white-space: nowrap;
            font-size: 1.15rem;
        }
        .aws-inline-logo {
            display: inline-block;
            width: 25px;
            height: 20px;
            flex: 0 0 auto;
            object-fit: contain;
        }
        .aws-cost-month-nav {
            grid-area: month;
            display: flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap;
        }
        .aws-cost-month-btn {
            padding: 3px 5px;
            border: 0;
            background: transparent;
            color: rgba(244, 247, 251, 0.62);
            cursor: pointer;
            font-size: 0.72rem;
            font-weight: 750;
        }
        .aws-cost-month-btn:hover { color: #fff; }
        .aws-cost-month-btn.is-current { color: #ffe16b; font-size: 0.82rem; }
        .aws-cost-month-btn:disabled { cursor: wait; opacity: 0.5; }
        .aws-cost-total {
            margin: 0;
            color: #ffb84d;
            font-size: clamp(1.8rem, 3vw, 2.6rem);
            font-weight: 800;
        }
        .aws-cost-total-row {
            grid-area: total;
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            justify-content: flex-start;
            gap: 8px 14px;
        }
        .aws-cost-krw {
            color: #72d9ff;
            font-size: clamp(1.25rem, 2.2vw, 1.75rem);
            font-weight: 750;
        }
        .aws-exchange-rate {
            margin-top: 2px;
            font-size: 0.72rem;
            opacity: 0.72;
        }
        .aws-cost-breakdown {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 6px 12px;
            margin-top: 12px;
            font-size: 0.82rem;
            opacity: 0.92;
        }
        .aws-cost-note {
            margin-top: 10px;
            font-size: 0.72rem;
            opacity: 0.7;
        }
        .aws-cost-payment-state {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            margin: 2px 0 0;
            padding: 2px 7px;
            border-radius: 999px;
            background: rgba(255, 184, 77, 0.14);
            color: #ffd27a;
            font-size: 0.68rem;
            font-weight: 800;
        }
        .aws-cost-payment-state.is-paid {
            background: rgba(56, 211, 145, 0.16);
            color: #70edb2;
        }
        .aws-cost-status-group { grid-area: status; min-width: 0; }
        #awsCostStatus { margin: 0; text-align: left; }
        .aws-cost-actions {
            grid-area: button;
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }

        /* 사이드바 등으로 카드 자체 폭이 좁아질 때 적용한다. */
        @container (max-width: 900px) {
            .aws-cost-card .card-text {
                grid-template-columns: max-content max-content minmax(0, max-content);
                grid-template-areas:
                    "title month total"
                    "button button status";
                justify-content: start;
                column-gap: 10px;
                row-gap: 5px;
            }
            .aws-cost-card h3 {
                font-size: clamp(0.9rem, 2.5cqi, 1.08rem);
            }
            .aws-cost-month-nav {
                min-width: 0;
                justify-content: flex-start;
                gap: 1px;
            }
            .aws-cost-month-btn { padding-inline: 3px; }
            .aws-cost-total-row {
                justify-content: flex-start;
                flex-wrap: nowrap;
                gap: 8px;
            }
            .aws-cost-total {
                min-width: 0;
                font-size: clamp(1.45rem, 4.2cqi, 2.1rem);
                white-space: nowrap;
            }
            .aws-cost-krw {
                min-width: 0;
                font-size: clamp(1rem, 2.8cqi, 1.35rem);
                white-space: nowrap;
            }
            #awsCostStatus {
                min-width: 0;
                text-align: left;
                overflow-wrap: anywhere;
            }
        }

        @container (max-width: 720px) {
            .aws-cost-card .card-text {
                grid-template-columns: max-content minmax(0, 1fr);
                grid-template-areas:
                    "title month"
                    "total total"
                    "button status";
            }
        }

        @container (max-width: 560px) {
            .aws-cost-card .card-text {
                grid-template-columns: 1fr;
                grid-template-areas: "title" "month" "total" "status" "button";
            }
            .aws-cost-total-row { flex-wrap: wrap; }
            #awsCostStatus { text-align: left; }
        }
        .aws-cost-detail-btn {
            width: fit-content;
            margin: 0;
            padding: 5px 11px;
            border: 1px solid rgba(255, 184, 77, 0.7);
            border-radius: 8px;
            background: rgba(255, 153, 0, 0.14);
            color: #fff;
            cursor: pointer;
            font-size: 0.72rem;
        }
        .aws-cost-detail-btn:disabled { cursor: wait; opacity: 0.62; }
        .aws-cost-paid-toggle {
            position: absolute;
            top: 7px;
            right: 8px;
            z-index: 2;
            padding: 3px 7px;
            border: 1px solid rgba(112, 237, 178, 0.72);
            border-radius: 999px;
            background: rgba(22, 94, 66, 0.84);
            color: #d8ffed;
            font-size: 0.62rem;
            font-weight: 800;
            cursor: pointer;
        }
        .aws-cost-paid-toggle.is-paid {
            border-color: rgba(255, 184, 77, 0.72);
            background: rgba(105, 62, 12, 0.88);
            color: #ffe0a3;
        }
        .aws-cost-paid-toggle:disabled { cursor: wait; opacity: 0.6; }
        .aws-cost-modal-content {
            position: relative;
            width: min(92vw, 860px);
            max-width: 860px;
            max-height: 86vh;
            overflow-y: auto;
            background: #172231;
            color: #f4f7fb;
            border: 1px solid rgba(255, 153, 0, 0.65);
            user-select: text;
            will-change: transform;
        }
        .aws-cost-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: -8px -4px 12px;
            padding: 8px 4px 10px;
            cursor: move;
            touch-action: none;
        }
        .aws-cost-modal-header h2 { display: flex; align-items: center; gap: 7px; margin: 0; }
        .aws-modal-logo { width: 31px; height: 24px; }
        .aws-cost-modal-header .close-button { flex: 0 0 auto; }
        .aws-cost-usd-cell span { display: block; white-space: nowrap; }
        .aws-cost-krw-cell { white-space: nowrap; }
        .aws-cost-type-cell { white-space: nowrap; }
        .aws-cost-summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            gap: 10px;
            margin: 16px 0;
        }
        .aws-cost-summary-box {
            padding: 12px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.07);
        }
        .aws-cost-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
            font-size: 0.86rem;
        }
        .aws-cost-table th, .aws-cost-table td {
            padding: 9px 7px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.14);
            text-align: right;
        }
        .aws-cost-table th:first-child, .aws-cost-table td:first-child { text-align: left; }
        .aws-cost-history-row { cursor: pointer; transition: background-color 0.18s ease; }
        .aws-cost-history-row:hover,
        .aws-cost-history-row:focus { background: rgba(114, 217, 255, 0.10); outline: none; }
        .aws-cost-history-row.is-selected { background: rgba(255, 153, 0, 0.16); }
        .aws-cost-history-row.is-selected td:first-child { color: #ffb84d; font-weight: 800; }
        .aws-cost-print-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 16px;
        }
        .aws-cost-print-btn {
            padding: 9px 13px;
            border: 1px solid rgba(114, 217, 255, 0.55);
            border-radius: 8px;
            background: rgba(114, 217, 255, 0.12);
            color: #fff;
            font-weight: 700;
            cursor: pointer;
        }
        .aws-cost-print-btn:hover { background: rgba(114, 217, 255, 0.22); }
        .aws-cost-print-btn:disabled { cursor: wait; opacity: 0.65; }
        .aws-printer-settings-btn { border-color: rgba(255, 184, 77, 0.75); background: rgba(255, 153, 0, 0.16); }
        .aws-printer-settings-btn:hover { background: rgba(255, 153, 0, 0.27); }
        .aws-printer-settings-modal { z-index: 10040; padding: 18px; }
        .aws-printer-settings-content {
            width: min(1180px, 96vw);
            max-width: 1180px;
            max-height: 94vh;
            padding: 0;
            overflow: hidden;
            border: 1px solid rgba(255, 153, 0, 0.72);
            background: #101b29;
            color: #f4f7fb;
        }
        .aws-printer-settings-header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:18px 22px; border-bottom:1px solid rgba(255,255,255,.13); background:#172638; }
        .aws-printer-settings-header h2 { margin:0; font-size:1.35rem; }
        .aws-printer-settings-header p { margin:6px 0 0; color:#aebed2; font-size:.85rem; }
        .aws-printer-settings-content .aws-printer-settings-close {
            flex:0 0 42px !important;
            width:42px !important;
            height:42px !important;
            min-width:42px !important;
            margin:0 !important;
            padding:0 !important;
            border:1px solid rgba(255,255,255,.22) !important;
            border-radius:50% !important;
            background:rgba(255,255,255,.08) !important;
            color:#fff !important;
            font-size:1.7rem;
            line-height:38px;
            cursor:pointer;
        }
        .aws-printer-settings-content .aws-printer-settings-close:hover { background:rgba(255,90,90,.3) !important; }
        .aws-printer-settings-layout { display:grid; grid-template-columns:minmax(250px, 330px) minmax(0, 1fr); height:calc(94vh - 80px); min-height:0; }
        .aws-printer-settings-panel { min-height:0; display:flex; flex-direction:column; padding:0; overflow:hidden; border-right:1px solid rgba(255,255,255,.12); }
        .aws-printer-settings-fields { min-height:0; display:flex; flex:1 1 auto; flex-direction:column; gap:13px; padding:18px; overflow-y:auto; scrollbar-gutter:stable; }
        .aws-printer-settings-panel label { display:grid; gap:6px; color:#d7e2ef; font-size:.82rem; font-weight:700; }
        .aws-printer-settings-panel label output { justify-self:end; margin-top:-22px; color:#ffb84d; }
        .aws-printer-settings-panel select,
        .aws-printer-settings-panel input[type="text"],
        .aws-printer-settings-panel textarea { width:100%; box-sizing:border-box; padding:9px 10px; border:1px solid #42566d; border-radius:7px; background:#0d1723; color:#fff; font:inherit; }
        .aws-printer-settings-panel input[type="range"] { width:100%; accent-color:#ff9900; }
        .aws-printer-settings-buttons { flex:0 0 auto; display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:12px 18px; border-top:1px solid rgba(255,255,255,.14); background:#172638; box-shadow:0 -8px 20px rgba(0,0,0,.22); }
        .aws-printer-preview-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; }
        .aws-printer-settings-buttons button,
        .aws-printer-preview-actions button { width:auto !important; margin:0 !important; padding:9px 12px !important; border:1px solid #526a83 !important; border-radius:7px !important; background:#1b2b3e !important; color:#fff !important; font-weight:700; cursor:pointer; }
        .aws-printer-settings-buttons button { width:100% !important; margin:0 !important; padding:11px 8px !important; }
        .aws-printer-settings-buttons .is-primary,
        .aws-printer-preview-actions .is-primary { border-color:#ffad33 !important; background:#d87800 !important; }
        .aws-printer-preview-panel { min-width:0; display:flex; flex-direction:column; padding:18px; overflow:hidden; }
        .aws-printer-preview-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
        .aws-printer-preview-toolbar span { color:#aebed2; font-size:.78rem; }
        .aws-printer-preview-stage { flex:1; min-height:0; display:flex; align-items:flex-start; justify-content:center; padding:22px; overflow:auto; border-radius:10px; background:repeating-linear-gradient(45deg,#263447,#263447 10px,#223043 10px,#223043 20px); }
        .aws-printer-preview { box-sizing:border-box; min-height:440px; padding:14px; color:#000; background:#fff; box-shadow:0 10px 35px rgba(0,0,0,.45); outline:2px solid transparent; transform-origin:top center; }
        .aws-printer-preview:focus { outline-color:#ff9900; }
        .aws-printer-preview .aws-browser-thermal { width:100%; }
        .aws-printer-preview.is-statement-preview { width:min(210mm, 100%) !important; font-family:"Malgun Gothic", sans-serif; color:#10233f; }
        .aws-printer-preview.is-statement-preview .aws-print-sheet { width:100%; }
        .aws-printer-preview.is-statement-preview .aws-print-brand-row,
        .aws-printer-preview.is-statement-preview .aws-print-title-row,
        .aws-printer-preview.is-statement-preview .aws-print-section-title,
        .aws-printer-preview.is-statement-preview .aws-print-signature { display:flex; align-items:center; justify-content:space-between; gap:12px; }
        .aws-printer-preview.is-statement-preview .aws-print-brand-row { padding-bottom:10px; border-bottom:2px solid #173f70; }
        .aws-printer-preview.is-statement-preview .aws-print-brand { font:bold 30px Arial; }
        .aws-printer-preview.is-statement-preview h1 { font-size:1.7rem; }
        .aws-printer-preview.is-statement-preview .aws-print-summary { display:grid; grid-template-columns:2fr 1fr; gap:10px; }
        .aws-printer-preview.is-statement-preview .aws-print-summary > div { padding:12px; border:1px solid #7ca6d0; border-radius:8px; }
        .aws-printer-preview.is-statement-preview .aws-print-summary strong { display:block; font-size:1.25rem; }
        .aws-printer-preview.is-statement-preview table { width:100%; border-collapse:collapse; }
        .aws-printer-preview.is-statement-preview th,
        .aws-printer-preview.is-statement-preview td { padding:7px; border-bottom:1px solid #ccd7e2; text-align:left; }
        .aws-printer-preview.is-statement-preview th:last-child,
        .aws-printer-preview.is-statement-preview td:last-child { text-align:right; }
        .aws-printer-preview.is-statement-preview .aws-print-total { background:#173f70; color:#fff; }
        .aws-printer-preview.is-statement-preview .aws-print-notes { margin-top:15px; border-top:2px solid #173f70; }
        .aws-printer-preview-actions { flex:0 0 auto; justify-content:flex-end; margin-top:12px; }
        .aws-print-receipt { display: none; }
        @media print {
            @page { size: A4 portrait; margin: 15mm 35mm 15mm; }
            html, body { margin: 0 !important; padding: 0 !important; height: auto !important; }
            body > * { display: none !important; }
            body > #awsPrintReceipt {
                display: block !important;
                color: #10233f;
                background: #fff;
                font-family: "Malgun Gothic", "Noto Sans KR", sans-serif;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
            .aws-print-sheet {
                width: 100%;
                max-width: none;
                max-height: 267mm;
                margin: 0;
                font-size: 13px;
                zoom: 0.86;
                break-inside: avoid;
                page-break-inside: avoid;
                page-break-after: avoid;
            }
            .aws-browser-thermal { box-sizing:border-box; width:52mm; margin:0 auto; padding:.5mm 0; color:#000; font:700 8.2pt/1.28 "Malgun Gothic", "Noto Sans KR", sans-serif; word-break:keep-all; }
            .aws-browser-thermal * { box-sizing:border-box; }
            .aws-browser-thermal h1 { margin:0 0 1.7mm; padding-bottom:1.2mm; border-bottom:1px dashed #000; font-size:11.5pt; line-height:1.2; text-align:center; }
            .aws-thermal-meta { padding-bottom:1.2mm; border-bottom:1px dashed #000; }
            .aws-thermal-section { margin:1.2mm 0 .5mm; font-size:9.5pt; }
            .aws-thermal-table { width:100%; border-collapse:collapse; table-layout:fixed; }
            .aws-thermal-table th { border-bottom:1px solid #000; padding:.6mm 0; text-align:left; }
            .aws-thermal-table th:last-child, .aws-thermal-table td:last-child { width:19mm; text-align:right; white-space:nowrap; }
            .aws-thermal-table td { padding:.4mm 0; }
            .aws-thermal-total { display:flex; justify-content:space-between; margin-top:.8mm; padding:1.1mm 0; border-top:1px dashed #000; border-bottom:3px double #000; font-size:10pt; }
            .aws-thermal-row { display:flex; justify-content:space-between; gap:1mm; padding:.7mm 0; border-bottom:1px dashed #000; }
            .aws-thermal-notes { margin:1.1mm 0; font-size:7pt; line-height:1.25; font-weight:500; }
            .aws-thermal-sign { margin-top:1.5mm; padding-top:1.2mm; border-top:1px dashed #000; }
            .aws-print-brand-row { display:flex; justify-content:space-between; align-items:center; border-bottom:2px solid #173f70; padding:0 4px 14px; }
            .aws-print-brand { font:700 34px/1 Arial, sans-serif; letter-spacing:-2px; color:#111827; }
            .aws-print-document-no { font-size:12px; font-weight:600; }
            .aws-print-title-row { display:flex; justify-content:space-between; align-items:center; padding:20px 4px 12px; }
            .aws-print-title-row h1 { margin:0; font-size:31px; line-height:1.2; letter-spacing:-1.4px; color:#102b50; }
            .aws-print-title-mark { width:64px; height:64px; display:grid; place-items:center; border-radius:50%; background:#edf4fa; color:#1d5f9e; font-size:30px; }
            .aws-print-meta { margin:2px 4px 16px; font-size:15px; font-weight:600; line-height:1.7; }
            .aws-print-summary { display:grid; grid-template-columns:2fr 1fr; gap:18px; margin-bottom:20px; }
            .aws-print-summary > div { border:1px solid #7ca6d0; border-radius:10px; padding:15px 17px; background:#f8fbff; }
            .aws-print-summary-main { position:relative; display:grid; grid-template-columns:1fr 1fr; gap:20px; padding-top:38px !important; }
            .aws-print-summary-tag { position:absolute; inset:0 auto auto 0; padding:8px 20px; border-radius:9px 0 9px 0; background:#123f70; color:#fff; font-size:15px; font-weight:800; }
            .aws-print-summary-main > div + div { border-left:1px solid #8aa5c0; padding-left:20px; }
            .aws-print-summary-label { font-size:14px; font-weight:700; }
            .aws-print-summary strong { display:block; margin-top:8px; font-size:30px; line-height:1.2; color:#102b50; }
            .aws-print-summary .krw { font-size:25px; }
            .aws-print-forecast strong { font-size:30px; margin:12px 0; }
            .aws-print-section-title { display:flex; justify-content:space-between; align-items:center; margin:0 0 10px; padding:0 4px 10px; border-bottom:2px solid #173f70; }
            .aws-print-section-title h2 { margin:0; font-size:20px; }
            .aws-print-section-title span { font-size:13px; }
            .aws-print-table { width:100%; border-collapse:collapse; }
            .aws-print-table th, .aws-print-table td { padding:9px 11px; border-bottom:1px dashed #b8c9da; }
            .aws-print-table th { background:#edf4fa; text-align:left; }
            .aws-print-table th:last-child, .aws-print-table td:last-child { text-align:right; }
            .aws-print-subtotal td { border-top:1px solid #7ca6d0; background:#f3f7fb; font-weight:800; }
            .aws-print-total td { border-top:2px solid #173f70; background:#173f70; color:#fff; font-size:18px; font-weight:800; }
            .aws-print-notes { margin-top:18px; padding:10px 6px 0; border-top:2px solid #173f70; font-size:11px; line-height:1.55; }
            .aws-print-notes h3 { margin:0 0 6px; font-size:18px; }
            .aws-print-notes ul { margin:0; padding-left:20px; }
            .aws-print-signature { display:flex; justify-content:space-between; margin-top:20px; padding:14px 6px 0; border-top:2px solid #173f70; font-size:14px; font-weight:700; }
        }
        @media (max-width: 600px) {
            .aws-cost-card { min-height: auto; padding: 12px; }
            .aws-cost-card .card-text {
                grid-template-columns: 1fr;
                grid-template-areas: "title" "month" "total" "status" "button";
                row-gap: 5px;
            }
            .aws-cost-total-row { justify-content: flex-start; }
            #awsCostStatus { text-align: left; }
            .aws-cost-table { font-size: 0.74rem; }
            .aws-cost-table th, .aws-cost-table td { padding: 7px 4px; }
            .aws-cost-type-cell { white-space: normal; }
            .aws-cost-modal-content { width: 96vw; padding: 16px 12px; }
            .aws-cost-paid-toggle { position: static; grid-area: button; width: fit-content; margin-left: auto; }
            .aws-printer-settings-modal { padding:5px; }
            .aws-printer-settings-content { width:99vw; max-height:98vh; }
            .aws-printer-settings-header { padding:13px; }
            .aws-printer-settings-header p { display:none; }
            .aws-printer-settings-layout { grid-template-columns:1fr; height:calc(98vh - 62px); overflow-y:auto; }
            .aws-printer-settings-panel { min-height:500px; overflow:hidden; border-right:0; border-bottom:1px solid rgba(255,255,255,.12); }
            .aws-printer-settings-fields { overflow-y:auto; }
            .aws-printer-settings-buttons { position:sticky; bottom:0; z-index:3; }
            .aws-printer-preview-panel { min-height:560px; overflow:visible; }
            .aws-printer-preview-stage { min-height:440px; padding:12px; }
            .aws-printer-preview-toolbar { align-items:flex-start; flex-direction:column; }
        }

        /* 폭이 넓지만 높이가 낮은 휴대전화 가로 화면 대응 */
        @media (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) {
            .aws-cost-card {
                min-height: auto;
                padding: 9px 12px;
                overflow: hidden;
            }
            .aws-cost-card .card-text {
                grid-template-columns: minmax(0, 1fr) auto;
                grid-template-areas:
                    "title total"
                    "month month"
                    "status status"
                    "button button";
                column-gap: 12px;
                row-gap: 5px;
            }
            .aws-cost-card h3 {
                min-width: 0;
                white-space: normal;
                overflow-wrap: anywhere;
                font-size: clamp(0.9rem, 2.8vw, 1.1rem);
            }
            .aws-cost-total-row {
                min-width: 0;
                justify-content: flex-end;
                gap: 4px 8px;
            }
            .aws-cost-total { font-size: clamp(1.45rem, 5vw, 2.25rem); }
            .aws-cost-krw { font-size: clamp(1rem, 3.4vw, 1.45rem); }
            .aws-cost-month-nav {
                width: 100%;
                min-width: 0;
                justify-content: center;
                gap: 2px;
            }
            .aws-cost-month-btn {
                min-width: 0;
                padding: 3px;
                font-size: clamp(0.62rem, 1.8vw, 0.72rem);
            }
            .aws-cost-month-btn.is-current { font-size: clamp(0.7rem, 2vw, 0.82rem); }
            #awsCostStatus {
                min-width: 0;
                text-align: left;
                overflow-wrap: anywhere;
            }
            .aws-cost-actions { min-width: 0; }
        }
