* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.controls {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.controls select {
    padding: 10px 15px;
    border: 2px solid #667eea;
    border-radius: 5px;
    font-size: 1em;
    background: white;
    cursor: pointer;
}

.controls button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

.controls button:hover {
    background: #5568d3;
}

.sensors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.sensor-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sensor-card h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.current-value {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.current-value .value {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
}

.current-value .unit {
    font-size: 1.5em;
    color: #666;
}

.sensor-card canvas {
    max-height: 300px;
}

.status-bar {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.status-ok {
    color: #10b981;
    font-size: 1.5em;
}

.status-loading {
    color: #f59e0b;
    font-size: 1.5em;
}

.status-error {
    color: #ef4444;
    font-size: 1.5em;
}

@media (max-width: 1024px) {
    .sensors-grid {
        grid-template-columns: 1fr;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls select,
    .controls button {
        width: 100%;
    }

    .live-row-vestiaire { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
    .live-column { padding: 0.4rem; }
    .live-slot { min-height: 8.2rem; padding: 0.45rem; gap: 6%; }
    .height-icon { width: 74%; }
    .slot-action-btn { width: 78%; min-width: 0; height: 82%; }
    .slot-action-btn svg { width: 56%; height: 56%; }
}

.backup-container {
    max-width: 760px;
}

.backup-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: grid;
    gap: 16px;
}

.backup-step h2 {
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #334155;
}

.backup-step select,
.backup-step input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1em;
}

.backup-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    min-height: 48px;
}

.backup-actions {
    display: grid;
    gap: 10px;
}

.backup-actions button {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #0f766e;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.backup-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.backup-result {
    margin-top: 10px;
    font-weight: 600;
}

.live-container {
    max-width: 1200px;
}

.live-topbar {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 14px;
}

.live-zone-switch {
    display: flex;
    gap: 8px;
}

.live-actions {
    display: flex;
    gap: 8px;
}

.live-zone-switch button {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
}

.live-actions button {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
}

.live-actions button.inactive {
    background: #e2e8f0;
    color: #475569;
}

.live-actions .button-link {
    padding: 10px 14px;
    border: 1px solid #0f766e;
    border-radius: 8px;
    background: #ecfdf5;
    color: #0f766e;
    text-decoration: none;
    font-size: 0.95rem;
    align-self: center;
}

.live-actions .button-link:hover {
    background: #d1fae5;
}

.plumbing-page .plumbing-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.plumbing-page .plumbing-toolbar select,
.plumbing-page .plumbing-toolbar button {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}

.plumbing-live {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

@media (max-width: 720px) {
    .plumbing-live {
        grid-template-columns: 1fr;
    }
}

.plumbing-live-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 120px;
}

.plumbing-item-row {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    background: #fff;
}

.plumbing-item-row.selected {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 1px #1d4ed8;
}

/* Plomberie : une carte par processus */
.plumbing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.plumbing-process-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plumbing-process-card--collapsed .plumbing-card-fold {
    display: none;
}

.plumbing-card-fold {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plumbing-card-title.plumbing-card-fold-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 0 0;
    list-style: none;
}

.plumbing-card-title.plumbing-card-fold-toggle:hover {
    color: #1d4ed8;
}

.plumbing-card-title.plumbing-card-fold-toggle:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 6px;
}

.plumbing-process-card--collapsed .plumbing-card-fold-toggle::before {
    content: "▸";
    font-size: 0.75em;
    color: #64748b;
    flex-shrink: 0;
}

.plumbing-process-card:not(.plumbing-process-card--collapsed) .plumbing-card-fold-toggle::before {
    content: "▾";
    font-size: 0.75em;
    color: #64748b;
    flex-shrink: 0;
}

.plumbing-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.plumbing-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    color: #475569;
}

.plumbing-card-meta code {
    font-size: 0.8rem;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
}

.plumbing-meta-klass code {
    cursor: help;
}

.plumbing-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
}

.plumbing-badge-java-catalog {
    background: #14532d;
    color: #ecfdf5;
    border: 1px solid #166534;
}

.plumbing-badge-metadata {
    background: #334155;
    color: #f1f5f9;
    border: 1px solid #475569;
}

.plumbing-h3-sub {
    font-weight: 400;
    color: #64748b;
    font-size: 0.78rem;
}

.plumbing-xml-hint {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.plumbing-xml-hint code {
    font-size: 0.72rem;
    word-break: break-word;
}

.plumbing-card-section h3 {
    font-size: 0.88rem;
    margin: 0 0 8px 0;
    color: #334155;
    font-weight: 600;
}

.plumbing-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.plumbing-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    cursor: pointer;
    color: #1e293b;
}

.plumbing-btn:hover {
    background: #e2e8f0;
}

.plumbing-btn-read {
    border-color: #93c5fd;
    background: #eff6ff;
}

.plumbing-btn-action {
    border-color: #c4b5fd;
    background: #f5f3ff;
}

.plumbing-btn-on {
    border-color: #86efac;
    background: #f0fdf4;
}

.plumbing-btn-off {
    border-color: #fca5a5;
    background: #fef2f2;
}

.plumbing-btn-ports,
.plumbing-btn-full,
.plumbing-btn-wago {
    font-size: 0.76rem;
}

.plumbing-card-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.plumbing-card-result {
    margin: 0;
    margin-top: 4px;
    padding: 10px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    font-family: ui-monospace, monospace;
    font-size: 0.72rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 220px;
    overflow: auto;
    min-height: 48px;
}

.plumbing-muted {
    color: #94a3b8;
    font-size: 0.82rem;
}

.plumbing-confirm-write-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    font-size: 0.88rem;
    color: #334155;
}

.plumbing-valve-hint {
    margin: 0 0 10px 0;
    max-width: 100%;
    line-height: 1.4;
}

.plumbing-build-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e40af;
    background: #dbeafe;
    border-radius: 6px;
    vertical-align: middle;
}

.plumbing-cards-placeholder {
    grid-column: 1 / -1;
    margin: 12px 0;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 10px;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.45;
}

.plumbing-cards-placeholder strong {
    color: #0f172a;
}

.plumbing-wago-heading {
    margin-top: 28px;
    font-size: 1.05rem;
    color: #fff;
}

.plumbing-wago-hint {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.plumbing-wago-hint code {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.live-zone-switch button.active {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
}

.live-meta {
    display: grid;
    gap: 4px;
    font-size: 0.95em;
}

.live-legend {
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.live-nodes-compact {
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 14px;
    font-size: 0.85em;
    line-height: 1.4;
    color: #334155;
    white-space: nowrap;
    overflow-x: auto;
}

.legend-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid #222;
    margin-right: 6px;
    vertical-align: middle;
}

.live-grid {
    display: grid;
    gap: 16px;
}

.live-row-block {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.live-row-block h2 {
    margin-bottom: 10px;
}

.live-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.live-row-vestiaire {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px;
}

.live-column {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px;
    background: #f8fafc;
}

.live-column-title {
    font-weight: 700;
    font-size: 0.85em;
    text-align: center;
    margin-bottom: 6px;
}

.live-slot {
    border-radius: 6px;
    border: 1px solid #334155;
    padding: 6px;
    min-height: 7.2rem;
    margin-bottom: 6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5%;
    align-items: stretch;
}

.live-slot:last-child {
    margin-bottom: 0;
}

.live-slot-main {
    display: grid;
    grid-template-rows: 78% 22%;
    min-width: 0;
    overflow: visible;
    height: 100%;
}

.live-slot-height-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    align-self: flex-start;
    width: 100%;
    height: 100%;
}

.height-icon {
    width: 72%;
    height: 100%;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 6%;
    border: 1px solid currentColor;
    border-radius: 3px;
    padding: 6%;
    box-sizing: border-box;
    opacity: 0.95;
}

.height-seg {
    border: 1px solid currentColor;
    border-radius: 2px;
    background: transparent;
    opacity: 0.55;
}

.height-seg.active {
    background: currentColor;
    opacity: 1;
}

.live-slot.live-white .height-icon,
.live-slot.live-yellow .height-icon {
    color: #111827;
}

.live-slot.live-black .height-icon,
.live-slot.live-blue .height-icon,
.live-slot.live-red .height-icon,
.live-slot.live-faulty_hatched .height-icon {
    color: #ffffff;
}

.live-slot-bottom {
    margin: 0;
    font-size: 0.72em;
    font-weight: 700;
    min-height: 14px;
    text-align: left;
    white-space: nowrap;
    line-height: 1.1;
    align-self: flex-end;
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
}

.live-slot-actions {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 6%;
    min-height: 100%;
    width: 100%;
    justify-items: center;
    align-items: center;
    justify-self: stretch;
    align-self: stretch;
}

.slot-action-btn {
    width: 22px;
    min-width: 22px;
    height: 22px;
    padding: 2px;
    line-height: 1;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.4);
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
}

.slot-action-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

.live-card {
    border-radius: 8px;
    padding: 10px;
    min-height: 92px;
    border: 1px solid #334155;
}

.live-card-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.live-card-meta {
    font-size: 0.9em;
}

.live-card-duration {
    margin-top: 8px;
    font-weight: 700;
}

.live-card-actions {
    margin-top: 8px;
    display: flex;
}

.live-status-btn {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.4);
    border-radius: 6px;
    padding: 7px 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    cursor: pointer;
}

.live-status-btn.compact {
    font-size: 0.76em;
}

.live-touchy-btn {
    border: 1px solid rgba(15, 23, 42, 0.4);
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.7em;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.live-log-btn {
    border: 1px solid rgba(15, 23, 42, 0.4);
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.7em;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Uniformise strictement les 3 boutons d'action */
.slot-action-btn.live-status-btn,
.slot-action-btn.live-touchy-btn,
.slot-action-btn.live-log-btn {
    width: 78%;
    min-width: 0;
    height: 82%;
    padding: 0;
    border-radius: 4px;
    margin: 0;
}

.live-touchy-btn svg {
    width: 56%;
    height: 56%;
}

.live-log-btn svg {
    width: 56%;
    height: 56%;
}

.live-status-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.live-touchy-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.slot-action-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .slot-action-btn.live-status-btn,
    .slot-action-btn.live-touchy-btn,
    .slot-action-btn.live-log-btn {
        width: 78%;
        min-width: 0;
        height: 82%;
    }
}

.live-white { background: #ffffff; color: #111827; }
.live-black { background: #111827; color: #ffffff; border-color: #111827; }
.live-faulty_hatched {
    background-color: #111827;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.22) 0,
        rgba(255, 255, 255, 0.22) 4px,
        rgba(17, 24, 39, 0.9) 4px,
        rgba(17, 24, 39, 0.9) 8px
    );
    color: #ffffff;
    border-color: #111827;
}
.live-blue { background: #1d4ed8; color: #ffffff; border-color: #1d4ed8; }
.live-yellow { background: #facc15; color: #111827; border-color: #eab308; }
.live-red { background: #dc2626; color: #ffffff; border-color: #b91c1c; }

.live-error {
    margin-top: 10px;
    color: #fee2e2;
    font-weight: 700;
}

/* Override final: dimensions strictement identiques pour les 3 boutons */
.live-slot-actions .slot-action-btn {
    width: 22px;
    min-width: 22px;
    height: 22px;
    padding: 2px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    font-size: 0;
}

.live-slot-actions .slot-action-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    margin: auto;
}

@media (max-width: 1024px) {
    .live-slot-actions .slot-action-btn {
        width: 22px;
        min-width: 22px;
        height: 22px;
        padding: 2px;
    }
    .live-slot-actions .slot-action-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Toujours garder 3 colonnes sur smartphone */
@media (max-width: 1024px) {
    .live-row-vestiaire {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .live-column {
        padding: 0.4rem;
    }

    .live-slot {
        min-height: 8.2rem;
        padding: 0.45rem;
        gap: 6%;
    }

    .height-icon {
        width: 74%;
    }

    .slot-action-btn.live-status-btn,
    .slot-action-btn.live-touchy-btn,
    .slot-action-btn.live-log-btn { width: 22px; min-width: 22px; height: 22px; }
    .slot-action-btn svg { width: 16px; height: 16px; }
}

/* Gap vertical fixe entre les 3 boutons */
.live-slot-actions {
    gap: 1%;
}

.locker-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 1rem;
}

.locker-modal-overlay.hidden {
    display: none;
}

.locker-modal {
    width: min(760px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.9rem;
}

.locker-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.locker-modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.locker-modal-close {
    border: 1px solid #94a3b8;
    border-radius: 6px;
    background: #ffffff;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    font-size: 1.2rem;
}

.locker-modal-meta {
    margin-top: 0.4rem;
    color: #334155;
    font-size: 0.9rem;
}

.locker-modal-error {
    margin-top: 0.5rem;
    min-height: 1.2rem;
    color: #b91c1c;
    font-weight: 700;
}

.locker-modal-body {
    margin-top: 0.3rem;
}

.locker-modal-actions {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

.locker-modal-actions button {
    border: 1px solid #94a3b8;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    font-weight: 600;
}

.locker-modal-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.locker-modal-textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 0.5rem;
    font-family: inherit;
}

.locker-modal-message-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.locker-modal-message-block button {
    align-self: flex-end;
}

.locker-log-list {
    max-height: 48vh;
    overflow: auto;
}

.locker-log-filters {
    margin-bottom: 0.45rem;
}

.locker-log-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
    color: #1e293b;
}

.locker-log-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.locker-log-table th,
.locker-log-table td {
    border: 1px solid #cbd5e1;
    padding: 0.32rem 0.45rem;
    text-align: left;
    vertical-align: middle;
}

.locker-log-table th {
    position: sticky;
    top: 0;
    background: #e2e8f0;
    color: #0f172a;
    z-index: 1;
}

.locker-log-table td:nth-child(1) {
    white-space: nowrap;
    width: 28%;
}

.locker-log-table td:nth-child(2) {
    white-space: nowrap;
    width: 18%;
}

.locker-log-table td:nth-child(3) {
    white-space: normal;
    word-break: break-word;
}

.locker-log-message-cell {
    position: relative;
    padding-right: 1.8rem;
    min-height: 1.1rem;
}

.locker-log-message-text {
    display: block;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
}

.locker-log-delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    border: 1px solid #ef4444;
    color: #b91c1c;
    background: #ffffff;
    border-radius: 4px;
    width: 1.4rem;
    height: 1.4rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.locker-log-delete-btn:hover {
    background: #fee2e2;
}

.locker-log-empty {
    color: #334155;
    font-style: italic;
}
