#yokotake-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.estimate-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.product-search {
    position: relative;
    flex: 2;
}

.product-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background: #f0f0f0;
}

.product-code {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.quantity {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.note {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 40px;
}

.add-item-container {
    text-align: right;
    margin-bottom: 20px;
}

.contact-info {
    border-top: 2px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
}

.contact-info h3 {
    margin-bottom: 15px;
}

.contact-info input,
.contact-info textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.submit-button {
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    margin-left: auto;
    display: block;
}

.submit-button:hover {
    background: #218838;
}

#form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 確認画面のスタイル */
#confirmation-screen {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#confirmation-screen h2 {
    margin-bottom: 20px;
    color: #333;
}

.confirmation-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.confirmation-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0073aa;
}

.confirmation-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
}

.confirmation-item .label {
    font-weight: bold;
    min-width: 80px;
}

.confirmation-item .value {
    flex: 1;
}

.confirmation-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirmation-buttons .button {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#back-to-form {
    background: #fd7e14;
    color: white;
}

#back-to-form:hover {
    background: #e8650e;
}

#submit-estimate {
    background: #28a745;
    color: white;
}

#submit-estimate:hover {
    background: #218838;
}

.contact-confirmation {
    margin-top: 20px;
}

.contact-confirmation .confirmation-item {
    flex-direction: column;
    gap: 5px;
}

.contact-confirmation .label {
    min-width: auto;
    font-size: 14px;
    color: #666;
}

/* 管理画面用のスタイル */
.admin-estimate-items {
    margin-top: 15px;
}

.admin-estimate-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    align-items: flex-start;
}

.admin-product-search {
    position: relative;
    flex: 2;
}

.admin-product-search label,
.admin-product-code label,
.admin-quantity label,
.admin-note label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: bold;
}

.admin-product-input,
.admin-code-input,
.admin-quantity-input,
.admin-note-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    min-height: 20px;
    word-wrap: break-word;
}

.admin-product-code {
    width: 80px;
}

.admin-quantity {
    width: 100px;
}

.admin-note {
    flex: 1;
    min-height: 40px;
}

.admin-note-input {
    min-height: 40px;
    resize: vertical;
}

/* バリデーションエラーのスタイル */
.validation-error {
    color: #d63384;
    font-size: 12px;
    margin-top: 5px;
    font-weight: bold;
}

.error-border {
    border-color: #d63384 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.25) !important;
}

/* 確認画面（入力画面と同じスタイル） */
.estimate-item-confirm {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.product-search-confirm {
    position: relative;
    flex: 2;
}

.product-input-confirm {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.product-code-confirm {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    background: #f9f9f9;
}

.quantity-confirm {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    background: #f9f9f9;
}

.note-confirm {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 40px;
    background: #f9f9f9;
}

.contact-info-confirm {
    border-top: 2px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
}

.contact-info-confirm h3 {
    margin-bottom: 15px;
}

.contact-info-confirm input,
.contact-info-confirm textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background: #f9f9f9;
}

/* 管理画面用のスタイル */
.search-form {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.search-form .form-table {
    margin: 0;
}

.search-form .form-table td {
    padding: 5px 10px 5px 0;
}

.search-form label {
    font-weight: bold;
}

.product-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-suggestions .suggestion-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.product-suggestions .suggestion-item:hover {
    background: #f0f0f0;
}

.product-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

.delete-estimate {
    color: #a00 !important;
    text-decoration: none;
    cursor: pointer;
}

.delete-estimate:hover {
    color: #dc3232 !important;
}

/* ページングスタイル */
.tablenav {
    margin: 20px 0;
    padding: 0;
}

.tablenav-pages {
    float: right;
    text-align: right;
}

.tablenav-pages .button {
    margin-left: 2px;
    padding: 3px 8px;
    font-size: 12px;
}

.displaying-num {
    margin-right: 10px;
    font-style: italic;
}

.paging-input {
    margin: 0 5px;
}

.tablenav-paging-text {
    font-weight: bold;
}
