/* Industry Classification Popup Styles */
.jms-industry-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.jms-industry-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.jms-industry-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.jms-industry-popup-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jms-industry-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.jms-industry-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jms-industry-popup-close:hover {
    color: #000;
}

.jms-industry-popup-body {
    padding: 20px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.jms-industry-popup-search {
    margin-bottom: 15px;
}

.jms-industry-popup-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: .875rem;
}

.jms-industry-popup-search input:focus {
    outline: none;
    border-color: #007bff;
}

.jms-industry-popup-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.jms-industry-popup-loading {
    padding: 40px;
    text-align: center;
    color: #666;
}

.jms-industry-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.jms-industry-item:last-child {
    border-bottom: none;
}

.jms-industry-item:hover {
    background-color: #f5f5f5;
}

.jms-industry-item-name {
    font-size: .875rem;
    color: var(--color-body);
    font-weight: 500;
}

.jms-industry-popup-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

/* Selected industry display */
.jms-industry-selected-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: .875rem;
    width: 100%;
    box-sizing: border-box;
    min-height: 38px;
    min-width: 100px;
}

.jms-industry-selected-name {
    font-size: .875rem;
    color: var(--color-body);
}

.jms-industry-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    margin-left: 5px;
}

.jms-industry-remove:hover {
    color: #d32f2f;
}

/* Inline remove button for student job entry form - matches jms-btn-small style */
.jms-industry-remove-inline {
    cursor: pointer;
    font-size: .875rem;
    line-height: 1;
    padding: 4px 8px;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: var(--color-body);
    transition: background-color 0.2s, border-color 0.2s;
}

.jms-industry-remove-inline:hover {
    background-color: #fee;
    border-color: #d32f2f;
    color: #d32f2f;
}

/* Job Classification Multi-Step Popup Styles */
.jms-job-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.jms-job-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.jms-job-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.jms-job-popup-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jms-job-popup-breadcrumb {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.jms-job-back-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #007bff;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.jms-job-back-btn:hover {
    color: #0056b3;
    text-decoration: underline;
}

.jms-job-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.jms-job-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jms-job-popup-close:hover {
    color: #000;
}

.jms-job-popup-body {
    padding: 20px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.jms-job-popup-search {
    margin-bottom: 15px;
}

.jms-job-popup-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: .875rem;
}

.jms-job-popup-search input:focus {
    outline: none;
    border-color: #007bff;
}

.jms-job-popup-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.jms-job-popup-loading {
    padding: 40px;
    text-align: center;
    color: #666;
}

.jms-job-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jms-job-item:last-child {
    border-bottom: none;
}

.jms-job-item:hover {
    background-color: #f5f5f5;
}

.jms-job-item-name {
    font-size: .875rem;
    color: var(--color-body);
    font-weight: 500;
    flex: 1;
}

.jms-job-item-arrow {
    color: #999;
    font-size: 18px;
    margin-left: 10px;
}

.jms-job-item-select {
    color: #007bff;
    font-size: .75rem;
    padding: 4px 8px;
    border: 1px solid #007bff;
    border-radius: 4px;
    margin-left: 10px;
    transition: background-color 0.2s, color 0.2s;
}

.jms-job-item-select:hover {
    background-color: #007bff;
    color: #fff;
}

.jms-job-popup-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

.jms-label-text {
    font-weight: bold;
}

.jms-checkbox-group-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    row-gap: 1em;
}

.jms-checkbox-group-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 1em;
}

.jms-checkbox-group-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1em;
}

.jms-checkbox-item input[type="checkbox"],
.jms-radio-item input[type="radio"] {
    width: 16px;
}

/* 資格・免許行の削除ボタンが折り返されないように横並びを固定 */
.jms-qualification-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jms-qualification-row .jms-qualification-name-input {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
}

.jms-qualification-row .jms-qualification-code-input {
    width: 90px !important;
    flex: 0 0 90px;
    margin-left: 0 !important;
}

.jms-qualification-row .jms-qualification-remove-btn {
    margin-left: 0 !important;
    flex: 0 0 32px;
}