@charset "UTF-8";

/* 超印刷 */
.print-modal-content {
    background-color: #fefefe;
    padding: 0;
    border: 1px solid #888;
    width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
}

.print-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 24px 5px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    margin: 0 0 10px;
}

.print-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.setting-group {
    margin-bottom: 24px;
}

.setting-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.setting-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.setting-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.radio-group {
    display: flex;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: border-color 0.2s;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #3b82f6;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
}


.grid-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.grid-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.grid-input {
    width: 60px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.grid-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.total-pages {
    font-size: 13px;
    color: #6b7280;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.total-pages.warning {
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.preview-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
}

.grid-preview {
    display: grid;
    gap: 2px;
    max-width: 200px;
    margin: 0 auto;
}

.grid-cell {
    aspect-ratio: 1;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    position: relative;
    min-height: 20px;
}

.grid-cell.center {
    background: #dbeafe;
    border-color: #3b82f6;
}

.grid-cell.center::after {
    content: '現在';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: #1e40af;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}