/* General page setup for A4 printing */
@page {
    size: A4;
    margin: 0.7cm;
}

/* 전역 body에 영향을 주지 않도록 폼 컨테이너로 범위 축소 */
#form-1, #form-2, #form-3, #form-4 {
    width: 190mm;
    margin: 10px auto;
    font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
    background-color: white;
    font-size: 10.5px;
    line-height: 1.2;
}

table {
    border-collapse: collapse;
}

/* === Form 1: 1.개체관리카드.html === */
#form-1 .header {
    text-align: right;
    margin-bottom: 10px;
    font-size: 10px;
    border: 1px solid black;
    padding: 5px;
}

#form-1 .title {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid black;
    padding: 10px;
    margin-bottom: 0;
}

#form-1 .subtitle {
    font-size: 10px;
    border: 1px solid black;
    border-top: none;
    padding: 5px;
    margin-bottom: 0;
}

#form-1 table {
    width: 100%;
    margin-bottom: 0;
    font-size: 9px;
}

#form-1 td {
    border: 1px solid black;
    padding: 3px 4px;
    vertical-align: middle;
    text-align: center;
    height: 20px;
}

#form-1 .section-header {
    background-color: #f0f0f0;
    font-weight: bold;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    width: 15px;
    font-size: 9px;
    padding: 4px 2px;
    vertical-align: middle;
}

#form-1 .field-name {
    background-color: #f8f8f8;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    font-size: 9px;
    padding: 3px;
    vertical-align: middle;
}

#form-1 .note {
    font-size: 10px;
    margin-top: 0;
    text-align: left;
    border: 1px solid black;
    border-top: none;
    padding: 5px;
}

#form-1 .red-text {
    color: red;
    font-weight: bold;
}

/* === Form 2: 2.개체관리표.html === */
#form-2 table {
    width: 100%;
    border: 2px solid black;
}
#form-2 td {
    border: 1px solid black;
    padding: 10px;
    height: 30px;
    text-align: center;
}
#form-2 .label {
    background-color: #f2f2f2;
    text-align: center;
    font-weight: bold;
    width: 15%;
}
#form-2 .content {
    width: 35%;
}
#form-2 .full-width-label {
    background-color: #f2f2f2;
    text-align: center;
    font-weight: bold;
}
#form-2 .full-width-content {
    height: 80px;
}

/* 2번 문서 가격 부분 스타일 */
#form-2 .price-cell {
    font-size: 20px;
    font-weight: bold;
}

/* 2번 문서 동물등록번호 스타일 */
#form-2 .registration-number-cell {
    font-weight: bold;
}


/* === Form 3: 3.안심분양계약서.html === */
#form-3 .container {
    border: 3px solid black;
    padding: 0;
}

#form-3 .title {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    background-color: #f0f0f0;
    padding: 4px;
    border-bottom: 1px solid black;
    margin: 0;
}

#form-3 .section {
    border-bottom: 1px solid black;
    padding: 3px 8px;
}

#form-3 .section:last-child {
    border-bottom: none;
}

#form-3 .section-title {
    font-weight: bold;
    margin-bottom: 3px;
    font-size: 11px;
}

#form-3 table {
    width: 100%;
    margin: 2px 0;
    font-size: 9.5px;
}

#form-3 th, #form-3 td {
    border: 1px solid black;
    padding: 2px 3px;
    vertical-align: middle;
    text-align: center;
}

#form-3 td.section-title{
    text-align: left;
}

#form-3 td.left-align{
    text-align: left;
}

#form-3 .field-name {
    background-color: #f8f8f8;
    font-weight: bold;
    white-space: nowrap;
}

#form-3 .center {
    text-align: center;
}

#form-3 .checkbox {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1px solid black;
    margin: 0 3px;
    text-align: center;
    line-height: 9px;
    font-size: 9px;
}

#form-3 .checked {
    background-color: black;
}

#form-3 .small-text {
    font-size: 9px;
    line-height: 1.1;
}

#form-3 .indent {
    margin-left: 15px;
}

#form-3 .signature-table {
    margin-top: 3px;
}

#form-3 .signature-table td {
    height: 20px;
    text-align: center;
}


/* === Form 4: 4.정산카드.html === */
#form-4 table {
    width: 100%;
    border: 2px solid black;
}
#form-4 td {
    border: 1px solid black;
    padding: 10px;
    height: 30px;
}
#form-4 .label {
    background-color: #f2f2f2;
    text-align: center;
    font-weight: bold;
    width: 15%;
}
#form-4 .content {
    width: 35%;
}
#form-4 .full-width-label {
    background-color: #f2f2f2;
    text-align: center;
    font-weight: bold;
}
#form-4 .full-width-content {
    height: 80px;
} 