#update-history-content #updateHistoryTable thead th,
#update-history-content #updateHistoryTabContent_requests .input-table thead th {
    text-align: center;
}
#update-history-content #updateHistoryTabContent_requests .input-table {
    table-layout: fixed;
    width: 100%;
}

#update-history-content #updateHistoryTabContent_requests .input-table thead th:nth-child(1),
#update-history-content #updateHistoryTabContent_requests .input-table tbody td:nth-child(1) {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    text-align: center;
}

#update-history-content #updateHistoryTabContent_requests .input-table thead th:nth-child(2),
#update-history-content #updateHistoryTabContent_requests .input-table tbody td:nth-child(2) {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
}

#update-history-content #updateHistoryTabContent_requests .input-table thead th:nth-child(3),
#update-history-content #updateHistoryTabContent_requests .input-table tbody td:nth-child(3) {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

#update-history-content #updateHistoryTabContent_requests .input-table thead th:nth-child(4),
#update-history-content #updateHistoryTabContent_requests .input-table tbody td:nth-child(4) {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
}

#update-history-content #updateHistoryTabContent_requests .input-table thead th:nth-child(5),
#update-history-content #updateHistoryTabContent_requests .input-table tbody td:nth-child(5) {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    text-align: left;
    white-space: normal;
}

#update-history-content #updateHistoryTabContent_requests .input-table thead th:nth-child(6),
#update-history-content #updateHistoryTabContent_requests .input-table tbody td:nth-child(6) {
    width: calc(100% - 810px) !important;
    min-width: 200px !important;
    max-width: calc(100% - 810px) !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    vertical-align: top !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    overflow: visible !important;
}

#update-history-content #updateHistoryTabContent_requests .input-table thead th:nth-child(7),
#update-history-content #updateHistoryTabContent_requests .input-table tbody td:nth-child(7) {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    text-align: center;
}

#update-history-content #updateHistoryTabContent_requests .input-table thead th:nth-child(8),
#update-history-content #updateHistoryTabContent_requests .input-table tbody td:nth-child(8) {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    text-align: center;
}

#update-history-content #updateHistoryTabContent_requests .request-title-toggle {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #1f2937;
    justify-content: flex-start;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    flex-wrap: wrap;
    box-sizing: border-box;
}

#update-history-content #updateHistoryTabContent_requests .request-title-toggle span {
    display: block;
    text-align: left;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    line-height: 1.5;
    max-width: 100%;
    flex: 1;
    min-width: 0;
}

#update-history-content #updateHistoryTabContent_requests .request-title-toggle i {
    color: #9ca3af;
    margin-top: 2px;
}

#update-history-content #updateHistoryTabContent_requests .request-title-toggle:hover {
    color: #2563eb;
}

#update-history-content #updateHistoryTabContent_requests .request-title-toggle i {
    transition: transform 0.2s ease;
    color: #9ca3af;
}

#update-history-content #updateHistoryTabContent_requests .request-title-toggle.expanded i {
    transform: rotate(90deg);
    color: #2563eb;
}

#update-history-content #updateHistoryTabContent_requests .update-request-details-row.hidden {
    display: none;
}

#update-history-content #updateHistoryTabContent_requests .update-request-details {
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 16px 18px;
    color: #374151;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

#update-history-content #updateHistoryTabContent_requests .update-request-details span {
    color: #6b7280;
}
#updateRequestModal .update-request-modal {
    width: 520px;
    max-width: calc(100% - 32px);
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    overflow: visible;
    display: flex;
    flex-direction: column;
}

#updateRequestModal .update-request-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

#updateRequestModal .update-request-modal__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
}

#updateRequestModal .update-request-modal__close {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}

#updateRequestModal .update-request-modal__close:hover {
    color: #111827;
}

#updateRequestModal .update-request-modal__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#updateRequestModal .update-request-modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#updateRequestModal .update-request-modal__label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

#updateRequestModal .update-request-modal__label .info-icon {
    margin-left: 4px;
    color: #9ca3af;
}

#updateRequestModal .update-request-modal__label .info-icon:hover {
    color: #2563eb;
}

#updateRequestModal .update-request-modal__label .info-tooltip {
    position: fixed !important;
    top: 18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    white-space: normal !important;
    max-width: 360px;
    min-width: 260px;
    width: max-content;
    text-align: left;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    z-index: 10000 !important;
    padding: 10px 14px;
    background: #111827;
    color: #f9fafb;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.35);
    transition: all 0.2s ease;
    pointer-events: none;
}

#updateRequestModal .update-request-modal__label .info-icon:hover .info-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
}

#updateRequestModal .update-request-modal {
    overflow: visible !important;
}

#updateRequestModal .update-request-modal__body {
    overflow: visible !important;
}

#updateRequestModal .info-tooltip--multiline {
    white-space: normal;
    max-width: 360px;
    line-height: 1.5;
}

#updateRequestModal .update-request-modal__custom-select {
    position: relative;
}

#updateRequestModal .update-request-modal__control--hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

#updateRequestModal .update-request-modal__custom-select-button {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 13px;
    color: #1f2937;
    background-color: #ffffff;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#updateRequestModal .update-request-modal__custom-select-button:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

#updateRequestModal .update-request-modal__custom-select-button.open {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#updateRequestModal .update-request-modal__custom-select-label {
    flex: 1 1 auto;
    color: #1f2937;
    text-align: left;
    display: inline-block;
}

#updateRequestModal .update-request-modal__custom-select-path {
    color: #9ca3af;
    font-size: 12px;
    margin-left: 4px;
    text-align: left;
}

#updateRequestModal .update-request-modal__custom-options {
    text-align: left;
}

#updateRequestModal .update-request-modal__custom-option {
    justify-content: flex-start;
}

#updateRequestModal .update-request-modal__custom-select-arrow {
    color: #9ca3af;
    transition: transform 0.2s ease;
}

#updateRequestModal .update-request-modal__custom-select-button.open .update-request-modal__custom-select-arrow {
    transform: rotate(180deg);
}

#updateRequestModal .update-request-modal__custom-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1400;
    display: none;
    text-align: left;
}

#updateRequestModal .update-request-modal__custom-options.open {
    display: block;
}

#updateRequestModal .update-request-modal__custom-option {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #1f2937;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#updateRequestModal .update-request-modal__custom-option:hover {
    background-color: #f3f4f6;
}

#updateRequestModal .update-request-modal__custom-option.is-active {
    background-color: #eff6ff;
}

#updateRequestModal .update-request-modal__control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 13px;
    color: #1f2937;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#updateRequestModal .update-request-modal__control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

#updateRequestModal .update-request-modal__textarea {
    min-height: 210px;
    resize: vertical;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 13px;
    color: #1f2937;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#updateRequestModal .update-request-modal__textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

#updateRequestModal .update-history-modal__dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background-color: #f9fafb;
    color: #6b7280;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

#updateRequestModal .update-history-modal__dropzone.dragover {
    border-color: #2563eb;
    background-color: #eaf2ff;
    color: #2563eb;
}

#updateRequestModal .update-history-modal__dropzone i {
    font-size: 24px;
    color: inherit;
}

#updateRequestModal .update-history-modal__dropzone p {
    margin: 0;
    color: inherit;
}

#updateRequestModal .update-history-modal__file-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#updateRequestModal .update-history-modal__file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
}

#updateRequestModal .update-history-modal__file-preview {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

#updateRequestModal .update-history-modal__file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#updateRequestModal .update-history-modal__file-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
}

#updateRequestModal .update-history-modal__file-info span {
    color: inherit;
}

#updateRequestModal .update-history-modal__file-remove {
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

#updateRequestModal .update-history-modal__file-remove:hover {
    color: #ef4444;
}

#updateRequestModal .update-request-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

#updateRequestModal .update-request-modal__button {
    min-width: 96px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
    border: none;
}

#updateRequestModal .update-request-modal__button--secondary {
    background-color: #e5e7eb;
    color: #4b5563;
}

#updateRequestModal .update-request-modal__button--secondary:hover {
    background-color: #d1d5db;
}

#updateRequestModal .update-request-modal__button--primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

#updateRequestModal .update-request-modal__button--primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

#updateRequestModal .update-request-modal__button:active {
    transform: translateY(1px);
}
#update-history-content .update-history-tabs {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 4px;
}

#update-history-content .update-history-tab {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #4b5563;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#update-history-content .update-history-tab:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

#update-history-content .update-history-tab.active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

#update-history-content .request-progress-btn {
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#update-history-content .request-progress-btn--bar {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

#update-history-content .request-progress-btn i {
    font-size: 18px;
    color: #2563eb;
}

#update-history-content .request-progress-btn--completed {
    background-color: #10b981;
    padding: 6px 16px;
    border-radius: 4px;
    border: none;
}

#update-history-content .request-progress-btn--completed .request-progress-label--completed {
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
}

#update-history-content .request-progress-btn:hover {
    transform: scale(1.05);
}

#update-history-content .request-progress-btn:hover .request-progress-fill {
    filter: brightness(0.9);
}

#update-history-content .request-progress-bar {
    width: 50px;
    height: 8px;
    border-radius: 9999px;
    background-color: #e5e7eb;
    overflow: hidden;
    position: relative;
    display: block;
    flex-shrink: 0;
}

#update-history-content .request-progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    transition: width 0.2s ease;
    border-radius: 9999px;
}

#update-history-content .request-progress-label {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
}

#update-history-content .request-progress-label--completed {
    color: #ffffff;
    font-weight: 600;
}
/* 업데이트내역 모듈 스타일 (최적화 공통 가이드 준수) */

#update-history-content .input-table thead th,
#update-history-content .input-table tbody td {
    padding: 6px 8px;
    height: auto;
    min-height: 32px;
    vertical-align: top;
}

#update-history-content .input-table {
    table-layout: fixed;
    width: 100%;
}

#update-history-content #updateHistoryTabContent_requests .input-table tbody tr {
    height: auto;
}

#update-history-content .col-checkbox {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    text-align: center;
}

#update-history-content .col-actions {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    text-align: center;
}

#update-history-content #updateHistoryTable .col-update-date {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
}

#update-history-content #updateHistoryTable .col-update-title {
    width: calc(100% - 340px) !important;
    min-width: 260px !important;
}

#update-history-content .update-history-checkbox,
#update-history-content #updateHistorySelectAll,
#update-history-content .update-request-checkbox,
#update-history-content #updateRequestSelectAll {
    width: 16px;
    height: 16px;
    transform: scale(0.9);
    cursor: pointer;
}

#update-history-content .input-table tbody tr.editing-mode {
    background-color: transparent;
}

#update-history-content .input-table tbody tr.new-row {
    background-color: #fef9e7;
    animation: fadeIn 0.2s ease-in;
}

#update-history-content .input-table tbody tr.no-data td {
    padding: 40px 0;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

#update-history-content .update-action-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#update-history-content .update-action-btn {
    width: auto;
    height: auto;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    color: #4b5563;
    transition: color 0.2s ease;
}

#update-history-content .update-action-btn i {
    font-size: 16px;
}

#update-history-content .update-action-btn.edit {
    color: #2563eb;
}

#update-history-content .update-action-btn.edit:hover {
    color: #1d4ed8;
}

#update-history-content .update-action-btn.delete {
    color: #ef4444;
}

#update-history-content .update-action-btn.delete:hover {
    color: #dc2626;
}

#update-history-content .update-action-btn.save {
    color: #10b981;
}

#update-history-content .update-action-btn.save:hover {
    color: #059669;
}

#update-history-content .update-action-btn.cancel {
    color: #6b7280;
}

#update-history-content .update-action-btn.cancel:hover {
    color: #4b5563;
}

#update-history-content .update-action-btn.notice {
    color: #f59e0b;
}

#update-history-content .update-action-btn.notice.active {
    color: #d97706;
}

#update-history-content .update-history-title-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #1f2937;
    justify-content: flex-start;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.update-history-title-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.18);
    color: #d97706;
    font-size: 11px;
}

#update-history-content .update-history-title-toggle i {
    color: #9ca3af;
    transition: transform 0.2s ease;
}

#update-history-content .update-history-title-toggle:hover {
    color: #2563eb;
}

#update-history-content .update-history-title-toggle.expanded i {
    transform: rotate(90deg);
    color: #2563eb;
}

#update-history-content .update-history-detail-row {
    background-color: #f9fafb;
}

#update-history-content .update-history-detail-row.hidden {
    display: none;
}

#update-history-content .update-history-detail-row td {
    padding: 16px 18px;
    border-top: 1px solid #e5e7eb;
}

#update-history-content .update-history-detail {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    white-space: normal;
}

#update-history-content .update-history-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 12px;
}

#update-history-content .update-history-attachments {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5f5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#update-history-content .update-history-attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

#update-history-content .update-history-attachment-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#update-history-content .update-history-attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#update-history-content .update-history-attachment-thumb:hover {
    transform: translate3d(0, -1px, 0);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
    border-color: #2563eb;
}

#update-history-content .update-history-attachment-item i {
    color: #2563eb;
}

#update-history-content .update-history-attachment-item a {
    color: #2563eb;
    text-decoration: none;
}

#update-history-content .update-history-attachment-item a:hover {
    text-decoration: underline;
}

#updateHistoryModal .update-history-modal {
    width: 520px;
    max-width: calc(100% - 32px);
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#updateHistoryModal .update-history-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

#updateHistoryModal .update-history-modal__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
}

#updateHistoryModal .update-history-modal__close {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}

#updateHistoryModal .update-history-modal__close:hover {
    color: #111827;
}

#updateHistoryModal .update-history-modal__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#updateHistoryModal .update-history-modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#updateHistoryModal .update-history-modal__label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

#updateHistoryModal .update-history-modal__control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 13px;
    color: #1f2937;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#updateHistoryModal .update-history-modal__control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

#updateHistoryModal .update-history-modal__textarea {
    min-height: 180px;
    resize: vertical;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 13px;
    color: #1f2937;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#updateHistoryModal .update-history-modal__textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

#updateHistoryModal .update-history-modal__dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background-color: #f9fafb;
    color: #6b7280;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

#updateHistoryModal .update-history-modal__dropzone.dragover {
    border-color: #2563eb;
    background-color: #eaf2ff;
    color: #2563eb;
}

#updateHistoryModal .update-history-modal__dropzone i {
    font-size: 24px;
}

#updateHistoryModal .update-history-modal__file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#updateHistoryModal .update-history-modal__file-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    font-size: 13px;
    color: #374151;
}

#updateHistoryModal .update-history-modal__file-preview {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

#updateHistoryModal .update-history-modal__file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#updateHistoryModal .update-history-modal__file-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

#updateHistoryModal .update-history-modal__file-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#updateHistoryModal .update-history-modal__file-remove {
    border: none;
    background: transparent;
    color: #ef4444;
    font-size: 14px;
    cursor: pointer;
    margin-left: auto;
}

#updateHistoryModal .update-history-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

#updateHistoryModal .update-history-modal__button {
    min-width: 96px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
    border: none;
}

#updateHistoryModal .update-history-modal__button--secondary {
    background-color: #e5e7eb;
    color: #4b5563;
}

#updateHistoryModal .update-history-modal__button--secondary:hover {
    background-color: #d1d5db;
}

#updateHistoryModal .update-history-modal__button--primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

#updateHistoryModal .update-history-modal__button--primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

#updateHistoryModal .update-history-modal__button:active {
    transform: translateY(1px);
}
#update-history-content .input-table tbody tr.is-notice {
    background-color: #ebf4ff;
}

.update-history-image-preview {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
}

.update-history-image-preview.hidden {
    display: none;
}

.update-history-image-preview__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.update-history-image-preview__dialog {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 720px);
    max-height: min(90vh, 640px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.update-history-image-preview__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: rgba(15, 23, 42, 0.55);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.update-history-image-preview__close:hover {
    background: rgba(15, 23, 42, 0.75);
}

.update-history-image-preview__image {
    width: 100%;
    height: 100%;
    max-height: calc(90vh - 160px);
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
}

.update-history-image-preview__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #1f2937;
}

.update-history-image-preview__filename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-history-image-preview__download {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.update-history-image-preview__download:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

body.update-history-image-preview--open {
    overflow: hidden;
}

#update-history-content .input-table input[type="text"],
#update-history-content .input-table textarea,
#update-history-content .input-table input[type="date"] {
    width: 100%;
    border: none;
    background: transparent;
    padding: 4px 6px;
    font-size: 13px;
    height: 32px;
    line-height: 20px;
}

#update-history-content .input-table textarea {
    resize: none;
    height: 32px;
    min-height: 32px;
    max-height: 160px;
}

#update-history-content .input-table input:focus,
#update-history-content .input-table textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    background-color: rgba(59, 130, 246, 0.06);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    #update-history-content .input-table thead th,
    #update-history-content .input-table tbody td {
        font-size: 12px;
        padding: 10px 6px;
    }
}

