/* Job Info Confirmation Styles - Based on company-info-confirmation.css */

.jms-form-title {
    font-size: 1.8rem;
}

/* Top Action Buttons (specific to job info) */
.jms-job-info-top-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.jms-job-info-top-buttons .jms-btn {
    width: 100%;
    font-size: 1.3rem;
}

/* Job Info Placeholder */
.jms-job-info-placeholder {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f9dfc4;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-height: 200px;
}

.jms-job-info-placeholder p {
    font-size: 1.3rem;
    color: #666;
}

/* Content Display Area */
.jms-confirmation-content-area {
    margin-bottom: 2rem;
    border: 2px solid #ccc;
    border-radius: 4px;
}

.jms-confirmation-header {
    background-color: #f0f0f0;
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-body);
    border-bottom: 2px solid #ccc;
}

.jms-confirmation-content {
    padding: 2rem;
    min-height: 200px;
}

.jms-confirmation-data {
    font-size: 1.3rem;
    color: var(--color-body);
    line-height: 1.6;
}

/* Form inside confirmation area */
.jms-form-readonly {
    background: transparent;
    margin: 0;
    padding: 0;
}

/* Disable all form interactions in readonly mode */
.jms-form-readonly input[disabled],
.jms-form-readonly textarea[disabled],
.jms-form-readonly select[disabled],
.jms-form-readonly button[disabled] {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #f5f5f5;
}

.jms-form-readonly button[disabled] {
    background-color: #e0e0e0 !important;
    color: #999 !important;
    border-color: #ccc !important;
}

.jms-form-title-sub {
    font-size: 1.3rem;
    font-weight: 600;
    color: #198ec5;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #0073aa;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
    background-color: #b9d6e5;
}

.jms-confirmation-button-row {
    padding: 1rem;
    text-align: right;
    background-color: #fff;
    border-top: 1px solid #ccc;
}

.jms-confirmation-button-row .jms-btn {
    font-size: 1.3rem;
}

/* Action Buttons */
.jms-confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.jms-confirmation-actions .danger-label {
    font-size: 1.2rem;
    color: #d63638;
    font-weight: 600;
    padding: 0.5rem 0;
    text-align: left;
}

.jms-btn-action {
    background: #f0f0f0;
    color: var(--color-body);
    border: 1px solid #ccc;
    padding: 0.8rem 2rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s;
    text-align: center;
    width: 100%;
    display: block;
}

.jms-btn-action:hover {
    background: #e0e0e0;
}

/* Update History Section */
.jms-confirmation-history-section {
    margin-top: 2rem;
}

.jms-confirmation-history-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-body);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ccc;
}

.jms-confirmation-table-container {
    overflow-x: auto;
}

.jms-confirmation-history-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid #ccc;
}

.jms-confirmation-history-table thead {
    background-color: #e8f2f7;
}

.jms-confirmation-history-table th {
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--color-body);
    border: 1px solid #ccc;
    font-size: 1.3rem;
}

.jms-confirmation-history-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    font-size: 1.2rem;
    color: var(--color-body);
    vertical-align: top;
}

.jms-confirmation-history-table th:nth-child(1),
.jms-confirmation-history-table td:nth-child(1) {
    width: 60px;
    text-align: center;
}

.jms-confirmation-history-table th:nth-child(2),
.jms-confirmation-history-table td:nth-child(2) {
    width: 150px;
    text-align: center;
}

.jms-confirmation-history-table th:nth-child(3),
.jms-confirmation-history-table td:nth-child(3) {
    width: auto;
    text-align: left;
}

.jms-menu-no-data {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem 1rem;
}

/*
 * 長文項目（仕事内容・補足事項など）の見切れ対策。
 * app.css の nowrap / overflow:hidden を確認画面だけ上書きする。
 */
.jms-form-container .jms-form .jms-form-section-content .jms-form-field {
    align-items: flex-start;
    overflow: visible;
}

.jms-form-container .jms-form .jms-form-section-content .jms-inline-inputs {
    align-items: flex-start;
    flex-wrap: wrap;
}

.jms-form-container .jms-form .jms-form-section-content .jms-mini-label {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 1 1 0;
    min-width: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .jms-confirmation-content {
        padding: 1rem;
    }

    .jms-confirmation-history-table {
        font-size: 0.85rem;
    }

    .jms-confirmation-history-table th,
    .jms-confirmation-history-table td {
        padding: 0.5rem;
    }

    .jms-btn-action {
        padding: 0.75rem 1rem;
        font-size: 1.3rem;
    }
}
