/* 医師申請関連フォーム（不在届・休暇届・確認画面）の共通スタイル */
@page {
    size: A4;
    margin: 0;
}

body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background: #e0e0e0;
    margin: 0;
    padding: 20mm 0;
}

.a4-container {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
    position: relative;
}

@media print {
    body {
        background: white;
        padding: 0;
    }
    .a4-container {
        box-shadow: none;
        margin: 0;
        padding: 15mm;
        min-height: auto;
    }
    input[type="text"],
    input[type="date"],
    input[type="time"],
    textarea {
        border-bottom: 1px solid #000;
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    textarea {
        border: none;
    }
    .submit-btn,
    .confirm-actions,
    .top-link {
        display: none !important;
    }
}

.top-link-container {
    width: 210mm;
    margin: 0 auto 10px;
    display: flex;
    justify-content: flex-start;
}

.top-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.top-link:hover {
    background-color: #5a6268;
}

h1 {
    text-align: center;
    font-size: 24pt;
    letter-spacing: 5px;
    margin-bottom: 15mm;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.header-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10mm;
    align-items: flex-end;
}

input[type="text"],
input[type="date"],
input[type="time"] {
    border: none;
    border-bottom: 1px solid #000;
    outline: none;
    font-size: 11pt;
    font-family: inherit;
    background: transparent;
    padding: 2px 5px;
}

textarea {
    border: none;
    width: 100%;
    height: 100%;
    min-height: 25mm;
    resize: none;
    outline: none;
    font-size: 11pt;
    line-height: 1.5;
    font-family: inherit;
    background: transparent;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5mm;
    table-layout: fixed;
}

th, td {
    border: 1px solid #000;
    padding: 5mm;
    font-size: 11pt;
    vertical-align: middle;
    line-height: 1.6;
}

th {
    background-color: #f5f5f5;
    width: 20%;
    text-align: center;
    font-weight: normal;
}

.checkbox-group {
    margin: 3mm 0;
    display: flex;
    flex-direction: column;
}

.checkbox-group label {
    margin-right: 5mm;
    cursor: pointer;
}

input[type="radio"] {
    transform: scale(1.2);
    margin-right: 5px;
}

.submit-btn {
    display: block;
    width: 250px;
    margin: 30px auto 40px;
    padding: 15px;
    background-color: #007bff;
    color: white;
    text-align: center;
    border: none;
    border-radius: 8px;
    font-size: 16pt;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px auto 40px;
}

.btn {
    display: block;
    width: 250px;
    padding: 15px;
    color: white;
    text-align: center;
    border: none;
    border-radius: 8px;
    font-size: 16pt;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-submit {
    background-color: #d9534f;
}

.btn-submit:hover {
    background-color: #c9302c;
}

.btn-back {
    background-color: #6c757d;
}

.btn-back:hover {
    background-color: #5a6268;
}
