:root {
    --bg-base: #1e1e1e;
    --bg-activity: #333333;
    --bg-sidebar: #252526;
    --bg-header: #2d2d2d;
    --border-color: #3c3c3c;
    --text-color: #cccccc;
    --text-bright: #ffffff;
    --accent-color: #007acc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    font-size: 13px;
}

body, html {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-base);
}

.app-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
}

.title-bar {
    height: 35px;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 15px;
    justify-content: space-between;
}
.title-bar .title {
    color: var(--text-bright);
    font-weight: 600;
}
.title-bar .subtitle {
    font-size: 11px;
    color: #858585;
}

.workbench {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.activity-bar {
    width: 48px;
    background-color: var(--bg-activity);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    border-right: 1px solid var(--border-color);
    z-index: 10;
}
.activity-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #858585;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}
.activity-icon:hover, .activity-icon.active {
    color: var(--text-bright);
}
.activity-icon.active {
    border-left: 2px solid var(--accent-color);
}

.sidebar-panel {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease;
    z-index: 5;
}
.sidebar-panel.collapsed {
    width: 0;
    overflow: hidden;
    border-right: none;
}
.sidebar-header {
    padding: 12px 15px;
    font-weight: bold;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-content {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}
.pane-content {
    display: none;
}
.pane-content.active {
    display: block;
}
.pile-management-heading {
    margin: 0 0 12px;
    color: #858585;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pile-management-actions {
    display: grid;
    gap: 9px;
}
.pile-management-button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 10px;
    color: #d7dce2;
    text-align: left;
    background: linear-gradient(135deg, #30343a, #292d32);
    border: 1px solid #41464e;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.pile-management-button:hover {
    background: linear-gradient(135deg, #383e46, #30353c);
    border-color: #66717e;
    transform: translateY(-1px);
}
.pile-management-button:focus-visible {
    border-color: #58a6ff;
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
}
.pile-management-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    color: #9dcfff;
    background: rgb(88 166 255 / 12%);
    border: 1px solid rgb(88 166 255 / 18%);
    border-radius: 6px;
    font-size: 15px;
}
.pile-management-button-copy {
    display: grid;
    flex: 1;
    gap: 4px;
    min-width: 0;
}
.pile-management-button-copy strong {
    color: #f0f3f6;
    font-size: 12px;
    font-weight: 600;
}
.pile-management-button-copy small {
    overflow: hidden;
    color: #a4adb8;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pile-management-button-arrow {
    margin-left: 8px;
    color: #8d98a5;
    font-size: 10px;
}
.geojson-layer-section {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}
.geojson-layer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.geojson-layer-heading h3 {
    color: #d7dce2;
    font-size: 12px;
}
#geojson-upload-button {
    flex: 0 0 auto;
    padding: 6px 8px;
    color: #ffffff;
    background: #0e639c;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
}
#geojson-upload-button:hover {
    background: #1177bb;
}
.geojson-layer-status {
    min-height: 16px;
    margin-bottom: 6px;
    color: #aab4bf;
    font-size: 10px;
    line-height: 1.5;
}
.geojson-layer-table-wrap {
    overflow-x: auto;
}
.geojson-layer-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.geojson-layer-table th,
.geojson-layer-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #383838;
    text-align: left;
    vertical-align: middle;
}
.geojson-layer-table th {
    color: #858585;
    font-size: 10px;
    font-weight: 500;
}
.geojson-layer-table th:first-child,
.geojson-layer-table td:first-child {
    width: 38px;
    text-align: center;
}
.geojson-layer-table th:last-child,
.geojson-layer-table td:last-child {
    width: 56px;
    text-align: center;
}
.geojson-layer-table th:nth-last-child(2),
.geojson-layer-table td:nth-last-child(2) {
    width: 44px;
    text-align: center;
}
.geojson-layer-name {
    overflow: hidden;
    color: #d7dce2;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.geojson-layer-table input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--accent-color);
    cursor: pointer;
}
.geojson-layer-table input[type="color"] {
    width: 28px;
    height: 22px;
    padding: 1px;
    border: 1px solid #555;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
}
.geojson-layer-delete {
    padding: 4px 6px;
    color: #ffb4b4;
    background: #482b2b;
    border: 1px solid #704040;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
}
.geojson-layer-delete:hover:not(:disabled) {
    color: #ffffff;
    background: #8d3636;
}
.geojson-layer-delete:disabled {
    cursor: wait;
    opacity: 0.6;
}

.map-container {
    flex: 1;
    height: 100%;
    position: relative;
}
#map {
    width: 100%;
    height: 100%;
}
.ol-control.hafo-measure-control {
    top: 3.6em;
    left: 0.5em;
    padding: 0;
    background: transparent;
}
.hafo-measure-button {
    display: block;
    width: 1.375em;
    height: 1.375em;
    padding: 0;
    color: #333333;
    background: rgb(255 255 255 / 80%);
    border: 0;
    border-radius: 2px;
    font: 600 1.14em/1.375em sans-serif;
    text-align: center;
    cursor: pointer;
}
.hafo-measure-button:hover,
.hafo-measure-control.is-active .hafo-measure-button {
    color: #ffffff;
    background: #0e639c;
}
.hafo-measure-status {
    position: absolute;
    top: 0;
    left: 2em;
    width: max-content;
    max-width: min(320px, calc(100vw - 90px));
    box-sizing: border-box;
    padding: 7px 9px;
    color: #ffffff;
    background: rgb(28 36 44 / 92%);
    border: 1px solid #69b7f5;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 35%);
    font-size: 11px;
    line-height: 1.5;
    pointer-events: none;
}
.hafo-measure-status[hidden] {
    display: none;
}
.hafo-measure-active {
    cursor: crosshair;
}
.ol-control.hafo-weather-control {
    top: auto;
    right: auto;
    bottom: 12px;
    left: 12px;
    width: min(230px, calc(100vw - 90px));
    min-height: 138px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px;
    color: #ffffff;
    background: rgb(37 37 38 / var(--weather-background-opacity, 0.94));
    border: 1px solid #555d66;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 35%);
    pointer-events: none;
    transition: background-color 100ms linear;
}
.hafo-weather-title {
    margin-bottom: 7px;
    color: #b7dfff;
    font-size: 11px;
    font-weight: 600;
}
.hafo-weather-title i {
    margin-right: 4px;
    color: #ffd166;
}
.hafo-weather-content {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    min-height: 62px;
    color: #e4e9ef;
    font-size: 11px;
}
.hafo-weather-message {
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
    color: #c5ced8;
    font-size: 11px;
    line-height: 1.5;
}
.hafo-weather-content > i {
    grid-row: span 3;
    color: #ffd166;
    font-size: 21px;
    text-align: center;
}
.hafo-weather-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.hafo-weather-description {
    color: #ffffff;
    font-size: 12px;
    text-transform: capitalize;
}
.hafo-weather-temperature {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
}
.hafo-weather-details,
.hafo-weather-location {
    color: #aeb8c2;
    font-size: 10px;
    line-height: 1.5;
}
.hafo-weather-location {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hafo-weather-opacity-control {
    display: grid;
    grid-template-columns: auto minmax(50px, 1fr) 34px;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    padding-top: 7px;
    border-top: 1px solid rgb(255 255 255 / 18%);
    color: #c5ced8;
    font-size: 10px;
    pointer-events: auto;
}
.hafo-weather-opacity-slider {
    width: 100%;
    height: 14px;
    margin: 0;
    accent-color: #69b7f5;
    cursor: pointer;
    pointer-events: auto;
}
.hafo-weather-opacity-value {
    color: #ffffff;
    font-size: 10px;
    text-align: right;
}
.pile-map-status {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 6px;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 3px;
    background: rgb(0 0 0 / 18%);
    color: #ffffff;
    font-size: 11px;
    pointer-events: none;
}
.pile-map-status:empty {
    display: none;
}

.status-bar {
    height: 22px;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    padding: 0 10px;
    justify-content: space-between;
}
.status-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.status-bar span {
    color: #ffffff;
    font-size: 11px;
}

.vessel-item {
    padding: 8px 10px;
    margin-bottom: 5px;
    background-color: #2d2d2d;
    border-radius: 4px;
    cursor: pointer;
}
.vessel-item:hover {
    background-color: #3d3d3d;
}
.pile-list-status {
    color: #858585;
    font-size: 11px;
    margin: 10px 0 6px;
}
#pile-list-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(1100px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: auto;
    color: #ddd;
    background: #252526;
    border: 1px solid #555;
    border-radius: 6px;
}
#pile-list-dialog::backdrop {
    background: rgb(0 0 0 / 60%);
}
#pile-list-dialog .pile-list-dialog-panel {
    padding: 16px;
}
#pile-list-dialog .pile-list-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
#pile-list-dialog h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 15px;
}
#pile-list-dialog .pile-list-dialog-header h3 {
    margin: 0;
}
#pile-list-dialog .pile-list-dialog-header form {
    margin: 0;
}
#pile-list-dialog .pile-list-dialog-close {
    height: 32px;
    padding: 0 10px;
    color: #fff;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
}
#pile-list-dialog .pile-list-dialog-close:hover,
#pile-list-dialog .pile-list-dialog-close:focus-visible {
    background: #0e639c;
    border-color: #58a6ff;
    outline: none;
}
#pile-list-dialog .pile-csv-import {
    display: grid;
    grid-template-columns: auto minmax(170px, 0.8fr) auto minmax(0, 1.4fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
    margin-bottom: 12px;
    background: #1e1e1e;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
}
#pile-list-dialog .pile-csv-import label {
    color: #ddd;
}
#pile-list-dialog .pile-csv-import input,
#pile-list-dialog .pile-csv-import select,
#pile-list-dialog .pile-csv-import button {
    min-width: 0;
    color: #ddd;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 6px;
}
#pile-list-dialog .pile-csv-import button {
    color: #fff;
    background: #0e639c;
    border: 0;
    cursor: pointer;
}
#pile-list-dialog .pile-csv-import button:disabled,
#pile-list-dialog .pile-csv-import input:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
#pile-list-dialog .pile-csv-help,
#pile-list-dialog #pile-csv-status {
    grid-column: 1 / -1;
}
#pile-list-dialog .pile-csv-help {
    color: #858585;
    font-size: 11px;
    overflow-wrap: anywhere;
}
#pile-list-dialog #pile-csv-status {
    margin: 0;
}
#pile-list-dialog #pile-list {
    max-height: min(60vh, 560px);
    overflow: auto;
}
#pile-list-table {
    width: 100%;
    min-width: 930px;
    border-collapse: collapse;
    font-size: 12px;
}
#pile-list-table th,
#pile-list-table td {
    padding: 8px 10px;
    border: 1px solid #3c3c3c;
    text-align: left;
    white-space: nowrap;
}
#pile-list-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #fff;
    background: #333;
}
#pile-list-table td {
    color: #ccc;
    background: #252526;
}
#pile-list-table tbody tr:hover td {
    background: #303030;
}
@media (max-width: 680px) {
    #pile-list-dialog .pile-csv-import {
        grid-template-columns: auto minmax(0, 1fr);
    }

    #pile-list-dialog .pile-csv-import > * {
        grid-column: 1 / -1;
    }
}
#pile-list-dialog .json-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}
#pile-list-dialog .json-dialog-actions button {
    padding: 7px 12px;
    color: #fff;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
}
#pile-list-dialog #pile-csv-export-button {
    background: #0e639c;
    border-color: #0e639c;
}
#pile-list-dialog .json-dialog-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
.pile-empty-state {
    padding: 18px 10px;
    color: #858585;
    text-align: center;
}
#pile-progress-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: calc(100vw - 32px);
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: auto;
    color: #ddd;
    background: #252526;
    border: 1px solid #555;
    border-radius: 6px;
}
#pile-progress-dialog::backdrop {
    background: rgb(0 0 0 / 60%);
}
#pile-progress-dialog .pile-progress-dialog-panel {
    padding: 16px;
}
#pile-completion-dialog {
    position: fixed;
    inset: 0;
    width: min(380px, calc(100vw - 32px));
    margin: auto;
    padding: 0;
    color: #ddd;
    background: #252526;
    border: 1px solid #555;
    border-radius: 6px;
}
#pile-completion-dialog::backdrop {
    background: rgb(0 0 0 / 60%);
}
.pile-completion-dialog-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
}
.pile-completion-dialog-panel h3 {
    color: #fff;
    font-size: 15px;
}
.pile-completion-dialog-panel p {
    color: #bbb;
    line-height: 1.5;
}
.pile-completion-dialog-panel label {
    color: #ddd;
}
.pile-completion-dialog-panel input,
.pile-completion-dialog-actions button {
    min-width: 0;
    padding: 8px;
    color: #ddd;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
}
.pile-completion-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}
.pile-completion-dialog-actions button {
    cursor: pointer;
}
.pile-completion-dialog-actions button[value="apply"] {
    color: #fff;
    background: #0e639c;
    border-color: #0e639c;
}
.pile-progress-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}
.pile-progress-dialog-header h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
}
.pile-progress-dialog-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pile-progress-dialog-actions form {
    margin: 0;
}
.pile-progress-reload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    color: #fff;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
}
.pile-progress-reload:hover:not(:disabled),
.pile-progress-reload:focus-visible {
    background: #0e639c;
    border-color: #58a6ff;
    outline: none;
}
.pile-progress-reload:disabled {
    cursor: wait;
    opacity: 0.6;
}
.pile-progress-close {
    height: 32px;
    padding: 0 10px;
    color: #fff;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
}
.pile-progress-close:hover,
.pile-progress-close:focus-visible {
    background: #0e639c;
    border-color: #58a6ff;
    outline: none;
}
.pile-progress-summary {
    padding: 12px;
    margin-bottom: 12px;
    background: #1e1e1e;
    border: 1px solid #3c3c3c;
    border-radius: 5px;
}
.pile-progress-summary-header,
.pile-progress-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pile-progress-summary-header {
    margin-bottom: 8px;
    color: #fff;
}
.pile-progress-overview-section {
    padding: 10px 12px;
    margin-bottom: 12px;
    background: #1e1e1e;
    border: 1px solid #3c3c3c;
    border-radius: 5px;
}
.pile-progress-overview-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #fff;
}
.pile-progress-overview-heading span {
    color: #858585;
    font-size: 11px;
}
.pile-progress-overview {
    display: grid;
    grid-auto-columns: 22px;
    grid-auto-flow: column;
    align-items: end;
    gap: 6px;
    min-height: 108px;
    padding: 4px 2px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: #555 #252526;
    scrollbar-width: thin;
}
.pile-progress-overview-item {
    appearance: none;
    display: grid;
    grid-template-rows: 12px 1fr;
    gap: 3px;
    width: 22px;
    height: 108px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
}
.pile-progress-overview-item:hover:not(:disabled),
.pile-progress-overview-item:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 3px;
}
.pile-progress-overview-item:disabled {
    cursor: default;
}
.pile-progress-overview-index {
    display: block;
    width: 22px;
    overflow: hidden;
    color: #d7dce2;
    font-variant-numeric: tabular-nums;
    line-height: 12px;
    text-align: center;
    white-space: nowrap;
}
.pile-progress-overview-blocks {
    display: flex;
    flex-direction: column-reverse;
    gap: 3px;
    width: 22px;
    height: 69px;
}
.pile-progress-overview-block {
    flex: 0 0 15px;
    width: 22px;
    height: 15px;
    background: #383838;
    border: 1px solid #484848;
    border-radius: 2px;
}
.pile-progress-overview-block.is-filled {
    background: var(--pile-stage-color);
    border-color: var(--pile-stage-color);
    box-shadow: 0 0 5px color-mix(in srgb, var(--pile-stage-color) 45%, transparent);
}
.pile-progress-overview-empty {
    grid-column: 1 / -1;
    align-self: center;
    color: #858585;
    font-size: 11px;
}
.pile-progress-bar {
    height: 10px;
    overflow: hidden;
    background: #3c3c3c;
    border-radius: 999px;
}
.pile-progress-bar-vertical {
    position: relative;
    flex: 0 0 10px;
    width: 10px;
    height: auto;
    overflow: hidden;
}
.pile-progress-bar-vertical .pile-progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
}
.pile-progress-bar-fill {
    width: 0;
    height: 100%;
    background: #4ec9b0;
    border-radius: inherit;
    transition: width 0.25s ease, height 0.25s ease;
}
.pile-progress-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
    gap: 10px;
    max-height: min(58vh, 600px);
    overflow-y: auto;
}
.pile-progress-item {
    display: block;
    min-width: 0;
    padding: 12px;
    color: var(--text-color);
    text-align: left;
    background: #2d2d2d;
    border: 1px solid #3c3c3c;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.pile-progress-item:hover:not(:disabled),
.pile-progress-item:focus-visible {
    background: #353535;
    border-color: #58a6ff;
    outline: none;
}
.pile-progress-item:disabled {
    cursor: default;
    opacity: 0.85;
}
.pile-progress-item.is-saving {
    cursor: wait;
    opacity: 0.7;
}
.pile-progress-item-name {
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}
.pile-progress-item-name-group {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
    min-width: 0;
}
.pile-progress-item-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    padding: 0 5px;
    color: #b9dfff;
    background: rgb(88 166 255 / 14%);
    border: 1px solid rgb(88 166 255 / 28%);
    border-radius: 5px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.pile-progress-current-stage {
    flex: 0 0 auto;
    padding: 4px 8px;
    color: #fff;
    background: #0e639c;
    border-radius: 999px;
    font-size: 11px;
}
.pile-progress-item-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    margin: 10px 0 6px;
    color: #ccc;
    font-size: 11px;
}
.pile-progress-completion-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d7d7d7;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.pile-progress-completion-color {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 50%;
}
.pile-progress-detail {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
}
.pile-progress-steps {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 0;
}
.pile-progress-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 34px;
    padding: 4px 0 4px 14px;
    border-left: 2px solid #555;
    color: #858585;
}
.pile-progress-step::before {
    position: absolute;
    left: -5px;
    width: 8px;
    height: 8px;
    background: #555;
    border: 1px solid #2d2d2d;
    border-radius: 50%;
    content: "";
}
.pile-progress-step-code {
    flex: 0 0 24px;
    font-weight: 700;
}
.pile-progress-step-name {
    display: block;
    font-size: 10px;
}
.pile-progress-step.is-complete {
    border-left-color: #4ec9b0;
    color: #9bdccf;
}
.pile-progress-step.is-complete::before {
    background: #4ec9b0;
}
.pile-progress-step.is-current {
    border-left-color: #58a6ff;
    color: #fff;
}
.pile-progress-step.is-current::before {
    background: #58a6ff;
}
.pile-progress-step:last-child {
    border-left-color: transparent;
}
.pile-item {
    padding: 8px 10px;
    margin-bottom: 6px;
    background-color: #2d2d2d;
    border-radius: 4px;
}
.pile-item-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #ffffff;
}
.pile-item-details {
    margin-top: 4px;
    color: #aaaaaa;
    font-size: 11px;
}

.checkbox-label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

/* 날짜 입력 폼 스타일 */
.date-range-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.date-range-group label {
    font-size: 12px;
    color: #aaaaaa;
}
.panel-input {
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #3c3c3c;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
}
.vessel-freshness-settings {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 10px;
    background: #252526;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
}
.vessel-freshness-settings h3 {
    margin: 0 0 2px;
    color: #ffffff;
    font-size: 13px;
}
.vessel-freshness-settings label,
.vessel-freshness-input,
.vessel-freshness-help,
.vessel-freshness-status {
    font-size: 11px;
}
.vessel-freshness-settings label,
.vessel-freshness-help {
    color: #aaaaaa;
}
.vessel-freshness-input {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cccccc;
}
.vessel-freshness-input .panel-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.vessel-freshness-help {
    margin: 0;
    line-height: 1.4;
}
.vessel-freshness-save {
    padding: 6px 10px;
    color: #ffffff;
    background: #0e639c;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}
.vessel-freshness-save:hover {
    background: #1177bb;
}
.vessel-freshness-status[data-state="success"] {
    color: #4ec9b0;
}
.vessel-freshness-status[data-state="error"] {
    color: #f85149;
}
.panel-input::-webkit-calendar-picker-indicator {
    filter: invert(1); /* 달력 아이콘을 흰색으로 변경 */
    cursor: pointer;
}

/* 파렛트 그리드가 확실하게 자리를 잡도록 수정 */
.palette-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    margin-top: 8px !important;
}

/* 색상 박스에 최소 크기 부여 (높이가 0으로 찌그러지는 현상 방지) */
.color-box {
    width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
}

/* 사이드바 패널 내용이 스크롤되더라도 잘리지 않게 여유 공간 부여 */
.pane-content.active {
    display: block !important;
    padding-bottom: 40px !important; /* 하단 여백 추가 */
}
.color-box:hover {
    transform: scale(1.05);
}
.color-box.selected {
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* 선택 색상 프리뷰 */
.color-preview-bar {
    font-size: 12px;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background-color: #0e639c;
    color: #ffffff;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: #1177bb;
}

/* 16색 파렛트 8열 x 2행 (2줄 배치) */
.palette-grid-2rows {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
}

.palette-grid-2rows .color-box {
    width: 100% !important;
    height: 22px !important;
    min-height: 22px !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    border: 1px solid #3c3c3c !important;
    box-sizing: border-box !important;
}

.palette-grid-2rows .color-box.selected {
    border: 2px solid #ffffff !important;
    transform: scale(1.1);
    z-index: 1;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

/* 달력 뷰 스타일 */
.cal-month-title {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    margin: 6px 0 4px 2px;
}
.cal-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 10px;
    color: #888;
    margin-bottom: 2px;
}
.cal-grid-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.cal-day-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border-radius: 2px;
    background-color: #2d2d2d;
    color: #666;
}
.cal-day-cell.active-workday {
    color: #000;
    font-weight: bold;
    cursor: pointer;
}
.cal-day-cell.inactive {
    opacity: 0.3;
}
/* 우측 선박 정보 패널 기본 컨테이너 */
#vessel-info-panel {
    position: absolute;
    top: 20px;           /* 화면 상단 여백 (환경에 맞게 조절) */
    right: 0;
    width: 320px;        /* 패널 펼쳐졌을 때 너비 */
    height: auto;
    background: #161b22;
    border: 1px solid #30363d;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow: visible !important; /* 💡 핵심: 버튼이 패널 밖으로 튀어나와도 잘리지 않도록 설정 */
}

/* 패널이 접혔을 때 (우측 화면 바깥으로 밀어내기) */
#vessel-info-panel.collapsed {
    transform: translateX(100%);  /* 전체 너비만큼 우측으로 숨김 */
}

/* 우측 선박 정보 패널 (세로 동적 높이 및 스크롤 적용) */
#vessel-info-panel {
    position: absolute;
    top: 15px;           /* 상단 여백 */
    bottom: 15px;        /* 하단 여백을 주어 화면 높이에 연동 */
    right: 0;
    width: 320px;        /* 패널 너비 */
    max-height: calc(100vh - 30px); /* 💡 화면 세로 크기에 따라 동적으로 제한 */
    background: #161b22;
    border: 1px solid #30363d;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column; /* 내부 요소를 세로 방향으로 정렬 */
    overflow: visible !important; /* 토글 버튼이 잘리지 않도록 유지 */
}

/* 패널이 접혔을 때 */
#vessel-info-panel.collapsed {
    transform: translateX(100%);
}

/* 💡 선박 카드 목록이 들어가는 내부 영역 (내용이 길어지면 스크롤 생성) */
#vessel-info-panel .vessel-list-container, /* 혹은 카드들이 담긴 부모 컨테이너 클래스/아이디명 */
#vessel-info-panel .panel-content-scroll {
    flex-grow: 1;
    overflow-y: auto;    /* 세로 스크롤바 생성 */
    overflow-x: hidden;
    padding: 10px;
}

/* 만약 리스트 감싸는 컨테이너에 별도 클래스가 없다면 패널 내부 바디에 직접 적용 가능 */
#vessel-info-panel {
    overflow-y: auto;    /* 패널 전체에 스크롤을 적용해도 무방합니다 */
}

/* 스크롤바 디자인 (웹킷 브라우저용 깔끔한 다크 스크롤바) */
#vessel-info-panel::-webkit-scrollbar {
    width: 6px;
}
#vessel-info-panel::-webkit-scrollbar-track {
    background: #0d1117;
    border-radius: 3px;
}
#vessel-info-panel::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}
#vessel-info-panel::-webkit-scrollbar-thumb:hover {
    background: #8b949e;
}

/* 토글 버튼 (패널 왼쪽 바깥쪽에 항상 고정) */
#vessel-info-toggle {
    position: absolute !important;
    left: -20px !important;       
    top: 20px !important;         
    width: 20px !important;       
    height: 48px !important;      
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-right: none !important; 
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    color: #c9d1d9 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.3) !important;
    z-index: 1001 !important;     
}

#vessel-info-toggle:hover {
    background: #30363d !important;
    width: 22px !important;
    left: -22px !important;
}





.vessel-info-panel {
            position: relative;
            flex: 0 0 300px;
            width: 300px;
            transition: width .25s ease, flex-basis .25s ease;
            overflow: visible;
            background: #252526;
            border-left: 1px solid #3c3c3c;
        }
        .vessel-info-panel.collapsed {
            flex-basis: 0;
            width: 0;
            border-left: 0;
        }
        .vessel-info-inner {
            width: 300px;
            height: 100%;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .vessel-info-panel.collapsed .vessel-info-inner {
            visibility: hidden;
        }        
        .vessel-info-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 12px;
            color: #ddd;
            border-bottom: 1px solid #3c3c3c;
        }
        .vessel-info-status {
            color: #aeb8c2;
            font-size: 10px;
            white-space: nowrap;
        }
        .vessel-info-status::before {
            content: "";
            display: inline-block;
            width: 7px;
            height: 7px;
            margin-right: 5px;
            border-radius: 50%;
            background: #858585;
        }
        .vessel-info-status[data-state="connected"]::before {
            background: #4ec9b0;
            box-shadow: 0 0 5px #4ec9b0;
        }
        .vessel-info-status[data-state="connecting"]::before {
            background: #d7ba7d;
        }
        #vessel-info-list {
            flex: 1;
            overflow-y: auto;
            padding: 10px;
        }
        .vessel-info-empty {
            padding: 8px 4px;
            color: #858585;
            font-size: 12px;
        }
        .vessel-card-updated {
            margin-left: auto;
            color: #858585;
            font-size: 10px;
            white-space: nowrap;
        }
/* 기본 카드 스타일 */
.vessel-info-card {
    background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    color: #c9d1d9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.vessel-info-card-locatable {
    cursor: pointer;
}

.vessel-info-card-locatable:hover,
.vessel-info-card-locatable:focus-visible {
    border-color: #58a6ff;
    outline: none;
}

.vessel-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #21262d;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.vessel-status-dot {
    width: 8px;
    height: 8px;
    background-color: #238636;
    border-radius: 50%;
    box-shadow: 0 0 6px #238636;
}

.vessel-status-dot.stale {
    background-color: #f85149;
    box-shadow: 0 0 6px #f85149;
}

.vessel-card-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

/* 바디 레이아웃 분기 */
.vessel-card-body.has-gauge {
    display: flex;
    gap: 12px;
    align-items: center;
}

.vessel-card-body.single-col {
    display: block; /* 작업선이 아닐 때는 전체 너비 사용 */
}

/* 왼쪽 게이지 컬럼 (작업선 전용) */
.vessel-gauge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #010409;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #30363d;
    min-width: 58px;
    box-sizing: border-box;
}

.gauge-label {
    margin-bottom: 4px;
    color: #c9d1d9;
    font-size: 10px;
    font-weight: 600;
}

.gauge-goal {
    margin-bottom: 3px;
    color: #8b949e;
    font-size: 8px;
    white-space: nowrap;
}

.mini-gauge-bar {
    position: relative;
    width: 10px;
    height: 60px;
    background: #21262d;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 4px;
}

.gauge-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #238636, #2ea043);
    border-radius: 5px;
}

.gauge-text {
    font-size: 10px;
    font-weight: bold;
    color: #58a6ff;
}

/* 정보 텍스트 컬럼 */
.vessel-info-col {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    border-bottom: 1px dashed #21262d;
    padding-bottom: 3px;
}

.info-row .label {
    color: #8b949e;
}

.info-row .value {
    color: #f0f6fc;
    font-weight: 500;
    text-align: right;
}

.vessel-card-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

/* 카드 바디 (좌우 2단 분할) */
.vessel-card-body {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 왼쪽 게이지 컬럼 */
.vessel-gauge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #010409;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #30363d;
    min-width: 58px;
}

.mini-gauge-bar {
    position: relative;
    width: 10px;
    height: 60px;
    background: #21262d;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 4px;
}

.gauge-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #238636, #2ea043);
    border-radius: 5px;
}

.gauge-text {
    font-size: 10px;
    font-weight: bold;
    color: #58a6ff;
}

/* 오른쪽 정보 텍스트 컬럼 */
.vessel-info-col {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    border-bottom: 1px dashed #21262d;
    padding-bottom: 3px;
}

.info-row .label {
    color: #8b949e;
}

.info-row .value {
    color: #f0f6fc;
    font-weight: 500;
    text-align: right;
}
        .vessel-info-card h3 {
            margin: 0 0 8px;
            color: #fff;
            font-size: 14px;
        }
        .vessel-info-card p {
            margin: 5px 0;
            font-size: 12px;
            overflow-wrap: anywhere;
        }


    .vessel-count-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin: 0 10px 10px;
    }

    #open-json-upload {
        width: 26px;
        height: 26px;
        color: white;
        background: #0e639c;
        border: 0;
        border-radius: 4px;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
    }

    #json-upload-dialog {
        position: fixed;
        inset: 0;
        margin: auto;
        width: min(360px, calc(100vw - 32px));
        padding: 0;
        color: #ddd;
        background: #252526;
        border: 1px solid #555;
        border-radius: 6px;
    }

    #json-upload-dialog::backdrop {
        background: rgb(0 0 0 / 60%);
    }

    #json-upload-dialog .json-upload-panel {
        padding: 16px;
    }

    #json-upload-dialog h3 {
        margin: 0 0 14px;
        font-size: 15px;
    }

    .json-dialog-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 14px;
    }

    .json-dialog-actions button {
        padding: 6px 10px;
        color: white;
        background: #444;
        border: 0;
        border-radius: 4px;
        cursor: pointer;
    }

    #upload-json-btn {
        background: #0e639c;
    }

.canvas-preview-scroll {
    height: 240px;
    overflow: auto;
    background: #1e1e1e;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
}

#vessel-preview-canvas {
    display: block;
}
#json-upload-dialog {
    box-sizing: border-box;
    width: min(1100px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: auto;
}

#json-upload-dialog .json-upload-panel {
    box-sizing: border-box;
    width: 100%;
    padding: 16px;
}

#json-upload-dialog .json-editor-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    width: 100%;
}

#json-upload-dialog .json-preview-pane,
#json-upload-dialog .json-form-pane {
    min-width: 0;
    overflow: auto;
}

/* 좁은 화면에서는 세로 배치 */
@media (max-width: 700px) {
    #json-upload-dialog .json-editor-container {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* 좌측 파일 미리보기 영역 전체 컨테이너 */
.json-preview-pane {
    flex: 1;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-width: 0; /* flex 환경에서 내부 요소 넘침 방지 */
    max-height: 100%; /* 부모 컨테이너(모달 바디)를 벗어나지 않도록 제한 */
}

.json-preview-pane h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #8b949e;
    flex-shrink: 0; /* 제목 영역은 줄어들지 않도록 고정 */
}

/* 💡 좌측 프리뷰 pre 영역 (세로 스크롤바 적용) */
#json-raw-preview {
    flex-grow: 1;                /* 남은 세로 공간을 채우며 확장 */
    background: #010409;
    border: 1px solid #21262d;
    border-radius: 4px;
    padding: 8px;
    font-family: Consolas, monospace;
    font-size: 11px;
    color: #79c0ff;
    overflow-y: auto;            /* 💡 세로 내용이 길어지면 스크롤바 생성 */
    overflow-x: auto;            /* 가로 내용이 길어져도 깨지지 않게 처리 */
    word-break: break-all;
    white-space: pre-wrap;       /* 줄바꿈 처리 */
    margin: 0;
    max-height: 400px;           /* 필요에 따라 최대 높이 제한 설정 가능 */
}

/* 스크롤바 디자인 (웹킷 기반 브라우저) */
#json-raw-preview::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
#json-raw-preview::-webkit-scrollbar-track {
    background: #010409;
    border-radius: 3px;
}
#json-raw-preview::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}
#json-raw-preview::-webkit-scrollbar-thumb:hover {
    background: #8b949e;
}
.pane-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pane-header-row h4 {
    margin: 0;
    font-size: 13px;
    color: #8b949e;
}

/* "적용" 버튼 스타일 */
.apply-btn {
    background: #1f6feb;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
}
.apply-btn:hover {
    background: #388bfd;
}

/* 좌측 textarea 편집기 스타일 */
#json-raw-textarea {
    flex-grow: 1;
    background: #010409;
    border: 1px solid #21262d;
    border-radius: 4px;
    padding: 8px;
    font-family: Consolas, monospace;
    font-size: 11px;
    color: #79c0ff;
    resize: none;
    outline: none;
    height: 350px;
}
#json-raw-textarea:focus {
    border-color: #58a6ff;
}

/* 우측 캔버스 래퍼 */
.canvas-wrapper {
    display: flex;
    justify-content: center;
    background: #010409;
    border: 1px solid #21262d;
    border-radius: 4px;
    padding: 5px;
}


/* 좌우 편집기 컨테이너 고정 높이 맞춤 */
.json-editor-container {
    display: flex;
    gap: 15px;
    align-items: stretch; /* 💡 좌우 높이를 동일하게 확장 */
}

/* 좌측 파일 미리보기 영역 (배경에 도킹되어 가득 참) */
.json-preview-pane {
    flex: 1;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* 좌측 textarea가 남는 세로 공간을 가득 채우도록 설정 */
#json-raw-textarea {
    flex-grow: 1;                /* 💡 세로 공간 꽉 채우기 */
    width: 100%;
    background: #010409;
    border: 1px solid #21262d;
    border-radius: 4px;
    padding: 8px;
    font-family: Consolas, monospace;
    font-size: 11px;
    color: #79c0ff;
    resize: none;
    outline: none;
    box-sizing: border-box;
}

#json-raw-textarea:focus {
    border-color: #58a6ff;
}

/* 우측 선박 타입 콤보박스(select) 스타일 */
.editable-field-row select.editable-select {
    flex-grow: 1;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 3px;
    color: #f0f6fc;
    padding: 4px 6px;
    font-size: 11px;
    outline: none;
}

.editable-field-row select.editable-select:focus {
    border-color: #58a6ff;
}
/* 전체 폼 컨테이너 */
#editableFieldsContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #1e1e1e; /* 어두운 배경 */
    padding: 16px;
    border-radius: 8px;
    color: #ffffff;
    font-family: sans-serif;
}

/* 각 행(Row)을 감싸는 박스 스타일 (이미지의 테두리 박스 구현) */
.editable-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2b2b2b; /* 박스 내부 배경색 */
    border: 1px solid #444444;  /* 테두리 박스 */
    border-radius: 6px;
    padding: 10px 14px;
    gap: 16px;
}

/* 라벨 스타일 (왼쪽 텍스트) */
.editable-field-row label {
    font-size: 14px;
    color: #e0e0e0;
    white-space: nowrap;
    flex: 1;
}

/* 입력 필드 및 콤보박스 공통 스타일 (오른쪽 입력 박스) */
.editable-field-row input,
.editable-field-row select.editable-select {
    flex: 1.5;
    background-color: #333333;
    border: 1px solid #555555;
    border-radius: 4px;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

/* 포커스 효과 */
.editable-field-row input:focus,
.editable-field-row select.editable-select:focus {
    border-color: #7aa2f7;
}