body {
    font-family: Arial, sans-serif;
    margin-top: 20px;
    margin-right: 20px;
    margin-bottom: 5px;
    margin-left: 20px;
}

.header {
    margin-bottom: 0px;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 0px;
}

.landing-page {
    text-align: center;
    margin-top: 120px;
}

.landing-page h1 {
    font-size: 56px;
    margin-bottom: 30px;
}

.landing-tagline {
    font-size: 20px;
    color: #444;
    margin-bottom: 60px;
}

.landing-flow {
    font-size: 28px;
    line-height: 1.8;
    margin-bottom: 60px;
}

.landing-note {
    color: #666;
    font-size: 16px;
}

.save-button {
    background-color: #16a34a;
}

.save-button:hover {
    background-color: #15803d;
}

.secondary-button {
    background-color: #6b7280;
}

.secondary-button:hover {
    background-color: #4b5563;
}

.hidden-keywords {
    margin-top: 120px;
    color: #f0f0f0;
    font-size: 10px;
}

.home-user {
    margin-left: auto;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.file-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.card {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    background: #fafafa;
}

.card img {
    width: 100px;
    height: auto;
    cursor: pointer;
}

.card input[type="checkbox"] {
    transform: scale(2);
    margin-bottom: 10px;
}

.selected-card {
    background-color: #dbeafe;
    border: 2px solid #2563eb;
}

.page-count {
    color: #666;
 }

.preview-area {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    /* border: 1px solid #ccc; */
    padding: 20px;
    margin-top: 0px;
}

.preview-placeholder {
    padding-top: 60px;
}

button {
    padding: 20px 40px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    background-color: #8888ee;
    color: white;
}

button:hover {
    background-color: #1d4ed8;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.review-layout {
    display: flex;
    flex-direction: row;
    gap: 10px;
    height: calc(76vh - 10px);
}

.section-divider {
    border: 0;
    border-top: 2px solid #000;
    margin: 12px 0;
}

.panel-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 18px;
    margin-bottom: 12px;
}

.jobs-panel {
    width: 220px;
    /* border: 1px solid #ccc; */
    padding: 5px;
    overflow-y: auto;
}

.job-selector {
    width: 100%;
    height: 40px;
    padding: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.workflow-panel {
    width: 260px;
    /* border: 1px solid #ccc; */
    padding: 10px 0px;
    overflow-y: auto;
}

.content-panel {
    flex: 1;
    display: flex;
    gap: 20px;
    min-width: 0;
}

.hitl-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hitl-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #cccccc;
    margin-left: 20px;
    width: calc(100% - 20px);
}

.hitl-tab {
    padding: 12px 24px;
    cursor: pointer;
    border: 1px solid #cccccc;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 16px;
    font-weight: 600;
}

.active-tab {
    background: #2563eb;
    color: white;
    font-weight: bold;
}

.review-status {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #f8f8f8;
}

.thumbnail-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.thumbnail-section {
    width: 180px;
    overflow-y: auto;
    padding: 10px;
    /* border: 1px solid #ccc; */
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

.app-header {
    background-color: #001f99;
    padding: 12px 20px;
    margin-bottom: 20px;
    min-height: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-user {
    color: white;
    font-weight: bold;
    line-height: normal;
}

.app-menu {
    font-size: 16px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
}

.app-menu a {
    color: white;
    text-decoration: none;
}

.app-menu a:hover {
    text-decoration: underline;
}

.review-header-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.success-message-inline {
    color: #155724;
    font-weight: bold;
}

.language-active {
    color: #ff6666;
    font-weight: bold;
    text-decoration: none;
}

.language-link {
    color: white;
    text-decoration: none;
}

.language-link:hover {
    color: #ffd966;
}
.footer-note {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #999999;
}
.login-menu {
    text-align: right;
    width: 100%;
}
.drop-zone {
    border: 3px dashed #8888ee;
    border-radius: 12px;
    padding: 60px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    background: #fafafa;
    max-width: 700px;
}

.drop-zone.dragover {
    background: #dbeafe;
    border-color: #2563eb;
}

.file-name {
    margin-top: 15px;
    font-weight: bold;
    color: #2563eb;
}

.error-message {
    background-color: #fee2e2;
    border: 1px solid #f87171;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 700px;
}

.upload-container {
    padding: 30px;
}

.workflow-icon {
    display: inline-block;
    width: 24px;
    text-align: center;
}

.workflow-paw {
    transform: rotate(180deg);
    display: inline-block;
}

/* SOA Preview */

.soa-preview {
    padding: 10px;
}

.soa-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.soa-preview-layout {
    display: flex;
    flex-direction: column;
    height: 98%;
}

.soa-draft-panel {
    display: none;
    flex: 0 0 50%;
    overflow: auto;
    border-top: 1px solid #ddd;
    padding: 0;
    background: white;
    min-width: 0;
}

.soa-preview-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.soa-assessment {
    min-width: 120px;
    text-align: center;
    position: sticky;
    left: 0;
    background: #f5f7fa;
    z-index: 90;
}

.soa-circle {
    color: #2563eb;
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
}

.soa-table {
    width: auto;
    min-width: max-content;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 12px;
}

.soa-table th,
.soa-table td {
    min-width: 70px;
    white-space: nowrap;
}

.soa-table th {
    border: 1px solid #cccccc;
    background-color: #f5f7fa;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.soa-table td {
    border: 1px solid #cccccc;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.soa-table thead th {
    border: 1px solid #cccccc;
    position: sticky;
    top: 0;
    background: #f5f7fa;
    z-index: 100;
}

.soa-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 110;
}

.soa-table thead td {
    border: 1px solid #cccccc;
    background: #f5f7fa;
    z-index: 99;
}

.soa-cell-added {
    background-color: #dbeafe;
    box-shadow: inset 0 0 0 2px #2563eb;
}

.soa-cell-removed {
    background-color: #fee2e2;
    box-shadow: inset 0 0 0 2px #dc2626;
}

/* Audit Trail */

.table-container {
    height: 55vh;
    overflow-y: auto;
    border: 1px solid #cccccc;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.audit-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f5f7fa;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}

.audit-table td {
    padding: 10px 12px;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
}

.audit-table td:nth-child(3) {
    font-weight: 600;
}

.audit-table tr:hover {
    background: #fafcff;
}

.audit-table tr:last-child td {
    border-bottom: none;
}

.col-action {
    width: 180px;
}

.action-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.login {
    background: #d4edda;
}

.review {
    background: #cfe2ff;
}

/* モーダル共通設定 */
.review-select {
    width: 100%;
    height: 40px;
    font-size: 18px;
}

.review-comment {
    width: 100%;
    font-size: 18px;
}

