.tableur-workspace {
    width: min(1400px, 96%);
    margin: 30px auto 50px;
}

.tableur-workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.tableur-workspace-header h1 {
    margin: 5px 0;
}

.tableur-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: .7;
}

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

.tableur-action-primary,
.tableur-action-secondary {
    border: 0;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.tableur-action-primary {
    background: #2563eb;
    color: white;
}

.tableur-action-secondary {
    background: #eef2f7;
    color: #1f2937;
}

.tableur-consigne {
    margin-bottom: 15px;
    padding: 16px 20px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.tableur-consigne-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.tableur-consigne-content {
    line-height: 1.6;
}

.tableur-formula-bar {
    display: flex;
    height: 42px;
    margin-bottom: 8px;
}

.tableur-name-box {
    width: 75px;
}

.tableur-name-box input,
.tableur-formula-input input {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
    background: white;
}

.tableur-formula-symbol {
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #f1f5f9;
    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
}

.tableur-formula-input {
    flex: 1;
}

.tableur-sheet-container {
    overflow: auto;
    border: 1px solid #cbd5e1;
    background: white;
    max-height: 65vh;
}

.spreadsheet-table {
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 100%;
}

.spreadsheet-table th,
.spreadsheet-table td {
    border-right: 1px solid #dbe2ea;
    border-bottom: 1px solid #dbe2ea;
}

.spreadsheet-corner {
    width: 45px;
    min-width: 45px;
    background: #f1f5f9;
}

.spreadsheet-column-header {
    width: 110px;
    min-width: 110px;
    height: 30px;
    background: #f1f5f9;
    text-align: center;
    font-weight: 700;
    user-select: none;
}

.spreadsheet-row-header {
    width: 45px;
    min-width: 45px;
    background: #f1f5f9;
    text-align: center;
    font-weight: 600;
    user-select: none;
}

.spreadsheet-cell {
    width: 110px;
    min-width: 110px;
    height: 28px;
    padding: 4px 7px;
    box-sizing: border-box;
    outline: none;
    background: white;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
}

.spreadsheet-cell:focus,
.spreadsheet-cell.cell-active {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.tableur-status-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    margin-top: 8px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 13px;
}

@media (max-width: 800px) {

    .tableur-workspace-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tableur-actions {
        width: 100%;
    }

    .tableur-action-primary,
    .tableur-action-secondary {
        flex: 1;
        text-align: center;
    }
}
