/**
 * 수정일자: 2026-10-17
 * 수정내용:
 * - 은행 입금내역에서 감지된 열 매핑을 등록 전에 확인하는 카드 스타일 추가
 * - 로그인, 대시보드와 회사정보 화면의 공통 디자인 구성
 * - 데스크톱 우선 입력 화면과 모바일 반응형 레이아웃 적용
 * - 다중 회사 카드 목록, 상태 배지와 선택형 입력 스타일 추가
 * - 거래처·품목 검색 도구, 목록 표와 모바일 카드형 표시 추가
 * - 자동 발급 코드를 보여주는 읽기 전용 안내 필드 추가
 * - 거래명세서 작성 그리드·합계·상세 문서의 반응형 스타일 추가
 * - 거래명세서 A4 인쇄 미리보기, 페이지 분할과 PDF 출력 스타일 추가
 * - PDF 공유 준비 상태와 모바일 인쇄 도구 버튼 배치 추가
 * - 거래처명에서 거래명세서 이력으로 이동하는 링크 스타일 추가
 * - 인쇄 상단 정보와 품목표가 만나는 경계선의 이중 테두리 제거
 * - 별도 입금 목록·잔액 요약·입금 후 예상잔액 화면 스타일 추가
 * - 거래명세서 목록 행·모바일 카드 전체 클릭 상태 스타일 추가
 * - 거래처·품목 공용 검색 선택창과 최근 선택 결과의 반응형 스타일 추가
 * - 월 검침 통합 입력·미검침 차후 정산 옵션과 상태 배지 스타일 추가
 * - 관리 목록 페이지 이동과 신규 품목 복제 후보 선택창 스타일 추가
 * - 거래명세서 연결 입금 입력·취소 영역 상태 스타일 추가
 * - 거래명세서 취소·정정 작업, 미수금 연령분석, 임대 일괄청구 반응형 스타일 추가
 * - 시스템 관리자 거래명세서 영구 삭제와 잔액 재계산 영역 스타일 추가
 * - 거래명세서 품목 검색 결과의 다중 체크와 일괄 추가 작업영역 스타일 추가
 * - 거래원장 데스크톱 표의 날짜·문서번호·금액 열 너비와 줄바꿈 정렬 보정
 * - 상단 메뉴를 5개 업무 드롭다운과 계정 메뉴로 축소
 * - 혼잡한 페이지 작업 버튼을 공용 더보기 드롭다운으로 정리
 * - 모바일에서 업무 메뉴를 2열 선택형으로 표시
 * - 세금계산서 표의 처리 상태 열 통합과 화면 맞춤 열 비율 적용
 * - 임대 거래처 엑셀 업로드 안내·요약·오류 미리보기 스타일 추가
 * - 공통 숫자 입력값의 오른쪽 정렬과 고정폭 숫자 표시 추가
 * - 거래명세서 품목행의 최근 판매단가와 확정 거래이력 표시 스타일 추가
 * - 세금계산서 날짜 조회·검증 요약·선택 목록·엑셀 저장 영역 스타일 추가
 * - 렌탈 견적서 기기 입력·요금 요약·상세와 A4 PDF 출력 스타일 추가
 * - 렌탈 원가모델 입력과 수익성·BEP 내부 분석 화면 스타일 추가
 * - 사용자·개인 작업공간 관리와 계정 비밀번호 화면 스타일 추가
 * - 회사 직인 PNG 업로드·미리보기·교체·해제 화면 스타일 추가
 * - 거래명세서 미수 상태와 명세서 지정 입금 요약 스타일 추가
 * - 거래명세서 목록의 미수 건 바로입금 버튼 스타일 추가
 * - 임대 거래처·장비, 월 사용량 청구, DC 합계와 임대 거래명세 인쇄 스타일 추가
 * - 대량 월 검침 미리보기의 정보 안내 메시지 스타일 추가
 * - 기간 거래원장 필터·합계·매출/입금 행과 인쇄용 스타일 추가
 * - 대시보드 공지 목록·공지 상세·관리자 작성 화면 스타일 추가
 * - Quill 공지 편집기·붙여넣은 글꼴 서식·외부 이미지의 반응형 표시 추가
 * - 월 검침 엑셀 대상 선택·업로드·검증 미리보기 화면 스타일 추가
 * - 월 임대 청구 검토·선택 일괄 확정 도구와 상태별 목록 강조 추가
 * - 은행 입금내역 자동 매칭 요약·후보 선택·중복 확인 화면 스타일 추가
 * - 거래처별 일반·임대 거래명세 구분 제목 스타일 추가
 * - 대시보드와 전체 화면의 작업공간 TODO·상태·반응형 스타일 추가
 * - 거래명세서 목록의 표시 건수 선택 필드를 위한 도구 모음 열 조정
 * - 택배 주소록 확인·수정 표와 XLSX 생성 작업영역 스타일 추가
 * - 거래명세서 검색 선택창의 관련도 강조·키보드 탐색·새 항목 연결 스타일 추가
 * - 입금·렌탈·임대관리 공용 검색 select와 직접 입력형 품목 검색 버튼 스타일 추가
 * - 입금 일괄등록 공유 검색 선택기와 월 임대처 검색·선택 도구 모음 스타일 추가
 * - 텔레그램 TODO 일회용 확인·제한 열람·재열람 감사 화면 스타일 추가
 * - 관리번호별 장비 생애 타임라인·누적 손익 카드와 모바일 세로 이력 스타일 추가
 * - 무칩 인증키 재고·호환그룹·일괄등록·상세 처리 화면의 반응형 스타일 추가
 * - 브라우저 전체 폭 통합 업무 달력과 일정 종류별 필터·상태 색상 추가
 * - 위험 장비 현황판의 요약·위험도·경고 근거·모바일 목록 스타일 추가
 * - 입금 XLS 변환 상태·행별 체크·정산 제외 요약 스타일 추가
 * - 입금 자동 매칭 표의 전체선택 제목 세로 배치와 고정 열 너비 추가
 * - 중복 입금 허용 체크박스 크기와 등록 거래처 열 내부 줄바꿈 보정
 * - 거래명세서 품목 즉시 등록 패널과 모바일 반응형 스타일 추가
 * - 로그인 화면 최신 중요 공지 배너와 가입 신청 문의 문구 스타일 추가
 * - 정정·취소 관리대장의 선택 업무 일괄 변경 도구와 반응형 스타일 추가
 * - 수정세금계산서 실제 발행일·승인번호·수정 사유 증빙 표시와 입력 스타일 추가
 * - 제조사·모델 데이터 품질 및 품질·수익성 현황판 반응형 스타일 추가
 * - 소모품·부품 보관처별 재고·이동·실사·취소 관리 반응형 스타일 추가
 * - 계약 갱신·교체·회수 검토와 고객 협의자료 반응형·인쇄 스타일 추가
 * - 계약 최종 결정·담당자·협의 예정일·변경 이력 관리 스타일 추가
 */

:root {
    --ink: #17333a;
    --muted: #66797d;
    --line: #d7e3e4;
    --paper: #ffffff;
    --canvas: #f2f7f7;
    --teal: #078c8d;
    --teal-dark: #056f70;
    --teal-soft: #e2f4f3;
    --danger: #a73838;
    --danger-soft: #fff0ef;
    --success: #176f4c;
    --success-soft: #e9f7ef;
    --shadow: 0 20px 55px rgba(22, 61, 66, 0.11);
}

* {
    box-sizing: border-box;
}

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

html {
    min-height: 100%;
    background: var(--canvas);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 0%, rgba(8, 140, 141, 0.09), transparent 28rem),
        var(--canvas);
    font-family:
        Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic",
        system-ui, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.topbar {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5vw;
    border-bottom: 1px solid rgba(7, 140, 141, 0.14);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.brand {
    flex: 0 0 auto;
    color: var(--teal-dark);
    font-size: 1.22rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1rem, 2.4vw, 2.5rem);
    margin-left: 3rem;
    color: #456166;
    font-size: 0.93rem;
}

.nav-main,
.nav-utility {
    display: flex;
    align-items: center;
}

.nav-main {
    min-width: 0;
    justify-content: flex-end;
    gap: 0.35rem;
    white-space: nowrap;
}

.nav-utility {
    min-height: 2.4rem;
    justify-content: flex-end;
    gap: 0.85rem;
    font-size: 0.88rem;
}

.nav a,
.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.nav a:hover,
.link-button:hover {
    color: var(--teal);
}

.nav-utility > a[aria-current="page"] {
    color: var(--teal-dark);
    font-weight: 800;
}

.nav form {
    display: inline;
    margin: 0;
}

.nav-menu {
    position: relative;
}

.nav-menu > summary {
    display: inline-flex;
    min-height: 2.45rem;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.72rem;
    border-radius: 9px;
    color: #35565b;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    user-select: none;
}

.nav-menu > summary::-webkit-details-marker,
.action-menu > summary::-webkit-details-marker {
    display: none;
}

.nav-menu > summary::marker,
.action-menu > summary::marker {
    content: '';
}

.nav-menu > summary span {
    color: #759094;
    font-size: 0.82rem;
    transition: transform 160ms ease;
}

.nav-menu[open] > summary span {
    transform: rotate(180deg);
}

.nav-menu > summary:hover,
.nav-menu > summary:focus-visible,
.nav-menu[open] > summary,
.nav-menu.is-active > summary {
    background: #e7f5f4;
    color: var(--teal-dark);
}

.nav-menu.is-active > summary {
    box-shadow: inset 0 -2px 0 var(--teal);
}

.nav-menu-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    min-width: 210px;
    gap: 3px;
    padding: 8px;
    border: 1px solid rgba(7, 140, 141, 0.2);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 38px rgba(20, 61, 65, 0.16);
}

.nav-main .nav-menu:nth-last-child(-n+2) .nav-menu-panel,
.nav-account .nav-menu-panel {
    right: 0;
    left: auto;
}

.nav-menu-panel a,
.nav-menu-logout {
    display: flex;
    width: 100%;
    min-height: 2.45rem;
    align-items: center;
    padding: 0.58rem 0.72rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #35565b;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    text-align: left;
    text-decoration: none;
}

.nav-menu-panel a:hover,
.nav-menu-panel a:focus-visible,
.nav-menu-panel a[aria-current="page"],
.nav-menu-logout:hover,
.nav-menu-logout:focus-visible {
    background: #edf8f7;
    color: var(--teal-dark);
}

.nav-menu-panel a[aria-current="page"] {
    font-weight: 800;
}

.nav-account > summary {
    background: #f4f8f8;
}

.nav-account .nav-menu-panel {
    min-width: 170px;
}

.nav-account .nav-menu-panel form {
    display: block;
    width: 100%;
}

.user-name {
    color: var(--ink);
    font-weight: 700;
}

.logout-button {
    display: grid;
    width: 1.7rem;
    height: 1.7rem;
    place-items: center;
    border-radius: 50%;
    font-size: 1.05rem;
    line-height: 1;
}

.logout-button:hover,
.logout-button:focus-visible {
    background: #e8f5f4;
    outline: none;
}

.page-shell {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0 80px;
}

.page-shell.page-shell-wide {
    width: calc(100% - 32px);
    max-width: 1880px;
    padding: 24px 0 40px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1,
h2,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -0.055em;
    line-height: 1.1;
}

h2 {
    margin: 0;
    font-size: 1.24rem;
    letter-spacing: -0.035em;
}

.muted {
    color: var(--muted);
}

.auth-card,
.panel {
    border: 1px solid rgba(7, 140, 141, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.auth-card {
    width: min(560px, 100%);
    margin: 5vh auto 0;
    padding: clamp(28px, 6vw, 52px);
}

.auth-card.compact {
    width: min(460px, 100%);
}

.login-page {
    width: 100%;
}

.login-notice-banner {
    width: 100%;
    padding: 17px 20px;
    border: 1px solid #f2a7a2;
    border-radius: 12px;
    background: #fff1f0;
    box-shadow: 0 10px 28px rgba(143, 43, 35, 0.08);
}

.login-notice-title {
    display: block;
    color: #b62c24;
    font-size: 1rem;
    font-weight: 900;
}

.login-notice-banner p {
    margin: 6px 0 0;
    color: #71342f;
    line-height: 1.65;
}

.login-page.has-login-notice .auth-card {
    margin-top: clamp(28px, 4vh, 48px);
}

.login-registration-note {
    width: min(460px, 100%);
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.login-registration-note a {
    color: #087f80;
    font-weight: 900;
    text-decoration: none;
}

.login-registration-note a:hover {
    text-decoration: underline;
}

.auth-card > .muted {
    margin: 14px 0 28px;
}

.stack-form {
    display: grid;
    gap: 19px;
    margin-top: 28px;
}

label {
    display: grid;
    gap: 7px;
    color: #27494f;
    font-size: 0.91rem;
    font-weight: 800;
}

.form-field {
    display: grid;
    gap: 7px;
    color: #27494f;
    font-size: 0.91rem;
    font-weight: 800;
}

label small,
.form-field small,
.form-note {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #bfd0d1;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--ink);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

input {
    height: 47px;
    padding: 0 13px;
}

textarea {
    min-height: 92px;
    padding: 12px 13px;
    resize: vertical;
}

select {
    height: 47px;
    padding: 0 38px 0 13px;
    appearance: none;
    background:
        #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%2366797d' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m1 1 5 5 5-5'/%3E%3C/svg%3E")
        no-repeat right 13px center;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(7, 140, 141, 0.11);
}

.primary-button,
.secondary-button,
.danger-button {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.secondary-button.small {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.82rem;
}

.primary-button {
    border: 1px solid var(--teal);
    background: var(--teal);
    color: #fff;
}

.primary-button:hover {
    border-color: var(--teal-dark);
    background: var(--teal-dark);
}

.secondary-button {
    border: 1px solid #b8cccd;
    background: #fff;
    color: #31575c;
}

.danger-button {
    border: 1px solid #b9342d;
    background: #fff;
    color: #a32620;
}

.danger-button:hover {
    background: #fff0ef;
}

.statement-document-actions {
    margin-bottom: 22px;
}

.statement-action-grid {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.statement-action-grid form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.statement-action-grid label {
    min-width: 230px;
}

.statement-action-grid .secondary-button {
    margin-top: 0;
}

.document-audit-note {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eef8f8;
}

.document-audit-note strong {
    margin-right: 8px;
}

.cancellation-note {
    color: #7d2823;
    background: #fff0ef;
}

.statement-admin-delete {
    margin-bottom: 22px;
    border-color: #e5b9b6;
    background: #fffafa;
}

.statement-delete-impact {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.statement-delete-impact div {
    padding: 12px 14px;
    border: 1px solid #ecd1cf;
    border-radius: 10px;
    background: #fff;
}

.statement-delete-impact dt {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.statement-delete-impact dd {
    margin: 4px 0 0;
    color: #8f2722;
    font-weight: 900;
}

.statement-delete-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.4fr) auto;
    align-items: end;
    gap: 12px;
}

.statement-delete-check {
    min-height: 45px;
    align-items: center;
}

.statement-delete-check input {
    margin-top: 0;
}

.statement-balance-recalculation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid #c8dddd;
    border-radius: 10px;
    background: #f5fbfb;
}

.statement-balance-recalculation p {
    margin: 0;
}

.receivable-aging-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.receivable-aging-summary article {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid #d4e4e5;
    border-radius: 13px;
    background: #fff;
}

.receivable-aging-summary span {
    color: #607679;
    font-size: 0.82rem;
    font-weight: 750;
}

.receivable-aging-summary strong {
    font-size: 1.16rem;
}

.receivable-aging-summary .aging-overdue {
    border-color: #edc8c5;
    background: #fff6f5;
}

.receivable-aging-summary .aging-total {
    color: #fff;
    border-color: var(--teal-dark);
    background: var(--teal-dark);
}

.receivable-aging-summary .aging-total span {
    color: #c9eeee;
}

.receivable-aging-table small {
    display: block;
    margin-top: 3px;
    color: #6b8083;
}

.receivable-aging-table .aging-danger {
    color: #b62f28;
    font-weight: 800;
}

.rental-batch-heading,
.rental-batch-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.rental-batch-controls label {
    min-width: 170px;
}

.rental-customer-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

@media (max-width: 980px) {
    .receivable-aging-summary {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .rental-batch-heading,
    .rental-batch-controls,
    .statement-action-grid form {
        align-items: stretch;
        flex-direction: column;
    }

    .statement-delete-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .statement-delete-impact {
        grid-template-columns: 1fr 1fr;
    }

    .statement-balance-recalculation {
        align-items: stretch;
        flex-direction: column;
    }
}

.alert {
    margin: 0 0 24px;
    padding: 13px 16px;
    border: 1px solid;
    border-radius: 11px;
    font-size: 0.9rem;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert-error {
    border-color: #f1c2bd;
    background: var(--danger-soft);
    color: var(--danger);
}

.alert-success {
    border-color: #b6dfc9;
    background: var(--success-soft);
    color: var(--success);
}

.alert-info {
    border-color: #a9d9d8;
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.page-heading .muted {
    margin: 12px 0 0;
}

.status-badge {
    flex: none;
    padding: 8px 12px;
    border: 1px solid #b8dddc;
    border-radius: 999px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 0.8rem;
    font-weight: 800;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
}

.panel {
    padding: clamp(24px, 4vw, 36px);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-heading strong {
    color: var(--teal);
    font-size: 1.15rem;
}

.progress-track {
    height: 9px;
    margin: 22px 0;
    overflow: hidden;
    border-radius: 999px;
    background: #dce9e9;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), #40b7ae);
}

.default-company-name {
    display: grid;
    gap: 3px;
    margin: 24px 0 18px;
    padding: 16px;
    border-radius: 13px;
    background: var(--teal-soft);
}

.default-company-name span {
    color: var(--teal-dark);
    font-size: 0.75rem;
    font-weight: 800;
}

.default-company-name strong {
    font-size: 1.15rem;
}

.panel .secondary-button {
    margin-top: 12px;
}

.upcoming-panel {
    color: #e9ffff;
    border-color: transparent;
    background: linear-gradient(145deg, #173c42, #075f61);
}

.upcoming-panel .eyebrow {
    color: #7ddbd2;
}

.upcoming-panel .muted {
    color: #bed4d4;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.feature-tags span {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.quick-links a {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.settings-form {
    box-shadow: 0 12px 36px rgba(22, 61, 66, 0.07);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-grid[hidden] {
    display: none;
}

.form-grid .wide {
    grid-column: 1 / -1;
}

input[data-number-format="decimal"] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #f8fbfb;
    cursor: pointer;
}

.checkbox-field input {
    width: 19px;
    height: 19px;
    flex: none;
    margin: 2px 0 0;
    accent-color: var(--teal);
}

.checkbox-field span {
    display: grid;
    gap: 2px;
}

.seal-upload-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 24px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fbfb;
}

.seal-upload-copy {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.seal-upload-copy .field-label {
    color: #27494f;
    font-size: 0.91rem;
    font-weight: 800;
}

.seal-upload-copy > strong {
    color: var(--teal-dark);
    font-size: 1rem;
}

.seal-upload-copy > p {
    margin: 0;
}

.file-select-button {
    display: inline-flex;
    width: auto;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 0 16px;
    border: 1px solid var(--teal);
    border-radius: 10px;
    background: #fff;
    color: var(--teal-dark);
    cursor: pointer;
}

.file-select-button:hover {
    background: var(--teal-soft);
}

.seal-file-status {
    color: var(--muted);
    font-size: 0.8rem;
}

.seal-file-status.error-text {
    color: var(--danger);
    font-weight: 800;
}

.seal-remove-option {
    margin-top: 6px;
    padding: 10px 12px;
}

.seal-preview-frame {
    display: grid;
    width: 160px;
    height: 160px;
    place-items: center;
    overflow: hidden;
    border: 1px dashed #a8c5c6;
    border-radius: 15px;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #eef4f4 25%, transparent 25%),
        linear-gradient(-45deg, #eef4f4 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef4f4 75%),
        linear-gradient(-45deg, transparent 75%, #eef4f4 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.seal-preview-image {
    width: 138px;
    height: 138px;
    object-fit: contain;
}

.readonly-field {
    display: grid;
    align-content: start;
    gap: 7px;
    color: #27494f;
    font-size: 0.91rem;
}

.readonly-field > span {
    font-weight: 800;
}

.readonly-field strong {
    display: flex;
    min-height: 47px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid #d4dfdf;
    border-radius: 10px;
    background: #f4f8f8;
    color: var(--teal-dark);
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.92rem;
}

.readonly-field small {
    color: var(--muted);
    font-size: 0.78rem;
}

.required {
    color: var(--danger);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.form-note {
    margin: 16px 0 0;
    text-align: right;
}

.error-card .primary-button {
    margin-top: 8px;
}

.company-list {
    display: grid;
    gap: 16px;
}

.company-card {
    padding: 25px;
    border: 1px solid rgba(7, 140, 141, 0.16);
    border-radius: 17px;
    background: var(--paper);
    box-shadow: 0 9px 28px rgba(22, 61, 66, 0.06);
}

.company-card.inactive {
    opacity: 0.68;
    background: #f6f8f8;
}

.company-card-heading,
.company-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.company-card-heading h2 {
    margin-top: 8px;
    font-size: 1.35rem;
}

.company-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
}

.badge-default {
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.badge-muted {
    background: #e7ebeb;
    color: #647477;
}

.badge-code {
    border: 1px solid #cbd8d9;
    background: #fff;
    color: #607477;
}

.company-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 26px;
    margin: 23px 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.company-details div {
    min-width: 0;
}

.company-details .wide {
    grid-column: 1 / -1;
}

.company-details dt {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.company-details dd {
    margin: 3px 0 0;
    font-size: 0.91rem;
}

.company-actions {
    justify-content: flex-end;
}

.company-actions form {
    margin: 0;
}

.text-button {
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--teal-dark);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.text-button.danger {
    color: var(--danger);
}

.customer-history-link {
    display: inline-flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.customer-history-link strong {
    color: var(--teal-dark);
    text-decoration: underline;
    text-decoration-color: rgba(7, 140, 141, 0.28);
    text-underline-offset: 3px;
}

.customer-history-link:hover strong {
    color: var(--teal);
    text-decoration-color: currentColor;
}

.empty-state {
    text-align: center;
}

.empty-state .primary-button {
    margin-top: 12px;
}

.list-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(260px, 1.5fr) auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(22, 61, 66, 0.05);
}

.list-toolbar .secondary-button {
    margin: 0;
}

.data-table-wrap {
    overflow: hidden;
    border: 1px solid rgba(7, 140, 141, 0.14);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 9px 28px rgba(22, 61, 66, 0.06);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px 17px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #f5fafa;
    color: #527075;
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

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

.statement-clickable-row {
    cursor: pointer;
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

.statement-clickable-row:hover {
    background: #f5fbfb;
}

.statement-clickable-row:focus-visible {
    outline: 3px solid rgba(7, 140, 141, 0.34);
    outline-offset: -3px;
}

.data-table td {
    font-size: 0.88rem;
}

.data-table td strong,
.data-table td small {
    display: block;
}

.data-table td small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.75rem;
}

.data-table .badge {
    margin-top: 7px;
}

.data-table .number-cell {
    text-align: right;
    white-space: nowrap;
}

.statement-item-summary {
    min-width: 190px;
    max-width: 320px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.statement-item-summary-content {
    min-width: 0;
}

.statement-item-line {
    display: block;
}

.statement-item-line + .statement-item-line {
    margin-top: 2px;
}

.statement-item-more {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.statement-outstanding .outstanding-due {
    color: var(--danger);
}

.statement-outstanding .outstanding-paid {
    color: var(--success);
}

.table-payment-button {
    min-height: 34px;
    padding: 6px 13px;
    border-color: rgba(7, 140, 141, 0.38);
    border-radius: 10px;
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

.table-payment-button:hover {
    border-color: var(--teal);
    background: var(--teal-soft);
}

.data-table .action-cell {
    text-align: right;
    white-space: nowrap;
}

.data-table .action-cell form {
    display: inline;
    margin: 0 0 0 7px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 14px 4px;
}

.pagination p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.page-link {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.page-link:hover,
.page-link:focus-visible,
.page-link.is-current {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.product-settings-form {
    padding: clamp(32px, 4.5vw, 48px);
}

.product-form-grid {
    column-gap: 32px;
    row-gap: 28px;
}

.product-form-field {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-content: start;
    align-items: start;
    gap: 16px;
    min-width: 0;
}

.product-field-label {
    padding-top: 14px;
    white-space: nowrap;
}

.product-field-control {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.product-field-control > input,
.product-field-control > select {
    width: 100%;
}

.product-field-control > small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.product-memo-field {
    margin-top: 2px;
}

.rental-asset-toolbar {
    display: grid;
    grid-template-columns: minmax(170px, 0.8fr) minmax(150px, 0.65fr) minmax(280px, 1.5fr) auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(22, 61, 66, 0.05);
}

.rental-asset-toolbar .secondary-button {
    margin: 0;
}

.rental-asset-form {
    padding: clamp(32px, 4.5vw, 48px);
}

.rental-asset-form-grid {
    column-gap: 32px;
    row-gap: 28px;
}

.rental-asset-form-field {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-content: start;
    align-items: start;
    gap: 16px;
    min-width: 0;
}

.rental-asset-field-label {
    padding-top: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.rental-asset-field-control {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.rental-asset-field-control > input,
.rental-asset-field-control > select {
    width: 100%;
}

.rental-asset-field-control > small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.rental-asset-memo-field {
    margin-top: 2px;
}

.rental-asset-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin-top: 2px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7fbfb;
}

.rental-asset-section-heading strong {
    color: var(--teal-dark);
}

.rental-asset-section-heading small {
    color: var(--muted);
    font-size: 0.78rem;
}

.rental-asset-status {
    display: inline-flex;
    margin-top: 7px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
}

.rental-asset-status.status-stock {
    background: #e8f6ee;
    color: #23734b;
}

.rental-asset-status.status-installing {
    background: #e8f2fb;
    color: #2f6692;
}

.rental-asset-status.status-rented {
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.rental-asset-status.status-repair {
    background: #fff1d9;
    color: #8b5b07;
}

.rental-asset-status.status-returned {
    background: #edf1f1;
    color: #617174;
}

.rental-asset-status.status-sold {
    background: #f3eafd;
    color: #7140a0;
}

.rental-asset-status.status-disposed {
    background: #f3e7e6;
    color: #8d3d38;
}

.rental-asset-table small.required {
    color: var(--danger);
}

.rental-asset-history {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.rental-asset-history .section-heading h2,
.rental-asset-history .section-heading p {
    margin: 0;
}

.rental-asset-history .section-heading > div {
    display: grid;
    gap: 6px;
}

.rental-repair-history-heading {
    align-items: center;
}

.rental-repair-history-heading .primary-button {
    flex: 0 0 auto;
}

.rental-repair-history-table td:nth-child(3) {
    min-width: 260px;
}

.rental-repair-history-table td:nth-child(3) strong,
.rental-repair-history-table td:nth-child(3) small {
    display: block;
    white-space: normal;
}

.rental-repair-asset-summary {
    display: grid;
    grid-template-columns: minmax(120px, 0.45fr) minmax(240px, 1fr) minmax(240px, 1fr);
    gap: 24px;
    margin-bottom: 20px;
    padding: 22px 28px;
}

.rental-repair-asset-summary > div {
    display: grid;
    align-content: start;
    gap: 5px;
}

.rental-repair-asset-summary span,
.rental-repair-asset-summary small {
    color: var(--muted);
    font-size: 0.78rem;
}

.rental-repair-asset-summary strong {
    color: var(--teal-dark);
}

.rental-repair-text-field {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.rental-repair-text-field textarea {
    font-weight: 500;
}

.rental-repair-form-actions .danger-button {
    margin-right: auto;
}

.rental-consumable-usage-form {
    display: grid;
    gap: 28px;
    padding: clamp(28px, 4vw, 44px);
}

.rental-consumable-usage-meta {
    column-gap: 32px;
    row-gap: 22px;
}

.rental-consumable-usage-items {
    display: grid;
    gap: 14px;
}

.rental-stock-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.rental-stock-summary-card {
    display: grid;
    gap: 7px;
    padding: 20px;
}

.rental-stock-summary-card > span,
.rental-stock-summary-card > small {
    color: var(--muted);
}

.rental-stock-summary-card > strong {
    font-size: 1.35rem;
}

.rental-stock-summary-card.is-warning {
    border-color: #e6c963;
    background: #fffbed;
}

.rental-stock-summary-card.is-danger {
    border-color: #ef9b96;
    background: #fff5f4;
}

@media (max-width: 940px) {
    .rental-stock-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .rental-stock-summary {
        grid-template-columns: 1fr;
    }
}

.rental-consumable-usage-item-list {
    display: grid;
    gap: 10px;
}

.rental-consumable-usage-item {
    display: grid;
    grid-template-columns: 34px minmax(300px, 1fr) minmax(130px, 0.25fr);
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdfd;
}

.rental-consumable-usage-item .usage-item-number {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 900;
}

.rental-consumable-usage-item select,
.rental-consumable-usage-item input {
    width: 100%;
}

.rental-consumable-usage-item .usage-item-quantity {
    display: grid;
    grid-template-columns: auto minmax(70px, 1fr);
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
}

.rental-consumable-usage-item > small {
    grid-column: 2 / -1;
    color: var(--muted);
    font-size: 0.75rem;
}

.rental-consumable-usage-item > small.field-error-text {
    color: var(--danger);
    font-weight: 800;
}

.rental-consumable-usage-form .alert-warning {
    margin: 0;
    border-color: #ead49f;
    background: #fff9e9;
    color: #7d5a11;
}

.rental-consumable-usage-form button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.rental-consumable-usage-history-table {
    min-width: 1080px;
}

.rental-consumable-usage-history-table td:nth-child(2) {
    min-width: 300px;
}

.rental-consumable-usage-summary {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rental-consumable-usage-summary li,
.rental-consumable-usage-history-table td > strong,
.rental-consumable-usage-history-table td > small {
    display: block;
}

.rental-consumable-usage-summary small {
    display: block;
    margin-top: 2px;
}

.rental-profitability-toolbar {
    display: grid;
    grid-template-columns: minmax(170px, 0.8fr) repeat(3, minmax(145px, 0.55fr)) minmax(260px, 1.3fr) auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
    padding: 20px;
}

.rental-profitability-toolbar label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.rental-profitability-toolbar input,
.rental-profitability-toolbar select {
    width: 100%;
}

.rental-profitability-submit {
    min-width: 82px;
    flex-direction: column;
    gap: 1px;
    padding: 6px 18px;
    line-height: 1.05;
    white-space: nowrap;
}

.rental-profitability-submit span {
    display: block;
}

.rental-profitability-cards,
.rental-asset-profit-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.rental-profitability-cards {
    margin-bottom: 18px;
}

.rental-profitability-card,
.rental-asset-profit-summary-grid article {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.rental-profitability-card {
    padding: 22px;
}

.rental-profitability-card span,
.rental-asset-profit-summary-grid span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.rental-profitability-card strong,
.rental-asset-profit-summary-grid strong {
    color: var(--teal-dark);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.rental-profitability-card small,
.rental-asset-profit-summary-grid small {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.rental-profitability-card.is-positive,
.rental-asset-profit-summary-grid .is-positive {
    border-color: rgba(24, 139, 91, 0.28);
    background: #f4fbf7;
}

.rental-profitability-card.is-negative,
.rental-asset-profit-summary-grid .is-negative {
    border-color: rgba(179, 67, 55, 0.25);
    background: #fff7f6;
}

.rental-profitability-card.is-negative strong,
.rental-asset-profit-summary-grid .is-negative strong,
.rental-profitability-table .profit-negative strong {
    color: var(--danger);
}

.rental-profitability-table .profit-positive strong {
    color: #23734b;
}

.rental-profitability-warning {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 18px;
    border-color: #ead49f;
    background: #fff9e9;
    color: #7d5a11;
}

.rental-profitability-warning .text-button {
    margin-left: auto;
}

.rental-profitability-guide {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px 14px;
    margin-bottom: 18px;
    padding: 17px 20px;
}

.rental-profitability-guide strong {
    color: var(--teal-dark);
}

.rental-profitability-guide span,
.rental-profitability-guide small {
    color: var(--muted);
    font-size: 0.78rem;
}

.rental-profitability-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-gutter: stable;
}

.rental-profitability-table {
    min-width: 1040px;
    table-layout: fixed;
}

.rental-profitability-table .profitability-col-asset {
    width: 18%;
}

.rental-profitability-table .profitability-col-status {
    width: 17%;
}

.rental-profitability-table .profitability-col-revenue,
.rental-profitability-table .profitability-col-period-profit {
    width: 11%;
}

.rental-profitability-table .profitability-col-cost {
    width: 13%;
}

.rental-profitability-table .profitability-col-lifetime-profit {
    width: 14%;
}

.rental-profitability-table .profitability-col-recovery {
    width: 10%;
}

.rental-profitability-table .profitability-col-action {
    width: 6%;
}

.rental-profitability-table th,
.rental-profitability-table td {
    padding-right: 12px;
    padding-left: 12px;
}

.rental-profitability-table td:first-child,
.rental-profitability-table td:nth-child(2) {
    overflow-wrap: anywhere;
}

.rental-profitability-table td small {
    display: block;
    margin-top: 5px;
    white-space: normal;
}

.rental-asset-profit-summary-grid article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fbfdfd;
}

.asset-life-heading h1 {
    overflow-wrap: anywhere;
}

.asset-life-now {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.9fr);
    align-items: center;
    gap: 28px;
    margin-bottom: 18px;
    padding: clamp(22px, 3vw, 30px);
}

.asset-life-now-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.asset-life-now-main .rental-asset-status {
    flex: 0 0 auto;
    margin-top: 3px;
}

.asset-life-now-main h2,
.asset-life-now-main p {
    margin: 0;
}

.asset-life-now-main h2 {
    margin-top: 5px;
    color: var(--teal-dark);
    font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.asset-life-now-main div > p:last-child {
    margin-top: 7px;
    color: var(--muted);
    line-height: 1.6;
}

.asset-life-now-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--line);
}

.asset-life-now-meta div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 13px 15px;
    background: #fbfdfd;
}

.asset-life-now-meta dt {
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 800;
}

.asset-life-now-meta dd {
    margin: 0;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.asset-life-now-meta dd.is-overdue {
    color: var(--danger);
}

.asset-life-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.asset-life-kpis article {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
    padding: 21px;
}

.asset-life-kpis span,
.asset-life-kpis small {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.asset-life-kpis strong {
    color: var(--teal-dark);
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    overflow-wrap: anywhere;
}

.asset-life-kpis small {
    line-height: 1.5;
}

.asset-life-kpis .is-positive {
    border-color: rgba(24, 139, 91, 0.28);
    background: #f4fbf7;
}

.asset-life-kpis .is-negative {
    border-color: rgba(179, 67, 55, 0.25);
    background: #fff7f6;
}

.asset-life-kpis .is-negative strong {
    color: var(--danger);
}

.asset-life-panel {
    padding: clamp(22px, 3.5vw, 34px);
}

.asset-life-panel-heading {
    align-items: flex-end;
    margin-bottom: 20px;
}

.asset-life-panel-heading > div {
    display: grid;
    gap: 5px;
}

.asset-life-panel-heading h2,
.asset-life-panel-heading p {
    margin: 0;
}

.asset-life-filters {
    display: flex;
    gap: 8px;
    margin: 0 0 26px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.asset-life-filter {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
}

.asset-life-filter span {
    display: inline-grid;
    min-width: 22px;
    min-height: 22px;
    place-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: #edf4f4;
    color: var(--muted);
    font-size: 0.7rem;
}

.asset-life-filter:hover,
.asset-life-filter:focus-visible,
.asset-life-filter.is-current {
    border-color: var(--brand);
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.asset-life-filter.is-current span {
    background: var(--brand);
    color: #fff;
}

.asset-life-timeline {
    position: relative;
    display: grid;
    gap: 18px;
}

.asset-life-timeline::before {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 127px;
    width: 2px;
    background: #dceaea;
    content: '';
}

.asset-life-event {
    position: relative;
    display: grid;
    grid-template-columns: 108px 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.asset-life-event time {
    padding-top: 16px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.asset-life-node {
    z-index: 1;
    display: block;
    width: 12px;
    height: 12px;
    margin: 18px auto 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 2px rgba(0, 139, 139, 0.2);
}

.asset-life-event.group-rental .asset-life-node {
    background: #2f7cb2;
    box-shadow: 0 0 0 2px rgba(47, 124, 178, 0.2);
}

.asset-life-event.group-service .asset-life-node {
    background: #c48015;
    box-shadow: 0 0 0 2px rgba(196, 128, 21, 0.2);
}

.asset-life-event.group-finance .asset-life-node {
    background: #2e8a58;
    box-shadow: 0 0 0 2px rgba(46, 138, 88, 0.2);
}

.asset-life-event-card {
    display: grid;
    gap: 9px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdfd;
}

.asset-life-event-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.asset-life-event-head > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-width: 0;
}

.asset-life-event-head h3 {
    margin: 0;
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

.asset-life-badge {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 0.68rem;
    font-weight: 900;
}

.group-rental .asset-life-badge {
    background: #eaf3fb;
    color: #2f6692;
}

.group-service .asset-life-badge {
    background: #fff3dd;
    color: #885a0e;
}

.group-finance .asset-life-badge {
    background: #e8f6ee;
    color: #23734b;
}

.asset-life-event-card > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.asset-life-event-card > .text-button {
    justify-self: start;
    font-size: 0.78rem;
}

.asset-life-amount {
    flex: 0 0 auto;
    font-size: 0.9rem;
    white-space: nowrap;
}

.asset-life-amount.amount-income {
    color: #23734b;
}

.asset-life-amount.amount-cost,
.asset-life-amount.amount-investment {
    color: var(--danger);
}

.asset-life-empty {
    margin: 0;
}

.asset-life-pagination {
    margin-top: 26px;
}

@media (max-width: 980px) {
    .asset-life-now {
        grid-template-columns: 1fr;
    }

    .asset-life-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .asset-life-now-main {
        display: grid;
    }

    .asset-life-now-meta,
    .asset-life-kpis {
        grid-template-columns: 1fr;
    }

    .asset-life-panel-heading {
        align-items: flex-start;
    }

    .asset-life-timeline::before {
        left: 9px;
    }

    .asset-life-event {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 8px;
    }

    .asset-life-event time {
        grid-column: 2;
        padding-top: 0;
        text-align: left;
    }

    .asset-life-node {
        grid-column: 1;
        grid-row: 2;
        margin-top: 18px;
    }

    .asset-life-event-card {
        grid-column: 2;
        grid-row: 2;
    }

    .asset-life-event-head {
        display: grid;
    }

    .asset-life-amount {
        justify-self: start;
    }
}

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

.rental-consumable-table small,
.rental-consumable-purchase-table small {
    display: block;
    margin-top: 4px;
}

.rental-consumable-purchase-table {
    min-width: 980px;
}

.inline-cancel-details summary {
    list-style: none;
    cursor: pointer;
}

.inline-cancel-details summary::-webkit-details-marker {
    display: none;
}

.inline-cancel-details form {
    display: grid;
    gap: 8px;
    width: min(250px, 70vw);
    margin-top: 8px;
}

.inline-cancel-details input,
.inline-cancel-details .danger-button {
    min-height: 38px;
    width: 100%;
}

.cancelled-row {
    background: #fbf8f8;
    color: var(--muted);
}

.rental-equipment-asset-field .text-button {
    justify-self: start;
}

@media (max-width: 980px) {
    .rental-asset-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rental-asset-toolbar .search-field {
        grid-column: 1 / -1;
    }

    .rental-repair-asset-summary {
        grid-template-columns: 1fr 1fr;
    }

    .rental-consumable-usage-item {
        grid-template-columns: 34px minmax(240px, 1fr) minmax(120px, 0.3fr);
    }

    .rental-profitability-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rental-profitability-toolbar .search-field {
        grid-column: 1 / -1;
    }

    .rental-profitability-cards,
    .rental-asset-profit-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-copy-status {
    min-height: 1.25rem;
    margin-top: 10px;
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.product-copy-results {
    display: grid;
    gap: 7px;
    max-height: 320px;
    margin-top: 8px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(7, 140, 141, 0.22);
    border-radius: 14px;
    background: #f7fbfb;
}

.product-copy-results[hidden] {
    display: none;
}

.product-copy-option {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.product-copy-option:hover,
.product-copy-option:focus-visible {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 5px 16px rgba(7, 140, 141, 0.1);
}

.product-copy-option strong,
.product-copy-option span {
    display: block;
}

.product-copy-option span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
}

.inactive-row {
    background: #f7f9f9;
    opacity: 0.67;
}

.heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-menu {
    position: relative;
}

.action-menu > summary {
    gap: 0.45rem;
    list-style: none;
}

.action-menu > summary::after {
    content: '⌄';
    color: #6e8a8e;
    font-size: 0.8rem;
    transition: transform 160ms ease;
}

.action-menu[open] > summary::after {
    transform: rotate(180deg);
}

.action-menu-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    min-width: 230px;
    gap: 3px;
    padding: 8px;
    border: 1px solid rgba(7, 140, 141, 0.2);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(20, 61, 65, 0.15);
}

.action-menu-panel a,
.action-menu-panel button {
    display: flex;
    width: 100%;
    min-height: 2.55rem;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #31575c;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}

.action-menu-panel a:hover,
.action-menu-panel a:focus-visible,
.action-menu-panel button:hover,
.action-menu-panel button:focus-visible {
    background: #edf8f7;
    color: var(--teal-dark);
}

.statement-list-toolbar {
    display: grid;
    grid-template-columns:
        minmax(170px, 0.8fr)
        minmax(120px, 0.5fr)
        minmax(100px, 0.4fr)
        minmax(230px, 1.4fr)
        auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(22, 61, 66, 0.05);
}

.statement-list-toolbar .secondary-button {
    margin: 0;
}

.statement-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 24px 4px 12px;
}

.statement-history-heading h2 {
    margin: 0;
    font-size: 1.05rem;
}

.statement-history-heading > span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.payment-list-toolbar {
    display: grid;
    grid-template-columns:
        minmax(160px, 0.7fr)
        minmax(190px, 0.9fr)
        minmax(230px, 1.3fr)
        auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(22, 61, 66, 0.05);
}

.payment-list-toolbar .secondary-button {
    margin: 0;
}

.tax-invoice-toolbar {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) repeat(2, minmax(155px, 0.65fr))
        minmax(170px, 0.7fr) auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(22, 61, 66, 0.05);
}

.tax-invoice-toolbar .secondary-button {
    margin: 0;
}

.tax-invoice-guide {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(7, 140, 141, 0.2);
    border-radius: 15px;
    background: var(--line);
    box-shadow: 0 8px 24px rgba(22, 61, 66, 0.05);
}

.tax-invoice-guide div {
    display: grid;
    gap: 5px;
    padding: 17px;
    background: var(--paper);
}

.tax-invoice-guide span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.tax-invoice-guide strong {
    color: var(--ink);
    font-size: 1rem;
}

.tax-invoice-guide .ready {
    background: var(--success-soft);
}

.tax-invoice-guide .warning {
    background: #fff7e5;
}

.tax-invoice-guide .issued {
    background: #eef4ff;
}

.tax-invoice-guide .excluded {
    background: #f3f0ff;
}

.tax-invoice-note {
    border-color: #c9dddd;
    background: #f4f9f9;
    color: #31575c;
}

.tax-invoice-table-wrap {
    overflow-x: auto;
}

.tax-invoice-table {
    min-width: 0;
    table-layout: fixed;
}

.tax-invoice-col-include {
    width: 5%;
}

.tax-invoice-col-date {
    width: 9%;
}

.tax-invoice-col-customer {
    width: 14%;
}

.tax-invoice-col-statements {
    width: 14%;
}

.tax-invoice-col-items {
    width: 24%;
}

.tax-invoice-col-supply {
    width: 12%;
}

.tax-invoice-col-tax {
    width: 11%;
}

.tax-invoice-col-status {
    width: 11%;
}

.tax-invoice-statements-cell small {
    overflow-wrap: anywhere;
}

.tax-invoice-table .number-cell,
.tax-invoice-status-cell .badge,
.tax-invoice-status-cell > small {
    white-space: nowrap;
}

.tax-invoice-warning-row {
    background: #fffaf1;
}

.tax-invoice-excluded-row {
    background: #f8f6ff;
}

.tax-invoice-excluded-row .tax-invoice-checkbox {
    opacity: 0.45;
    cursor: not-allowed;
}

.tax-invoice-card-excluded-note {
    display: block;
    margin-top: 5px;
    color: #6546a5;
    font-weight: 700;
}

.tax-invoice-checkbox {
    width: 19px;
    height: 19px;
    accent-color: var(--teal);
}

.badge-tax-ready {
    background: var(--success-soft);
    color: var(--success);
}

.badge-tax-warning {
    background: #fff0cc;
    color: #805c00;
}

.badge-tax-issued {
    background: #e9f0ff;
    color: #2859a8;
}

.badge-tax-unissued {
    background: #f0f3f3;
    color: #587074;
}

.badge-tax-partial {
    background: #fff0cc;
    color: #805c00;
}

.badge-tax-excluded {
    background: #eee8ff;
    color: #6546a5;
}

.tax-invoice-issues {
    margin: 8px 0 0;
    padding-left: 17px;
    color: #805c00;
    font-size: 0.76rem;
    line-height: 1.45;
}

.tax-invoice-export-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(210px, 0.45fr) auto;
    align-items: end;
    gap: 18px;
    margin-top: 20px;
    padding: 22px;
}

.tax-invoice-export-panel h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.tax-invoice-export-panel p {
    margin: 0;
}

.tax-invoice-export-panel > small {
    grid-column: 1 / -1;
    color: var(--muted);
    text-align: right;
}

.tax-invoice-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.tax-invoice-include-warnings {
    grid-column: 1 / -1;
}

.payment-balance-summary,
.payment-preview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(7, 140, 141, 0.2);
    border-radius: 15px;
    background: var(--line);
    box-shadow: 0 8px 24px rgba(22, 61, 66, 0.05);
}

.payment-balance-summary div,
.payment-preview div {
    display: grid;
    gap: 5px;
    padding: 17px;
    background: var(--paper);
}

.payment-balance-summary span,
.payment-preview span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.payment-balance-summary strong,
.payment-preview strong {
    color: var(--ink);
    font-size: 1rem;
}

.payment-balance-summary .current,
.payment-preview .current {
    background: var(--teal-soft);
}

.payment-balance-summary .current strong,
.payment-preview .current strong {
    color: var(--teal-dark);
    font-size: 1.12rem;
}

.payment-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0 0;
}

.payment-target-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-ledger-toolbar {
    display: grid;
    grid-template-columns: minmax(170px, 0.7fr) minmax(170px, 0.7fr) minmax(230px, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
    padding: 20px;
}

.customer-ledger-payment-toggle {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbfb;
}

.customer-ledger-payment-toggle input {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    accent-color: var(--teal);
}

.customer-ledger-payment-toggle span,
.customer-ledger-payment-toggle small {
    display: block;
}

.customer-ledger-payment-toggle small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.72rem;
}

.customer-ledger-info,
.customer-ledger-summary {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(7, 140, 141, 0.2);
    border-radius: 15px;
    background: var(--line);
    box-shadow: 0 8px 24px rgba(22, 61, 66, 0.05);
}

.customer-ledger-info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}

.customer-ledger-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

.customer-ledger-info div,
.customer-ledger-summary div {
    display: grid;
    gap: 5px;
    padding: 16px 18px;
    background: var(--paper);
}

.customer-ledger-info span,
.customer-ledger-summary span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.customer-ledger-info strong,
.customer-ledger-summary strong {
    color: var(--ink);
    font-size: 1rem;
}

.customer-ledger-summary .current {
    background: var(--teal-soft);
}

.customer-ledger-summary .current strong {
    color: var(--teal-dark);
    font-size: 1.12rem;
}

.customer-ledger-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 4px 10px;
}

.customer-ledger-meta p {
    margin: 0;
    font-size: 0.82rem;
}

.customer-ledger-heading > div:first-child {
    min-width: 0;
}

.customer-ledger-heading .heading-actions {
    flex: 0 0 auto;
}

.customer-ledger-heading .heading-actions > * {
    flex: none;
    white-space: nowrap;
}

.customer-ledger-table-wrap {
    overflow-x: auto;
}

.customer-ledger-table {
    min-width: 0;
    table-layout: fixed;
}

.customer-ledger-col-date {
    width: 11.5%;
}

.customer-ledger-col-type {
    width: 7.5%;
}

.customer-ledger-col-document {
    width: 13.5%;
}

.customer-ledger-col-detail {
    width: 29%;
}

.customer-ledger-col-sale,
.customer-ledger-col-payment {
    width: 12.5%;
}

.customer-ledger-col-balance {
    width: 13.5%;
}

.customer-ledger-table th:nth-child(1),
.customer-ledger-table td:nth-child(1),
.customer-ledger-table th:nth-child(2),
.customer-ledger-table td:nth-child(2),
.customer-ledger-table th:nth-child(3),
.customer-ledger-table td:nth-child(3) {
    white-space: nowrap;
    word-break: keep-all;
}

.customer-ledger-table td:nth-child(3) a {
    white-space: nowrap;
}

.customer-ledger-table [hidden] {
    display: none !important;
}

.customer-ledger-table .customer-ledger-detail {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.55;
}

.customer-ledger-table .badge {
    margin-top: 0;
    white-space: nowrap;
}

.customer-ledger-opening-row {
    background: #f5f8f8;
}

.customer-ledger-event-payment {
    background: rgba(7, 140, 141, 0.045);
}

.customer-ledger-payment-amount strong,
.customer-ledger-event-payment .customer-ledger-payment-amount {
    color: var(--teal-dark);
}

.customer-ledger-type-opening {
    background: #eef2f3;
    color: #52666b;
}

.customer-ledger-type-sale {
    background: #fff1cf;
    color: #805c00;
}

.customer-ledger-type-rental {
    background: #eef0ff;
    color: #4b4d94;
}

.customer-ledger-type-payment {
    background: var(--success-soft);
    color: var(--success);
}

.customer-ledger-table tfoot th,
.customer-ledger-table tfoot td {
    padding: 16px;
    border-top: 2px solid rgba(7, 140, 141, 0.3);
    background: #f3fafa;
}

.customer-ledger-table tfoot th {
    text-align: right;
}

.customer-ledger-empty {
    margin-top: 18px;
}

.dashboard-notices {
    margin-bottom: 24px;
    padding: 24px 28px;
}

.dashboard-notices .panel-heading {
    margin-bottom: 14px;
}

.dashboard-notices .panel-heading h2,
.dashboard-notices .panel-heading p {
    margin: 0;
}

.dashboard-notice-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.dashboard-notice-list > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.dashboard-notice-list > a:hover strong {
    color: var(--teal-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dashboard-notice-title,
.notice-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.dashboard-notice-list time {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.8rem;
}

.notice-badge-pinned {
    background: #fff0cc;
    color: #805c00;
}

.notice-badge-new {
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.notice-list {
    display: grid;
    gap: 14px;
}

.notice-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    overflow: hidden;
}

.notice-list-item.notice-draft {
    border-style: dashed;
    background: #fffaf0;
}

.notice-list-main {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 8px;
    padding: 23px 26px;
    color: var(--ink);
    text-decoration: none;
}

.notice-list-main:hover h2 {
    color: var(--teal-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.notice-list-main h2,
.notice-list-main p {
    margin: 0;
}

.notice-list-main h2 {
    font-size: 1.15rem;
}

.notice-admin-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
}

.notice-admin-actions form {
    margin: 0;
}

.notice-document {
    padding: 38px 42px 46px;
}

.notice-document-header {
    display: grid;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.notice-document-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.notice-content {
    min-height: 240px;
    padding-top: 28px;
    color: #28464c;
    font-size: 1rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.notice-form {
    padding: 28px;
}

.notice-editor-fallback {
    min-height: 360px;
    line-height: 1.7;
    resize: vertical;
}

.notice-editor {
    font-weight: 500;
}

.notice-editor-guide {
    margin-bottom: 10px;
    padding: 11px 14px;
    border: 1px solid #cfe1e2;
    border-radius: 10px;
    background: #f2f9f9;
    color: #46686d;
    font-size: 0.8rem;
    line-height: 1.55;
}

.notice-editor-toolbar,
.notice-editor-canvas {
    display: none;
}

.notice-editor.is-enhanced .notice-editor-toolbar,
.notice-editor.is-enhanced .notice-editor-canvas {
    display: block;
}

.notice-editor.is-enhanced .notice-editor-fallback {
    display: none;
}

.notice-editor .ql-toolbar.ql-snow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 9px 10px;
    border: 1px solid #aebfc1;
    border-radius: 12px 12px 0 0;
    background: #f8fbfb;
}

.notice-editor .ql-toolbar.ql-snow .ql-formats {
    margin-right: 5px;
}

.notice-editor .ql-container.ql-snow {
    height: auto;
    border: 1px solid #aebfc1;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fff;
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 1rem;
}

.notice-editor .ql-editor {
    height: auto;
    min-height: 360px;
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: 20px;
    line-height: 1.8;
}

.notice-editor .ql-editor.ql-blank::before {
    right: 20px;
    left: 20px;
    color: #7a8f92;
    font-style: normal;
}

.notice-editor-message {
    min-height: 20px;
    margin: 7px 2px 0;
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.notice-editor-message.is-error {
    color: #a32620;
}

.notice-editor .ql-snow .ql-picker.ql-font {
    width: 118px;
}

.notice-editor .ql-snow .ql-picker.ql-header {
    width: 86px;
}

.notice-editor .ql-snow .ql-picker.ql-size {
    width: 82px;
}

.ql-snow .ql-picker.ql-font .ql-picker-label:not([data-value])::before,
.ql-snow .ql-picker.ql-font .ql-picker-item:not([data-value])::before {
    content: "기본 글꼴";
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="malgun"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="malgun"]::before {
    content: "맑은 고딕";
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="gulim"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="gulim"]::before {
    content: "굴림";
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="dotum"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="dotum"]::before {
    content: "돋움";
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="batang"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="batang"]::before {
    content: "바탕";
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="nanum-gothic"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="nanum-gothic"]::before {
    content: "나눔고딕";
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="nanum-myeongjo"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="nanum-myeongjo"]::before {
    content: "나눔명조";
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before {
    content: "고정폭";
}

.ql-font-malgun {
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
}

.ql-font-gulim {
    font-family: Gulim, 굴림, sans-serif;
}

.ql-font-dotum {
    font-family: Dotum, 돋움, sans-serif;
}

.ql-font-batang {
    font-family: Batang, 바탕, serif;
}

.ql-font-nanum-gothic {
    font-family: "Nanum Gothic", 나눔고딕, "Malgun Gothic", sans-serif;
}

.ql-font-nanum-myeongjo {
    font-family: "Nanum Myeongjo", 나눔명조, Batang, serif;
}

.ql-font-serif {
    font-family: Georgia, "Times New Roman", Batang, serif;
}

.ql-font-monospace {
    font-family: Consolas, "Courier New", monospace;
}

.notice-content-rich {
    position: relative;
}

.notice-rich-viewer.ql-container {
    border: 0;
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 1rem;
}

.notice-rich-viewer .ql-editor {
    min-height: 210px;
    padding: 0;
    color: #28464c;
    line-height: 1.9;
    overflow: visible;
}

.notice-rich-viewer .ql-editor h1,
.notice-rich-viewer .ql-editor h2,
.notice-rich-viewer .ql-editor h3 {
    color: #183d43;
    line-height: 1.4;
}

.notice-editor .ql-editor .ql-size-huge,
.notice-rich-viewer .ql-editor .ql-size-huge,
.notice-rich-viewer .ql-editor .notice-numbered-heading {
    font-size: 2rem;
    line-height: 1.4;
}

.notice-rich-viewer .ql-editor .notice-numbered-heading {
    font-weight: 800;
}

.notice-rich-viewer .ql-editor .notice-normalized-body-size,
.notice-rich-viewer .ql-editor .notice-normalized-body-size .ql-size-small {
    font-size: 1rem;
}

.notice-rich-viewer .ql-editor a {
    color: #087f8c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notice-rich-viewer .ql-editor img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(25, 63, 69, 0.1);
}

.notice-image-error {
    display: inline-flex;
    margin: 14px 0;
    padding: 10px 14px;
    border: 1px dashed #c58d87;
    border-radius: 9px;
    background: #fff6f5;
    color: #9c3029;
    font-size: 0.86rem;
}

.notice-table-block {
    display: block;
    max-width: 100%;
    margin: 24px 0;
    white-space: normal;
}

.notice-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #496467;
    border-radius: 4px;
    background: #fff;
    scrollbar-color: #9db4b7 #edf4f4;
}

.notice-table-scroll table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #142f34;
    font-size: 0.95rem;
    line-height: 1.55;
}

.notice-table-scroll th,
.notice-table-scroll td {
    padding: 13px 12px;
    border-right: 1px solid #496467;
    border-bottom: 1px solid #496467;
    text-align: left;
    vertical-align: middle;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.notice-table-scroll th {
    background: #c9f2df;
    font-weight: 800;
    text-align: center;
}

.notice-table-scroll td.is-bold {
    font-weight: 800;
}

.notice-table-scroll tr:last-child > * {
    border-bottom: 0;
}

.notice-table-scroll tr > *:last-child {
    border-right: 0;
}

.notice-table-hint {
    display: none;
}

.notice-editor .notice-table-block {
    padding: 8px;
    border: 1px dashed #8cafb2;
    border-radius: 8px;
    background: #f8fbfb;
    cursor: pointer;
}

.notice-editor .notice-table-hint {
    display: block;
    margin-top: 7px;
    color: #678287;
    font-size: 0.72rem;
    font-weight: 700;
}

.notice-rich-viewer .notice-table-block:first-child {
    margin-top: 0;
}

@media (max-width: 720px) {
    .notice-editor .ql-editor .ql-size-huge,
    .notice-rich-viewer .ql-editor .ql-size-huge,
    .notice-rich-viewer .ql-editor .notice-numbered-heading {
        font-size: 1.7rem;
    }

    .notice-table-scroll th,
    .notice-table-scroll td {
        padding: 10px 9px;
        font-size: 0.86rem;
    }
}

/* 임대·만료·세금계산서·TODO 통합 업무 달력 */
.calendar-page {
    display: grid;
    gap: 16px;
}

.calendar-hero,
.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.calendar-hero h1 {
    font-size: clamp(1.85rem, 3vw, 2.75rem);
}

.calendar-hero .muted {
    margin: 8px 0 0;
}

.calendar-month-nav {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(22, 61, 66, 0.08);
}

.calendar-month-nav > a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: var(--teal-dark);
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.calendar-month-nav > a:hover,
.calendar-month-nav > a:focus-visible {
    background: var(--teal-soft);
    outline: none;
}

.calendar-month-nav strong {
    min-width: 9rem;
    text-align: center;
    font-size: 1.18rem;
    letter-spacing: -0.035em;
}

.calendar-month-nav .calendar-today-link {
    width: auto;
    padding: 0 12px;
    font-size: 0.86rem;
}

.calendar-toolbar {
    align-items: stretch;
}

.calendar-company-filter {
    flex: 0 0 190px;
}

.calendar-company-filter label {
    height: 100%;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.76rem;
}

.calendar-company-filter select {
    height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    border: 0;
    background-color: transparent;
    font-size: 0.85rem;
}

.calendar-summary {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(4, minmax(112px, 1fr));
    gap: 9px;
}

.calendar-summary > span {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
}

.calendar-summary small {
    color: var(--muted);
    font-weight: 800;
}

.calendar-summary strong {
    font-size: 1.45rem;
    font-variant-numeric: tabular-nums;
}

.calendar-summary .is-expiry strong {
    color: var(--danger);
}

.calendar-summary .is-tax strong {
    color: #6d52a5;
}

.calendar-summary .is-todo strong {
    color: #a05b17;
}

.calendar-filters {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
}

.calendar-filters label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #405c61;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.calendar-filters input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calendar-filters label > span {
    width: 12px;
    height: 12px;
    border: 2px solid #a8b9bc;
    border-radius: 50%;
    background: #fff;
}

.calendar-filters input:checked + span {
    border-color: transparent;
    background: var(--teal);
    box-shadow: 0 0 0 3px rgba(7, 140, 141, 0.14);
}

.calendar-filters .is-expiry input:checked + span {
    background: var(--danger);
    box-shadow: 0 0 0 3px rgba(167, 56, 56, 0.14);
}

.calendar-filters .is-tax input:checked + span {
    background: #765ab5;
    box-shadow: 0 0 0 3px rgba(118, 90, 181, 0.14);
}

.calendar-filters .is-todo input:checked + span {
    background: #c87928;
    box-shadow: 0 0 0 3px rgba(200, 121, 40, 0.14);
}

.calendar-grid-scroll {
    min-width: 0;
    overflow-x: auto;
    border: 1px solid #cbdadb;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.work-calendar-grid {
    display: grid;
    min-width: 980px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekday {
    padding: 9px 12px;
    border-right: 1px solid #d8e3e4;
    border-bottom: 1px solid #cbdadb;
    background: #edf5f5;
    color: #49666b;
    font-size: 0.83rem;
    font-weight: 900;
    text-align: center;
}

.calendar-weekday:nth-child(7) {
    border-right: 0;
}

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

.calendar-weekday.is-saturday {
    color: #376ca4;
}

.calendar-day {
    min-width: 0;
    min-height: clamp(140px, 17vh, 205px);
    padding: 8px;
    overflow: hidden;
    border-right: 1px solid #e0e8e9;
    border-bottom: 1px solid #e0e8e9;
    background: #fff;
}

.calendar-day:nth-child(7n) {
    border-right: 0;
}

.calendar-day.is-outside {
    background: #f7f9f9;
}

.calendar-day.is-outside > header,
.calendar-day.is-outside .calendar-event {
    opacity: 0.58;
}

.calendar-day.is-today {
    background: #f1fbfa;
    box-shadow: inset 0 0 0 2px rgba(7, 140, 141, 0.55);
}

.calendar-day > header {
    display: flex;
    min-height: 26px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.calendar-day > header time {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.calendar-day.is-today > header time {
    background: var(--teal);
    color: #fff;
}

.calendar-day > header span {
    color: var(--teal-dark);
    font-size: 0.72rem;
    font-weight: 900;
}

.calendar-day-events {
    display: grid;
    gap: 5px;
}

.calendar-event {
    display: grid;
    min-width: 0;
    gap: 2px;
    padding: 6px 8px;
    border: 1px solid #b9dddd;
    border-left: 4px solid var(--teal);
    border-radius: 9px;
    background: #eef9f8;
    color: #16575b;
    font-size: 0.76rem;
    line-height: 1.25;
    text-decoration: none;
}

.calendar-event:hover,
.calendar-event:focus-visible {
    filter: brightness(0.97);
    outline: 2px solid rgba(7, 140, 141, 0.28);
    outline-offset: 1px;
}

.calendar-event[hidden] {
    display: none;
}

.calendar-event-heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
}

.calendar-event strong,
.calendar-event small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event em {
    flex: 0 0 auto;
    padding: 1px 4px;
    border-radius: 5px;
    background: rgba(7, 140, 141, 0.12);
    font-size: 0.64rem;
    font-style: normal;
    font-weight: 900;
}

.calendar-event-company {
    color: #66797d;
    font-size: 0.66rem;
}

.calendar-event.is-expiry {
    border-color: #edb4ae;
    border-left-color: var(--danger);
    background: #fff0ef;
    color: #90312d;
}

.calendar-event.is-expiry em {
    background: rgba(167, 56, 56, 0.12);
}

.calendar-event.is-tax {
    border-color: #d7ccec;
    border-left-color: #765ab5;
    background: #f6f2fd;
    color: #5e438e;
}

.calendar-event.is-tax em {
    background: rgba(118, 90, 181, 0.12);
}

.calendar-event.is-todo {
    border-color: #efd4b6;
    border-left-color: #c87928;
    background: #fff8ee;
    color: #82501c;
}

.calendar-event.is-todo em {
    background: rgba(200, 121, 40, 0.13);
}

.calendar-event.is-completed {
    border-color: #d8e0e1;
    border-left-color: #93a1a3;
    background: #f4f6f6;
    color: #748184;
    text-decoration: line-through;
}

@media (max-width: 1180px) {
    .calendar-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-filters {
        justify-content: center;
    }

    .calendar-company-filter {
        flex-basis: auto;
    }
}

@media (max-width: 760px) {
    .page-shell.page-shell-wide {
        width: calc(100% - 20px);
        padding-top: 20px;
    }

    .calendar-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-month-nav {
        align-self: stretch;
        justify-content: center;
    }

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

    .calendar-filters {
        flex-wrap: wrap;
    }
}

/* 6F-2 위험 장비·예방정비 조치관리 현황판 */
.rental-risk-heading {
    margin-bottom: 18px;
}

.rental-risk-toolbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 0.7fr)) minmax(230px, 1.35fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
}

.rental-risk-toolbar .secondary-button {
    min-height: 46px;
}

.rental-risk-summary {
    display: grid;
    grid-template-columns: repeat(7, minmax(145px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.rental-risk-summary-card {
    display: grid;
    min-width: 145px;
    min-height: 126px;
    gap: 7px;
    align-content: start;
    color: var(--ink);
    text-decoration: none;
}

.rental-risk-summary-card:hover,
.rental-risk-summary-card:focus-visible {
    border-color: var(--teal);
    outline: none;
    transform: translateY(-1px);
}

.rental-risk-summary-card span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.rental-risk-summary-card strong {
    font-size: 1.72rem;
    font-variant-numeric: tabular-nums;
}

.rental-risk-summary-card small {
    color: var(--muted);
    line-height: 1.35;
}

.rental-risk-summary-card.is-critical {
    border-color: #e2aaa5;
    background: #fff4f2;
}

.rental-risk-summary-card.is-critical strong,
.rental-risk-summary-card.type-operating_loss strong {
    color: var(--danger);
}

.rental-risk-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.rental-risk-guide > div {
    display: grid;
    flex: 1 1 50%;
    min-width: 0;
    gap: 4px;
}

.rental-risk-guide span,
.rental-risk-guide small {
    color: var(--muted);
    overflow-wrap: break-word;
    word-break: keep-all;
}

.rental-risk-guide > small {
    flex: 1 1 50%;
    min-width: 0;
    line-height: 1.55;
}

.rental-risk-table-wrap {
    overflow-x: auto;
}

.rental-risk-table {
    min-width: 1180px;
}

.rental-risk-table th:nth-child(1) { width: 8%; }
.rental-risk-table th:nth-child(2) { width: 16%; }
.rental-risk-table th:nth-child(3) { width: 16%; }
.rental-risk-table th:nth-child(4) { width: 49%; }
.rental-risk-table th:nth-child(5) { width: 11%; }

.risk-row.severity-critical > td:first-child {
    border-left: 4px solid var(--danger);
}

.risk-row.severity-warning > td:first-child {
    border-left: 4px solid #cf8129;
}

.risk-row.severity-notice > td:first-child {
    border-left: 4px solid #5282a9;
}

.risk-severity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.risk-severity-critical {
    background: #f9d9d6;
    color: #8f2f2a;
}

.risk-severity-warning {
    background: #ffebcb;
    color: #925413;
}

.risk-severity-notice {
    background: #deedf7;
    color: #356587;
}

.rental-risk-alerts {
    display: grid;
    gap: 7px;
}

.rental-risk-alert-block {
    overflow: hidden;
    border: 1px solid #d8e2e3;
    border-radius: 10px;
    background: #f9fbfb;
}

.rental-risk-alert {
    display: grid;
    grid-template-columns: 82px minmax(170px, 0.8fr) minmax(240px, 1.5fr);
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border: 0;
    border-left-width: 4px;
    border-radius: 0;
    background: #f9fbfb;
    color: var(--ink);
    text-decoration: none;
}

.rental-risk-alert:hover,
.rental-risk-alert:focus-visible {
    background: #f1f7f7;
    outline: 2px solid rgba(7, 140, 141, 0.18);
    outline-offset: 1px;
}

.rental-risk-alert.severity-critical {
    border-left-color: var(--danger);
}

.rental-risk-alert.severity-warning {
    border-left-color: #cf8129;
}

.rental-risk-alert.severity-notice {
    border-left-color: #5282a9;
}

.risk-alert-label {
    font-size: 0.75rem;
    font-weight: 900;
}

.rental-risk-alert small {
    color: var(--muted);
}

.rental-risk-action-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    align-items: center;
    padding: 8px 12px;
    border-top: 1px solid #e3ebec;
    background: #fff;
    color: var(--muted);
    font-size: 0.78rem;
}

.risk-action-status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8eeee;
    color: #4e6264;
    font-weight: 900;
}

.risk-action-status.status-acknowledged {
    background: #dff1f0;
    color: #176d6b;
}

.risk-action-status.status-deferred {
    background: #fff0cf;
    color: #8b5b13;
}

.risk-action-status.status-resolved {
    background: #dff1e3;
    color: #28713a;
}

.risk-action-overdue {
    color: var(--danger);
    font-weight: 900;
}

.risk-action-telegram {
    font-weight: 800;
}

.risk-action-telegram.status-sent {
    color: #28713a;
}

.risk-action-telegram.status-failed,
.risk-action-telegram.is-unavailable {
    color: var(--danger);
}

.rental-risk-service-link {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid #d7e8e7;
    background: #f2f9f8;
    font-size: 0.8rem;
}

.rental-risk-service-link > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.rental-risk-service-link a { color: var(--teal-dark); font-weight: 900; }
.rental-risk-service-link strong { color: #28713a; }
.rental-risk-service-link p { margin: 0; line-height: 1.55; }
.rental-risk-service-link small { color: var(--muted); }
.rental-risk-service-create { margin: 10px 12px; justify-self: start; }

.rental-risk-action-editor,
.rental-risk-action-history {
    border-top: 1px solid #e3ebec;
    background: #fff;
}

.rental-risk-action-editor > summary,
.rental-risk-action-history > summary {
    padding: 9px 12px;
    color: var(--teal-dark);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 900;
}

.rental-risk-action-editor form {
    display: grid;
    gap: 10px;
    padding: 4px 12px 13px;
}

.rental-risk-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.rental-risk-action-editor textarea {
    min-height: 76px;
    resize: vertical;
}

.rental-risk-action-editor .secondary-button {
    justify-self: start;
}

.rental-risk-action-history ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 4px 12px 13px 30px;
}

.rental-risk-action-history li {
    padding-left: 3px;
}

.rental-risk-action-history li strong,
.rental-risk-action-history li span,
.rental-risk-action-history li small {
    display: block;
}

.rental-risk-action-history li span {
    margin: 2px 0;
    overflow-wrap: anywhere;
}

.rental-risk-action-history li small {
    color: var(--muted);
}

.rental-risk-actions {
    display: grid;
    gap: 7px;
    justify-items: start;
}

@media (max-width: 1180px) {
    .rental-risk-toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rental-risk-toolbar .search-field {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .rental-risk-toolbar {
        grid-template-columns: 1fr;
    }

    .rental-risk-toolbar .search-field {
        grid-column: auto;
    }

    .rental-risk-guide {
        align-items: flex-start;
        flex-direction: column;
    }

    .rental-risk-table {
        min-width: 0;
    }

    .rental-risk-table thead {
        display: none;
    }

    .rental-risk-table,
    .rental-risk-table tbody,
    .rental-risk-table tr,
    .rental-risk-table td {
        display: block;
        width: 100%;
    }

    .rental-risk-table tr {
        border-bottom: 1px solid var(--line);
        padding: 10px 0;
    }

    .rental-risk-table td {
        border: 0;
        padding: 9px 14px;
    }

    .rental-risk-table td::before {
        display: block;
        margin-bottom: 4px;
        color: var(--muted);
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 900;
    }

    .rental-risk-alert {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .rental-risk-action-grid {
        grid-template-columns: 1fr;
    }
}

/* 택배 주소록 */
.shipping-address-filter {
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.7fr) auto;
}

.shipping-address-guide {
    margin-bottom: 18px;
}

.shipping-address-table-wrap {
    overflow-x: auto;
}

.shipping-address-table {
    min-width: 1040px;
}

.shipping-address-table th,
.shipping-address-table td {
    padding: 12px 10px;
}

.shipping-address-table input:not([type="checkbox"]),
.shipping-address-table textarea {
    width: 100%;
    min-width: 150px;
    font-size: 0.86rem;
}

.shipping-address-table textarea {
    min-width: 220px;
    resize: vertical;
}

.shipping-address-table .shipping-contact-column {
    width: 240px;
    min-width: 240px;
}

.shipping-address-table .shipping-address-column {
    width: 320px;
    min-width: 320px;
}

.shipping-contact-cell input:not([type="checkbox"]) {
    width: 100%;
    min-width: 0;
}

.shipping-contact-cell input + input {
    margin-top: 4px;
}

.shipping-address-table .shipping-select-cell {
    width: 54px;
    text-align: center;
}

.shipping-select-cell input {
    width: 19px;
    height: 19px;
    accent-color: var(--teal);
}

.shipping-address-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
}

.shipping-address-actions p {
    margin: 0;
}

@media (max-width: 720px) {
    .shipping-address-table {
        min-width: 0;
    }

    .shipping-address-table input:not([type="checkbox"]),
    .shipping-address-table textarea {
        min-width: 0;
    }

    .shipping-address-table .shipping-contact-column,
    .shipping-address-table .shipping-address-column {
        width: auto;
        min-width: 0;
    }

    .shipping-contact-cell input:not([type="checkbox"]) {
        width: 100%;
    }

    .shipping-address-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

.notice-pin-field {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbfb;
}

.notice-pin-field input {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    accent-color: var(--teal);
}

.notice-pin-field span,
.notice-pin-field small {
    display: block;
}

.notice-pin-field small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.72rem;
}

.badge-status-draft {
    background: #fff1cf;
    color: #805c00;
}

.badge-status-confirmed,
.badge-status-issued {
    background: var(--success-soft);
    color: var(--success);
}

.badge-status-cancelled {
    background: var(--danger-soft);
    color: var(--danger);
}

.statement-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.statement-form > * {
    min-width: 0;
}

.statement-header-form {
    box-shadow: 0 10px 30px rgba(22, 61, 66, 0.06);
}

.statement-compact-header-form {
    padding: 28px 34px;
}

.statement-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 12px;
}

.statement-meta-field {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.statement-field-label {
    white-space: nowrap;
}

.statement-field-control {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.statement-field-control > input,
.statement-field-control > select,
.statement-field-control > button {
    width: 100%;
}

.statement-field-control small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.statement-items-panel {
    padding: 24px;
    border: 1px solid rgba(7, 140, 141, 0.14);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 10px 30px rgba(22, 61, 66, 0.06);
}

.statement-payment-panel {
    box-shadow: 0 10px 30px rgba(22, 61, 66, 0.06);
}

.statement-payment-panel .badge {
    flex: 0 0 auto;
}

.statement-payment-cancel {
    border: 1px solid rgba(188, 58, 58, 0.2);
    background: #fff7f7;
}

.statement-payment-panel :disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.statement-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.statement-section-heading p {
    margin: 5px 0 0;
}

.statement-items-panel > .statement-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
}

.statement-items-heading-copy {
    min-width: 0;
    max-width: 1080px;
}

.statement-item-add-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.statement-grid-wrap,
.statement-view-table-wrap {
    overflow-x: auto;
}

.statement-entry-table,
.statement-view-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

.statement-entry-table {
    table-layout: fixed;
}

/* 단가 열의 20%를 줄여 규격과 수량 열에 절반씩 배분합니다. */
.statement-entry-table .statement-col-date { width: 14.3%; }
.statement-entry-table .statement-col-product { width: 27.7%; }
.statement-entry-table .statement-col-code { width: 6.3%; }
.statement-entry-table .statement-col-spec { width: 7.84%; }
.statement-entry-table .statement-col-quantity { width: 9.34%; }
.statement-entry-table .statement-col-price { width: 12.32%; }
.statement-entry-table .statement-col-supply { width: 10%; }
.statement-entry-table .statement-col-tax { width: 8.3%; }
.statement-entry-table .statement-col-action { width: 3.9%; }

.statement-entry-table th,
.statement-entry-table td,
.statement-view-table th,
.statement-view-table td {
    padding: 10px 8px;
    border: 1px solid var(--line);
    vertical-align: middle;
}

.statement-entry-table th,
.statement-view-table th {
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 0.75rem;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.statement-entry-table input,
.statement-entry-table select {
    min-width: 92px;
    height: 40px;
    border-radius: 7px;
}

.catalog-picker-trigger {
    display: flex;
    width: 100%;
    min-height: 54px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 9px 12px;
    overflow: hidden;
    border: 1px solid #bfd1d3;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.catalog-picker-trigger:hover,
.catalog-picker-trigger:focus-visible {
    border-color: var(--teal);
    background: #f7fdfd;
    box-shadow: 0 0 0 3px rgba(7, 140, 141, 0.12);
    outline: 0;
}

.catalog-picker-trigger.has-selection {
    border-color: rgba(7, 140, 141, 0.42);
    background: #fbfefe;
}

.searchable-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

.searchable-select-trigger {
    min-height: 48px;
}

.searchable-input-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 8px;
}

.searchable-input-control > input {
    min-width: 0;
}

.searchable-input-trigger {
    min-width: 112px;
    white-space: nowrap;
}

@media (max-width: 620px) {
    .searchable-input-control {
        grid-template-columns: 1fr;
    }

    .searchable-input-trigger {
        width: 100%;
    }
}

.picker-trigger-primary,
.picker-trigger-secondary {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.picker-trigger-primary {
    font-size: 0.9rem;
    font-weight: 850;
}

.picker-trigger-secondary {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.customer-picker-trigger {
    min-height: 62px;
}

.statement-entry-table .product-picker-trigger {
    min-width: 0;
    max-width: none;
    border-radius: 7px;
}

.statement-entry-table .line-date {
    min-width: 135px;
}

.statement-entry-table .line-code,
.statement-entry-table .line-spec {
    min-width: 80px;
    font-size: 0.78rem;
    text-align: center;
}

.line-rental-schedule {
    display: grid;
    grid-template-columns:
        minmax(78px, auto)
        minmax(165px, 0.75fr)
        minmax(235px, 1fr)
        minmax(235px, 1fr)
        minmax(92px, auto);
    align-items: end;
    gap: 12px;
    padding: 12px 14px;
    border-left: 3px solid var(--teal);
    border-radius: 8px;
    background: #f4fbfb;
}

.statement-rental-row[hidden] {
    display: none;
}

.statement-rental-row > td {
    padding: 8px 10px 12px;
    border-top: 0;
    background: #fbfefe;
}

.line-rental-title {
    align-self: center;
    color: var(--teal-dark);
    font-size: 0.82rem;
    white-space: nowrap;
}

.line-rental-schedule label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
}

.statement-entry-table .line-rental-schedule input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 7px 9px;
    font-size: 0.8rem;
}

.line-rental-days {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(7, 140, 141, 0.24);
    border-radius: 8px;
    background: #fff;
    color: var(--teal-dark);
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
}

.statement-rental-summary,
.print-rental-summary {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1.35;
    white-space: normal;
}

.statement-entry-table .number-input {
    min-width: 100px;
    text-align: right;
}

.statement-entry-table .line-quantity {
    width: 100%;
    min-width: 0;
}

.line-price-history {
    width: 100%;
    min-width: 0;
    margin-top: 7px;
    padding: 8px 9px;
    border: 1px solid #c8dfdc;
    border-radius: 8px;
    background: #f4faf9;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
    text-align: left;
}

.line-price-history[hidden] {
    display: none;
}

.line-price-history > * {
    display: block;
}

.line-price-history .line-price-latest {
    color: var(--teal-dark);
    font-size: 0.78rem;
}

.line-price-history details {
    margin-top: 5px;
}

.line-price-history summary {
    color: var(--teal-dark);
    cursor: pointer;
    font-weight: 800;
}

.line-price-history ul {
    display: grid;
    gap: 4px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.line-price-history a {
    color: var(--ink);
    text-decoration: none;
}

.line-price-history a:hover,
.line-price-history a:focus-visible {
    color: var(--teal-dark);
    text-decoration: underline;
}

.line-price-history[data-state="error"] {
    border-color: #e7c3bf;
    background: #fff7f6;
    color: var(--danger);
}

.line-price-history[data-state="notice"] {
    border-color: #e6d7a8;
    background: #fffbed;
}

.statement-entry-table .line-amount {
    min-width: 100px;
}

.row-remove-button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: var(--danger-soft);
    color: var(--danger);
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 900;
}

body.catalog-picker-open {
    overflow: hidden;
}

.catalog-picker[hidden] {
    display: none;
}

.catalog-picker {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.catalog-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 29, 33, 0.58);
    backdrop-filter: blur(3px);
}

.catalog-picker-panel {
    position: relative;
    display: flex;
    width: min(680px, 100%);
    max-height: min(86dvh, 820px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(7, 140, 141, 0.2);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 85px rgba(6, 31, 35, 0.34);
}

.catalog-picker-panel[hidden] {
    display: none;
}

.catalog-picker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 12px;
}

.catalog-picker-header h2 {
    margin: 3px 0 0;
    font-size: 1.45rem;
}

.catalog-picker-header .eyebrow {
    margin: 0;
}

.catalog-picker-close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--canvas);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
}

.catalog-picker-search-label {
    padding: 0 24px 12px;
}

.catalog-picker-search-label input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 2px solid rgba(7, 140, 141, 0.34);
    border-radius: 12px;
    background: #fbfefe;
    font-size: 1rem;
}

.catalog-picker-search-label input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(7, 140, 141, 0.12);
    outline: 0;
}

.catalog-picker-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px 10px;
    color: var(--muted);
    font-size: 0.78rem;
}

.catalog-picker-meta-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.catalog-picker-meta-actions [hidden] {
    display: none;
}

.quick-product-create-panel {
    max-height: min(90dvh, 860px);
}

.quick-product-create-description {
    margin: 0;
    padding: 0 24px 16px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.quick-product-create-errors {
    margin: 0 24px 16px;
}

.quick-product-create-errors[hidden] {
    display: none;
}

.quick-product-create-errors ul {
    margin: 0;
    padding-left: 20px;
}

.quick-product-create-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    padding: 4px 24px 20px;
    overflow-y: auto;
}

.quick-product-create-fields > label:not(.checkbox-field) {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
}

.quick-product-create-fields .wide {
    grid-column: 1 / -1;
}

.quick-product-create-fields input:not([type="checkbox"]),
.quick-product-create-fields select {
    width: 100%;
    min-height: 46px;
}

.quick-product-create-fields input:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.quick-product-stock-field {
    margin: 0;
}

.quick-product-create-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    background: #f8fcfc;
}

.quick-product-create-actions button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.catalog-picker-results {
    min-height: 120px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--line);
}

.catalog-picker-result {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 15px 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.catalog-picker-result-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.catalog-picker-result-row .catalog-picker-result {
    border-bottom: 0;
}

.catalog-picker-result-row.is-batch-selected,
.catalog-picker-result-row.is-batch-selected .catalog-picker-result {
    background: #edf9f8;
}

.catalog-picker-result-check {
    display: flex;
    min-height: 70px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-right: 1px solid var(--line);
    color: var(--teal-dark);
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 850;
}

.catalog-picker-result-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--teal);
    cursor: pointer;
}

.catalog-picker-result:hover,
.catalog-picker-result:focus-visible,
.catalog-picker-result.is-active,
.catalog-picker-result[aria-selected="true"] {
    background: #edf9f8;
    outline: 0;
}

.catalog-picker-match {
    border-radius: 3px;
    background: #fff0a8;
    color: inherit;
    font-weight: 900;
}

.catalog-picker-result strong,
.catalog-picker-result small {
    display: block;
}

.catalog-picker-result strong {
    font-size: 0.96rem;
}

.catalog-picker-result small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.75rem;
}

.catalog-picker-result-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.catalog-picker-recent,
.catalog-picker-selected {
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 850;
    white-space: nowrap;
}

.catalog-picker-recent {
    background: #fff4d5;
    color: #805a00;
}

.catalog-picker-selected {
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.catalog-picker-empty {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 0;
    padding: 30px 24px;
    color: var(--muted);
    text-align: center;
}

.catalog-picker-empty[hidden] {
    display: none;
}

.catalog-picker-create-link {
    color: var(--teal-dark);
    font-weight: 850;
    text-decoration: none;
}

.catalog-picker-create-link:hover,
.catalog-picker-create-link:focus-visible {
    text-decoration: underline;
}

.catalog-picker-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    border-top: 1px solid var(--line);
    background: #f8fcfc;
    box-shadow: 0 -8px 24px rgba(6, 31, 35, 0.06);
}

.catalog-picker-actions[hidden] {
    display: none;
}

.catalog-picker-actions > span {
    color: var(--teal-dark);
    font-size: 0.82rem;
    font-weight: 850;
    white-space: nowrap;
}

.catalog-picker-actions > div {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.catalog-picker-actions button {
    min-height: 40px;
    padding: 8px 13px;
}

.catalog-picker-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.statement-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 22px;
}

.statement-summary dl,
.statement-document-footer dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.statement-summary dl div,
.statement-document-footer dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.statement-summary dt,
.statement-document-footer dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.statement-summary dd,
.statement-document-footer dd {
    margin: 0;
    font-weight: 850;
    text-align: right;
}

.statement-summary .total,
.statement-document-footer .total {
    padding: 14px;
    border: 0;
    border-radius: 10px;
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.statement-summary .total dt,
.statement-document-footer .total dt {
    color: inherit;
}

.statement-summary .total dd,
.statement-document-footer .total dd {
    font-size: 1.2rem;
}

.statement-save-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.statement-document {
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid rgba(7, 140, 141, 0.18);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.statement-document-header {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(430px, 1.25fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 25px;
}

.statement-document-header h2 {
    margin: 5px 0 18px;
    font-size: 1.7rem;
}

.statement-customer-name {
    overflow-wrap: anywhere;
}

/* 대표자명은 업체명에 이어 약 2/3 크기로 표시합니다. */
.statement-customer-representative {
    font-size: 0.6667em;
    font-weight: inherit;
}

.statement-document-header > div:first-child > strong {
    color: var(--teal-dark);
    font-size: 1.35rem;
}

.supplier-box {
    border: 2px solid var(--teal);
}

.supplier-box dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.supplier-box dl div {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    border-right: 1px solid var(--teal);
    border-bottom: 1px solid var(--teal);
}

.supplier-box dl div:nth-child(even) {
    border-right: 0;
}

.supplier-box dl div.pair-left {
    border-right: 1px solid var(--teal);
}

.supplier-box dl div.pair-right {
    border-right: 0;
}

.supplier-box dl .wide {
    grid-column: 1 / -1;
    border-right: 0;
}

.supplier-box dt,
.supplier-box dd {
    margin: 0;
    padding: 7px 8px;
    font-size: 0.78rem;
}

.supplier-box dt {
    border-right: 1px solid var(--teal);
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-weight: 900;
}

.statement-view-table {
    min-width: 850px;
}

.statement-view-table td {
    font-size: 0.82rem;
}

.statement-document-footer {
    display: grid;
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
    gap: 30px;
    margin-top: 25px;
}

.statement-notes {
    padding: 18px;
    border-radius: 12px;
    background: #f6fafa;
    color: #415f64;
}

.statement-notes p {
    margin: 0 0 8px;
}

.statement-notes p:last-child {
    margin-bottom: 0;
}

.input-with-suffix {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.input-with-suffix input {
    border-radius: 9px 0 0 9px;
}

.input-with-suffix span {
    display: flex;
    min-height: 47px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #bfd1d3;
    border-left: 0;
    border-radius: 0 9px 9px 0;
    background: #f5f9f9;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.heading-actions form {
    display: flex;
    margin: 0;
}

.rental-items,
.rental-view-items {
    display: grid;
    gap: 18px;
}

.rental-item {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid #c9dddd;
    border-radius: 15px;
    background: #fbfefe;
}

.rental-item-heading,
.rental-view-item > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.rental-item-heading h3,
.rental-view-item h3 {
    margin: 3px 0 0;
}

.rental-item-main-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.rental-deposit-box,
.rental-usage-box {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.rental-deposit-box h4,
.rental-usage-box h4 {
    margin: 0 0 13px;
    color: var(--teal-dark);
}

.rental-deposit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.rental-row-total {
    display: flex;
    min-height: 76px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--teal-soft);
}

.rental-row-total span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.rental-row-total strong {
    color: var(--teal-dark);
    font-size: 1.05rem;
}

.rental-usage-grid {
    display: grid;
    grid-template-columns: minmax(90px, 0.35fr) repeat(2, minmax(160px, 1fr));
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
}

.rental-usage-grid:first-of-type {
    border-top: 0;
}

.rental-usage-heading {
    padding: 0 0 8px;
    color: var(--muted);
    font-size: 0.76rem;
    text-align: center;
}

.rental-usage-grid > strong {
    color: var(--teal-dark);
    text-align: center;
}

.rental-usage-grid label {
    position: relative;
}

.rental-usage-grid label small {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.rental-usage-grid input {
    padding-right: 35px;
    text-align: right;
}

.rental-summary h2 {
    margin-top: 0;
}

.rental-summary > .muted {
    margin: 16px 0 0;
    font-size: 0.8rem;
}

.rental-document {
    display: grid;
    gap: 24px;
}

.rental-document .statement-document-header {
    margin-bottom: 0;
}

.rental-view-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #b9d6d6;
    border-radius: 13px;
}

.rental-view-summary div {
    display: grid;
    gap: 7px;
    padding: 16px;
    border-right: 1px solid #b9d6d6;
}

.rental-view-summary div:last-child {
    border-right: 0;
}

.rental-view-summary div:nth-child(n + 5) {
    border-top: 1px solid #b9d6d6;
}

.rental-view-summary span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.rental-view-summary strong {
    color: var(--teal-dark);
    font-size: 1.05rem;
}

.rental-view-summary .total {
    background: var(--teal-soft);
}

.rental-view-item {
    overflow: hidden;
    border: 1px solid #c9dddd;
    border-radius: 14px;
}

.rental-view-item > header {
    padding: 18px 20px;
    background: #f4fafa;
}

.rental-view-item > header span {
    color: var(--teal);
    font-size: 0.74rem;
    font-weight: 900;
}

.rental-view-item > header p {
    margin: 5px 0 0;
    color: var(--muted);
}

.rental-view-item > header > strong {
    color: var(--teal-dark);
}

.rental-view-price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
}

.rental-view-price-grid div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 20px;
    border-right: 1px solid var(--line);
}

.rental-view-price-grid div:last-child {
    border-right: 0;
}

.rental-view-price-grid span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.rental-rate-table {
    width: 100%;
    border-collapse: collapse;
}

.rental-rate-table th,
.rental-rate-table td {
    padding: 11px 16px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
}

.rental-rate-table th:last-child,
.rental-rate-table td:last-child {
    border-right: 0;
}

.rental-rate-table thead th {
    background: #fbfdfd;
    color: var(--muted);
    font-size: 0.75rem;
}

.rental-rate-table tbody th {
    color: var(--teal-dark);
}

.rental-internal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    background: #fffaf0;
}

.rental-internal-actions span {
    color: #765a20;
    font-size: 0.78rem;
    font-weight: 750;
}

.cost-model-form,
.profitability-form,
.profitability-results {
    display: grid;
    gap: 22px;
}

.cost-component-panel {
    padding: 0;
    overflow: hidden;
}

.cost-component-panel .panel-heading {
    padding: 20px 22px 14px;
}

.cost-component-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) repeat(2, minmax(160px, 1fr));
    align-items: center;
    gap: 18px;
    padding: 12px 22px;
    border-top: 1px solid var(--line);
}

.cost-component-grid > strong {
    color: var(--teal-dark);
}

.cost-component-grid label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.cost-component-grid label small {
    min-width: 1.4rem;
    color: var(--muted);
    font-weight: 800;
}

.cost-component-heading {
    background: #f4fafa;
    color: var(--muted);
    font-size: 0.76rem;
}

.profitability-input-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 22px;
}

.profitability-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.profitability-kpi-grid article {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 145px;
}

.profitability-kpi-grid span,
.profitability-kpi-grid small {
    color: var(--muted);
}

.profitability-kpi-grid span {
    font-size: 0.78rem;
    font-weight: 850;
}

.profitability-kpi-grid strong {
    color: var(--teal-dark);
    font-size: 1.2rem;
}

.profitability-success {
    border-color: #a8d9bd;
    background: var(--success-soft);
}

.profitability-warning {
    border-color: #e8c8a0;
    background: #fff7e8;
}

.profitability-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.profitability-value.positive,
.positive {
    color: var(--success);
}

.profitability-value.negative,
.negative {
    color: var(--danger);
}

.profitability-value small {
    color: inherit;
}

.profitability-table-panel {
    overflow: hidden;
}

.profitability-table-panel .panel-heading {
    padding: 20px 22px 8px;
}

.table-scroll {
    overflow-x: auto;
}

.compact-table th,
.compact-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
}

.profitability-month-table {
    min-width: 980px;
}

.break-even-row {
    background: var(--success-soft);
    font-weight: 800;
}

.year-end-row {
    background: #f5f9f9;
}

.profitability-snapshot {
    margin-bottom: 22px;
}

.user-account-form,
.user-password-reset-form,
.account-password-form {
    display: grid;
    gap: 20px;
}

.user-name {
    text-decoration: none;
}

.user-name:hover,
.user-name:focus-visible {
    color: var(--teal-dark);
    text-decoration: underline;
}

.rental-item-memo {
    margin: 0;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.84rem;
}

.rental-terms {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 13px;
    background: #f6fafa;
}

.rental-terms h3,
.rental-terms p {
    margin: 0;
}

.rental-terms h3 {
    margin-bottom: 6px;
    color: var(--teal-dark);
    font-size: 0.95rem;
}

.data-table td.number-cell small {
    display: block;
    margin-top: 3px;
}

@media (max-width: 720px) {
    .topbar {
        min-height: auto;
        display: block;
        padding: 16px 20px;
    }

    .brand {
        display: inline-block;
        margin-bottom: 12px;
    }

    .nav {
        display: grid;
        gap: 12px;
        margin-left: 0;
        font-size: 0.88rem;
    }

    .nav-main {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .nav-menu > summary {
        width: 100%;
        justify-content: space-between;
        border: 1px solid rgba(7, 140, 141, 0.16);
        background: #fff;
    }

    .nav-menu-panel,
    .nav-main .nav-menu:nth-last-child(-n+2) .nav-menu-panel,
    .nav-account .nav-menu-panel {
        position: static;
        min-width: 0;
        margin-top: 5px;
        border-radius: 10px;
        box-shadow: none;
    }

    .nav-main .nav-menu[open] {
        grid-column: 1 / -1;
    }

    .nav-utility {
        justify-content: flex-start;
        gap: 0.7rem;
        padding-top: 9px;
        border-top: 1px solid var(--line);
    }

    .nav-utility > a {
        min-height: 2.4rem;
        display: inline-flex;
        align-items: center;
        padding: 0 0.45rem;
    }

    .nav-account {
        margin-left: auto;
    }

    .nav-account > summary {
        min-width: 7rem;
    }

    .page-shell {
        width: min(100% - 28px, 1320px);
        padding: 32px 0 56px;
    }

    .auth-card {
        margin-top: 0;
        border-radius: 17px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-grid,
    .form-grid,
    .list-toolbar,
    .rental-asset-toolbar,
    .statement-list-toolbar,
    .payment-list-toolbar,
    .tax-invoice-toolbar,
    .tax-invoice-guide,
    .tax-invoice-export-panel,
    .statement-bottom-grid,
    .statement-document-header,
    .statement-document-footer,
    .profitability-input-grid,
    .profitability-summary-grid {
        grid-template-columns: 1fr;
    }

    .seal-upload-field {
        grid-template-columns: 1fr;
    }

    .seal-preview-frame {
        width: min(160px, 100%);
    }

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

    .cost-component-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .cost-component-heading {
        display: none;
    }

    .rental-internal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rental-internal-actions .secondary-button {
        text-align: center;
    }

    .tax-invoice-export-panel > small {
        grid-column: auto;
        text-align: left;
    }

    .tax-invoice-table {
        min-width: 0;
    }

    .tax-invoice-table colgroup {
        display: none;
    }

    .payment-balance-summary,
    .payment-preview,
    .customer-ledger-toolbar,
    .customer-ledger-info,
    .customer-ledger-summary {
        grid-template-columns: 1fr;
    }

    .customer-ledger-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-ledger-table {
        min-width: 0;
    }

    .customer-ledger-table colgroup {
        display: none;
    }

    .customer-ledger-table tfoot {
        display: none;
    }

    .dashboard-notices {
        padding: 20px;
    }

    .dashboard-notice-list > a,
    .notice-list-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-notice-list time {
        padding-left: 2px;
    }

    .notice-list-main {
        width: 100%;
        padding: 20px;
    }

    .notice-admin-actions {
        width: 100%;
        justify-content: flex-end;
        padding: 0 20px 20px;
    }

    .notice-document,
    .notice-form {
        padding: 22px 20px;
    }

    .form-grid .wide {
        grid-column: auto;
    }

    .product-settings-form {
        padding: 22px 18px;
    }

    .product-form-grid {
        gap: 22px;
    }

    .product-form-field {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .product-field-label {
        padding-top: 0;
    }

    .rental-asset-form {
        padding: 22px 18px;
    }

    .rental-asset-form-grid {
        gap: 22px;
    }

    .rental-asset-form-field {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .rental-asset-field-label {
        padding-top: 0;
    }

    .rental-repair-asset-summary {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .rental-repair-history-heading .primary-button {
        width: 100%;
    }

    .rental-consumable-usage-form {
        padding: 22px 18px;
    }

    .rental-consumable-usage-item {
        grid-template-columns: 30px minmax(0, 1fr);
        align-items: start;
    }

    .rental-consumable-usage-item .usage-item-quantity,
    .rental-consumable-usage-item > small {
        grid-column: 2;
    }

    .rental-profitability-toolbar,
    .rental-profitability-cards,
    .rental-asset-profit-summary-grid {
        grid-template-columns: 1fr;
    }

    .rental-profitability-toolbar .search-field {
        grid-column: auto;
    }

    .rental-profitability-toolbar .secondary-button,
    .rental-profitability-warning .text-button {
        width: 100%;
        margin-left: 0;
    }

    .rental-profitability-table-wrap {
        overflow: visible;
        scrollbar-gutter: auto;
    }

    .rental-profitability-table {
        min-width: 0;
        table-layout: auto;
    }

    .rental-profitability-table colgroup {
        display: none;
    }

    .rental-repair-form-actions {
        flex-wrap: wrap;
    }

    .rental-repair-form-actions .danger-button {
        width: 100%;
        margin-right: 0;
    }

    .company-card {
        padding: 20px;
    }

    .company-details {
        grid-template-columns: 1fr;
    }

    .company-details .wide {
        grid-column: auto;
    }

    .data-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table thead {
        display: none;
    }

    .data-table tr {
        margin-bottom: 14px;
        padding: 12px 17px;
        border: 1px solid rgba(7, 140, 141, 0.14);
        border-radius: 14px;
        background: var(--paper);
        box-shadow: 0 7px 20px rgba(22, 61, 66, 0.05);
    }

    .data-table td {
        display: grid;
        grid-template-columns: 8.5rem minmax(0, 1fr);
        gap: 12px;
        padding: 9px 0;
        border-bottom: 1px solid var(--line);
        text-align: right;
    }

    .data-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.75rem;
        font-weight: 800;
        text-align: left;
    }

    .data-table td:last-child {
        border-bottom: 0;
    }

    .data-table .number-cell,
    .data-table .action-cell {
        text-align: right;
    }

    .statement-item-summary {
        max-width: none;
    }

    .pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination-links {
        justify-content: flex-start;
    }

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

    .statement-compact-header-form {
        padding: 22px 18px;
    }

    .statement-meta-field {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .statement-section-heading,
    .heading-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .statement-items-panel > .statement-section-heading {
        grid-template-columns: 1fr;
    }

    .action-menu,
    .action-menu > summary {
        width: 100%;
    }

    .action-menu-panel {
        position: static;
        min-width: 0;
        margin-top: 6px;
        box-shadow: none;
    }

    .statement-items-panel {
        padding: 16px;
    }

    .rental-item {
        padding: 16px;
    }

    .rental-item-main-grid,
    .rental-deposit-grid,
    .rental-view-summary {
        grid-template-columns: 1fr;
    }

    .rental-view-summary div,
    .rental-view-summary div:last-child {
        border-right: 0;
        border-bottom: 1px solid #b9d6d6;
    }

    .rental-view-summary div:nth-child(n + 5) {
        border-top: 0;
    }

    .rental-view-summary div:last-child {
        border-bottom: 0;
    }

    .rental-usage-grid {
        grid-template-columns: 72px repeat(2, minmax(125px, 1fr));
        min-width: 440px;
    }

    .rental-usage-box {
        overflow-x: auto;
    }

    .rental-view-price-grid {
        grid-template-columns: 1fr;
    }

    .rental-view-price-grid div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .rental-view-price-grid div:last-child {
        border-bottom: 0;
    }

    .catalog-picker {
        place-items: end center;
        padding: 0;
    }

    .catalog-picker-panel {
        width: 100%;
        max-height: 92dvh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 20px 20px 0 0;
    }

    .catalog-picker-header {
        padding: 18px 18px 10px;
    }

    .catalog-picker-search-label {
        padding: 0 18px 10px;
    }

    .catalog-picker-meta {
        padding: 0 18px 9px;
    }

    .catalog-picker-meta-actions {
        align-items: flex-end;
        flex-direction: column;
        gap: 6px;
    }

    .quick-product-create-description {
        padding: 0 18px 14px;
    }

    .quick-product-create-errors {
        margin: 0 18px 14px;
    }

    .quick-product-create-fields {
        grid-template-columns: 1fr;
        padding: 4px 18px 18px;
    }

    .quick-product-create-fields .wide {
        grid-column: auto;
    }

    .quick-product-create-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        padding: 14px 18px;
    }

    .catalog-picker-result {
        min-height: 70px;
        padding: 14px 18px;
    }

    .catalog-picker-result-row {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .catalog-picker-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 12px 18px;
    }

    .catalog-picker-actions > div,
    .catalog-picker-actions button {
        flex: 1;
    }

    .catalog-picker-result strong {
        font-size: 1rem;
    }

    .statement-entry-table .product-picker-trigger {
        min-width: 220px;
    }

    .statement-save-actions {
        position: sticky;
        bottom: 10px;
        z-index: 5;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 25px rgba(22, 61, 66, 0.14);
    }

    .statement-save-actions > * {
        flex: 1;
    }

    .supplier-box dl {
        grid-template-columns: 1fr;
    }

    .supplier-box dl div {
        border-right: 0;
    }

    .supplier-box dl div.pair-left {
        border-right: 0;
    }

    .supplier-box dl .wide {
        grid-column: auto;
    }

    /* 월별 BEP 표는 카드로 바꾸지 않고 가로 스크롤 표로 유지합니다. */
    .profitability-month-table,
    .profitability-month-table tbody,
    .profitability-month-table tr,
    .profitability-month-table td {
        display: revert;
        width: auto;
    }

    .profitability-month-table thead {
        display: table-header-group;
    }

    .profitability-month-table tr {
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .profitability-month-table td {
        padding: 10px 12px;
        border-bottom: 1px solid var(--line);
        text-align: inherit;
    }

    .profitability-month-table td::before {
        content: none;
    }
}

@media (max-width: 460px) {
    .profitability-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.print-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 8px 24px rgba(22, 61, 66, 0.07);
}

.print-toolbar p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.print-toolbar p.error-text {
    color: var(--danger);
}

.print-toolbar button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.print-pages {
    display: grid;
    gap: 24px;
}

.print-sheet {
    position: relative;
    width: 194mm;
    min-height: 277mm;
    margin: 0 auto;
    padding: 8mm;
    overflow: hidden;
    border: 1px solid #d4dddd;
    background: #fff;
    color: #102f34;
    box-shadow: 0 15px 40px rgba(22, 61, 66, 0.12);
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

.print-document-status {
    margin: -2mm 0 4mm;
    padding: 2mm 3mm;
    border: 1px solid #b8860b;
    background: #fff8dc;
    color: #765600;
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
}

.print-document-status-cancelled {
    border-color: #b54c58;
    background: #fff0f1;
    color: #8d2633;
}

.pdf-capture-mode .print-sheet {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.print-document-header {
    display: grid;
    grid-template-columns: 29% 27% 44%;
    min-height: 48mm;
    align-items: stretch;
    color: #12383c;
}

.print-recipient-meta {
    display: grid;
    grid-template-rows: 11mm 11mm 1fr;
    margin: 0;
    border-top: 1px solid #079798;
    border-left: 1px solid #079798;
}

.print-recipient-meta div {
    display: grid;
    grid-template-columns: 19mm 1fr;
    border-right: 1px solid #079798;
    border-bottom: 1px solid #079798;
}

.print-recipient-meta div:last-child {
    border-bottom: 0;
}

.print-recipient-meta dt,
.print-recipient-meta dd {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 1.5mm 2mm;
    font-size: 9pt;
}

.print-recipient-meta dt {
    justify-content: center;
    border-right: 1px solid #079798;
    color: #067b7c;
    font-weight: 800;
}

.print-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 4mm 2mm 0;
    text-align: center;
}

.print-title-block h1 {
    margin: 0;
    color: #087f80;
    font-size: 21pt;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.25;
    white-space: nowrap;
}

.print-title-block p {
    margin: 1mm 0 4mm;
    color: #659296;
    font-size: 9pt;
}

.print-title-block strong {
    display: block;
    width: calc(100% + 4mm);
    margin-top: auto;
    padding: 2.2mm 1mm;
    border-top: 1px solid #079798;
    color: #111;
    font-size: 13pt;
}

.print-supplier {
    position: relative;
    align-self: start;
}

.print-supplier dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid #079798;
    border-left: 1px solid #079798;
}

.print-supplier dl div {
    display: grid;
    grid-template-columns: 14mm minmax(0, 1fr);
    min-height: 8mm;
    border-right: 1px solid #079798;
    border-bottom: 1px solid #079798;
}

.print-supplier dl .wide {
    grid-column: 1 / -1;
}

.print-supplier dt,
.print-supplier dd {
    display: flex;
    min-width: 0;
    align-items: center;
    margin: 0;
    padding: 1mm 1.5mm;
    font-size: 7.5pt;
    line-height: 1.25;
}

.print-supplier dt {
    justify-content: center;
    border-right: 1px solid #079798;
    background: #e9f7f6;
    color: #057b7c;
    font-weight: 800;
}

.print-supplier dd {
    overflow-wrap: anywhere;
}

.print-seal {
    position: absolute;
    z-index: 2;
    top: 4mm;
    right: 3mm;
    width: 20mm;
    height: 20mm;
    object-fit: contain;
    opacity: 0.78;
}

.print-items {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    color: #15393e;
}

.print-items col.date {
    width: 8%;
}

.print-items col.code {
    width: 12%;
}

.print-items col.name {
    width: 27%;
}

.print-items col.spec {
    width: 11%;
}

.print-items col.quantity {
    width: 9%;
}

.print-items col.price {
    width: 12%;
}

.print-items col.amount {
    width: 14%;
}

.print-items col.tax {
    width: 7%;
}

.print-items th,
.print-items td {
    height: 6.2mm;
    padding: 0.8mm 1.2mm;
    overflow: hidden;
    border: 1px solid #079798;
    font-size: 7.6pt;
    line-height: 1.15;
    text-overflow: ellipsis;
}

.print-items th {
    height: 7mm;
    color: #067b7c;
    font-weight: 800;
    text-align: center;
}

.print-items td {
    vertical-align: middle;
    white-space: nowrap;
}

.print-items td.item-name {
    white-space: normal;
}

.print-rental-summary {
    color: #315e60;
    font-size: 6.3pt;
    line-height: 1.2;
}

.print-items .number-cell {
    text-align: right;
}

.print-items .blank-row td {
    color: transparent;
}

.print-document-footer {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 29mm;
    border-right: 1px solid #079798;
    border-bottom: 1px solid #079798;
    border-left: 1px solid #079798;
}

.print-totals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-right: 1px solid #079798;
}

.print-totals div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2mm;
    padding: 1.2mm 2mm;
    border-right: 1px solid #079798;
    border-bottom: 1px solid #079798;
    font-size: 7.8pt;
}

.print-totals div:nth-child(even) {
    border-right: 0;
}

.print-totals div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.print-totals span {
    color: #067b7c;
    font-weight: 800;
}

.print-totals strong {
    text-align: right;
}

.print-totals .grand-total {
    background: #e9f7f6;
}

.print-footer-notes {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2mm 3mm;
    font-size: 7.5pt;
    line-height: 1.35;
}

.print-footer-notes p {
    margin: 0 0 1mm;
}

.print-footer-notes p:last-child {
    margin-bottom: 0;
}

.print-statement-bank {
    margin: 2mm 0 0;
    padding: 0 2mm;
    color: #17383d;
    font-size: 9pt;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    break-before: avoid;
    page-break-before: avoid;
}

.print-continued {
    padding: 2mm;
    border-right: 1px solid #079798;
    border-bottom: 1px solid #079798;
    border-left: 1px solid #079798;
    color: #067b7c;
    font-size: 8pt;
    text-align: right;
}

.rental-print-sheet {
    display: flex;
    flex-direction: column;
}

.rental-print-header {
    grid-template-columns: 30% 26% 44%;
}

.rental-print-header .print-recipient-meta {
    grid-template-rows: repeat(4, 1fr);
}

.rental-print-header .print-recipient-meta div {
    grid-template-columns: 18mm 1fr;
}

.rental-print-header .print-recipient-meta div:last-child {
    border-bottom: 1px solid #079798;
}

.rental-print-header .print-recipient-meta dt,
.rental-print-header .print-recipient-meta dd {
    font-size: 7pt;
}

.rental-print-header .print-title-block h1 {
    font-size: 16pt;
}

.rental-print-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 3mm;
    border-top: 1px solid #079798;
    border-left: 1px solid #079798;
}

.rental-print-meta div {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 12mm;
    border-right: 1px solid #079798;
    border-bottom: 1px solid #079798;
    text-align: center;
}

.rental-print-meta span {
    padding: 0.8mm 1mm;
    background: #e9f7f6;
    color: #067b7c;
    font-size: 6.8pt;
    font-weight: 800;
}

.rental-print-meta strong {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1mm;
    font-size: 7.5pt;
}

.rental-print-items {
    display: grid;
    gap: 3mm;
    margin-top: 3mm;
}

.rental-print-item {
    overflow: hidden;
    border: 1px solid #079798;
}

.rental-print-item > header {
    display: flex;
    min-height: 15mm;
    align-items: center;
    justify-content: space-between;
    gap: 4mm;
    padding: 2mm 3mm;
    background: #f5fbfa;
}

.rental-print-item > header span {
    color: #078c8d;
    font-size: 6.5pt;
    font-weight: 800;
}

.rental-print-item > header h2 {
    margin: 0.5mm 0 0;
    color: #12383c;
    font-size: 11pt;
}

.rental-print-item > header p {
    margin: 0.7mm 0 0;
    color: #59777b;
    font-size: 7pt;
}

.rental-print-item > header > strong {
    white-space: nowrap;
    color: #067b7c;
    font-size: 9pt;
}

.rental-print-prices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #079798;
}

.rental-print-prices div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2mm;
    padding: 1.4mm 3mm;
    border-right: 1px solid #079798;
    font-size: 7.4pt;
}

.rental-print-prices div:last-child {
    border-right: 0;
}

.rental-print-prices span {
    color: #067b7c;
    font-weight: 800;
}

.rental-print-rate-table {
    width: 100%;
    border-collapse: collapse;
}

.rental-print-rate-table th,
.rental-print-rate-table td {
    height: 7mm;
    padding: 1mm 2mm;
    border-top: 1px solid #079798;
    border-right: 1px solid #079798;
    font-size: 7.2pt;
    text-align: center;
}

.rental-print-rate-table th:last-child,
.rental-print-rate-table td:last-child {
    border-right: 0;
}

.rental-print-rate-table thead th {
    color: #067b7c;
}

.rental-print-rate-table tbody th {
    background: #f8fcfc;
}

.rental-print-memo {
    margin: 0;
    padding: 1.5mm 3mm;
    border-top: 1px solid #079798;
    color: #536f73;
    font-size: 6.8pt;
}

.rental-print-footer {
    display: grid;
    grid-template-columns: 38% 62%;
    min-height: 42mm;
    margin-top: auto;
    border: 1px solid #079798;
}

.rental-print-totals {
    display: grid;
    border-right: 1px solid #079798;
}

.rental-print-totals div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2mm;
    padding: 1.3mm 2.5mm;
    border-bottom: 1px solid #079798;
    font-size: 7.5pt;
}

.rental-print-totals div:last-child {
    border-bottom: 0;
}

.rental-print-totals span {
    color: #067b7c;
    font-weight: 800;
}

.rental-print-totals .grand-total {
    background: #e9f7f6;
    font-size: 8.2pt;
}

.rental-print-terms {
    padding: 2mm 3mm;
    font-size: 6.6pt;
    line-height: 1.35;
}

.rental-print-terms h3 {
    margin: 0 0 0.7mm;
    color: #067b7c;
    font-size: 7.2pt;
}

.rental-print-terms p {
    margin: 0 0 1.3mm;
}

.rental-print-terms small {
    color: #536f73;
    font-size: 6.4pt;
}

.rental-customer-picker,
.rental-customer-card,
.rental-billing-item > header,
.rental-billing-item > footer,
.rental-billing-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.rental-customer-picker {
    margin-bottom: 18px;
}

.rental-customer-picker h2,
.rental-equipment-heading h2,
.rental-billing-item h2,
.rental-billing-item h3 {
    margin: 0;
}

.rental-equipment-heading {
    margin-top: 30px;
}

.rental-metered-fields {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #bfd9d9;
    border-radius: 14px;
    background: #f5fbfb;
}

.rental-metered-fields legend {
    padding: 0 8px;
    color: #067b7c;
    font-weight: 800;
}

.rental-customer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.rental-customer-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
    gap: 16px;
    margin: 18px 0 14px;
    padding: 14px;
    border: 1px solid #cfe1e2;
    border-radius: 12px;
    background: #f7fbfb;
}

.rental-customer-search label > span {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
}

.rental-customer-search-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.rental-customer-search-actions > span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.rental-customer-search-empty {
    margin: 16px 0 0;
    padding: 20px;
    border: 1px dashed #bfd4d5;
    border-radius: 12px;
    text-align: center;
}

.rental-customer-card {
    padding: 14px;
    border: 1px solid #d4e4e5;
    border-radius: 12px;
    background: #fff;
}

.rental-confirm-panel {
    margin: 20px 0 14px;
}

.rental-confirm-heading,
.rental-confirm-actions,
.rental-select-all,
.rental-row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rental-confirm-heading {
    justify-content: space-between;
}

.rental-confirm-heading h2 {
    margin: 0 0 6px;
}

.rental-confirm-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rental-select-all {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #c9dddd;
    border-radius: 12px;
    background: #f7fbfb;
    font-weight: 800;
    cursor: pointer;
}

.rental-select-all input,
.rental-confirm-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--teal);
}

.rental-selected-count {
    min-width: 72px;
    color: var(--teal);
    font-weight: 900;
    text-align: center;
}

.rental-confirm-table .selection-cell {
    width: 64px;
    text-align: center;
}

.rental-confirm-table .rental-row-draft {
    background: #fffdf7;
}

.rental-confirm-table .rental-row-confirmed {
    background: #f7fbf9;
}

.rental-row-actions {
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .rental-customer-search {
        grid-template-columns: 1fr;
    }

    .rental-customer-search-actions {
        align-items: stretch;
        justify-content: flex-start;
    }

    .rental-confirm-heading,
    .rental-confirm-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rental-confirm-actions {
        margin-top: 14px;
    }

    .rental-selected-count {
        text-align: left;
    }
}

.rental-customer-card small,
.rental-billing-item header p {
    display: block;
    margin-top: 4px;
    color: #62787b;
}

.rental-tax-policy-fieldset {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--border-color, #d9e1e8);
    border-radius: 12px;
}

.rental-tax-policy-fieldset > legend {
    padding: 0 8px;
    font-weight: 700;
}

.rental-tax-policy-fieldset > .checkbox-field {
    margin-bottom: 16px;
}

.rental-billing-items {
    display: grid;
    gap: 16px;
    margin: 18px 0;
}

.rental-billing-item {
    overflow: hidden;
}

.rental-billing-item > header {
    padding-bottom: 14px;
    border-bottom: 1px solid #dbe8e9;
}

.rental-billing-item > header span,
.rental-billing-base span,
.rental-billing-summary span {
    color: #607679;
    font-size: 0.86rem;
}

.rental-billing-base {
    text-align: right;
}

.rental-billing-base strong {
    display: block;
    margin-top: 4px;
    font-size: 1.25rem;
}

.rental-usage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px 0;
}

.rental-usage-grid section {
    padding: 14px;
    border-radius: 12px;
    background: #f4f9fa;
}

.rental-usage-grid section > div {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.rental-billing-item > footer {
    padding-top: 14px;
    border-top: 1px solid #dbe8e9;
}

.rental-billing-item > footer strong {
    color: #067b7c;
    font-size: 1.2rem;
}

.rental-billing-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 18px;
    padding: 0;
    overflow: hidden;
}

.rental-billing-summary > div {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
    border-right: 1px solid #dbe8e9;
}

.rental-billing-summary > div:last-child {
    border-right: 0;
}

.rental-billing-summary .grand-total {
    color: #fff;
    background: #067b7c;
}

.rental-billing-summary .grand-total span {
    color: #d6ffff;
}

.rental-billing-summary strong {
    font-size: 1.18rem;
}

.rental-billing-print-table th,
.rental-billing-print-table td {
    font-size: 6.5pt;
}

.rental-billing-print-table td small {
    display: block;
    color: #536f73;
    font-size: 5.8pt;
}

.rental-billing-print-table .blank-row {
    height: 7mm;
}

.rental-billing-print-sheet .rental-print-footer {
    margin-top: 3mm;
}

@media (max-width: 760px) {
    .rental-customer-picker,
    .rental-billing-item > header,
    .rental-billing-item > footer {
        align-items: stretch;
        flex-direction: column;
    }

    .rental-usage-grid,
    .rental-billing-summary {
        grid-template-columns: 1fr;
    }

    .rental-billing-base {
        text-align: left;
    }

    .rental-billing-summary > div {
        border-right: 0;
        border-bottom: 1px solid #dbe8e9;
    }
}

@media (max-width: 860px) {
    .print-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .print-toolbar .heading-actions {
        width: 100%;
    }

    .print-toolbar .heading-actions > * {
        flex: 1 1 auto;
        text-align: center;
    }

    .print-pages {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .print-sheet {
        margin: 0;
        transform-origin: top left;
    }
}

@page {
    size: A4 portrait;
    margin: 8mm;
}

@media print {
    html,
    body {
        width: 100%;
        min-height: 0;
        background: #fff !important;
    }

    body {
        color-adjust: exact;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .topbar,
    .print-toolbar,
    .alert,
    .page-heading .heading-actions,
    .rental-internal-actions,
    .customer-ledger-toolbar,
    .customer-ledger-meta,
    .customer-ledger-empty {
        display: none !important;
    }

    .customer-ledger-info,
    .customer-ledger-summary,
    .customer-ledger-table-wrap {
        box-shadow: none;
    }

    .customer-ledger-table {
        min-width: 0;
        font-size: 0.72rem;
    }

    .profitability-kpi-grid,
    .profitability-summary-grid {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .page-shell {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .print-pages {
        display: block;
    }

    .print-sheet {
        width: 100%;
        min-height: 0;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        box-shadow: none;
        break-after: page;
        page-break-after: always;
    }

    .print-sheet:last-child {
        break-after: auto;
        page-break-after: auto;
    }

    .print-items tr,
    .print-document-header,
    .print-document-footer,
    .rental-print-item,
    .rental-print-footer {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* 국내 발주서 */
.domestic-po-items-table {
    min-width: 1320px;
}

.domestic-po-view-table {
    min-width: 1120px;
}

.domestic-po-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.domestic-po-print-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10mm;
    align-items: start;
    margin-bottom: 5mm;
}

.domestic-po-print-header h1 {
    margin: 1mm 0 2mm;
    font-size: 25pt;
    letter-spacing: 9mm;
}

.domestic-po-print-header p {
    margin: 0;
}

.domestic-po-print-header dl {
    min-width: 55mm;
    margin: 0;
    border-top: 1px solid #111;
}

.domestic-po-print-header dl div {
    display: grid;
    grid-template-columns: 22mm 1fr;
    border-bottom: 1px solid #111;
    border-left: 1px solid #111;
}

.domestic-po-print-header dt,
.domestic-po-print-header dd {
    margin: 0;
    padding: 2mm;
    border-right: 1px solid #111;
}

.domestic-po-print-header dt {
    font-weight: 700;
}

.domestic-po-buyer {
    position: relative;
}

.domestic-po-buyer img {
    position: absolute;
    top: 3mm;
    right: 4mm;
    width: 22mm;
    height: 22mm;
    object-fit: contain;
}

.domestic-po-print-table {
    font-size: 7pt;
}

.domestic-po-print-table th:nth-child(1) { width: 4%; }
.domestic-po-print-table th:nth-child(2) { width: 22%; }
.domestic-po-print-table th:nth-child(3) { width: 17%; }
.domestic-po-print-table th:nth-child(4) { width: 7%; }
.domestic-po-print-table th:nth-child(5) { width: 6%; }
.domestic-po-print-table th:nth-child(6) { width: 11%; }
.domestic-po-print-table th:nth-child(7) { width: 12%; }
.domestic-po-print-table th:nth-child(8) { width: 9%; }
.domestic-po-print-table th:nth-child(9) { width: 12%; }

.domestic-po-print-table td {
    overflow-wrap: anywhere;
}

.domestic-po-contact {
    margin-top: 4mm;
    font-weight: 700;
}

@media print {
    .domestic-po-print-sheet {
        break-after: page;
        page-break-after: always;
    }

    .domestic-po-print-sheet:last-child {
        break-after: auto;
        page-break-after: auto;
    }
}
.rental-import-guide {
    margin-bottom: 24px;
}

.rental-import-file-input {
    padding: 6px 8px;
    line-height: 33px;
}

.rental-import-file-input::file-selector-button {
    height: 33px;
    margin: 0 10px 0 0;
    padding: 0 13px;
    border: 1px solid #bfd0d1;
    border-radius: 7px;
    background: #f7fbfb;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    line-height: 31px;
    cursor: pointer;
    vertical-align: middle;
}

.rental-import-file-input::file-selector-button:hover {
    border-color: var(--teal);
    background: var(--teal-soft);
}

.rental-import-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
    counter-reset: rental-import-step;
}

.rental-import-steps li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 4px 10px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--teal-soft);
    counter-increment: rental-import-step;
}

.rental-import-steps li::before {
    content: counter(rental-import-step);
    grid-row: 1 / 3;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--teal);
    font-weight: 800;
}

.rental-import-steps span,
.rental-import-table small {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.rental-import-summary,
.rental-import-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 26px;
}

.rental-import-summary-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rental-import-summary-items > span {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--teal-soft);
}

.rental-import-summary-items .summary-ok {
    color: #126b46;
    background: #e5f5ec;
}

.rental-import-summary-items .summary-error,
.import-error-list {
    color: var(--danger);
}

.rental-import-table strong {
    display: block;
    margin-top: 5px;
}

.rental-import-table .import-row-error {
    background: #fff6f3;
}

.import-error-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
}

.import-warning-list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #8a5a00;
    font-size: 0.86rem;
}

@media (max-width: 900px) {
    .rental-import-steps {
        grid-template-columns: 1fr;
    }

    .rental-import-summary,
    .rental-import-confirm {
        align-items: flex-start;
        flex-direction: column;
    }
}

.payment-import-guide {
    margin-bottom: 24px;
}

.payment-import-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.payment-import-rules > div {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--teal-soft);
}

.payment-import-rules span,
.payment-import-table small {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.payment-import-upload-grid {
    grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1.3fr);
    align-items: start;
}

.payment-import-file-note {
    margin: 14px 0 0;
}

[data-payment-import-file-status].form-error {
    color: var(--danger);
    font-weight: 800;
}

.payment-import-mapping {
    margin-top: 26px;
}

.payment-import-mapping-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.payment-import-mapping-heading h2 {
    margin: 0;
}

.payment-import-mapping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.payment-import-mapping-grid > div {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--canvas);
}

.payment-import-mapping-grid > div.mapping-primary {
    border-color: var(--teal);
    background: var(--teal-soft);
}

.payment-import-mapping-grid span,
.payment-import-mapping-grid small {
    color: var(--muted);
    font-size: 0.85rem;
}

.payment-import-mapping-note {
    margin: 14px 0 0;
}

.payment-import-summary {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    margin-top: 26px;
    padding: 0;
    overflow: hidden;
}

.payment-import-summary > div {
    display: grid;
    gap: 5px;
    padding: 16px;
    border-right: 1px solid var(--line);
}

.payment-import-summary > div:last-child {
    border-right: 0;
}

.payment-import-summary span {
    color: var(--muted);
    font-size: 0.88rem;
}

.payment-import-summary strong {
    font-size: 1.2rem;
}

.payment-import-summary .summary-ok {
    background: var(--success-soft);
}

.payment-import-summary .summary-review {
    background: #fff7dc;
}

.payment-import-summary .summary-error {
    color: var(--danger);
    background: var(--danger-soft);
}

.payment-import-summary .summary-excluded {
    background: #f1f3f4;
}

.payment-import-table-wrap {
    /* 숨겨진 원본 select도 표 안을 기준으로 배치해 페이지 전체가 늘어나지 않게 합니다. */
    position: relative;
    overflow-x: auto;
}

.payment-import-table {
    min-width: 1180px;
    table-layout: fixed;
}

/* 짧은 고정 필드의 폭을 줄이고 남은 공간은 입금자·매칭 사유·거래처에 배분합니다. */
.payment-import-col-select { width: 5rem; }
.payment-import-col-row { width: 4.5rem; }
.payment-import-col-date { width: 8rem; }
.payment-import-col-payer { width: auto; }
.payment-import-col-amount { width: 9rem; }
.payment-import-col-result { width: auto; }
.payment-import-col-customer { width: 32%; }

.payment-import-table th,
.payment-import-table td {
    padding: 14px 12px;
}

.payment-import-table td {
    overflow-wrap: anywhere;
}

.payment-import-table th:first-child,
.payment-import-table td:first-child {
    text-align: center;
}

.payment-import-table td:nth-child(2),
.payment-import-table td:nth-child(3) {
    white-space: nowrap;
}

.payment-import-select-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.payment-import-select-all-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    white-space: nowrap;
}

.payment-import-table input[data-payment-row-select] {
    width: 18px;
    height: 18px;
}

.payment-import-table td strong {
    display: block;
}

.payment-import-table select {
    min-width: 0;
}

.payment-import-table select.searchable-select-native {
    min-width: 1px;
}

.payment-import-table .searchable-select-trigger {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.badge-confirmed {
    color: var(--success);
    background: var(--success-soft);
}

.badge-draft {
    color: #72510b;
    background: #fff3cf;
}

.badge-danger {
    color: var(--danger);
    background: var(--danger-soft);
}

.badge-neutral {
    color: #536166;
    background: #edf0f1;
}

.payment-import-duplicate-check {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 7px;
    align-items: flex-start;
    margin-top: 8px;
    color: var(--danger);
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: normal;
}

.payment-import-duplicate-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    padding: 0;
    border-radius: 4px;
    accent-color: var(--danger);
    cursor: pointer;
}

.payment-import-duplicate-check span {
    min-width: 0;
    overflow-wrap: break-word;
}

.payment-import-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .payment-import-rules,
    .payment-import-upload-grid,
    .payment-import-summary {
        grid-template-columns: 1fr;
    }

    .payment-import-mapping-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .payment-import-summary > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .payment-import-confirm {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .payment-import-table-wrap {
        overflow: visible;
    }

    .payment-import-table {
        min-width: 0;
        table-layout: auto;
    }

    .payment-import-table colgroup {
        display: none;
    }

    .payment-import-table td {
        padding: 9px 0;
    }

    .payment-import-table td:first-child {
        text-align: right;
    }

    .payment-import-table input[data-payment-row-select] {
        justify-self: end;
    }
}

.rental-meter-filter {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.6fr) minmax(170px, 0.7fr) auto;
    align-items: end;
    gap: 16px;
    margin-bottom: 24px;
}

.rental-meter-upload-grid {
    grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
    align-items: stretch;
}

.rental-meter-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.rental-meter-option-grid .checkbox-field {
    margin: 0;
}

.rental-meter-option-grid small {
    color: var(--muted);
    font-weight: 500;
    line-height: 1.55;
}

.rental-meter-period-card {
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--teal-soft);
}

.rental-meter-period-card span,
.rental-meter-period-card small {
    color: var(--muted);
}

.rental-meter-period-card strong {
    font-size: 1.05rem;
}

.rental-meter-preview-table {
    min-width: 1240px;
}

.rental-meter-preview-table td strong,
.rental-meter-preview-table td small {
    display: block;
}

.summary-combined,
.badge-meter-combined {
    color: #72510b;
    background: #fff3cf !important;
}

.summary-deferred,
.badge-meter-deferred {
    color: #73511f;
    background: #f7ead8 !important;
}

.missing-reading {
    color: var(--danger);
}

.heading-actions a[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.5;
}

@media (max-width: 900px) {
    .rental-meter-filter,
    .rental-meter-upload-grid,
    .rental-meter-option-grid {
        grid-template-columns: 1fr;
    }
}

/* 대시보드 세금계산서 발행 일정 */
.dashboard-tax-schedules {
    margin-bottom: 24px;
}

.dashboard-tax-heading {
    gap: 18px;
}

.dashboard-tax-heading h2,
.dashboard-tax-heading p {
    margin: 0;
}

.dashboard-tax-heading h2 {
    margin-top: 5px;
}

.dashboard-tax-progress {
    display: grid;
    grid-template-columns: minmax(280px, 0.45fr) minmax(240px, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin: 22px 0;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f3f9f9;
    cursor: pointer;
    list-style: none;
}

.dashboard-tax-progress::-webkit-details-marker {
    display: none;
}

.dashboard-tax-progress:hover,
.dashboard-tax-progress:focus-visible {
    background: #eaf5f5;
}

.dashboard-tax-progress:focus-visible {
    outline: 3px solid rgba(7, 140, 141, 0.18);
    outline-offset: 3px;
}

.dashboard-tax-progress-copy {
    display: grid;
    gap: 4px;
}

.dashboard-tax-progress strong {
    color: var(--teal-dark);
}

.dashboard-tax-month-counts {
    color: #315f63;
    font-size: 0.84rem;
    font-weight: 800;
}

.dashboard-tax-progress-copy small {
    color: var(--muted);
    font-size: 0.8rem;
}

.dashboard-tax-progress .progress-track {
    margin: 0;
}

.dashboard-tax-toggle {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--teal-dark);
    background: #dceeee;
    font-size: 1.25rem;
    font-weight: 900;
    transition: transform 0.18s ease;
}

.dashboard-tax-disclosure[open] .dashboard-tax-toggle {
    transform: rotate(180deg);
}

.dashboard-tax-disclosure[open] .dashboard-tax-list {
    margin-top: 14px;
}

.dashboard-tax-empty {
    margin: 22px 0 0;
    padding: 22px;
    border: 1px dashed #c7d5d6;
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
}

.dashboard-tax-list {
    display: grid;
    gap: 14px;
}

.dashboard-tax-schedule {
    overflow: hidden;
    border: 1px solid var(--line);
    border-left: 4px solid #aebfc1;
    border-radius: 14px;
    background: #fff;
}

.dashboard-tax-schedule.is-today {
    border-left-color: var(--teal);
    box-shadow: 0 9px 28px rgba(7, 140, 141, 0.09);
}

.dashboard-tax-schedule.is-overdue {
    border-left-color: var(--danger);
}

.dashboard-tax-schedule-header {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    background: #f8fbfb;
}

.dashboard-tax-date,
.dashboard-tax-customer {
    display: grid;
    gap: 4px;
}

.dashboard-tax-date strong {
    font-variant-numeric: tabular-nums;
}

.dashboard-tax-date span {
    width: fit-content;
    padding: 2px 7px;
    border-radius: 999px;
    color: var(--teal-dark);
    background: var(--teal-soft);
    font-size: 0.68rem;
    font-weight: 850;
}

.dashboard-tax-schedule.is-overdue .dashboard-tax-date span {
    color: var(--danger);
    background: var(--danger-soft);
}

.dashboard-tax-customer small,
.dashboard-tax-invoice-main small {
    color: var(--muted);
}

.dashboard-tax-invoice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 15px 18px;
    border-top: 1px solid var(--line);
}

.dashboard-tax-invoice-main {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.dashboard-tax-invoice-main > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-tax-status {
    padding: 3px 8px;
    border-radius: 999px;
    color: #586d71;
    background: #edf1f1;
    font-size: 0.72rem;
    font-weight: 850;
}

.dashboard-tax-invoice.is-ready .dashboard-tax-status {
    color: var(--success);
    background: var(--success-soft);
}

.dashboard-tax-invoice.is-exported .dashboard-tax-status,
.dashboard-tax-invoice.is-warning .dashboard-tax-status,
.dashboard-tax-invoice.is-missing .dashboard-tax-status {
    color: #805c00;
    background: #fff0cc;
}

.dashboard-tax-invoice.is-issued .dashboard-tax-status {
    color: #2859a8;
    background: #e9f0ff;
}

.dashboard-tax-invoice.is-missing {
    background: #fffaf1;
}

.dashboard-tax-invoice .secondary-button {
    margin: 0;
}

.dashboard-tax-invoice form {
    margin: 0;
}

.dashboard-tax-complete-button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--teal);
    border-radius: 9px;
    color: #fff;
    background: var(--teal);
    font-size: 0.8rem;
    font-weight: 850;
    cursor: pointer;
}

.dashboard-tax-complete-button:hover {
    background: var(--teal-dark);
}

.dashboard-tax-complete-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #3b77c3;
    font-size: 1.05rem;
    font-weight: 900;
}

/* 대시보드 정정·취소 후속 처리 */
.dashboard-correction-alerts {
    margin-bottom: 24px;
}

.dashboard-correction-alerts.has-pending {
    border-color: #ecc9b5;
    box-shadow: 0 16px 42px rgba(154, 72, 39, 0.09);
}

.dashboard-correction-heading {
    gap: 18px;
}

.dashboard-correction-heading h2,
.dashboard-correction-heading p {
    margin: 0;
}

.dashboard-correction-heading h2 {
    margin-top: 5px;
}

.dashboard-correction-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.dashboard-correction-card {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-left: 4px solid #d19b46;
    border-radius: 13px;
    color: var(--ink);
    background: #fffaf1;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dashboard-correction-card:hover,
.dashboard-correction-card:focus-visible {
    transform: translateY(-2px);
    border-color: #d7b06f;
    box-shadow: 0 10px 24px rgba(77, 55, 25, 0.1);
}

.dashboard-correction-card:focus-visible {
    outline: 3px solid rgba(194, 128, 41, 0.2);
    outline-offset: 2px;
}

.dashboard-correction-card.is-tax-pending,
.dashboard-correction-card.is-tax-review {
    border-left-color: #c85d4a;
    background: #fff7f4;
}

.dashboard-correction-card.is-evidence-missing {
    border-left-color: #d19b46;
    background: #fffaf1;
}

.dashboard-correction-card > span {
    color: #654a32;
    font-size: 0.85rem;
    font-weight: 850;
}

.dashboard-correction-card > strong {
    color: #9a472f;
    font-size: 1.55rem;
    line-height: 1;
}

.dashboard-correction-card > small {
    color: var(--muted);
    line-height: 1.5;
}

.dashboard-correction-task-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.dashboard-correction-task-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d4e4e5;
    border-radius: 10px;
    color: #38565a;
    background: #f8fbfb;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-correction-task-link:hover,
.dashboard-correction-task-link:focus-visible {
    border-color: var(--primary);
    background: #eff9f7;
}

.dashboard-correction-task-link strong {
    flex: none;
    color: var(--primary);
}

.dashboard-correction-task-link.is-overdue {
    border-color: #edc8c5;
    color: #8a3f34;
    background: #fff6f5;
}

.dashboard-correction-task-link.is-overdue strong {
    color: #aa4739;
}

.dashboard-correction-oldest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 13px;
    background: #f7f9f9;
}

.dashboard-correction-oldest > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dashboard-correction-oldest span,
.dashboard-correction-oldest small {
    color: var(--muted);
    font-size: 0.8rem;
}

.dashboard-correction-oldest strong {
    overflow-wrap: anywhere;
}

.dashboard-correction-oldest-task {
    color: #38565a !important;
    font-weight: 750;
}

.dashboard-correction-oldest .secondary-button {
    flex: none;
    margin: 0;
}

.dashboard-correction-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #b9ddd6;
    border-radius: 13px;
    color: #23675f;
    background: #eff9f7;
}

.dashboard-correction-empty > span {
    display: grid;
    width: 36px;
    height: 36px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #2f8d80;
    font-weight: 900;
}

.dashboard-correction-empty > div {
    display: grid;
    gap: 3px;
}

.dashboard-correction-empty small {
    color: #50736f;
}

/* 작업공간 TODO */
.dashboard-todos,
.todo-create-panel,
.todo-list-panel,
.todo-completed-panel {
    margin-bottom: 24px;
}

.todo-quick-form {
    display: grid;
    grid-template-columns: 150px 120px minmax(260px, 1fr) 140px auto;
    grid-template-areas:
        "date time title status action"
        "reminder memo memo memo action";
    align-items: end;
    gap: 14px;
    margin: 22px 0 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fbfb;
}

.todo-date-field {
    grid-area: date;
}

.todo-time-field {
    grid-area: time;
}

.todo-reminder-field {
    grid-area: reminder;
}

.todo-title-field {
    grid-area: title;
}

.todo-status-field {
    grid-area: status;
}

.todo-memo-field {
    grid-area: memo;
}

.todo-quick-form textarea {
    min-height: 82px;
}

.todo-quick-form > .primary-button {
    grid-area: action;
    min-width: 92px;
}

.todo-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.todo-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-left: 4px solid #b8cccd;
    border-radius: 12px;
    background: #fff;
}

.todo-item.is-today {
    border-left-color: var(--teal);
    background: #f5ffff;
}

.todo-item.is-overdue {
    border-left-color: var(--danger);
    background: #fffafa;
}

.todo-item-date {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.todo-item-time {
    color: #284e52;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.todo-item-date span {
    width: fit-content;
    padding: 2px 7px;
    border-radius: 999px;
    color: var(--teal-dark);
    background: var(--teal-soft);
    font-size: 0.68rem;
}

.todo-item.is-overdue .todo-item-date span {
    color: var(--danger);
    background: var(--danger-soft);
}

.todo-item-main {
    min-width: 0;
}

.todo-item-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.todo-item-heading strong {
    overflow-wrap: anywhere;
}

.todo-item-main p {
    margin: 8px 0 0;
    color: #405b60;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.todo-item-main small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
}

.todo-item-main .todo-reminder-note {
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--teal-dark);
    background: var(--teal-soft);
    font-weight: 750;
}

.badge-todo-planned {
    color: #72510b;
    background: #fff3cf;
}

.badge-todo-in_progress {
    color: var(--teal-dark);
    background: var(--teal-soft);
}

.badge-todo-completed {
    color: #53666a;
    background: #e7ebeb;
}

.todo-status-completed {
    background: #f8fafa;
}

.todo-status-completed .todo-item-heading strong,
.todo-status-completed .todo-item-main p {
    color: #718084;
}

.todo-item-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.todo-item-actions form {
    margin: 0;
}

.todo-item-actions a.text-button {
    text-decoration: none;
}

.todo-complete-button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--teal);
    border-radius: 8px;
    color: #fff;
    background: var(--teal);
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
}

.todo-empty {
    margin: 20px 0 0;
    padding: 22px;
    border: 1px dashed #c7d5d6;
    border-radius: 12px;
    text-align: center;
}

.todo-more-link,
.todo-history-note {
    display: block;
    margin: 14px 0 0;
    text-align: center;
}

.todo-more-link {
    color: var(--teal-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

.dashboard-completed-todos {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.dashboard-completed-todos > summary,
.todo-completed-panel > summary {
    color: var(--teal-dark);
    font-weight: 850;
    cursor: pointer;
}

.todo-completed-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    list-style-position: inside;
}

.todo-completed-panel > summary > span:first-child {
    display: inline-grid;
    gap: 4px;
}

.todo-completed-panel > summary > span:last-child {
    color: var(--muted);
    font-size: 0.86rem;
}

.todo-form {
    box-shadow: 0 12px 36px rgba(22, 61, 66, 0.07);
}

@media (max-width: 900px) {
    .dashboard-tax-heading,
    .dashboard-tax-schedule-header,
    .dashboard-correction-heading {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .dashboard-tax-heading,
    .dashboard-correction-heading {
        flex-direction: column;
    }

    .dashboard-correction-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-correction-task-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-correction-oldest {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-tax-progress,
    .dashboard-tax-invoice {
        grid-template-columns: 1fr;
    }

    .dashboard-tax-progress {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px;
    }

    .dashboard-tax-progress .progress-track {
        grid-column: 1 / -1;
    }

    .dashboard-tax-toggle {
        grid-column: 2;
        grid-row: 1;
    }

    .dashboard-tax-schedule-header,
    .dashboard-tax-invoice {
        gap: 12px;
    }

    .dashboard-tax-invoice form,
    .dashboard-tax-invoice .secondary-button,
    .dashboard-tax-complete-button {
        width: 100%;
    }

    .dashboard-tax-complete-mark {
        justify-self: end;
    }

    .todo-quick-form {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "date time"
            "reminder status"
            "title title"
            "memo memo"
            "action action";
    }

    .todo-quick-form > .primary-button {
        justify-self: end;
    }

    .todo-item {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .todo-item-actions {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .dashboard-correction-task-links {
        grid-template-columns: 1fr;
    }

    .dashboard-correction-oldest .secondary-button {
        width: 100%;
    }

    .todo-quick-form,
    .todo-item {
        grid-template-columns: 1fr;
    }

    .todo-quick-form {
        grid-template-areas:
            "date"
            "time"
            "reminder"
            "status"
            "title"
            "memo"
            "action";
    }

    .todo-item-actions {
        grid-column: 1;
    }

    .todo-quick-form > .primary-button {
        width: 100%;
        justify-self: stretch;
    }

    .todo-item-date {
        display: flex;
        align-items: center;
        gap: 7px;
    }
}

/* 내 계정 · 텔레그램 개인 알림 */
.account-setting-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.account-setting-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.account-setting-card h2,
.telegram-connection-panel h2,
.telegram-event-guide h2 {
    margin: 4px 0 8px;
}

.telegram-state {
    display: inline-flex;
    margin: 0 0 8px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #53666a;
    background: #e7ebeb;
    font-size: 0.78rem;
    font-weight: 850;
}

.telegram-state.connected {
    color: var(--teal-dark);
    background: var(--teal-soft);
}

.telegram-state.unavailable {
    color: #72510b;
    background: #fff3cf;
}

.telegram-connection-panel,
.telegram-event-guide {
    max-width: 860px;
}

.telegram-event-guide {
    margin-top: 18px;
}

.telegram-connection-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin: 20px 0;
}

.telegram-connection-details div {
    padding: 12px;
    border-radius: 10px;
    background: #f5f9f9;
}

.telegram-connection-details dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.telegram-connection-details dd {
    margin: 5px 0 0;
    font-weight: 800;
}

.telegram-steps {
    margin: 18px 0 22px;
    padding-left: 22px;
    color: #405b60;
    line-height: 1.8;
}

.telegram-link-box {
    padding: 18px;
    border: 1px solid #a9d9d7;
    border-radius: 12px;
    background: #f1fbfa;
}

.telegram-link-box p:first-child {
    margin-top: 0;
}

.telegram-link-box .primary-button,
.telegram-link-box .secondary-button {
    margin-top: 8px;
    margin-right: 8px;
}

.telegram-actions {
    justify-content: flex-start;
}

.telegram-actions form {
    margin: 0;
}

@media (max-width: 700px) {
    .account-setting-grid,
    .telegram-connection-details {
        grid-template-columns: 1fr;
    }

    .account-setting-card {
        align-items: stretch;
        flex-direction: column;
    }

    .account-setting-card .secondary-button,
    .telegram-link-box .primary-button,
    .telegram-link-box .secondary-button {
        width: 100%;
        margin-right: 0;
    }
}

/* 텔레그램 TODO 제한 열람 */
.telegram-todo-preview-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.telegram-todo-preview-shell {
    width: min(620px, 100%);
}

.telegram-todo-preview-card {
    padding: clamp(28px, 7vw, 52px);
    border: 1px solid rgba(7, 140, 141, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
}

.telegram-todo-preview-brand {
    display: inline-block;
    margin-bottom: 34px;
    color: var(--teal-dark);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.telegram-todo-preview-card h1 {
    font-size: clamp(1.75rem, 7vw, 2.65rem);
}

.telegram-todo-preview-lead {
    margin: 18px 0 0;
    color: #405b60;
    line-height: 1.75;
}

.telegram-todo-open-form {
    margin-top: 30px;
}

.telegram-todo-open-form .primary-button,
.telegram-todo-login-link {
    width: 100%;
}

.telegram-todo-open-form .primary-button:disabled {
    border-color: #aebfc1;
    background: #aebfc1;
    cursor: wait;
}

.telegram-todo-preview-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.telegram-todo-preview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.telegram-todo-preview-heading .badge {
    flex: 0 0 auto;
    margin-top: 7px;
}

.telegram-todo-preview-details,
.telegram-todo-preview-audit {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
}

.telegram-todo-preview-details > div,
.telegram-todo-preview-audit > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f5f9f9;
}

.telegram-todo-preview-details dt,
.telegram-todo-preview-audit dt {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.telegram-todo-preview-details dd,
.telegram-todo-preview-audit dd {
    margin: 0;
    color: #27494f;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.telegram-todo-preview-details .telegram-todo-preview-memo {
    grid-template-columns: 1fr;
}

.telegram-todo-preview-memo dd {
    font-weight: 600;
    line-height: 1.75;
}

.telegram-todo-preview-timer {
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid #a9d9d7;
    border-radius: 10px;
    color: var(--teal-dark);
    background: #f1fbfa;
    font-size: 0.82rem;
    font-weight: 750;
    text-align: center;
}

.telegram-todo-login-link {
    margin-top: 28px;
}

@media (max-width: 520px) {
    .telegram-todo-preview-body {
        align-items: start;
        padding: 14px;
    }

    .telegram-todo-preview-card {
        border-radius: 18px;
    }

    .telegram-todo-preview-heading {
        flex-direction: column;
        gap: 8px;
    }

    .telegram-todo-preview-heading .badge {
        margin-top: 0;
    }

    .telegram-todo-preview-details > div,
    .telegram-todo-preview-audit > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* 거래명세서 보안 공유 */
.statement-share-panel {
    border-color: #9fd6d2;
    background: linear-gradient(145deg, #ffffff, #f2fbfa);
}

.statement-share-audit {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 0;
}

.statement-share-audit > div {
    padding: 13px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
}

.statement-share-audit dt {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.statement-share-audit dd {
    margin: 5px 0 0;
    color: #264c50;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.statement-share-security-note {
    margin: 14px 0 0;
}

.statement-share-result {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #9fd6d2;
    border-radius: 14px;
    background: #fff;
}

.statement-share-result[hidden] {
    display: none;
}

.statement-share-result input {
    margin-top: 7px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.statement-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.statement-share-feedback {
    min-height: 1.4em;
    margin: 12px 0 0;
    color: var(--teal-dark);
    font-weight: 750;
}

.statement-share-feedback.is-error {
    color: var(--danger);
}

.statement-share-public-body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(145deg, #edf8f7, #f7fbfb 52%, #e6f2f2);
    color: #183b40;
}

.statement-share-public-shell {
    width: min(1080px, calc(100% - 28px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.statement-share-access-shell {
    display: grid;
    min-height: 100vh;
    align-items: center;
}

.statement-share-access-card {
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 42px;
    border: 1px solid rgba(26, 130, 132, 0.16);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(28, 77, 80, 0.12);
}

.statement-share-access-card h1 {
    margin: 10px 0 0;
    font-size: clamp(1.8rem, 6vw, 2.65rem);
}

.statement-share-public-lead {
    margin: 18px 0 0;
    color: #466166;
    line-height: 1.85;
}

.statement-share-public-document {
    overflow: hidden;
    border: 1px solid rgba(26, 130, 132, 0.16);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(28, 77, 80, 0.12);
}

.statement-share-public-header {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    padding: 34px 38px 28px;
    border-bottom: 1px solid #d9e7e7;
}

.statement-share-public-brand {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--teal-dark);
    font-size: 1.35rem;
    font-weight: 900;
}

.statement-share-public-header h1 {
    margin: 7px 0;
    font-size: clamp(2rem, 6vw, 3.2rem);
}

.statement-share-public-total {
    align-self: flex-end;
    color: var(--teal-dark);
    font-size: clamp(1.5rem, 4vw, 2.35rem);
    white-space: nowrap;
}

.statement-share-cancelled {
    margin: 24px 38px 0;
}

.statement-share-parties {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2fr);
    gap: 26px;
    padding: 30px 38px;
}

.statement-share-parties > div {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 22px;
    border-radius: 16px;
    background: #f1f8f8;
}

.statement-share-parties > div span,
.statement-share-parties dt {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.statement-share-parties > div strong {
    font-size: 1.25rem;
}

.sales-quote-share-parties > div small {
    color: var(--muted);
    line-height: 1.5;
}

.statement-share-parties dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 0;
}

.statement-share-parties dl > div.wide {
    grid-column: 1 / -1;
}

.statement-share-parties dd {
    margin: 4px 0 0;
    font-weight: 700;
}

.statement-share-table-wrap {
    overflow-x: auto;
    margin: 0 38px;
    border: 1px solid #d8e6e6;
    border-radius: 14px;
}

.statement-share-table {
    min-width: 760px;
    margin: 0;
}

.statement-share-memo-row td {
    color: #36595d;
    background: #f5f9f9;
    font-weight: 700;
}

.sales-quote-share-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 0 38px 24px;
    overflow: hidden;
    border: 1px solid #d8e6e6;
    border-radius: 14px;
    background: #d8e6e6;
}

.sales-quote-share-meta > div {
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    background: #fff;
}

.sales-quote-share-meta span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.sales-quote-share-subtotal td {
    background: #eef6ff;
    font-weight: 800;
}

.sales-quote-share-table {
    width: 100%;
    table-layout: fixed;
}

.sales-quote-share-table th:nth-child(1) { width: 6%; }
.sales-quote-share-table th:nth-child(2) { width: 35%; }
.sales-quote-share-table th:nth-child(3) { width: 16%; }
.sales-quote-share-table th:nth-child(4) { width: 8%; }
.sales-quote-share-table th:nth-child(5) { width: 8%; }
.sales-quote-share-table th:nth-child(6) { width: 13%; }
.sales-quote-share-table th:nth-child(7) { width: 14%; }

.statement-share-summary {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    padding: 30px 38px;
}

.statement-share-summary dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.statement-share-summary dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 9px;
    background: #f5f9f9;
}

.statement-share-summary dl > div.total {
    color: #fff;
    background: var(--teal-dark);
    font-weight: 850;
}

.statement-share-summary dd {
    margin: 0;
    font-weight: 800;
}

.statement-share-summary > div {
    color: #405b60;
    line-height: 1.7;
}

.statement-share-public-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 38px 30px;
    color: var(--muted);
    font-size: 0.82rem;
}

@media (max-width: 720px) {
    .statement-share-audit {
        grid-template-columns: 1fr;
    }

    .statement-share-public-shell {
        width: min(100% - 20px, 1080px);
        padding-top: 10px;
    }

    .statement-share-access-card {
        padding: 30px 24px;
        border-radius: 20px;
    }

    .statement-share-public-document {
        border-radius: 20px;
    }

    .statement-share-public-header,
    .statement-share-public-footer {
        flex-direction: column;
        align-items: stretch;
        padding-right: 22px;
        padding-left: 22px;
    }

    .statement-share-public-total {
        align-self: flex-start;
    }

    .statement-share-cancelled {
        margin-right: 22px;
        margin-left: 22px;
    }

    .statement-share-parties,
    .statement-share-summary {
        grid-template-columns: 1fr;
        padding-right: 22px;
        padding-left: 22px;
    }

    .statement-share-table-wrap {
        margin-right: 22px;
        margin-left: 22px;
    }

    .sales-quote-share-meta {
        grid-template-columns: 1fr 1fr;
        margin-right: 22px;
        margin-left: 22px;
    }

    .statement-share-buttons > button {
        flex: 1 1 calc(50% - 8px);
    }
}

@media print {
    .statement-share-public-body {
        background: #fff;
    }

    .statement-share-public-shell {
        width: 100%;
        padding: 0;
    }

    .statement-share-public-document {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .statement-share-public-footer {
        display: none;
    }
}

/* 일반 판매 견적서 */
.sales-quote-header-form {
    padding: 28px 34px;
}

.sales-quote-meta-grid {
    column-gap: 22px;
    row-gap: 12px;
}

.sales-quote-meta-field {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sales-quote-field-label {
    white-space: nowrap;
}

.sales-quote-field-control {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.sales-quote-field-control > input,
.sales-quote-field-control > select,
.sales-quote-field-control > .searchable-select-trigger {
    width: 100%;
}

.sales-quote-field-control small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.sales-quote-items-panel {
    overflow: hidden;
}

.sales-quote-table-wrap,
.sales-quote-view-table-wrap {
    overflow-x: auto;
}

.sales-quote-entry-table,
.sales-quote-view-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    background: #fff;
}

.sales-quote-entry-table th,
.sales-quote-entry-table td,
.sales-quote-view-table th,
.sales-quote-view-table td {
    padding: 8px 6px;
    border: 1px solid var(--line);
    vertical-align: middle;
}

.sales-quote-entry-table th,
.sales-quote-view-table th {
    background: #f2f7f7;
    color: #31585b;
    font-size: 0.78rem;
    white-space: nowrap;
}

.sales-quote-entry-table th:nth-child(1) { width: 42px; }
.sales-quote-entry-table th:nth-child(2) { width: 70px; }
.sales-quote-entry-table th:nth-child(3) { min-width: 250px; }
.sales-quote-entry-table th:nth-child(4) { width: 116px; }
.sales-quote-entry-table th:nth-child(5) { width: 70px; }
.sales-quote-entry-table th:nth-child(6) { width: 98px; }
.sales-quote-entry-table th:nth-child(7) { width: 54px; }
.sales-quote-entry-table th:nth-child(8) { width: 120px; }
.sales-quote-entry-table th:nth-child(9) { width: 120px; }
.sales-quote-entry-table th:nth-child(10) { width: 104px; }

.sales-quote-view-table {
    min-width: 900px;
    table-layout: fixed;
}

.sales-quote-view-table th:nth-child(1) { width: 5.5%; }
.sales-quote-view-table th:nth-child(2) { width: 42%; }
.sales-quote-view-table th:nth-child(3) { width: 14%; }
.sales-quote-view-table th:nth-child(4) { width: 6.5%; }
.sales-quote-view-table th:nth-child(5) { width: 6.5%; }
.sales-quote-view-table th:nth-child(6) { width: 12%; }
.sales-quote-view-table th:nth-child(7) { width: 13.5%; }

.sales-quote-view-table td:nth-child(6),
.sales-quote-view-table td:nth-child(7) {
    white-space: nowrap;
}

.sales-quote-entry-table input,
.sales-quote-entry-table select,
.sales-quote-entry-table textarea {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border-color: #cbd9d9;
    border-radius: 7px;
    background: #fff;
}

.sales-quote-entry-table td[hidden] {
    display: none;
}

.sales-memo-text {
    min-height: 64px;
    line-height: 1.5;
    resize: vertical;
}

.sales-quote-entry-table .sales-row-type {
    padding-right: 20px;
    padding-left: 6px;
}

.sales-quote-entry-table .sales-quantity {
    padding-right: 5px;
    padding-left: 5px;
}

.sales-quote-add-actions {
    flex: 0 0 auto;
    flex-flow: row nowrap;
}

.sales-quote-add-actions .secondary-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.sales-quote-entry-table input[readonly],
.sales-quote-entry-table .sales-quote-row-subtotal select.sales-priced-mode,
.sales-quote-entry-table .sales-quote-row-memo select.sales-priced-mode {
    color: transparent;
    background: transparent;
    border-color: transparent;
    pointer-events: none;
}

.sales-quote-row-subtotal td {
    border-top-width: 2px;
    background: #f1f7ff;
}

.sales-quote-row-subtotal .sales-product-name,
.sales-quote-row-subtotal .sales-line-amount {
    font-weight: 800;
}

.sales-quote-row-memo td {
    background: #fffaf0;
}

.sales-quote-row-memo .sales-memo-text {
    font-weight: 700;
}

.sales-quote-row-memo .sales-product-cell {
    padding: 6px;
}

.sales-quote-entry-table .sales-product-cell .searchable-input-control {
    min-width: 310px;
    grid-template-columns: minmax(190px, 1fr) auto;
    gap: 6px;
}

.sales-quote-entry-table .sales-product-cell .searchable-input-trigger {
    min-width: 92px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.76rem;
}

.sales-quote-row-subtotal .searchable-input-trigger,
.sales-quote-row-memo .searchable-input-control {
    display: none;
}

.sales-quote-rental-row[hidden] {
    display: none;
}

.sales-quote-rental-row > td {
    padding: 8px 10px 12px;
    border-top: 0;
    background: #fbfefe;
}

.sales-quote-entry-table .sales-quote-rental-schedule input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 7px 9px;
    font-size: 0.8rem;
}

.sales-quote-rental-summary,
.sales-quote-rental-days {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.4;
    white-space: normal;
}

.sales-quote-rental-days {
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.sales-quote-row-actions {
    white-space: nowrap;
}

.sales-quote-row-action-buttons {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 3px;
    justify-content: center;
}

.sales-quote-row-action-buttons .row-icon-button,
.sales-quote-row-action-buttons .row-remove-button {
    flex: 0 0 28px;
    width: 28px;
    height: 30px;
}

.sales-quote-row-action-buttons .row-icon-button {
    padding: 0;
    border: 1px solid #c7d7d7;
    border-radius: 6px;
    background: #fff;
    color: #42676a;
    cursor: pointer;
}

.sales-quote-detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
}

.sales-quote-detail-meta > div {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border-right: 1px solid var(--line);
}

.sales-quote-detail-meta > div:last-child { border-right: 0; }
.sales-quote-detail-meta .wide { grid-column: span 4; border-top: 1px solid var(--line); }
.sales-quote-detail-meta span { color: var(--muted); font-size: 0.78rem; }

.sales-quote-view-table-wrap { margin-top: 22px; }
.sales-quote-view-row-subtotal td { border-top-width: 2px; background: #f1f7ff; }
.sales-quote-view-row-memo td { background: #fffaf0; font-weight: 700; }
.sales-quote-view-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 36%);
    gap: 22px;
    margin-top: 22px;
}
.sales-quote-notes { padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.sales-quote-notes h3 { margin-top: 0; }
.sales-quote-notes p { margin-bottom: 0; line-height: 1.8; }
.sales-quote-view-totals { grid-template-columns: 1fr; }

.sales-quote-print-sheet {
    color: #111;
    font-family: "Batang", "Malgun Gothic", serif;
}

.sales-quote-print-page {
    margin-bottom: 2mm;
    font-size: 8.5pt;
}

.sales-quote-print-header {
    position: relative;
    display: grid;
    grid-template-columns: 43% 57%;
    min-height: 58mm;
    border: 1.2px solid #111;
}

.sales-quote-print-header > h1 {
    position: absolute;
    top: 5mm;
    left: 0;
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: 27pt;
    letter-spacing: 10mm;
    transform: translateX(5mm);
}

.sales-quote-print-recipient {
    align-self: end;
    padding: 9mm 5mm 6mm;
    font-size: 9pt;
}

.sales-quote-print-recipient p { margin: 0 0 3mm; }
.sales-quote-print-recipient h2 { margin: 0 0 4mm; padding-bottom: 1.5mm; border-bottom: 1px solid #111; font-size: 13pt; }
.sales-quote-print-recipient h2 small { float: right; font-size: 9pt; font-weight: 400; }
.sales-quote-print-date { text-align: center; }

.sales-quote-print-supplier {
    position: relative;
    align-self: end;
    margin-top: 22mm;
    border-left: 1px solid #111;
}

.sales-quote-print-supplier dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.sales-quote-print-supplier dl > div { display: grid; grid-template-columns: 15mm 1fr; min-height: 8mm; border-top: 1px solid #111; }
.sales-quote-print-supplier dl > .pair-right { border-left: 1px solid #111; }
.sales-quote-print-supplier dl > .wide { grid-column: span 2; }
.sales-quote-print-supplier dt,
.sales-quote-print-supplier dd { display: flex; align-items: center; margin: 0; padding: 1mm 1.5mm; font-size: 7.5pt; }
.sales-quote-print-supplier dt { justify-content: center; border-right: 1px solid #111; letter-spacing: 1mm; }
.sales-quote-print-supplier .print-seal { right: 10mm; bottom: 11mm; width: 18mm; height: 18mm; }

.sales-quote-print-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 11mm;
    padding: 2mm 4mm;
    border-right: 1.2px solid #111;
    border-bottom: 1.2px solid #111;
    border-left: 1.2px solid #111;
    font-size: 9pt;
}

.sales-quote-print-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 8pt; }
.sales-quote-print-table th,
.sales-quote-print-table td { height: 6.3mm; padding: 0.8mm 1.5mm; border: 1px solid #111; }
.sales-quote-print-table th { text-align: center; font-size: 8.5pt; letter-spacing: 1.5mm; }
.sales-quote-print-table th:nth-child(1) { width: 7%; }
.sales-quote-print-table th:nth-child(2) { width: 31%; }
.sales-quote-print-table th:nth-child(3) { width: 19%; }
.sales-quote-print-table th:nth-child(4) { width: 9%; }
.sales-quote-print-table th:nth-child(5) { width: 9%; }
.sales-quote-print-table th:nth-child(6) { width: 12%; }
.sales-quote-print-table th:nth-child(7) { width: 13%; }
.sales-quote-print-table .print-rental-summary,
.sales-quote-print-table .sales-quote-rental-days {
    display: block;
    margin-top: 0.5mm;
    color: #395a5d;
    font-size: 6.5pt;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
}
.sales-quote-print-table .sales-quote-rental-days {
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}
.sales-quote-print-row-subtotal td { border-top-width: 1.5px; font-weight: 700; }
.sales-quote-print-row-memo td { font-weight: 700; }

.sales-quote-print-footer { display: grid; grid-template-columns: 60% 40%; border-right: 1px solid #111; border-bottom: 1px solid #111; border-left: 1px solid #111; }
.sales-quote-print-conditions { padding: 2mm 3mm; font-size: 7.5pt; }
.sales-quote-print-conditions p { display: inline-block; width: 48%; margin: 0 0 1.5mm; }
.sales-quote-print-totals { border-left: 1px solid #111; }
.sales-quote-print-totals div { display: grid; grid-template-columns: 22mm 1fr; min-height: 7mm; border-bottom: 1px solid #111; }
.sales-quote-print-totals div:last-child { border-bottom: 0; }
.sales-quote-print-totals span,
.sales-quote-print-totals strong { display: flex; align-items: center; padding: 1mm 2mm; font-size: 8.5pt; }
.sales-quote-print-totals span { justify-content: center; border-right: 1px solid #111; letter-spacing: 1.5mm; }
.sales-quote-print-totals strong { justify-content: flex-end; }
.sales-quote-print-notes { display: grid; grid-template-columns: 18mm 1fr; min-height: 18mm; padding: 2mm 3mm; border-right: 1px solid #111; border-bottom: 1px solid #111; border-left: 1px solid #111; font-size: 7.5pt; }
.sales-quote-print-notes p { margin: 0; line-height: 1.55; }

@media (max-width: 900px) {
    .sales-quote-detail-meta { grid-template-columns: 1fr 1fr; }
    .sales-quote-detail-meta .wide { grid-column: span 2; }
    .sales-quote-view-footer { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .sales-quote-header-form {
        padding: 22px 18px;
    }

    .sales-quote-meta-field {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .sales-quote-detail-meta { grid-template-columns: 1fr; }
    .sales-quote-detail-meta .wide { grid-column: span 1; }
}

@media print {
    .sales-quote-print-header,
    .sales-quote-print-table tr,
    .sales-quote-print-footer,
    .sales-quote-print-notes {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
/* 2026-08-23: 서비스 접수·작업지시·현장기사 제한 화면 */
.service-order-toolbar {
    display: grid;
    grid-template-columns: minmax(170px, 0.8fr) minmax(170px, 0.7fr) minmax(280px, 2fr) auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 18px;
}
.service-order-toolbar .secondary-button { margin: 0; }
.service-order-empty { padding-block: 46px; }
.service-order-table-wrap { overflow-x: auto; }
.service-order-table { min-width: 980px; table-layout: fixed; }
.service-order-table th:nth-child(1) { width: 17%; }
.service-order-table th:nth-child(2) { width: 19%; }
.service-order-table th:nth-child(3) { width: 27%; }
.service-order-table th:nth-child(4) { width: 19%; }
.service-order-table th:nth-child(5) { width: 11%; }
.service-order-table th:nth-child(6) { width: 7%; }
.service-order-number {
    display: block;
    color: var(--teal-dark);
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: rgba(7, 140, 141, 0.25);
    text-underline-offset: 3px;
}
.service-order-number:hover { color: var(--teal); text-decoration-color: currentColor; }
.service-order-issue-cell strong { line-height: 1.55; }
.service-order-issue-cell small { line-height: 1.45; }
.service-status-received { background:#eef3f4; color:#466169; }
.service-status-assigned { background:#e5f3ff; color:#17618f; }
.service-status-acknowledged { background:#e8efff; color:#394f9d; }
.service-status-in_progress { background:#fff1cc; color:#855d00; }
.service-status-parts_wait,.service-status-revisit { background:#fff0e6; color:#934817; }
.service-status-review_pending { background:#fff3c9; color:#765600; }
.service-status-correction_requested { background:#ffe6df; color:#983f2e; }
.service-status-completed { background:#e5f7ec; color:#187044; }
.service-status-cancelled { background:#f4e9eb; color:#7d3943; }
.badge-danger { background:#ffe4e4; color:#a02e2e; }
.service-order-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.service-order-summary-card {
    display: grid;
    align-content: start;
    gap: 9px;
    min-height: 142px;
    padding: 22px;
    border-radius: 18px;
}
.service-order-summary-card > span {
    color: #61787d;
    font-size: 0.78rem;
    font-weight: 850;
}
.service-order-summary-card > strong {
    color: var(--teal-dark);
    font-size: 1.04rem;
    line-height: 1.35;
}
.service-order-summary-card > small {
    color: var(--muted);
    font-size: 0.76rem;
}
.service-order-summary-card .badge { width: fit-content; padding: 7px 10px; font-size: 0.78rem; }
.service-order-detail-panel,
.service-order-action-panel,
.service-order-result-panel,
.service-order-timeline-panel { margin-bottom: 20px; }
.service-order-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.service-order-panel-heading h2 { margin-top: 5px; }
.service-order-panel-heading .muted { margin: 8px 0 0; }
.service-order-heading-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.service-order-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 24px;
    margin: 24px 0 0;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.service-order-info-grid div { min-width: 0; padding: 14px 0; }
.service-order-info-grid dt {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
}
.service-order-info-grid dd {
    margin: 5px 0 0;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.service-telegram-state {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf2f3;
    color: #516b70;
    font-size: 0.75rem;
    font-weight: 850;
}
.service-telegram-state.is-sent { background: #e5f7ec; color: #187044; }
.service-telegram-state.is-pending,
.service-telegram-state.is-processing { background: #fff3cf; color: #805b00; }
.service-telegram-state.is-failed { background: #ffe7e5; color: #9f332d; }
.service-order-message-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}
.service-order-message-grid article {
    min-width: 0;
    padding: 18px;
    border: 1px solid #d4e4e5;
    border-radius: 15px;
}
.service-order-message-grid article > span {
    display: block;
    margin-bottom: 9px;
    color: #597177;
    font-size: 0.78rem;
    font-weight: 900;
}
.service-order-message-grid article > p { margin: 0; line-height: 1.65; }
.service-order-problem-box { background: #f5fafa; }
.service-order-materials-box { border-color: #e4ce83 !important; background: #fff9e5; color: #6d5315; }
.service-order-materials-box > span { color: #80631d !important; }
.service-order-materials-box > p { font-weight: 750; }
.service-order-internal-memo {
    margin-top: 14px;
    padding: 15px 18px;
    border-radius: 14px;
    background: #f4f6f6;
    color: #50666b;
}
.service-order-internal-memo p { margin: 6px 0 0; line-height: 1.6; }
.service-order-notification-error { margin-top: 14px; }
.service-order-notification-error strong { display: block; margin-bottom: 5px; }
.service-order-assign-form {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.4fr) auto;
    align-items: end;
    gap: 14px;
    margin-top: 24px;
}
.service-order-assign-form .primary-button { min-height: 47px; }
.service-order-edit-form { display: grid; gap: 18px; margin-top: 24px; }
.service-order-edit-form fieldset {
    margin: 0;
    padding: 18px;
    border: 1px solid #d6e4e6;
    border-radius: 15px;
    background: #fbfdfd;
}
.service-order-edit-form legend {
    padding: 0 7px;
    color: #315a61;
    font-size: .84rem;
    font-weight: 900;
}
.service-order-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.service-order-edit-grid label,
.service-order-edit-memo { display: grid; gap: 7px; font-weight: 800; }
.service-order-edit-grid .wide { grid-column: span 2; }
.service-order-edit-grid textarea { min-height: 94px; resize: vertical; }
.service-order-edit-memo textarea { min-height: 86px; resize: vertical; }
.service-order-edit-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
}
.service-order-edit-footer > span { color: #657c81; font-size: .78rem; }
.service-order-edit-footer .primary-button { flex: 0 0 auto; min-height: 49px; margin: 0; }
.service-order-cancel-zone { color: #7d3943; }
.service-order-cancel-zone summary { width: fit-content; cursor: pointer; font-weight: 800; }
.service-order-cancel-zone .danger-button { width: fit-content; }
.service-order-total-cost { color: var(--teal-dark); font-size: 1.08rem; }
.service-order-result-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0 14px;
}
.service-order-result-summary div,
.service-order-result-block {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fbfb;
}
.service-order-result-summary dt { color: var(--muted); font-size: 0.76rem; font-weight: 850; }
.service-order-result-summary dd { margin: 5px 0 0; font-weight: 800; }
.service-order-result-block + .service-order-result-block { margin-top: 10px; }
.service-order-result-block p { margin: 7px 0 0; line-height: 1.65; }
.service-order-change-panel { margin-top: 20px; }
.service-order-change-panel > .service-order-panel-heading > strong {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #edf5f5;
    color: var(--teal-dark);
    font-size: .76rem;
}
.service-order-change-list { display: grid; gap: 10px; margin-top: 20px; }
.service-order-change-batch {
    overflow: hidden;
    border: 1px solid #d8e5e7;
    border-radius: 14px;
    background: #fbfdfd;
}
.service-order-change-batch > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px;
    cursor: pointer;
    list-style: none;
}
.service-order-change-batch > summary::-webkit-details-marker { display: none; }
.service-order-change-batch > summary::after {
    content: "+";
    color: var(--teal-dark);
    font-size: 1.15rem;
    font-weight: 900;
}
.service-order-change-batch[open] > summary::after { content: "−"; }
.service-order-change-batch > summary > span { display: grid; gap: 3px; }
.service-order-change-batch > summary small { color: var(--muted); font-size: .73rem; }
.service-order-change-batch > summary em {
    margin-left: auto;
    color: #61787d;
    font-size: .73rem;
    font-style: normal;
    font-weight: 850;
}
.service-order-change-items { display: grid; gap: 10px; padding: 0 16px 16px; }
.service-order-change-items > article {
    padding: 14px;
    border: 1px solid #e1eaeb;
    border-radius: 12px;
    background: #fff;
}
.service-order-change-items > article > strong { color: #345d64; font-size: .8rem; }
.service-order-change-values {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    margin-top: 10px;
}
.service-order-change-values > div {
    min-width: 0;
    padding: 11px 12px;
    border-radius: 10px;
    background: #f5f8f8;
}
.service-order-change-values > div:last-child { background: #eef8f6; }
.service-order-change-values span { color: #71868b; font-size: .68rem; font-weight: 900; }
.service-order-change-values p { margin: 5px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.service-order-change-values > i { align-self: center; color: #789095; font-style: normal; text-align: center; }
.service-wizard-step { display:grid; grid-template-columns:48px minmax(0,1fr); gap:22px; margin-bottom:20px; }
.step-number { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:var(--primary,#078f8e); color:#fff; font-weight:800; }
.step-content { min-width:0; }
.step-content > h2 { margin-top:4px; }
.service-customer-search { display:grid; grid-template-columns:minmax(180px,.7fr) minmax(280px,1.5fr) auto; gap:14px; align-items:end; }
.service-customer-results,.service-equipment-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:18px; }
.service-customer-search-guide { margin-top:18px; }
.service-customer-search-guide p { margin:0 0 6px; font-weight:750; }
.service-customer-result-summary { margin:18px 0 0; color:#60757a; font-size:.9rem; }
.service-select-card { display:flex; flex-direction:column; gap:6px; padding:16px; border:1px solid #cbdcdf; border-radius:14px; color:inherit; text-decoration:none; background:#fff; }
.service-select-card:hover,.service-select-card.selected { border-color:#078f8e; box-shadow:0 0 0 3px rgba(7,143,142,.1); }
.service-select-card span { color:#60757a; font-size:.88rem; }
.service-select-card.is-unavailable { border-style:dashed; background:#f7f9f9; }
.service-select-card.is-unavailable:hover { border-color:#cbdcdf; box-shadow:none; }
.service-select-card.is-unavailable .text-button { align-self:flex-start; margin-top:5px; }
.service-equipment-notice { margin-top:16px; padding:16px; border:1px solid #dfc982; border-radius:14px; background:#fff9e8; color:#725619; }
.service-equipment-notice p { margin:6px 0 14px; }
.service-history-columns { display:grid; grid-template-columns:1fr 1fr; gap:20px; padding:18px 0; margin-bottom:20px; border-bottom:1px solid #dce8e9; }
.service-history-columns.single-column { grid-template-columns:1fr; }
.service-history-columns > div { min-width:0; max-height:350px; overflow:auto; }
.service-history-item { padding:12px 0; border-bottom:1px solid #e3ecee; }
.service-history-item p { margin:6px 0 0; color:#566d72; font-size:.9rem; }
.service-order-entry-form { display:grid; gap:18px; }
.service-status-timeline { list-style:none; padding:0; margin:0; }
.service-status-timeline li { position:relative; padding:0 0 24px 26px; border-left:2px solid #d7e5e6; }
.service-status-timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.service-status-timeline li::before { content:""; position:absolute; left:-7px; top:3px; width:12px; height:12px; border-radius:50%; background:#078f8e; }
.service-status-timeline span { display:block; margin-top:4px; color:#62777c; font-size:.86rem; }
.service-status-timeline p { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #f5f9f9; color: #536a70; }
.danger-zone { margin-top:22px; padding-top:18px; border-top:1px solid #ecd8dc; }
.danger-zone form { margin-top:16px; display:grid; gap:14px; }

.service-task-body { margin:0; background:#edf5f5; color:#16363c; }
.service-task-shell { width:min(760px,calc(100% - 24px)); margin:0 auto; padding:18px 0 60px; }
.service-task-brand { display:flex; justify-content:space-between; align-items:center; padding:8px 4px 18px; color:#078f8e; font-weight:900; }
.service-task-brand small { font-weight:700; color:#597176; }
.service-task-card { margin-bottom:14px; padding:22px; border:1px solid #d5e5e7; border-radius:20px; background:#fff; box-shadow:0 10px 28px rgba(34,76,82,.06); }
.service-task-card h1 { margin:.2em 0; font-size:clamp(1.7rem,7vw,2.5rem); }
.service-task-card h2 { margin:0 0 18px; font-size:1.25rem; }
.service-task-card h3 { margin:22px 0 8px; font-size:1rem; }
.service-task-open-card { max-width:520px; margin:12vh auto 0; text-align:center; }
.service-task-open-card form { margin-top:24px; }
.service-task-hero { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.service-task-hero p { margin:4px 0; color:#5e7479; }
.service-task-facts { display:grid; grid-template-columns:1fr 1fr; gap:0; margin:0; }
.service-task-facts div { padding:12px 0; border-bottom:1px solid #e3ecee; }
.service-task-facts div:nth-child(odd) { padding-right:18px; }
.service-task-facts dt { font-size:.78rem; color:#698086; }
.service-task-facts dd { margin:5px 0 0; font-weight:700; word-break:break-word; }
.service-task-problem { margin-top:20px; padding:16px; border-radius:14px; background:#f3f8f8; }
.service-task-problem p { margin:8px 0 0; }
.service-task-materials { margin-top:12px; padding:16px; border:1px solid #e0c874; border-radius:14px; background:#fff8dc; color:#674c0e; }
.service-task-materials p { margin:8px 0 0; font-weight:750; }
.service-task-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.service-task-actions h2 { width:100%; }
.service-task-delay { width:100%; margin-top:10px; }
.service-task-delay form { display:grid; gap:12px; margin-top:14px; }
.service-task-completion { display:grid; gap:16px; }
.service-task-completion label { display:grid; gap:7px; font-weight:700; }
.service-task-completion textarea { min-height:100px; }
.service-task-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.service-task-costs { grid-template-columns:repeat(3,minmax(0,1fr)); }
.service-task-completion fieldset { border:1px solid #d7e4e6; border-radius:14px; padding:15px; }
.service-task-completion legend { font-weight:800; padding:0 6px; }
.service-consumable-row { display:grid; grid-template-columns:minmax(0,1fr) 90px; gap:8px; margin-top:8px; }
.service-task-complete-button { width:100%; min-height:54px; font-size:1.03rem; }
.service-task-completed { border-color:#addcc2; background:#f5fcf8; }

/* 2026-08-23: 서비스 일정·배차 현황판 */
.service-dispatch-toolbar {
    display: grid;
    grid-template-columns: minmax(170px, .9fr) minmax(170px, .75fr) minmax(190px, .85fr) auto auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 18px;
}
.service-dispatch-toolbar .primary-button,
.service-dispatch-toolbar .secondary-button { min-height: 47px; margin: 0; }
.service-dispatch-scope-note {
    margin: -6px 2px 16px;
    color: #667d82;
    font-size: .75rem;
    line-height: 1.5;
}
.service-dispatch-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.service-dispatch-summary-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 19px 20px;
    border-radius: 17px;
}
.service-dispatch-summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #76bcbc;
}
.service-dispatch-summary-card > span {
    display: block;
    color: #62777c;
    font-size: .76rem;
    font-weight: 900;
}
.service-dispatch-summary-card > strong {
    display: block;
    margin-top: 8px;
    color: var(--teal-dark);
    font-size: 1.75rem;
    line-height: 1;
}
.service-dispatch-summary-card > strong small { margin-left: 3px; font-size: .78rem; }
.service-dispatch-summary-card > p { margin: 9px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.4; }
.service-dispatch-summary-card.is-unassigned::before { background: #9aaeb2; }
.service-dispatch-summary-card.is-urgent { border-color: #efc3bf; background: #fff8f7; }
.service-dispatch-summary-card.is-urgent::before,
.service-dispatch-summary-card.is-overdue::before { background: #d95b52; }
.service-dispatch-summary-card.is-urgent > strong,
.service-dispatch-summary-card.is-overdue > strong { color: #a73531; }
.service-dispatch-summary-card.is-overdue { border-color: #edc9c6; }
.service-dispatch-summary-card.is-follow-up { border-color: #ead49a; background: #fffbef; }
.service-dispatch-summary-card.is-follow-up::before { background: #d09a27; }
.service-dispatch-summary-card.is-follow-up > strong { color: #8b620e; }
.service-dispatch-attention { margin-bottom: 22px; padding: 22px; border-radius: 18px; }
.service-dispatch-section-heading,
.service-dispatch-date-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.service-dispatch-section-heading h2,
.service-dispatch-date-heading h2 { margin: 3px 0 0; }
.service-dispatch-section-heading .muted,
.service-dispatch-date-heading .muted { margin: 7px 0 0; }
.service-dispatch-section-heading > strong {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #edf6f6;
    color: var(--teal-dark);
    font-size: .8rem;
}
.service-dispatch-clear {
    display: grid;
    gap: 5px;
    margin-top: 18px;
    padding: 20px;
    border: 1px dashed #b9d9d5;
    border-radius: 14px;
    background: #f5fbf9;
    color: #337163;
    text-align: center;
}
.service-dispatch-clear span { color: #668079; font-size: .82rem; }
.service-dispatch-attention-list { margin-top: 18px; border-top: 1px solid var(--line); }
.service-dispatch-attention-item {
    display: grid;
    grid-template-columns: 90px minmax(240px, 1fr) minmax(180px, auto) 18px;
    align-items: center;
    gap: 15px;
    min-width: 0;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}
.service-dispatch-attention-item:hover { background: #f5fafa; }
.service-dispatch-attention-time { color: #49666c; font-size: .8rem; font-weight: 850; }
.service-dispatch-attention-main { display: grid; min-width: 0; gap: 4px; }
.service-dispatch-attention-main strong,
.service-dispatch-attention-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-dispatch-attention-main small { color: var(--muted); font-size: .77rem; }
.service-dispatch-reasons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.service-dispatch-reasons em {
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf2f3;
    color: #526c72;
    font-size: .7rem;
    font-style: normal;
    font-weight: 900;
}
.service-dispatch-reasons .is-overdue,
.service-dispatch-reasons .is-urgent { background: #ffe7e4; color: #9e312d; }
.service-dispatch-reasons .is-follow-up { background: #fff0cc; color: #805900; }
.service-dispatch-reasons .is-unassigned,
.service-dispatch-reasons .is-unscheduled { background: #edf1f2; color: #53696e; }
.service-dispatch-arrow { color: #789095; font-size: 1.6rem; line-height: 1; }
.service-dispatch-schedule { margin-top: 28px; }
.service-dispatch-date-heading { margin-bottom: 15px; }
.service-dispatch-date-heading > div { flex: 1 1 auto; text-align: center; }
.service-dispatch-date-heading > .secondary-button {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    font-size: 1.5rem;
}
.service-dispatch-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
    align-items: start;
    gap: 15px;
}
.service-dispatch-lane { min-width: 0; padding: 0; overflow: hidden; border-radius: 18px; }
.service-dispatch-lane.is-unassigned { border-color: #e3c3a1; }
.service-dispatch-lane > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: #f5fafa;
}
.service-dispatch-lane.is-unassigned > header { background: #fff8ef; }
.service-dispatch-lane > header span { color: #72878b; font-size: .66rem; font-weight: 950; letter-spacing: .08em; }
.service-dispatch-lane > header h3 { margin: 4px 0 0; font-size: 1.02rem; }
.service-dispatch-lane-meta { display: grid; justify-items: end; gap: 4px; }
.service-dispatch-lane-meta > strong {
    min-width: 38px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #e4f2f2;
    color: var(--teal-dark);
    font-size: .77rem;
    text-align: center;
}
.service-dispatch-lane-meta > small { color: #8a6464; font-size: .68rem; font-weight: 800; }
.service-dispatch-lane-meta > small.is-connected { color: #3b7961; }
.service-dispatch-lane-empty { display: grid; gap: 5px; padding: 30px 20px; color: #647a7f; text-align: center; }
.service-dispatch-lane-empty strong { font-size: .88rem; }
.service-dispatch-lane-empty span { font-size: .75rem; line-height: 1.45; }
.service-dispatch-jobs { display: grid; }
.service-dispatch-job {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}
.service-dispatch-job:last-child { border-bottom: 0; }
.service-dispatch-job:hover { background: #f7fbfb; }
.service-dispatch-sequence {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
}
.service-dispatch-job:not(:last-child) .service-dispatch-sequence::after {
    content: "";
    position: absolute;
    top: 46px;
    bottom: -1px;
    left: 32px;
    width: 2px;
    background: #d8e8e8;
}
.service-dispatch-job-body { display: grid; min-width: 0; gap: 6px; }
.service-dispatch-job-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.service-dispatch-job-topline > strong { margin-right: auto; color: var(--teal-dark); font-size: 1rem; }
.service-dispatch-job-topline .badge { padding: 5px 8px; font-size: .68rem; font-style: normal; }
.service-dispatch-customer { margin-top: 2px; font-size: .97rem; }
.service-dispatch-equipment,
.service-dispatch-location,
.service-dispatch-problem,
.service-dispatch-materials { color: #5e7479; font-size: .77rem; line-height: 1.5; overflow-wrap: anywhere; }
.service-dispatch-location::before { content: "위치 · "; color: #789095; font-weight: 850; }
.service-dispatch-problem {
    margin-top: 4px;
    padding: 10px 11px;
    border-radius: 10px;
    background: #f3f7f7;
    color: #405d63;
}
.service-dispatch-materials {
    padding: 8px 10px;
    border: 1px solid #ead9a2;
    border-radius: 9px;
    background: #fff9e8;
    color: #725719;
    font-weight: 800;
}
.service-dispatch-materials.is-empty { border-color: #dce6e7; background: #f7f9f9; color: #718388; font-weight: 700; }

.service-task-correction-card {
    border-color: #efb7a7;
    background: linear-gradient(145deg, #fff8f4, #fff);
}
.service-task-correction-card h2 { color: #913a2c; }
.service-task-correction-card > p:not(.eyebrow) {
    padding: 13px 14px;
    border-radius: 11px;
    background: #fff0e9;
    color: #6f3228;
    line-height: 1.65;
}
.service-task-review-pending {
    border-color: #dfc66f;
    background: linear-gradient(145deg, #fffdf3, #fff);
}
.service-task-review-pending h2 { color: #6e5500; }
.service-order-correction-banner {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(320px, 1.3fr) auto;
    align-items: center;
    gap: 22px;
    margin-bottom: 20px;
    border-color: #efb7a7;
    background: #fff8f4;
}
.service-order-correction-banner h2 { margin: 4px 0 0; font-size: 1.04rem; }
.service-order-correction-banner > p {
    margin: 0;
    color: #71392f;
    line-height: 1.6;
}
.service-order-correction-banner > small { color: #8b625a; font-weight: 800; }
.service-risk-source-banner,
.service-risk-source-panel {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    border-color: #9bcfca;
    background: linear-gradient(145deg, #f2fbfa, #fff);
}
.service-risk-source-banner h2,
.service-risk-source-panel h2 { margin: 4px 0 0; font-size: 1.05rem; }
.service-risk-source-banner > p { margin: 0; line-height: 1.65; }
.service-risk-source-banner > small,
.service-risk-source-panel > small { color: #527476; font-weight: 800; }
.service-risk-source-list { display: flex; flex-wrap: wrap; gap: 8px; }
.service-risk-source-list a {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid #bddbd8;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}
.service-risk-source-list a:hover,
.service-risk-source-list a:focus-visible { border-color: var(--teal); }
.service-risk-source-list span { color: var(--teal-dark); font-size: .78rem; font-weight: 900; }
.service-order-review-panel { margin-bottom: 20px; border-color: #dbc36e; }
.service-order-review-panel > .service-order-panel-heading {
    padding-bottom: 18px;
    border-bottom: 1px solid #eee2b8;
}
.service-order-review-panel > .service-order-panel-heading > strong {
    color: #75601b;
    font-size: .75rem;
}
.service-order-review-form { display: grid; gap: 20px; margin-top: 20px; }
.service-order-review-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.service-order-review-grid label { display: grid; align-content: start; gap: 8px; }
.service-order-review-grid .wide { grid-column: span 4; }
.service-order-review-grid textarea { min-height: 92px; }
.service-order-review-grid .wide:nth-of-type(4) textarea { min-height: 130px; }
.service-order-review-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.service-review-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 420px) auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 20px;
}
.service-review-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.service-review-summary article { display: grid; gap: 8px; min-height: 130px; }
.service-review-summary span { color: #667e83; font-size: .75rem; font-weight: 900; }
.service-review-summary strong { color: var(--teal-dark); font-size: 1.75rem; }
.service-review-summary small { color: var(--muted); }
.service-review-summary article:first-child { border-color: #dfc66f; background: #fffdf5; }
.service-review-section { margin-bottom: 20px; }
.service-review-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    gap: 14px;
    margin-top: 18px;
}
.service-review-card {
    display: grid;
    gap: 15px;
    padding: 18px;
    border: 1px solid #d9e7e8;
    border-radius: 15px;
    background: #fff;
}
.service-review-card.is-urgent { border-color: #edb8b3; box-shadow: inset 4px 0 #d95b50; }
.service-review-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.service-review-card-head > div:first-child { display: grid; gap: 4px; }
.service-review-card-head a { color: var(--teal); font-size: .76rem; font-weight: 950; }
.service-review-card-head strong { color: var(--teal-dark); font-size: 1.03rem; }
.service-review-card-head small { color: #6c8186; }
.service-review-card-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.service-review-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
}
.service-review-card dl > div { padding: 10px 11px; border-radius: 10px; background: #f5f9f9; }
.service-review-card dt { color: #788d91; font-size: .67rem; font-weight: 900; }
.service-review-card dd { margin: 4px 0 0; color: #25464c; font-size: .8rem; font-weight: 850; }
.service-review-card > p { margin: 0; color: #526c72; font-size: .78rem; line-height: 1.55; }
.service-review-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-review-card footer span { color: #7b8e92; font-size: .69rem; }
.service-review-card footer .primary-button { padding: 10px 14px; font-size: .75rem; }
.service-review-lower-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-review-compact-list { display: grid; margin-top: 12px; }
.service-review-compact-list > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}
.service-review-compact-list > a:last-child { border-bottom: 0; }
.service-review-compact-list > a:hover strong { color: var(--teal); }
.service-review-compact-list span { display: grid; gap: 3px; min-width: 0; }
.service-review-compact-list strong { color: var(--teal-dark); font-size: .85rem; }
.service-review-compact-list small { color: #70858a; font-size: .7rem; }
.service-review-compact-list em { max-width: 48%; color: #775c16; font-size: .72rem; font-style: normal; font-weight: 850; text-align: right; }

@media (max-width: 940px) {
    .service-order-summary-grid,
    .service-dispatch-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-order-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-order-review-grid .wide { grid-column: span 2; }
    .service-review-lower-grid { grid-template-columns: 1fr; }
    .service-dispatch-summary-card:first-child { grid-column: span 2; }
    .service-dispatch-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-dispatch-toolbar label:first-child { grid-column: span 2; }
}

@media (max-width: 780px) {
    .service-order-toolbar,
    .service-dispatch-toolbar,
    .service-customer-search,
    .service-order-assign-form,
    .service-order-edit-grid,
    .service-order-summary-grid,
    .service-dispatch-summary,
    .service-order-info-grid,
    .service-order-message-grid,
    .service-order-result-summary { grid-template-columns:1fr; }
    .service-review-summary,
    .service-order-review-grid,
    .service-order-correction-banner { grid-template-columns: 1fr; }
    .service-order-review-grid .wide { grid-column: span 1; }
    .service-review-toolbar { grid-template-columns: 1fr; }
    .service-review-toolbar .secondary-button,
    .service-order-review-footer .primary-button,
    .service-order-review-footer .secondary-button { width: 100%; }
    .service-order-review-footer { align-items: stretch; flex-direction: column-reverse; }
    .service-review-card dl { grid-template-columns: 1fr; }
    .service-review-card footer { align-items: stretch; flex-direction: column; }
    .service-review-card footer .primary-button { width: 100%; text-align: center; }
    .service-order-toolbar .secondary-button,
    .service-dispatch-toolbar .primary-button,
    .service-dispatch-toolbar .secondary-button,
    .service-order-assign-form .primary-button { width: 100%; }
    .service-order-panel-heading { flex-direction: column; }
    .service-order-heading-badges { justify-content: flex-start; }
    .service-order-summary-card { min-height: 0; }
    .service-order-edit-grid .wide { grid-column: span 1; }
    .service-order-edit-footer { align-items: stretch; flex-direction: column; }
    .service-order-edit-footer .primary-button { width: 100%; }
    .service-order-change-values { grid-template-columns: 1fr; }
    .service-order-change-values > i { transform: rotate(90deg); }
    .service-dispatch-toolbar label:first-child,
    .service-dispatch-summary-card:first-child { grid-column: span 1; }
    .service-dispatch-section-heading { align-items: flex-start; flex-direction: column; }
    .service-dispatch-attention-item {
        grid-template-columns: minmax(0, 1fr) 18px;
        gap: 8px 12px;
        padding: 15px 4px;
    }
    .service-dispatch-attention-time { grid-column: 1; }
    .service-dispatch-attention-main { grid-column: 1; }
    .service-dispatch-reasons { grid-column: 1; justify-content: flex-start; }
    .service-dispatch-arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
    .service-customer-results,.service-equipment-grid,.service-history-columns { grid-template-columns:1fr; }
    .service-wizard-step { grid-template-columns:36px minmax(0,1fr); gap:10px; padding:16px; }
    .service-task-card { padding:18px; border-radius:16px; }
    .service-task-hero { align-items:center; }
    .service-task-facts,.service-task-grid,.service-task-costs { grid-template-columns:1fr; }
    .service-task-facts div:nth-child(odd) { padding-right:0; }
}

@media (max-width: 720px) {
    .service-order-table { min-width: 0; table-layout: auto; }
    .service-dispatch-attention { padding: 18px; }
    .service-dispatch-date-heading > .secondary-button {
        flex-basis: 42px;
        width: 42px;
        min-width: 42px;
        height: 42px;
    }
}
/* 무칩(Chipless) 인증키 재고·호환 그룹 */
.chipless-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.chipless-summary-card {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 18px 20px;
    color: var(--ink);
    text-decoration: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.chipless-summary-card:hover,
.chipless-summary-card:focus-visible {
    border-color: var(--teal);
    transform: translateY(-1px);
}

.chipless-summary-card span,
.chipless-detail-grid span,
.chipless-key-code > span {
    color: var(--muted);
    font-size: 0.84rem;
}

.chipless-summary-card strong {
    font-size: 1.45rem;
}

.chipless-status-available { background: #e7f7ee; color: #17623a; }
.chipless-status-used { background: #e7f0ff; color: #245aa5; }
.chipless-status-sold { background: #f3eafd; color: #7140a0; }
.chipless-status-disabled { background: #f1f2f4; color: #626b78; }

.chipless-model-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chipless-model-tags span {
    display: inline-flex;
    padding: 5px 9px;
    color: #325274;
    font-size: 0.78rem;
    font-weight: 700;
    background: #eef5fb;
    border: 1px solid #d8e7f4;
    border-radius: 999px;
}

.chipless-selected-group {
    display: grid;
    gap: 12px;
    margin-top: 4px;
    padding: 14px 16px;
    color: var(--ink);
    background: linear-gradient(135deg, #f0fbfa 0%, #f7fbfd 100%);
    border: 1px solid #b8dddc;
    border-radius: 13px;
}

.chipless-selected-group-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 12px;
    align-items: center;
}

.chipless-selected-group-heading > span {
    color: var(--teal-dark);
    font-size: 0.76rem;
    font-weight: 850;
}

.chipless-selected-group-heading strong {
    grid-column: 1;
    font-size: 1.05rem;
}

.chipless-selected-group-heading small {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--muted);
    font-weight: 750;
}

.chipless-key-filter {
    grid-template-columns:
        minmax(170px, 0.75fr)
        minmax(150px, 0.6fr)
        minmax(250px, 1.25fr)
        minmax(250px, 1.15fr)
        auto;
}

.chipless-filter-group-summary {
    grid-column: 1 / -1;
}

.chipless-group-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.chipless-group-toolbar form,
.chipless-group-toolbar label {
    display: flex;
    align-items: end;
    gap: 10px;
}

.chipless-key-table code,
.chipless-key-input code,
#chipless-key-history code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.chipless-key-input textarea {
    min-height: 300px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    line-height: 1.65;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.chipless-key-detail {
    display: grid;
    gap: 22px;
}

.chipless-key-code {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.chipless-key-code > span {
    grid-column: 1 / -1;
}

.chipless-key-code input {
    min-height: 50px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: #f8fafc;
}

.chipless-detail-grid,
.chipless-history-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.chipless-detail-grid > div,
.chipless-history-details > div {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.chipless-history-details dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.chipless-history-details dd {
    margin: 0;
    font-weight: 650;
}

.chipless-history-details .wide {
    grid-column: 1 / -1;
}

[data-chipless-disposition-form] .alert-warning {
    color: #744d0b;
    background: #fff8df;
    border-color: #ead69a;
}

.chipless-key-quick-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.chipless-key-quick-actions h2,
.chipless-key-quick-actions p {
    margin: 0;
}

.chipless-operation-form .chipless-selected-group {
    margin: 0;
}

.chipless-operation-form .chipless-selected-group > p {
    margin: 12px 0 0;
}

.chipless-price-preview {
    min-height: 78px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f5faf9;
    display: grid;
    align-content: center;
    gap: 3px;
}

.chipless-price-preview span,
.chipless-price-preview small {
    color: var(--muted);
}

.chipless-price-preview strong {
    color: var(--teal-dark);
    font-size: 1.05rem;
}

.chipless-asset-match {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f7f9fa;
    color: var(--muted);
}

.chipless-asset-match.is-found {
    border-color: #9bd8bf;
    background: #eefaf4;
    color: #17623a;
    font-weight: 700;
}

.chipless-asset-match.is-incompatible {
    border-color: #e4b1aa;
    background: #fff3f1;
    color: #a53226;
    font-weight: 700;
}

.chipless-sale-result {
    display: grid;
    gap: 22px;
}

.chipless-cancel-panel {
    border-color: #e7c6c1;
}

.chipless-cancel-panel .checkbox-label {
    margin-top: 14px;
}

.chipless-cancel-panel .alert-warning {
    margin-top: 16px;
}

.chipless-delivery-keys {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.chipless-delivery-keys textarea {
    min-height: 220px;
    padding: 18px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0.04em;
    resize: vertical;
}

@media (max-width: 840px) {
    .chipless-summary,
    .chipless-detail-grid,
    .chipless-history-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chipless-group-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .chipless-key-quick-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 1100px) {
    .chipless-key-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chipless-key-filter .search-field,
    .chipless-filter-group-summary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .chipless-key-filter {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .chipless-summary,
    .chipless-detail-grid,
    .chipless-history-details {
        grid-template-columns: 1fr;
    }

    .chipless-key-code {
        grid-template-columns: 1fr;
    }

    .chipless-key-filter {
        grid-template-columns: 1fr;
    }

    .chipless-selected-group-heading {
        grid-template-columns: 1fr;
    }

    .chipless-selected-group-heading small {
        grid-column: 1;
        grid-row: auto;
    }
}

/* 신규 임대거래처·장비 통합 등록 */
.rental-onboarding-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.rental-onboarding-progress button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
}

.rental-onboarding-progress button span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #eaf4f4;
}

.rental-onboarding-progress button.is-active {
    border-color: var(--teal);
    background: #eefafa;
    color: var(--teal-dark);
}

.rental-onboarding-progress button.is-active span,
.rental-onboarding-progress button.is-complete span {
    background: var(--teal);
    color: #fff;
}

.rental-onboarding-equipment {
    display: grid;
    gap: 24px;
    margin-bottom: 20px;
    padding: clamp(20px, 3vw, 32px);
}

.rental-onboarding-equipment fieldset {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.rental-onboarding-equipment legend {
    padding: 0 8px;
    font-weight: 900;
}

.rental-onboarding-equipment-heading,
.rental-onboarding-step-heading {
    align-items: center;
}

.rental-onboarding-new-asset,
.rental-onboarding-metered {
    padding-top: 4px;
}

.rental-onboarding-review {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    padding: clamp(20px, 3vw, 30px);
}

.rental-onboarding-review section {
    display: grid;
    align-content: start;
    gap: 11px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fbfb;
}

.rental-onboarding-review section:first-child {
    grid-column: 1 / -1;
}

.rental-onboarding-review section > div {
    display: grid;
    grid-template-columns: minmax(90px, 0.35fr) minmax(0, 1fr);
    gap: 12px;
}

.rental-onboarding-review section > div span {
    color: var(--muted);
    font-size: 0.9rem;
}

.rental-onboarding-confirm {
    margin-bottom: 18px;
    font-weight: 800;
}

.danger-text {
    color: var(--danger);
}

@media (max-width: 720px) {
    .rental-onboarding-progress {
        grid-template-columns: 1fr;
    }

    .rental-onboarding-progress button {
        justify-content: flex-start;
    }

    .rental-onboarding-review {
        grid-template-columns: 1fr;
    }

    .rental-onboarding-review section:first-child {
        grid-column: auto;
    }
}

/* Purchase Order */
.trade-info-fieldset {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.trade-info-fieldset legend {
    padding: 0 8px;
    font-weight: 900;
}

.purchase-order-form,
.po-document {
    display: grid;
    gap: 18px;
}

.po-table-wrap {
    overflow-x: auto;
}

.po-items-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    table-layout: fixed;
}

.po-items-table th,
.po-items-table td {
    padding: 9px 7px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.po-items-table th { color: var(--muted); font-size: 0.78rem; text-align: left; }
.po-items-table th:nth-child(1) { width: 5%; }
.po-items-table th:nth-child(2) { width: 30%; }
.po-items-table th:nth-child(3) { width: 14%; }
.po-items-table th:nth-child(4) { width: 9%; }
.po-items-table th:nth-child(5) { width: 9%; }
.po-items-table th:nth-child(6) { width: 14%; }
.po-items-table th:nth-child(7) { width: 14%; }
.po-items-table th:nth-child(8) { width: 5%; }
.po-items-table input { width: 100%; min-width: 0; }

.po-bottom-grid,
.po-view-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.7fr);
    gap: 28px;
}

.po-charge-fields,
.po-view-totals {
    display: grid;
    gap: 0;
    align-self: start;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.po-charge-fields > div,
.po-charge-fields > label,
.po-view-totals > div {
    display: grid;
    grid-template-columns: 1fr minmax(130px, 0.8fr);
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.po-charge-fields > :last-child,
.po-view-totals > :last-child { border-bottom: 0; }
.po-charge-fields input { text-align: right; }
.po-total { background: #edf6f5; font-size: 1.05rem; }

.po-document-title,
.po-print-header {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.65fr);
    gap: 28px;
    align-items: start;
}

.po-document-title p,
.po-party-grid p { margin: 4px 0; }
.po-document-title dl,
.po-print-header dl { margin: 0; border: 1px solid var(--line); }
.po-document-title dl > div,
.po-print-header dl > div { display: grid; grid-template-columns: 90px 1fr; border-bottom: 1px solid var(--line); }
.po-document-title dl > div:last-child,
.po-print-header dl > div:last-child { border-bottom: 0; }
.po-document-title dt,
.po-document-title dd,
.po-print-header dt,
.po-print-header dd { margin: 0; padding: 9px; }
.po-document-title dt,
.po-print-header dt { background: #f0f3f3; font-weight: 800; }

.po-party-grid,
.po-print-parties { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.po-party-grid > div,
.po-print-parties > div { min-height: 150px; padding: 16px; }
.po-party-grid > div + div,
.po-print-parties > div + div { border-left: 1px solid var(--line); }
.po-party-grid h3,
.po-print-parties h2 { margin: 0 0 10px; font-size: 0.8rem; letter-spacing: 0.12em; }
.po-terms-grid,
.po-print-terms { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.po-terms-grid > div,
.po-print-terms > div { display: grid; gap: 4px; padding: 12px; border-right: 1px solid var(--line); }
.po-terms-grid > div:last-child,
.po-print-terms > div:last-child { border-right: 0; }
.po-terms-grid span,
.po-print-terms span { color: var(--muted); font-size: 0.75rem; font-weight: 800; }

.po-print-sheet { display: flex; flex-direction: column; gap: 4mm; color: #111; font-family: Arial, Helvetica, sans-serif; }
.po-print-header { grid-template-columns: 1fr 62mm; gap: 8mm; padding-bottom: 4mm; border-bottom: 1.2mm solid #20252a; }
.po-print-brand h1 { margin: 0 0 4mm; font-size: 25pt; letter-spacing: 1.5mm; }
.po-print-brand p { margin: 1mm 0; font-size: 8pt; line-height: 1.35; }
.po-print-header dl { border-color: #333; }
.po-print-header dl > div { grid-template-columns: 23mm 1fr; border-color: #333; }
.po-print-header dt,
.po-print-header dd { padding: 2.2mm; font-size: 8pt; }
.po-print-parties { border-color: #333; }
.po-print-parties > div { min-height: 34mm; padding: 3mm; }
.po-print-parties > div + div { border-color: #333; }
.po-print-parties h2 { margin-bottom: 2mm; font-size: 8pt; }
.po-print-parties p { margin: 0.8mm 0; font-size: 7.5pt; line-height: 1.3; }
.po-print-terms { grid-template-columns: 21mm 1.3fr 1fr 1fr; border-color: #333; }
.po-print-terms > div { padding: 2mm; border-color: #333; }
.po-print-terms span { font-size: 6.8pt; }
.po-print-terms strong { font-size: 7.5pt; }
.po-print-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 7.5pt; }
.po-print-table th,
.po-print-table td { height: 7mm; padding: 1mm 1.3mm; border: 1px solid #333; }
.po-print-table th { background: #eceeef; text-align: center; font-size: 7pt; }
.po-print-table th:nth-child(1) { width: 6%; }
.po-print-table th:nth-child(2) { width: 31%; }
.po-print-table th:nth-child(3) { width: 15%; }
.po-print-table th:nth-child(4) { width: 9%; }
.po-print-table th:nth-child(5) { width: 9%; }
.po-print-table th:nth-child(6) { width: 14%; }
.po-print-table th:nth-child(7) { width: 16%; }
.po-print-footer { display: grid; grid-template-columns: 1fr 67mm; margin-top: auto; border: 1px solid #333; }
.po-print-footer > section:first-child { min-height: 35mm; padding: 3mm; }
.po-print-footer h2 { margin: 0 0 2mm; font-size: 7pt; letter-spacing: 0.8mm; }
.po-print-footer p { margin: 0; font-size: 7.5pt; line-height: 1.4; }
.po-signature { display: grid; grid-template-columns: 27mm 1fr; margin-top: 7mm; border-top: 1px solid #aaa; padding-top: 2mm; font-size: 7pt; }
.po-print-totals { border-left: 1px solid #333; }
.po-print-totals > div { display: grid; grid-template-columns: 25mm 1fr; min-height: 7mm; border-bottom: 1px solid #333; }
.po-print-totals > div:last-child { border-bottom: 0; }
.po-print-totals span,
.po-print-totals strong { display: flex; align-items: center; padding: 1.2mm 2mm; font-size: 7.5pt; }
.po-print-totals span { border-right: 1px solid #333; }
.po-print-totals strong { justify-content: flex-end; }
.po-print-total { background: #e5e8e9; font-size: 8.5pt; }

@media (max-width: 760px) {
    .po-bottom-grid,
    .po-view-footer,
    .po-document-title,
    .po-party-grid,
    .po-terms-grid { grid-template-columns: 1fr; }
    .po-party-grid > div + div,
    .po-terms-grid > div { border-left: 0; border-right: 0; border-top: 1px solid var(--line); }
}

@media print {
    .po-print-header,
    .po-print-parties,
    .po-print-terms,
    .po-print-table tr,
    .po-print-footer { break-inside: avoid; page-break-inside: avoid; }
}

/* 정정·취소 관리대장 */
.correction-ledger-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.correction-ledger-summary article {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid #d4e4e5;
    border-radius: 13px;
    background: #fff;
}

.correction-ledger-summary span {
    color: #607679;
    font-size: 0.82rem;
    font-weight: 800;
}

.correction-ledger-summary strong {
    font-size: 1.2rem;
}

.correction-ledger-summary .correction-summary-draft {
    border-color: #e7d8a4;
    background: #fffbed;
}

.correction-ledger-summary .correction-summary-danger {
    border-color: #edc8c5;
    background: #fff6f5;
}

.correction-ledger-summary .correction-summary-evidence {
    border-color: #e7d8a4;
    background: #fffbed;
}

.correction-ledger-summary .correction-summary-complete {
    border-color: #bee0d8;
    background: #f3fbf8;
}

.correction-ledger-filter {
    grid-template-columns: repeat(8, minmax(135px, 1fr)) auto;
    align-items: end;
}

.correction-ledger-filter .correction-ledger-search {
    grid-column: span 2;
}

.correction-ledger-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0 9px;
}

.correction-ledger-meta p {
    margin: 0;
}

.correction-task-bulk-form {
    display: grid;
    gap: 14px;
    margin: 12px 0 16px;
}

.correction-task-bulk-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.correction-task-bulk-heading h2,
.correction-task-bulk-heading p {
    margin: 0;
}

.correction-task-bulk-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
    align-items: end;
    gap: 10px;
}

.correction-task-bulk-fields label {
    display: grid;
    gap: 6px;
    min-width: 0;
    font-size: 0.84rem;
    font-weight: 800;
}

.correction-task-bulk-fields button {
    min-height: 44px;
    white-space: nowrap;
}

.correction-task-select-cell {
    width: 48px;
    text-align: center;
}

.correction-task-select-cell input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}

.correction-ledger-table {
    min-width: 1710px;
}

.correction-ledger-table th:nth-child(1) { width: 3%; }
.correction-ledger-table th:nth-child(2) { width: 8%; }
.correction-ledger-table th:nth-child(3) { width: 6%; }
.correction-ledger-table th:nth-child(4) { width: 10%; }
.correction-ledger-table th:nth-child(5) { width: 13%; }
.correction-ledger-table th:nth-child(6) { width: 8%; }
.correction-ledger-table th:nth-child(7) { width: 12%; }
.correction-ledger-table th:nth-child(8) { width: 15%; }
.correction-ledger-table th:nth-child(9) { width: 12%; }
.correction-ledger-table th:nth-child(10) { width: 10%; }

.correction-ledger-table td {
    vertical-align: top;
}

.correction-ledger-table .badge {
    margin: 0 0 4px;
}

.correction-ledger-documents span {
    margin: 0 5px;
    color: var(--muted);
}

.correction-ledger-reason {
    max-width: 300px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.correction-ledger-tax-status .text-button,
.correction-ledger-table td:last-child .text-button {
    display: block;
    width: fit-content;
    margin-top: 7px;
}

.correction-follow-up-memo {
    display: block;
    margin-top: 7px;
    color: #405f63;
    font-size: 0.78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.correction-tax-evidence {
    display: grid;
    gap: 5px;
    margin: 7px 0;
    padding: 8px;
    border: 1px solid #cfe0e2;
    border-radius: 9px;
    background: #f6fbfa;
}

.correction-tax-evidence > div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 7px;
}

.correction-tax-evidence dt,
.correction-tax-evidence dd {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.4;
}

.correction-tax-evidence dt {
    color: var(--muted);
    font-weight: 800;
}

.correction-tax-evidence dd {
    color: #294c50;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.correction-tax-evidence-editor input {
    width: 100%;
}

.correction-ledger-task > strong,
.correction-ledger-task > span,
.correction-ledger-task > small {
    display: block;
}

.correction-ledger-task > strong {
    color: #294c50;
}

.correction-ledger-task.is-overdue {
    box-shadow: inset 4px 0 0 #ce5d4d;
    background: #fff2f0;
}

.correction-ledger-task.is-due-today {
    box-shadow: inset 4px 0 0 #d59a2f;
    background: #fff9e9;
}

.correction-task-due {
    margin-top: 5px;
    color: #5f7376;
    font-size: 0.78rem;
    font-weight: 750;
}

.correction-task-due em {
    margin-left: 4px;
    color: #a44032;
    font-style: normal;
    font-weight: 900;
}

.correction-task-memo {
    margin-top: 7px;
    color: #405f63;
    font-size: 0.76rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.correction-task-updated {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.4;
}

.correction-task-notification {
    display: grid;
    gap: 5px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px dashed #c7d8da;
}

.correction-task-notification > strong {
    color: #294c50;
    font-size: 0.76rem;
}

.correction-task-notification > .badge {
    width: fit-content;
}

.correction-task-notification > small,
.correction-task-notification-history small {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.correction-task-notification-error {
    color: #9b3f35;
    font-size: 0.72rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.correction-task-notification-retry {
    margin-top: 2px;
}

.correction-task-notification-retry .secondary-button {
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    font-size: 0.76rem;
}

.correction-task-notification-history summary {
    width: fit-content;
    color: #405f63;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 800;
}

.correction-task-notification-history ol {
    display: grid;
    gap: 7px;
    min-width: 260px;
    margin: 7px 0 0;
    padding: 0;
    list-style: none;
}

.correction-task-notification-history li {
    padding: 8px;
    border: 1px solid #d8e4e5;
    border-radius: 9px;
    background: #f8fbfb;
}

.correction-task-notification-history li > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.correction-task-notification-history time {
    color: var(--muted);
    font-size: 0.7rem;
}

.correction-task-notification-history p {
    margin: 5px 0 0;
    color: #9b3f35;
    font-size: 0.72rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.correction-task-change-history {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px dashed #c7d8da;
}

.correction-task-change-history > summary {
    width: fit-content;
    color: #405f63;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 800;
}

.correction-task-change-history > ol {
    display: grid;
    gap: 8px;
    min-width: 280px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.correction-task-change-history > ol > li {
    padding: 9px;
    border: 1px solid #d8e4e5;
    border-radius: 9px;
    background: #f8fbfb;
}

.correction-task-change-history > ol > li > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #38565a;
    font-size: 0.72rem;
}

.correction-task-change-history time {
    color: var(--muted);
    font-size: 0.68rem;
}

.correction-task-change-history ul {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.correction-task-change-history ul li {
    display: grid;
    gap: 3px;
    padding-top: 6px;
    border-top: 1px solid #e4eded;
}

.correction-task-change-history ul strong {
    color: #294c50;
    font-size: 0.7rem;
}

.correction-task-change-history ul span {
    color: #536b6e;
    font-size: 0.72rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.correction-task-change-history ul i {
    margin: 0 4px;
    color: var(--muted);
    font-style: normal;
}

.correction-task-editor {
    margin-top: 9px;
}

.correction-task-editor summary {
    width: fit-content;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.79rem;
    font-weight: 800;
}

.correction-task-editor form {
    display: grid;
    gap: 8px;
    min-width: 260px;
    margin-top: 9px;
    padding: 10px;
    border: 1px solid #cfe0e2;
    border-radius: 10px;
    background: #fff;
}

.correction-task-editor label {
    display: grid;
    gap: 5px;
    color: #38565a;
    font-size: 0.78rem;
    font-weight: 800;
}

.correction-task-editor textarea {
    min-height: 70px;
    resize: vertical;
}

.correction-task-editor button {
    width: 100%;
}

.correction-follow-up-editor {
    margin-top: 9px;
}

.correction-follow-up-editor summary {
    width: fit-content;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.79rem;
    font-weight: 800;
}

.correction-follow-up-editor form {
    display: grid;
    gap: 8px;
    min-width: 240px;
    margin-top: 9px;
    padding: 10px;
    border: 1px solid #cfe0e2;
    border-radius: 10px;
    background: #fff;
}

.correction-follow-up-editor label {
    display: grid;
    gap: 5px;
    color: #38565a;
    font-size: 0.78rem;
    font-weight: 800;
}

.correction-follow-up-editor textarea {
    min-height: 74px;
    resize: vertical;
}

.correction-follow-up-editor button {
    width: 100%;
}

.correction-follow-up-history {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #c7d8da;
}

.correction-follow-up-history summary {
    width: fit-content;
    color: #405f63;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.correction-follow-up-history ol {
    display: grid;
    gap: 8px;
    min-width: 260px;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}

.correction-follow-up-history li {
    padding: 9px;
    border: 1px solid #d8e4e5;
    border-radius: 9px;
    background: #f8fbfb;
}

.correction-follow-up-history li > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.correction-follow-up-history time,
.correction-follow-up-history small {
    color: var(--muted);
    font-size: 0.72rem;
}

.correction-follow-up-history p {
    margin: 6px 0 0;
    color: #405f63;
    font-size: 0.76rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.correction-ledger-row-draft_pending {
    background: #fffdf6;
}

.correction-ledger-row-tax_pending,
.correction-ledger-row-tax_review {
    background: #fff9f8;
}

.correction-ledger-row-evidence_missing {
    background: #fffdf6;
}

.correction-ledger-guide {
    margin-top: 24px;
}

.correction-ledger-guide h2 {
    margin-top: 0;
}

.correction-ledger-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.correction-ledger-guide-grid p {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #f8fbfb;
}

.correction-ledger-guide-grid span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

@media (max-width: 1200px) {
    .correction-ledger-filter {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .correction-task-bulk-fields {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 760px) {
    .correction-ledger-summary,
    .correction-ledger-filter,
    .correction-ledger-guide-grid {
        grid-template-columns: 1fr;
    }

    .correction-ledger-filter .correction-ledger-search {
        grid-column: auto;
    }

    .correction-ledger-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .correction-task-bulk-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .correction-task-bulk-fields {
        grid-template-columns: 1fr;
    }

    .correction-task-bulk-fields button {
        width: 100%;
    }

    .correction-ledger-table {
        min-width: 0;
    }

    .correction-ledger-reason {
        max-width: none;
    }
}

/* 제조사·모델 품질·수익성 현황판·상세 */
.model-analytics-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(150px, 0.8fr)) minmax(230px, 1.4fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
}

.model-analytics-toolbar label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.model-analytics-toolbar input,
.model-analytics-toolbar select {
    width: 100%;
}

.model-analytics-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.model-analytics-summary-card {
    display: grid;
    gap: 7px;
    min-height: 132px;
}

.model-analytics-summary-card span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.model-analytics-summary-card strong {
    color: var(--ink);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.2;
}

.model-analytics-summary-card small {
    color: var(--muted);
    line-height: 1.5;
}

.model-analytics-summary-card.is-positive {
    border-color: #9ed9c7;
    background: #f3fbf8;
}

.model-analytics-summary-card.is-negative {
    border-color: #efb5ac;
    background: #fff7f5;
}

.model-quality-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.model-quality-panel.has-warning {
    border-color: #eed693;
    background: #fffdf6;
}

.model-quality-panel.is-clean {
    border-color: #a9decf;
    background: #f5fcf9;
}

.model-quality-heading {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
}

.model-quality-heading h2 {
    margin: 3px 0 0;
}

.model-quality-heading > strong {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 121, 123, 0.09);
    color: var(--teal-dark);
    font-size: 0.9rem;
}

.model-quality-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.model-quality-grid > div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
}

.model-quality-grid span {
    color: var(--muted);
    font-size: 0.78rem;
}

.model-quality-grid strong {
    font-size: 1.12rem;
}

.model-quality-alert {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.model-quality-details {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.model-quality-details summary {
    cursor: pointer;
    color: var(--teal-dark);
    font-weight: 800;
}

.model-quality-details[open] summary {
    margin-bottom: 12px;
}

.model-quality-table {
    min-width: 780px;
}

.model-variant-label {
    display: inline-block;
    margin: 2px 5px 2px 0;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 0.8rem;
    text-decoration: none;
}

.model-variant-label:hover,
.model-variant-label:focus-visible {
    text-decoration: underline;
}

.model-analytics-guide {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 16px;
    align-items: baseline;
    margin-bottom: 18px;
}

.model-analytics-guide small {
    grid-column: 2;
    color: var(--muted);
}

.model-analytics-table-wrap {
    margin-bottom: 18px;
}

.model-analytics-table {
    min-width: 1320px;
}

.model-analytics-table td {
    vertical-align: top;
}

.model-analytics-table td strong,
.model-analytics-table td span,
.model-analytics-table td small {
    display: block;
}

.model-analytics-table td small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.4;
}

.model-analytics-table .text-button + .text-button {
    margin-left: 7px;
}

.model-quality-warning {
    color: #a96000 !important;
    font-weight: 700;
}

.model-detail-variants {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.model-variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.model-variant-list span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 0.84rem;
    font-weight: 700;
}

.model-detail-variants small {
    color: var(--muted);
}

.model-detail-distributions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.model-detail-ranking {
    min-width: 0;
}

.model-detail-ranking h2 {
    margin: 3px 0 0;
}

.model-detail-ranking ol {
    display: grid;
    gap: 0;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: model-ranking;
}

.model-detail-ranking li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    counter-increment: model-ranking;
}

.model-detail-ranking li::before {
    content: counter(model-ranking);
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 0.76rem;
    font-weight: 800;
}

.model-detail-ranking li span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.model-detail-ranking li strong {
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.model-detail-table-wrap {
    margin-bottom: 22px;
}

.model-detail-assets {
    min-width: 1300px;
}

.model-detail-events {
    min-width: 1500px;
}

.model-detail-assets td,
.model-detail-events td {
    vertical-align: top;
}

.model-detail-assets td strong,
.model-detail-assets td span,
.model-detail-assets td small {
    display: block;
}

.model-detail-assets td small,
.model-detail-events td small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.4;
}

.model-detail-assets .text-button + .text-button {
    margin-left: 7px;
}

.model-detail-event-text {
    max-width: 270px;
    min-width: 160px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.model-detail-event-heading {
    margin-top: 24px;
}

@media (max-width: 1380px) {
    .model-analytics-toolbar {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }

    .model-analytics-toolbar .search-field {
        grid-column: span 2;
    }

    .model-quality-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .model-analytics-toolbar,
    .model-analytics-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .model-detail-distributions {
        grid-template-columns: 1fr;
    }

    .model-analytics-toolbar .search-field {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .model-analytics-toolbar,
    .model-analytics-summary,
    .model-quality-grid {
        grid-template-columns: 1fr;
    }

    .model-quality-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .model-analytics-guide {
        grid-template-columns: 1fr;
    }

    .model-analytics-guide small {
        grid-column: auto;
    }
}

/* 6H-3 소모품·부품 보관처·이동·실사 관리 */
.rental-inventory-toolbar {
    display: flex;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.rental-inventory-toolbar label {
    flex: 1 1 280px;
    max-width: 520px;
}

.rental-inventory-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.rental-inventory-summary-card {
    display: grid;
    gap: 6px;
}

.rental-inventory-summary-card > span,
.rental-inventory-summary-card > small {
    color: var(--muted);
}

.rental-inventory-summary-card > strong {
    font-size: 1.35rem;
}

.rental-inventory-summary-card.is-success {
    border-color: rgba(18, 146, 121, 0.35);
    background: rgba(18, 146, 121, 0.06);
}

.rental-inventory-summary-card.is-danger {
    border-color: rgba(205, 65, 65, 0.4);
    background: rgba(205, 65, 65, 0.07);
}

.rental-inventory-layout,
.rental-inventory-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.rental-inventory-panel {
    min-width: 0;
    margin-bottom: 18px;
}

.rental-inventory-layout .rental-inventory-panel,
.rental-inventory-actions .rental-inventory-panel {
    margin-bottom: 0;
}

.rental-location-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.rental-location-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px 14px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--canvas);
}

.rental-location-card > div:first-child,
.rental-location-card > small {
    min-width: 0;
}

.rental-location-card > div:first-child strong,
.rental-location-card > div:first-child span,
.rental-location-card > small {
    display: block;
}

.rental-location-card > div:first-child span,
.rental-location-card > small {
    color: var(--muted);
    font-size: 0.82rem;
}

.rental-location-card > small {
    grid-column: 1 / -1;
}

.rental-location-card.is-inactive {
    opacity: 0.68;
}

.rental-location-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.rental-inventory-form {
    display: grid;
    gap: 13px;
    margin-top: 16px;
}

.rental-inventory-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rental-inventory-form textarea {
    min-height: 78px;
}

.rental-inventory-form button {
    justify-self: start;
}

.rental-location-stock-table,
.rental-stock-movement-table {
    min-width: 940px;
}

.rental-location-stock-table td strong,
.rental-location-stock-table td small,
.rental-stock-movement-table td strong,
.rental-stock-movement-table td small {
    display: block;
}

.rental-location-stock-table td small,
.rental-stock-movement-table td small {
    margin-top: 4px;
    color: var(--muted);
}

.rental-stock-movement-table tr.is-cancelled {
    opacity: 0.7;
}

.inline-action-details {
    margin-top: 8px;
}

.inline-action-details summary {
    color: var(--danger);
    cursor: pointer;
    font-weight: 700;
}

.inline-action-details form {
    display: grid;
    gap: 8px;
    min-width: 240px;
    margin-top: 8px;
}

.inline-action-details textarea {
    min-height: 64px;
}

@media (max-width: 900px) {
    .rental-inventory-layout,
    .rental-inventory-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .rental-inventory-toolbar,
    .rental-inventory-heading,
    .rental-inventory-heading .heading-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rental-inventory-summary,
    .rental-inventory-form-grid {
        grid-template-columns: 1fr;
    }

    .rental-location-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .rental-location-card > strong {
        grid-column: 2;
    }
}

/* 6I 계약 갱신·교체·회수 의사결정 지원 */
.contract-decision-toolbar {
    display: grid;
    grid-template-columns: repeat(6, minmax(145px, 1fr)) minmax(250px, 1.6fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.contract-decision-toolbar label {
    min-width: 0;
}

.contract-decision-summary {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.contract-decision-summary-card {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.contract-decision-summary-card > span,
.contract-decision-summary-card > small {
    color: var(--muted);
}

.contract-decision-summary-card > strong {
    font-size: 1.3rem;
}

.contract-decision-summary-card.is-renew {
    border-color: rgba(18, 146, 121, 0.35);
    background: rgba(18, 146, 121, 0.06);
}

.contract-decision-summary-card.is-replace {
    border-color: rgba(205, 65, 65, 0.35);
    background: rgba(205, 65, 65, 0.06);
}

.contract-decision-summary-card.is-retrieve {
    border-color: rgba(204, 139, 38, 0.35);
    background: rgba(255, 186, 73, 0.1);
}

.contract-decision-guide {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px 16px;
    margin-bottom: 18px;
    border-left: 4px solid var(--teal);
}

.contract-decision-guide strong {
    color: var(--teal-dark);
}

.contract-decision-guide small {
    grid-column: 2;
    color: var(--muted);
}

.contract-decision-table {
    min-width: 1500px;
}

.contract-decision-table td {
    vertical-align: top;
}

.contract-decision-table td strong,
.contract-decision-table td span,
.contract-decision-table td small {
    display: block;
}

.contract-decision-table td span,
.contract-decision-table td small {
    margin-top: 4px;
}

.contract-decision-table td small {
    color: var(--muted);
}

.contract-decision-table .text-danger {
    color: var(--danger);
}

.contract-urgency,
.contract-recovery,
.contract-recommendation {
    width: fit-content;
    margin-bottom: 7px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.contract-urgency.is-overdue,
.contract-urgency.is-urgent,
.contract-recommendation.is-replace {
    color: var(--danger);
    background: var(--danger-soft);
}

.contract-urgency.is-soon,
.contract-recommendation.is-retrieve,
.contract-recovery.is-unrecovered {
    color: #8b5a00;
    background: #fff4d8;
}

.contract-urgency.is-planned,
.contract-recommendation.is-review,
.contract-recommendation.is-data_check,
.contract-recovery.is-unknown {
    color: #50666a;
    background: #eef4f4;
}

.contract-recommendation.is-renew,
.contract-recovery.is-recovered {
    color: #08765f;
    background: #e7f8f3;
}

.contract-decision-reasons {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.contract-checklist {
    margin-top: 9px;
}

.contract-checklist summary {
    color: var(--teal-dark);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 800;
}

.contract-checklist ol {
    margin: 8px 0 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.contract-decision-actions {
    display: grid;
    justify-items: start;
    gap: 7px;
}

.contract-final-decision {
    width: fit-content;
    margin-bottom: 7px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #50666a;
    background: #eef4f4;
    font-size: 0.76rem;
    font-weight: 800;
}

.contract-final-decision.is-renew {
    color: #08765f;
    background: #e7f8f3;
}

.contract-final-decision.is-replace {
    color: var(--danger);
    background: var(--danger-soft);
}

.contract-final-decision.is-retrieve,
.contract-final-decision.is-hold {
    color: #8b5a00;
    background: #fff4d8;
}

.contract-decision-management,
.contract-decision-history {
    min-width: 250px;
    margin-top: 10px;
}

.contract-decision-management > summary,
.contract-decision-history > summary {
    color: var(--teal-dark);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 800;
}

.contract-decision-form {
    display: grid;
    gap: 9px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--canvas);
}

.contract-decision-form label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.contract-decision-form textarea {
    min-height: 76px;
    resize: vertical;
}

.contract-decision-history ol {
    display: grid;
    gap: 8px;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}

.contract-decision-history li {
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 0.76rem;
}

.contract-proposal-sheet {
    max-width: 900px;
    margin: 0 auto;
    padding: 44px 48px;
}

.contract-proposal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: start;
    padding-bottom: 24px;
    border-bottom: 3px solid var(--ink);
}

.contract-proposal-header span,
.contract-proposal-recipient span,
.contract-proposal-grid span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.contract-proposal-header h2 {
    margin: 8px 0 0;
    font-size: 2rem;
}

.contract-proposal-header dl {
    display: grid;
    gap: 7px;
    margin: 0;
}

.contract-proposal-header dl div {
    display: grid;
    grid-template-columns: 58px auto;
    gap: 10px;
}

.contract-proposal-header dt {
    color: var(--muted);
}

.contract-proposal-header dd {
    margin: 0;
    font-weight: 800;
}

.contract-proposal-recipient,
.contract-proposal-grid {
    display: grid;
    gap: 1px;
    margin-top: 26px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--line);
}

.contract-proposal-recipient {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.contract-proposal-recipient > div,
.contract-proposal-grid > div {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    background: var(--paper);
}

.contract-proposal-message,
.contract-proposal-section {
    margin-top: 30px;
}

.contract-proposal-message p {
    margin-bottom: 0;
    padding: 20px;
    border-left: 4px solid var(--teal);
    border-radius: 0 12px 12px 0;
    background: var(--canvas);
    font-size: 1.05rem;
    line-height: 1.75;
}

.contract-proposal-section li {
    margin-bottom: 9px;
    line-height: 1.6;
}

.contract-proposal-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.contract-proposal-footer div {
    display: grid;
    gap: 4px;
}

.contract-proposal-footer p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    text-align: right;
}

@media (max-width: 1380px) {
    .contract-decision-toolbar {
        grid-template-columns: repeat(3, minmax(170px, 1fr));
    }

    .contract-decision-toolbar .search-field {
        grid-column: span 2;
    }

    .contract-decision-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .contract-decision-toolbar,
    .contract-decision-summary,
    .contract-proposal-recipient,
    .contract-proposal-grid,
    .contract-proposal-header {
        grid-template-columns: 1fr;
    }

    .contract-decision-toolbar .search-field {
        grid-column: auto;
    }

    .contract-decision-guide {
        grid-template-columns: 1fr;
    }

    .contract-decision-guide small {
        grid-column: auto;
    }

    .contract-proposal-sheet {
        padding: 26px 22px;
    }

    .contract-proposal-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .contract-proposal-footer p {
        text-align: left;
    }
}

@media print {
    .contract-proposal-actions {
        display: none !important;
    }

    .contract-proposal-sheet {
        max-width: none;
        border: 0;
        box-shadow: none;
        break-inside: avoid;
    }
}

/* 076 Commercial Invoice · Packing List */
.export-shipment-form {
    display: grid;
    gap: 20px;
}

.export-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.export-items-table,
.export-packing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper);
}

.export-items-table {
    min-width: 1420px;
}

.export-packing-table {
    min-width: 1240px;
}

.export-items-table th,
.export-items-table td,
.export-packing-table th,
.export-packing-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.export-items-table th,
.export-packing-table th {
    background: var(--canvas);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
}

.export-items-table tbody tr:last-child td,
.export-packing-table tbody tr:last-child td {
    border-bottom: 0;
}

.export-items-table input,
.export-packing-table input {
    min-width: 74px;
    padding: 9px 10px;
}

.export-items-table .export-description,
.export-packing-table .packing-description {
    min-width: 240px;
}

.export-items-table .export-marks,
.export-packing-table .packing-label,
.export-packing-table .packing-dimensions {
    min-width: 135px;
}

.export-form-total,
.export-packing-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    font-variant-numeric: tabular-nums;
}

.export-form-total strong {
    color: var(--teal-dark);
    font-size: 1.25rem;
}

.export-packing-summary {
    flex-wrap: wrap;
}

.export-packing-summary span {
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--canvas);
}

.export-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    overflow: hidden;
    background: var(--line);
}

.export-summary-grid > div {
    min-width: 0;
    padding: 18px;
    background: var(--paper);
}

.export-summary-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.export-summary-grid strong {
    overflow-wrap: anywhere;
}

.export-summary-grid p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.export-print-sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.5mm;
    box-sizing: border-box;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8.5pt;
}

.export-print-sheet h1 {
    margin: 0 0 1mm;
    font-size: 21pt;
    letter-spacing: 0.08em;
    text-align: center;
}

.export-print-status {
    position: absolute;
    z-index: 2;
    top: 8mm;
    right: 9mm;
    padding: 2mm 4mm;
    transform: rotate(-8deg);
    border: 2px solid #b42318;
    color: #b42318;
    font-size: 12pt;
    font-weight: 900;
    letter-spacing: 0.12em;
    opacity: 0.82;
}

.export-print-header-grid {
    display: grid;
    grid-template-columns: 52% 48%;
    border-top: 1px solid #111;
    border-left: 1px solid #111;
}

.export-print-header-grid > section {
    min-width: 0;
    border-right: 1px solid #111;
    border-bottom: 1px solid #111;
}

.export-print-party,
.export-print-reference,
.packing-shipping-mark {
    min-height: 23mm;
    padding: 2mm 2.5mm;
}

.export-print-party h2,
.export-print-reference h2,
.export-print-shipping-grid h2 {
    margin: 0 0 1mm;
    font-size: 7pt;
    font-weight: 700;
}

.export-print-party strong,
.export-print-reference strong,
.export-print-shipping-grid strong {
    font-size: 8.6pt;
}

.export-print-party p,
.export-print-reference p {
    margin: 0.8mm 0 0;
    line-height: 1.35;
}

.export-print-reference {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
}

.export-print-reference > div {
    min-height: 10mm;
    padding: 2mm 2.5mm;
}

.export-print-reference > div + div {
    border-top: 1px solid #111;
}

.export-notify {
    min-height: 17mm;
}

.export-remarks,
.packing-shipping-mark {
    grid-column: 2;
    grid-row: 3 / span 2;
}

.export-remarks {
    min-height: 38mm;
}

.export-print-shipping-grid {
    display: grid;
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.export-print-shipping-grid > div {
    min-height: 15mm;
    padding: 2mm 2.5mm;
}

.export-print-shipping-grid > div:nth-child(odd) {
    border-right: 1px solid #111;
}

.export-print-shipping-grid > div:nth-child(n + 3) {
    border-top: 1px solid #111;
}

.commercial-invoice-table,
.packing-list-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-variant-numeric: tabular-nums;
}

.commercial-invoice-table th,
.commercial-invoice-table td,
.packing-list-table th,
.packing-list-table td {
    border: 1px solid #111;
    padding: 1.6mm 1.4mm;
    vertical-align: top;
}

.commercial-invoice-table th,
.packing-list-table th {
    height: 12mm;
    font-size: 7pt;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
}

.commercial-invoice-table td,
.packing-list-table td {
    height: 9.5mm;
    font-size: 7.5pt;
    line-height: 1.35;
}

.commercial-invoice-table th:nth-child(1),
.commercial-invoice-table td:nth-child(1) {
    width: 22%;
}

.commercial-invoice-table th:nth-child(2),
.commercial-invoice-table td:nth-child(2) {
    width: 38%;
}

.commercial-invoice-table th:nth-child(3),
.commercial-invoice-table td:nth-child(3) {
    width: 13%;
}

.commercial-invoice-table th:nth-child(4),
.commercial-invoice-table td:nth-child(4) {
    width: 12%;
}

.commercial-invoice-table th:nth-child(5),
.commercial-invoice-table td:nth-child(5) {
    width: 15%;
}

.commercial-invoice-table td small {
    display: block;
    margin-top: 0.8mm;
    color: #333;
}

.packing-list-table th:nth-child(1),
.packing-list-table td:nth-child(1) {
    width: 20%;
}

.packing-list-table th:nth-child(2),
.packing-list-table td:nth-child(2) {
    width: 35%;
}

.packing-list-table th:nth-child(3),
.packing-list-table td:nth-child(3) {
    width: 9%;
}

.packing-list-table th:nth-child(4),
.packing-list-table td:nth-child(4) {
    width: 10%;
}

.packing-list-table th:nth-child(5),
.packing-list-table td:nth-child(5),
.packing-list-table th:nth-child(6),
.packing-list-table td:nth-child(6) {
    width: 13%;
}

.export-print-blank td {
    height: 9.5mm;
}

.commercial-invoice-footer,
.packing-list-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6mm;
    align-items: end;
    margin-top: auto;
}

.export-signature {
    position: relative;
    min-height: 21mm;
    padding-top: 3mm;
    border-top: 1px solid #111;
}

.export-signature span,
.export-signature strong {
    display: block;
}

.export-signature img {
    position: absolute;
    right: 5mm;
    bottom: 0;
    max-width: 25mm;
    max-height: 25mm;
    object-fit: contain;
}

.export-grand-total {
    display: grid;
    grid-template-columns: auto minmax(32mm, auto);
    min-width: 73mm;
    border: 1px solid #111;
}

.export-grand-total span,
.export-grand-total strong {
    padding: 3mm;
}

.export-grand-total span {
    border-right: 1px solid #111;
    font-weight: 700;
}

.export-grand-total strong {
    font-size: 10pt;
    text-align: right;
}

.packing-shipping-mark {
    display: grid;
    place-items: center;
}

.export-shipping-mark-shape {
    display: grid;
    width: 29mm;
    height: 29mm;
    place-items: center;
    transform: rotate(45deg);
    border: 1px solid #111;
}

.export-shipping-mark-shape strong {
    max-width: 24mm;
    transform: rotate(-45deg);
    font-size: 8pt;
    overflow-wrap: anywhere;
    text-align: center;
}

.packing-dimensions p {
    margin: 0 0 1mm;
}

.packing-totals {
    display: grid;
    grid-template-columns: repeat(2, auto);
    border-top: 1px solid #111;
    border-left: 1px solid #111;
}

.packing-totals span {
    display: flex;
    justify-content: space-between;
    gap: 4mm;
    min-width: 38mm;
    padding: 2.5mm;
    border-right: 1px solid #111;
    border-bottom: 1px solid #111;
}

.print-continued {
    margin-top: auto;
    text-align: right;
}

@media (max-width: 1100px) {
    .export-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .export-summary-grid {
        grid-template-columns: 1fr;
    }

    .export-form-total,
    .export-packing-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media print {
    .export-print-sheet {
        break-after: page;
        page-break-after: always;
    }

    .export-print-sheet:last-child {
        break-after: auto;
        page-break-after: auto;
    }
}
